/* Espionagem.com: o design da loja antiga (2008-2025), refeito para telemóvel.
   Imagens reaproveitadas em /img: logo, caixa do cabeçalho, botões laterais, fundo. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 13px/1.5 Arial, Helvetica, sans-serif; color: #4f4c4c;
  background: #fff url(/img/fundo.jpg) repeat-x;
}
img { max-width: 100%; height: auto; }
a { color: #2f6b9a; }
a:hover { color: #000; }
h1, h2, h3 { color: #579ecc; line-height: 1.2; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: -999px; top: 0; background: #fff; padding: 8px; z-index: 9; }
.saltar:focus { left: 8px; }

.pagina { max-width: 964px; margin: 0 auto; padding: 0 8px 24px; }

/* ---------- cabeçalho ---------- */
.cab { display: flex; border: 1px solid #c8c8c8; border-top: 0; border-radius: 0 0 8px 8px; overflow: hidden; background: #f3f3f3; }
.cab-logo { flex: 0 1 591px; display: block; line-height: 0; }
.cab-logo img { width: 100%; }
.cab-caixa { flex: 0 0 357px; height: 159px; background: url(/img/header.jpg) no-repeat; position: relative; }
.cab-boas { position: absolute; left: 22px; top: 44px; width: 312px; height: 62px; margin: 0; font-size: 11px; line-height: 1.35; color: #444; overflow: hidden; }
.cab-pesq { position: absolute; left: 16px; top: 119px; width: 318px; height: 28px; display: flex; }
.cab-pesq input { width: 112px; border: 0; background: transparent; padding: 0 8px 0 26px; font-size: 11px; }
.cab-pesq button { flex: 1; border: 0; background: transparent; color: #fff; font: bold 11px Arial, sans-serif; text-transform: uppercase; cursor: pointer; }
.cab-pesq button:hover { color: #c5dae8; }

/* ---------- barra de topo (menu) ---------- */
.barra {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px 0; margin: 8px 0;
  min-height: 42px; padding: 4px 10px; border: 1px solid #c4c4c4; border-radius: 8px;
  background: linear-gradient(#fefefe, #e6e6e6 60%, #d9d9d9);
  box-shadow: inset 0 1px #fff;
}
.barra a, .barra button { color: #555; font: bold 12px Arial, sans-serif; text-transform: uppercase; text-decoration: none; padding: 6px 12px; border: 0; background: none; cursor: pointer; }
.barra a + a, .barra button + a { border-left: 1px solid #c9c9c9; }
.barra a:hover, .barra button:hover { color: #000; }
.barra-cat { display: none; }
.barra-env { margin-left: auto; font-size: 11px; color: #777; padding-left: 12px; }
.barra-env::before { content: "✈ "; color: #579ecc; }

/* ---------- corpo: coluna lateral + conteúdo ---------- */
.corpo { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 8px; align-items: start; }

.pesq { position: relative; width: 198px; height: 50px; background: url(/img/bott_pesquisar.gif) no-repeat; display: flex; align-items: center; padding: 0 8px 0 44px; margin-bottom: 4px; }
.pesq input { width: 100px; border: 0; background: transparent; font-size: 11px; padding: 4px; }
.pesq button { margin-left: 4px; border: 1px solid #bbb; border-radius: 4px; background: linear-gradient(#fff, #ddd); font: bold 11px Arial; color: #555; padding: 3px 7px; cursor: pointer; }
.cats { display: flex; flex-direction: column; gap: 4px; }
.bt-cat {
  display: flex; align-items: center; width: 198px; height: 50px; padding: 0 50px 0 28px;
  background: url(/img/bott_geral.jpg) no-repeat; color: #3d6f96; font-weight: bold; font-size: 11px; line-height: 1.15;
}
.bt-cat:hover { color: #000; }
.bt-cat[aria-current] { color: #000; text-decoration: none; }
.caixa-lat { margin-top: 10px; border: 1px solid #c8c8c8; border-radius: 6px; background: #fff; padding: 10px 12px; }
.caixa-lat-tit { margin: 0 0 6px; font-weight: bold; color: #333; }
.caixa-lat-tit::before { content: "🕵 "; }
.caixa-lat ul { margin: 0; padding: 0; list-style: none; font-size: 12px; }
.caixa-lat li { padding: 3px 0; border-bottom: 1px dotted #ddd; }
.caixa-lat li:last-child { border: 0; }
.caixa-lat a { color: #4f4c4c; font-weight: bold; text-decoration: none; }
.caixa-lat a:hover { color: #000; }

.principal { min-width: 0; }

/* barra metalizada de título (como «Novidades» e o topo das caixas) */
.tit-barra, .novidades-tit {
  margin: 12px 0 8px; padding: 9px 14px; font-size: 15px; font-weight: bold; color: #444; text-shadow: 0 1px #fff;
  border: 1px solid #bdbdbd; border-radius: 6px;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0) 50%, rgba(0,0,0,.06)),
              linear-gradient(90deg, #cdcdcd, #f4f4f4 18%, #b9b9b9 46%, #8f8f8f 52%, #dcdcdc 62%, #f6f6f6 80%, #c9c9c9);
}
h1.tit-barra { font-size: 18px; color: #3d6f96; }
.principal > .tit-barra:first-child, .migalhas + .tit-barra { margin-top: 0; }
.migalhas { font-size: 11px; color: #777; margin: 2px 0 8px; }
.migalhas a { color: #777; }
.intro { font-size: 13px; margin: 0 0 12px; }
.h1-inicio { font-size: 20px; margin: 16px 0 6px; }
.ordenar { border: 1px solid #ccc; border-radius: 6px; background: linear-gradient(#fdfdfd, #ececec); padding: 8px 12px; font-size: 11px; font-weight: bold; color: #666; margin: 0 0 8px; }

/* ---------- novidades (montra rotativa) ---------- */
.novidades { border: 1px solid #c4c4c4; border-radius: 8px; background: linear-gradient(#fafafa, #dcdcdc); padding: 0 12px 12px; overflow: hidden; }
.novidades-tit { margin: 0 -12px 12px; border-width: 0 0 1px; border-radius: 0; padding-left: 40px; font-size: 12px; position: relative; }
.novidades-tit::before { content: "💣"; position: absolute; left: 12px; top: 6px; font-size: 16px; }
.novidades-in { display: flex; gap: 12px; }
.minis { display: flex; flex-direction: column; gap: 10px; }
.mini { width: 82px; height: 82px; border: 1px solid #aaa; border-radius: 10px; background: #fff; padding: 5px; cursor: pointer; opacity: .65; }
.mini.ativo, .mini:hover { opacity: 1; border-color: #3d6f96; box-shadow: 0 0 0 2px #c5dae8; }
.mini img { width: 100%; height: 100%; object-fit: contain; }
.slides { flex: 1; min-width: 0; border: 1px solid #aaa; border-radius: 10px; background: linear-gradient(110deg, #fff 40%, #eef1f4); position: relative; min-height: 300px; }
.slide { display: none; padding: 20px 24px; gap: 16px; align-items: center; }
.slide.ativo { display: flex; }
.slide-txt { flex: 1; min-width: 0; }
.slide-tit { margin: 0; font: 900 24px/1.1 Arial, sans-serif; text-transform: uppercase; }
.slide-tit a { color: #1d1d1d; text-decoration: none; }
.slide-sub { display: inline-block; margin: 8px 0 10px; background: #111; color: #fff; padding: 3px 10px; font-size: 14px; }
.slide ul { margin: 0 0 14px; padding: 0; list-style: none; font: italic bold 14px/1.6 Arial, sans-serif; color: #222; }
.slide li::after { content: " ✔"; color: #b3171c; }
.slide-img { flex: 0 0 230px; text-align: center; }
.slide-img img { max-height: 240px; width: auto; object-fit: contain; }
.slide-selo { position: absolute; right: 230px; bottom: 26px; width: 78px; height: 78px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #e7484c, #b3171c); color: #fff; font: bold 13px/1.15 Arial; display: flex; align-items: center; justify-content: center; text-align: center; box-shadow: 0 2px 6px rgba(0,0,0,.35); text-transform: uppercase; }

/* ---------- grelha de produtos (caixas da loja antiga) ---------- */
.grelha { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 8px; }
.prod { display: flex; flex-direction: column; border: 1px solid #c4c4c4; border-radius: 8px; background: #fff; overflow: hidden; }
.prod-tit {
  margin: 0; min-height: 52px; padding: 9px 12px 7px; font-size: 13px; line-height: 1.25; display: flex; align-items: center;
  text-shadow: 0 1px #fff; border-bottom: 1px solid #c4c4c4;
  background: linear-gradient(rgba(255,255,255,.55), rgba(255,255,255,0) 50%, rgba(0,0,0,.06)),
              linear-gradient(90deg, #cdcdcd, #f4f4f4 18%, #c4c4c4 46%, #a2a2a2 52%, #dcdcdc 62%, #f6f6f6 80%, #c9c9c9);
}
.prod-tit a { color: #555; text-decoration: none; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.prod-tit a:hover { color: #000; }
.prod-img { display: flex; align-items: center; justify-content: center; margin: 10px 12px 0; height: 172px; border: 1px solid #b9b9b9; border-radius: 9px; padding: 6px; box-shadow: inset 0 0 0 3px #f1f1f1; }
.prod-img img { max-height: 158px; width: auto; object-fit: contain; }
.prod-frase { flex: 1; margin: 8px 12px; font-size: 11px; color: #555; }
.prod-base { background: linear-gradient(#efefef, #d8d8d8); border-top: 1px solid #e2e2e2; padding: 8px 12px 10px; }
.prod-preco { margin: 0 0 8px; font-weight: bold; font-size: 12px; color: #555; }
.prod-preco span { color: #b3171c; }
.prod-bts { display: flex; gap: 6px; }
.prod-bts .bt { flex: 1; text-align: center; }

.bt {
  display: inline-block; padding: 6px 12px; border-radius: 7px; border: 1px solid #1f1f1f;
  color: #fff; font: bold 11px Arial, sans-serif; text-transform: uppercase; text-decoration: none; text-align: center;
  box-shadow: inset 0 1px rgba(255,255,255,.35), 0 1px 2px rgba(0,0,0,.35); cursor: pointer;
}
.bt:hover { color: #fff; filter: brightness(1.15); }
.bt-info { background: linear-gradient(#787878, #4a4a4a 50%, #3a3a3a); }
.bt-comprar { background: linear-gradient(#5d9ccc, #2f6f9f 50%, #1f5682); border-color: #173f5f; }
.bt-grande { display: block; padding: 10px; font-size: 13px; margin: 4px 0 6px; }

/* ---------- ficha de produto ---------- */
.ficha { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; border: 1px solid #c8c8c8; border-radius: 8px; background: #fff; padding: 12px; }
.ficha-img { border: 1px solid #b9b9b9; border-radius: 10px; padding: 10px; display: flex; align-items: center; justify-content: center; min-height: 260px; box-shadow: inset 0 0 0 3px #f3f3f3; }
.ficha-img img { max-height: 320px; width: auto; object-fit: contain; }
.ficha-dados h1 { font-size: 20px; margin: 0 0 8px; }
.ficha-frase { margin: 0 0 10px; }
.ficha-tab { width: 100%; border-collapse: separate; border-spacing: 0 3px; font-size: 11px; text-transform: uppercase; }
.ficha-tab th, .ficha-tab td { background: linear-gradient(#444, #1e1e1e); color: #fff; padding: 6px 12px; }
.ficha-tab th { text-align: left; border-radius: 6px 0 0 6px; }
.ficha-tab td { text-align: right; border-radius: 0 6px 6px 0; }
.ficha-tab td a { color: #c5dae8; }
.ficha-nota { font-size: 11px; color: #777; margin: 0; }
.info { margin-top: 12px; }
.info h2 { font-size: 24px; margin: 10px 0; }
.certos { padding: 0; list-style: none; }
.certos li { padding: 2px 0 2px 22px; position: relative; }
.certos li::before { content: "✔"; position: absolute; left: 2px; color: #b3171c; }
.ver-guia { font-weight: bold; }

/* ---------- caixas, listas, textos dos guias ---------- */
.caixa { border: 1px solid #c5dae8; border-left: 5px solid #579ecc; background: #f3f8fc; border-radius: 6px; padding: 10px 14px; margin: 12px 0; }
.caixa > strong:first-child { display: block; color: #333; }
.caixa p { margin: 4px 0 0; }
.caixa.aviso { border-color: #f0c9c9; border-left-color: #b3171c; background: #fdf3f3; }
.caixa.dica { border-color: #cfe6c9; border-left-color: #4b9a3c; background: #f4faf2; }
.texto { background: #fff; border: 1px solid #c8c8c8; border-radius: 8px; padding: 14px 18px; }
.texto h1 { font-size: 22px; margin: 0 0 10px; }
.texto h2 { font-size: 18px; margin: 22px 0 8px; }
.texto h3 { font-size: 15px; }
.entrada { font-size: 14px; color: #333; }
.pequeno { font-size: 11px; color: #777; }
.lista-passos { counter-reset: p; list-style: none; padding: 0; }
.lista-passos > li { counter-increment: p; position: relative; padding: 4px 0 8px 34px; }
.lista-passos > li::before { content: counter(p); position: absolute; left: 0; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: linear-gradient(#5d9ccc, #1f5682); color: #fff; font-weight: bold; font-size: 12px; text-align: center; line-height: 24px; }
.tabela { overflow-x: auto; margin: 12px 0; }
.tabela table { border-collapse: collapse; width: 100%; min-width: 480px; font-size: 12px; }
.tabela th { background: linear-gradient(#444, #1e1e1e); color: #fff; text-align: left; padding: 6px 8px; }
.tabela td { border-bottom: 1px solid #ddd; padding: 6px 8px; vertical-align: top; }
.letras { display: flex; flex-wrap: wrap; gap: 4px; margin: 10px 0; }
.letras a { display: inline-block; min-width: 28px; text-align: center; padding: 4px; border: 1px solid #bbb; border-radius: 5px; background: linear-gradient(#fff, #e3e3e3); color: #444; font-weight: bold; text-decoration: none; }
.glossario dt { font-weight: bold; color: #333; margin-top: 10px; scroll-margin-top: 10px; }
.glossario dd { margin: 2px 0 0 14px; }

.lista-cats, .lista-guias { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.lista-cats { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.lista-cats a { display: flex; align-items: center; gap: 10px; border: 1px solid #c8c8c8; border-radius: 8px; background: linear-gradient(#fff, #efefef); padding: 6px 10px; text-decoration: none; color: #777; font-size: 11px; }
.lista-cats img { width: 50px; height: 50px; object-fit: contain; background: #fff; }
.lista-cats b { display: block; color: #3d6f96; font-size: 13px; }
.lista-cats a:hover b { color: #000; }
.lista-guias { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.lista-guias a { display: block; height: 100%; border: 1px solid #c8c8c8; border-radius: 8px; background: #fff; padding: 10px 12px; text-decoration: none; color: #666; font-size: 12px; }
.lista-guias b { display: block; color: #579ecc; font-size: 14px; margin-bottom: 2px; }
.lista-guias a:hover b { color: #000; }

.pesq-grande { display: flex; gap: 8px; margin-bottom: 10px; }
.pesq-grande input { flex: 1; min-width: 0; padding: 8px 10px; border: 1px solid #bbb; border-radius: 6px; font-size: 14px; }

/* ---------- rodapé ---------- */
.rodape { margin-top: 16px; }
.rodape-links { border: 1px solid #c4c4c4; border-radius: 8px; background: linear-gradient(#fefefe, #e2e2e2); padding: 10px; text-align: center; color: #aaa; font-size: 11px; }
.rodape-links a { color: #555; font-weight: bold; text-decoration: none; margin: 0 3px; }
.rodape-links a:hover { color: #000; }
.rodape-txt { font-size: 10.5px; color: #777; padding: 8px 4px; }
.rodape-txt p { margin: 0 0 4px; }

/* ---------- telemóvel e tablet ---------- */
@media (max-width: 960px) {
  .cab-caixa { display: none; }
  .cab-logo { flex: 1; }
}
@media (max-width: 760px) {
  .pagina { padding: 0 8px 16px; }
  .barra { padding: 4px 6px; }
  .barra a, .barra button { padding: 6px 8px; font-size: 11px; }
  .barra-cat { display: inline-block; }
  .barra-cat::after { content: " ▾"; }
  .barra-env { display: none; }
  .corpo { grid-template-columns: minmax(0, 1fr); }
  .lateral { display: none; }
  .lateral.aberta { display: block; }
  .bt-cat { width: 100%; background-size: 100% 50px; }
  .pesq { width: 100%; background: #fff url(/img/bott_pesquisar.gif) no-repeat left top; border-radius: 8px; box-shadow: inset 0 0 0 1px #c6c6c6; }
  .pesq input { flex: 1; }
  .cats { display: grid; grid-template-columns: 1fr 1fr; }
  .bt-cat { padding: 0 42px 0 18px; }
  .caixa-lat { display: none; }
  .novidades-in { flex-direction: column-reverse; }
  .minis { flex-direction: row; justify-content: center; }
  .mini { width: 56px; height: 56px; }
  .slides { min-height: 0; }
  .slide { flex-direction: column-reverse; padding: 14px; }
  .slide-img { flex: none; }
  .slide-img img { max-height: 180px; }
  .slide-tit { font-size: 19px; }
  .slide-selo { right: 12px; top: 12px; bottom: auto; width: 62px; height: 62px; font-size: 11px; }
  .grelha { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .prod-tit { font-size: 12px; padding: 8px 8px 6px; min-height: 48px; }
  .prod-img { margin: 4px 8px 0; height: 130px; }
  .prod-img img { max-height: 116px; }
  .prod-frase { margin: 6px 8px; }
  .prod-base { padding: 6px 8px 8px; }
  .prod-preco { font-size: 10.5px; }
  .prod-bts { flex-direction: column; }
  .ficha { grid-template-columns: minmax(0, 1fr); }
  .ficha-img { min-height: 0; }
  .texto { padding: 12px; }
}
