/* ==========================================================================
   BLACK DIAMOND — PREMIUM PEPTIDES
   Folha de estilo única. Secções pela mesma ordem do layout.
   ========================================================================== */

:root {
  --ink:        #000000;
  --ink-2:      #0a0d12;
  --ink-3:      #11161d;
  --paper:      #f3f3f3;
  --paper-2:    #ffffff;

  --on-dark:    #ffffff;
  --on-dark-mut:rgba(255,255,255,.60);
  --on-dark-dim:rgba(255,255,255,.38);
  --on-light:   #0b0b0b;
  --on-light-mut:#5c5c5c;

  --line-dark:  rgba(255,255,255,.14);
  --line-light: rgba(0,0,0,.12);

  --wa:         #25d366;

  --shell:      1320px;
  --gutter:     clamp(20px, 4vw, 56px);

  --ease:       cubic-bezier(.22,.61,.36,1);
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 76px; }

body {
  margin: 0;
  background: var(--ink);
  color: var(--on-dark);
  font-family: 'Jost', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

.sr {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---- Ícones -------------------------------------------------------------- */

.ic {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor;
  stroke-width: 1.3; stroke-linecap: round; stroke-linejoin: round;
}
.ic--xs { width: 12px; height: 12px; stroke-width: 1.8; }
.ic--sm { width: 15px; height: 15px; }
.ic--lg { width: 34px; height: 34px; stroke-width: 1; }
.ic--xl { width: 46px; height: 46px; stroke-width: .9; }

.flag {
  width: 21px; height: 14px; flex: none;
  border-radius: 2px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.18);
}


/* ==========================================================================
   TIPOGRAFIA PARTILHADA
   ========================================================================== */

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px; font-weight: 400;
  letter-spacing: .34em; text-transform: uppercase;
  color: var(--on-dark-mut);
}
.eyebrow--dark { color: var(--on-light-mut); }

.h2 {
  margin: 0 0 18px;
  font-size: clamp(1.7rem, 3.4vw, 2.5rem);
  font-weight: 300;
  letter-spacing: .17em;
  text-transform: uppercase;
  line-height: 1.24;
  color: var(--on-dark);
}
.h2--dark { color: var(--on-light); }

.lede {
  margin: 0 0 26px;
  max-width: 46ch;
  font-size: 15px;
  color: var(--on-dark-mut);
}
.lede--dark { color: var(--on-light-mut); }

/* ---- Botão --------------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 14px;
  padding: 13px 26px;
  border: 1px solid rgba(255,255,255,.45);
  font-size: 11px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
  white-space: nowrap;
  transition: background .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease);
}
.btn:hover { background: #fff; border-color: #fff; color: var(--ink); }
.btn .ic { transition: transform .25s var(--ease); }
.btn:hover .ic { transform: translateX(4px); }

.btn--dark { border-color: rgba(0,0,0,.55); color: var(--on-light); }
.btn--dark:hover { background: var(--ink); border-color: var(--ink); color: #fff; }


/* ==========================================================================
   CABEÇALHO
   ========================================================================== */

.hdr {
  position: sticky; top: 0; z-index: 60;
  background: rgba(0,0,0,.86);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line-dark);
}

.hdr__in {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter);
  height: 68px;
  display: flex; align-items: center; gap: 24px;
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo__mark { width: 34px; height: auto; }
.logo__txt { display: flex; flex-direction: column; line-height: 1; }
.logo__name {
  font-size: 15px; font-weight: 400;
  letter-spacing: .21em; text-transform: uppercase;
}
.logo__sub {
  margin-top: 4px;
  font-size: 8px; font-weight: 300;
  letter-spacing: .32em; text-transform: uppercase;
  color: var(--on-dark-mut);
}

.nav {
  display: flex; align-items: center; gap: clamp(16px, 2.2vw, 34px);
  margin-left: auto;
}
.nav a {
  position: relative;
  padding: 6px 0;
  font-size: 11px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-mut);
  transition: color .2s var(--ease);
}
.nav a:hover, .nav a.is-on { color: #fff; }
.nav a.is-on::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px; background: #fff;
}

.hdr__right { display: flex; align-items: center; gap: 14px; margin-left: auto; }

/* ---- Selector de idioma -------------------------------------------------- */

.lang { position: relative; }
.lang__btn {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 10px;
  border: 1px solid transparent;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-dark-mut);
  transition: color .2s var(--ease), border-color .2s var(--ease);
}
.lang__btn:hover, .lang.is-open .lang__btn { color: #fff; border-color: var(--line-dark); }
.lang__chev { transition: transform .22s var(--ease); }
.lang.is-open .lang__chev { transform: rotate(90deg); }

.lang__menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 178px;
  background: #0c0f14;
  border: 1px solid var(--line-dark);
  padding: 6px;
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .2s var(--ease), transform .2s var(--ease), visibility .2s;
}
.lang.is-open .lang__menu { opacity: 1; visibility: visible; transform: none; }

.lang__item {
  display: flex; align-items: center; gap: 11px; width: 100%;
  padding: 9px 11px;
  font-size: 12px; letter-spacing: .08em;
  color: var(--on-dark-mut);
  transition: background .18s var(--ease), color .18s var(--ease);
}
.lang__item:hover { background: rgba(255,255,255,.07); color: #fff; }
.lang__item.is-on { color: #fff; }

/* ---- Fila de bandeiras --------------------------------------------------- */

.flags { display: flex; align-items: center; gap: 7px; }
.flags button {
  display: flex; padding: 2px; border-radius: 3px;
  opacity: .45;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.flags button:hover { opacity: 1; transform: translateY(-1px); }
.flags button.is-on { opacity: 1; }

/* ---- Carrinho e menu ----------------------------------------------------- */

.cartbtn { position: relative; display: flex; padding: 6px; color: var(--on-dark-mut); transition: color .2s var(--ease); }
.cartbtn:hover { color: #fff; }
.cartbtn__n {
  position: absolute; top: -2px; right: -4px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: grid; place-items: center;
  background: #fff; color: #000;
  border-radius: 9px;
  font-size: 10px; font-weight: 500; line-height: 1;
}

.burger { display: none; padding: 6px; color: var(--on-dark-mut); }


/* ==========================================================================
   HERO
   ========================================================================== */

.hero { position: relative; overflow: hidden; background: var(--ink); }

.hero__bg {
  position: absolute; inset: 0;
  background-image: url('../assets/hero.jpg'),
                    linear-gradient(120deg, #05070a, #1b2430 55%, #05070a);
  background-size: cover; background-position: center;
  opacity: .55;
}
.hero__bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.94) 0%, rgba(0,0,0,.62) 42%, rgba(0,0,0,.82) 100%);
}

.hero__in {
  position: relative;
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(56px, 8vw, 104px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, .95fr) auto;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  min-height: clamp(460px, 56vw, 620px);
}

.hero__h1 {
  margin: 0;
  /* O nome fica sempre numa linha só, como no layout. */
  font-size: clamp(1.55rem, 3.9vw, 3.4rem);
  font-weight: 300;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1.05;
  white-space: nowrap;
}
.hero__h2 {
  margin: 10px 0 0;
  font-size: clamp(1rem, 2.1vw, 1.55rem);
  font-weight: 200;
  letter-spacing: .38em;
  text-transform: uppercase;
  color: rgba(255,255,255,.88);
}
.hero__tag {
  margin: 26px 0 0;
  font-size: 12px; font-weight: 400;
  letter-spacing: .26em; text-transform: uppercase;
}
.hero__body {
  margin: 16px 0 30px;
  max-width: 40ch;
  font-size: 14px;
  color: var(--on-dark-mut);
}

.hero__shot img {
  width: 100%; height: auto;
  filter: drop-shadow(0 30px 60px rgba(0,0,0,.7));
}

.hero__badges {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 22px;
}
.hero__badges li { display: flex; align-items: center; gap: 13px; }
.hero__badges span {
  font-size: 10px; font-weight: 400;
  letter-spacing: .21em; text-transform: uppercase;
  color: rgba(255,255,255,.82);
  white-space: nowrap;
}


/* ==========================================================================
   TOP SELLERS
   ========================================================================== */

.top { background: var(--paper); color: var(--on-light); }

.top__in {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(46px, 5.5vw, 74px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(230px, 300px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
}

/* Acompanha o número de destaques: 5, 7, os que forem. */
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(104px, 1fr));
  gap: 10px;
}

.card {
  background: var(--paper-2);
  border: 1px solid rgba(0,0,0,.07);
  display: flex; flex-direction: column;
  transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.13); }

.card__pic {
  margin: 0; padding: 18px 12px 8px;
  background: linear-gradient(180deg, #fafafa, #efefef);
}
.card__pic img { margin: 0 auto; height: 116px; width: auto; object-fit: contain; }

/* flex para que o preço e o botão fiquem alinhados entre cartões,
   mesmo quando um nome ocupa três linhas */
.card__body { padding: 12px 12px 0; text-align: center; flex: 1; display: flex; flex-direction: column; }
.card__name {
  margin: 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-light);
}
.card__dose { margin: 5px 0 0; font-size: 11px; color: var(--on-light-mut); letter-spacing: .08em; }
.card__price { margin: auto 0 14px; padding-top: 8px; font-size: 14px; font-weight: 500; letter-spacing: .06em; }

.card__add {
  margin-top: auto;
  width: 100%; padding: 11px 8px;
  background: var(--ink); color: #fff;
  font-size: 10px; letter-spacing: .2em; text-transform: uppercase;
  transition: background .22s var(--ease);
}
.card__add:hover { background: #2a2a2a; }
.card__add.is-done { background: var(--wa); }


/* ==========================================================================
   CATÁLOGO
   ========================================================================== */

.cat {
  background: var(--ink-2);
  background-image: radial-gradient(120% 90% at 78% 12%, rgba(52,80,110,.32), transparent 62%);
}

.cat__in {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(46px, 5.5vw, 76px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(210px, 264px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 54px);
  align-items: start;
}

/* O título do catálogo fica numa linha só */
.cat__side .h2 { white-space: nowrap; font-size: clamp(1.4rem, 2.5vw, 2.1rem); }

.srch {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 15px;
  border: 1px solid var(--line-dark);
  color: var(--on-dark-dim);
  margin-bottom: 26px;
  transition: border-color .22s var(--ease);
}
.srch:focus-within { border-color: rgba(255,255,255,.5); color: #fff; }
.srch input {
  flex: 1; min-width: 0;
  background: none; border: 0; outline: none;
  color: #fff; font: inherit; font-size: 13px;
}
.srch input::placeholder { color: var(--on-dark-dim); }
.srch input::-webkit-search-cancel-button { filter: invert(1) opacity(.5); }

.cats { list-style: none; margin: 0; padding: 0; }
.cats li + li { border-top: 1px solid var(--line-dark); }
.cats button {
  display: flex; align-items: center; gap: 13px; width: 100%;
  padding: 14px 4px;
  font-size: 12px; letter-spacing: .12em;
  color: var(--on-dark-mut);
  transition: color .2s var(--ease);
}
.cats button:hover, .cats button.is-on { color: #fff; }
.cats .cats__n { margin-left: auto; font-size: 11px; color: var(--on-dark-dim); }
.cats button.is-on .cats__n { color: rgba(255,255,255,.7); }
.cats .ic--xs { margin-left: 2px; opacity: .5; }

/* ---- Tabela -------------------------------------------------------------- */

/* As duas colunas de tabela, lado a lado */
.cat__table {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(20px, 3vw, 44px);
  align-items: start;
}

/* Larguras fixas para as duas colunas de tabela ficarem alinhadas entre si */
.tbl { width: 100%; border-collapse: collapse; font-size: 12.5px; table-layout: fixed; }
.tbl th:nth-child(1), .tbl td:nth-child(1) { width: 42%; }
.tbl th:nth-child(2), .tbl td:nth-child(2) { width: 17%; }
.tbl th:nth-child(3), .tbl td:nth-child(3) { width: 17%; }
.tbl th:nth-child(4), .tbl td:nth-child(4) { width: 17%; }
.tbl th:nth-child(5), .tbl td:nth-child(5) { width: 7%; }

.tbl th {
  padding: 0 10px 12px;
  text-align: left;
  font-size: 10px; font-weight: 400;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-dim);
  border-bottom: 1px solid var(--line-dark);
  white-space: nowrap;
}
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }

.tbl td {
  padding: 11px 10px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.8);
  vertical-align: middle;
}
.tbl tr { transition: background .18s var(--ease); }
.tbl tbody tr:hover { background: rgba(255,255,255,.04); }

.tbl__name { color: #fff; }
.tbl__code, .tbl__dose { color: var(--on-dark-mut); letter-spacing: .06em; white-space: nowrap; }
.tbl__price { text-align: right; white-space: nowrap; }
.tbl td.tbl__price { color: #fff; font-weight: 400; }
.tbl__act { width: 40px; text-align: right; }

.tbl__add {
  display: inline-flex; padding: 6px;
  color: var(--on-dark-dim);
  transition: color .2s var(--ease), transform .2s var(--ease);
}
.tbl__add:hover { color: #fff; transform: scale(1.12); }
.tbl__add.is-done { color: var(--wa); }

.tbl__empty { grid-column: 1 / -1; padding: 26px 0; color: var(--on-dark-mut); font-size: 14px; }


/* ==========================================================================
   BLENDS
   ========================================================================== */

.bl { background: var(--ink); overflow: hidden; }

.bl__in {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1fr) minmax(0, .85fr);
  gap: clamp(24px, 3.5vw, 48px);
  align-items: center;
  min-height: 300px;
}

.bl__shot { margin: 0; }
.bl__shot img { width: 100%; height: auto; }

.bl__copy { padding: clamp(34px, 4vw, 54px) 0; }

.syn { list-style: none; margin: 0; padding: clamp(34px, 4vw, 54px) 0; }
.syn li {
  display: flex; align-items: center; gap: 15px;
  padding: 13px 0;
}
.syn li + li { border-top: 1px solid rgba(255,255,255,.08); }
.syn .ic { opacity: .6; }
.syn h3 {
  margin: 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: .18em; text-transform: uppercase;
}
.syn p { margin: 4px 0 0; font-size: 11.5px; color: var(--on-dark-mut); letter-spacing: .04em; }
.syn a { display: flex; align-items: center; gap: 15px; width: 100%; transition: opacity .2s var(--ease); }
.syn a:hover { opacity: .72; }


/* ==========================================================================
   CIÊNCIA E QUALIDADE
   ========================================================================== */

.sci {
  background: var(--paper-2); color: var(--on-light);
  background-image: linear-gradient(100deg, #e8ecef 0%, #f7f7f7 46%, #ffffff 100%);
}

.sci__in {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter) 0 0;
  display: grid;
  grid-template-columns: minmax(0, .5fr) minmax(0, 1.05fr) minmax(0, 1.1fr);
  gap: clamp(22px, 3.2vw, 44px);
  align-items: center;
  min-height: 250px;
}

/* A foto encosta à margem do ecrã, como no layout */
.sci__shot {
  margin: 0 0 0 calc(-1 * max(0px, (100vw - var(--shell)) / 2));
  align-self: stretch;
}
.sci__shot img { width: 100%; height: 100%; object-fit: cover; }

/* Os dois fôlegos do título ficam cada um na sua linha */
.sci__copy .h2 span { white-space: nowrap; }
.sci__copy .h2 { font-size: clamp(1.4rem, 2.7vw, 2.15rem); }

.sci__copy { padding: clamp(34px, 4vw, 52px) 0; }

.pillars {
  list-style: none; margin: 0; padding: clamp(34px, 4vw, 52px) 0;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  text-align: center;
}
.pillars li { padding: 0 clamp(8px, 1.4vw, 20px); }
.pillars li + li { border-left: 1px solid var(--line-light); }
.pillars .ic { margin: 0 auto 14px; color: var(--on-light); }
.pillars h3 {
  margin: 0 0 7px;
  font-size: 10.5px; font-weight: 500;
  letter-spacing: .16em; text-transform: uppercase;
  color: var(--on-light);
}
.pillars p { margin: 0; font-size: 11px; line-height: 1.5; color: var(--on-light-mut); }


/* ==========================================================================
   ENVIO GLOBAL
   ========================================================================== */

.shp { background: var(--ink-3); }

.shp__in {
  max-width: var(--shell); margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
  min-height: 250px;
}

.shp__left { position: relative; align-self: stretch; display: flex; align-items: center; }
/* A foto vai até à margem do ecrã, como no layout */
.shp__left::before,
.shp__left::after {
  content: '';
  position: absolute; top: 0; bottom: 0; right: 0;
  left: calc(-1 * (var(--gutter) + max(0px, (100vw - var(--shell)) / 2)));
}
.shp__left::before {
  background-image: url('../assets/envio.jpg'),
                    linear-gradient(90deg, #1a2733, #0d1319);
  background-size: cover; background-position: center;
}
.shp__left::after {
  background: linear-gradient(90deg, rgba(10,14,20,.28) 0%, rgba(10,14,20,.86) 46%, var(--ink-3) 100%);
}
.shp__copy { position: relative; z-index: 1; padding: clamp(40px, 5vw, 66px) 0; margin-left: auto; max-width: 400px; }

.shp__right {
  display: flex; align-items: center; gap: clamp(18px, 2.6vw, 34px);
  padding: clamp(34px, 4vw, 56px) 0;
  border-left: 1px solid var(--line-dark);
  padding-left: clamp(22px, 3.4vw, 48px);
}
.shp__right .ic--xl { opacity: .75; }
.shp__right .h2 { font-size: clamp(1.25rem, 2.3vw, 1.65rem); }
.shp__right .lede { margin-bottom: 0; }


/* ==========================================================================
   ETIQUETA DE DISPONIBILIDADE
   ========================================================================== */

.pill {
  display: inline-block;
  margin: 0 0 0 9px;
  padding: 2px 8px;
  border: 1px solid currentColor;
  border-radius: 2px;
  font-size: 8.5px; font-weight: 400;
  letter-spacing: .14em; text-transform: uppercase;
  white-space: nowrap;
  vertical-align: 1px;
}
.pill--in      { color: #4fc978; }
.pill--transit { color: #d8a24a; }
.pill--order   { color: rgba(255,255,255,.42); }

/* nos cartões (fundo claro) a etiqueta fica por baixo do preço */
.card .pill { margin: 0 0 12px; align-self: center; }
.card .pill--order { color: #8a8a8a; }

/* na tabela fica numa linha própria, por baixo do nome */
.tbl__nm { display: block; }
.tbl__name .pill { margin: 5px 0 0; }


/* ==========================================================================
   RESEARCH USE ONLY + ESPECIFICAÇÕES
   ========================================================================== */

.ruo {
  background: var(--ink-2);
  background-image: radial-gradient(110% 80% at 18% 20%, rgba(52,80,110,.22), transparent 60%);
  border-top: 1px solid var(--line-dark);
}

.ruo__in {
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(42px, 5vw, 66px) var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(28px, 4vw, 60px);
  align-items: start;
}

.ruo__copy .lede { margin-bottom: 0; max-width: 42ch; }

.specs__list { list-style: none; margin: 0; padding: 0; }
.specs__list li {
  display: flex; gap: 13px;
  padding: 13px 0;
  font-size: 12.5px; line-height: 1.6;
  color: var(--on-dark-mut);
}
.specs__list li + li { border-top: 1px solid rgba(255,255,255,.07); }
.specs__list .ic { margin-top: 3px; opacity: .55; }


/* ==========================================================================
   SOBRE
   ========================================================================== */

.ab { position: relative; background: var(--ink); overflow: hidden; }
.ab::before {
  content: ''; position: absolute; inset: 0;
  background-image: url('../assets/sobre.jpg'),
                    linear-gradient(80deg, #0a0f14, #26333f);
  background-size: cover; background-position: center right;
}
.ab::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,.95) 0%, rgba(0,0,0,.72) 44%, rgba(0,0,0,.18) 100%);
}

.ab__in {
  position: relative; z-index: 1;
  max-width: var(--shell); margin: 0 auto;
  padding: clamp(52px, 7vw, 96px) var(--gutter);
}
.ab__copy { max-width: 480px; }


/* ==========================================================================
   RODAPÉ
   ========================================================================== */

.ft { background: var(--ink); border-top: 1px solid var(--line-dark); }

.ft__in {
  max-width: var(--shell); margin: 0 auto;
  padding: 26px var(--gutter);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 22px;
}

.ft__nav { display: flex; flex-wrap: wrap; gap: clamp(12px, 1.8vw, 26px); }
.ft__nav a {
  font-size: 10.5px; letter-spacing: .18em; text-transform: uppercase;
  color: var(--on-dark-mut);
  transition: color .2s var(--ease);
}
.ft__nav a:hover { color: #fff; }

.logo--ft { justify-self: center; }

.ft__right { display: flex; align-items: center; justify-content: flex-end; gap: 20px; }
.ft__social { display: flex; gap: 14px; }
.ft__social a { color: var(--on-dark-mut); transition: color .2s var(--ease); }
.ft__social a:hover { color: #fff; }

.ft__bar {
  border-top: 1px solid var(--line-dark);
}
.ft__bar { max-width: var(--shell); margin: 0 auto; }
.ft__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px;
  padding: 16px var(--gutter);
  font-size: 10.5px; letter-spacing: .1em;
  color: var(--on-dark-dim);
}
.ft__bar p { margin: 0; }


/* ==========================================================================
   CARRINHO
   ========================================================================== */

.veil {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0,0,0,.66);
  backdrop-filter: blur(3px);
  animation: fade .25s var(--ease);
}
@keyframes fade { from { opacity: 0; } }

.cart {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(410px, 100vw);
  background: #080a0e;
  border-left: 1px solid var(--line-dark);
  display: flex; flex-direction: column;
  transform: translateX(101%);
  transition: transform .34s var(--ease);
}
.cart.is-open { transform: none; }

.cart__hd {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 22px;
  border-bottom: 1px solid var(--line-dark);
}
.cart__hd h2 {
  margin: 0;
  font-size: 13px; font-weight: 400;
  letter-spacing: .24em; text-transform: uppercase;
}
.cart__x { display: flex; padding: 4px; color: var(--on-dark-mut); transition: color .2s var(--ease); }
.cart__x:hover { color: #fff; }

.cart__body { flex: 1; overflow-y: auto; padding: 8px 22px; }

.cart__void { padding: 48px 0; text-align: center; color: var(--on-dark-mut); }
.cart__void p { margin: 0 0 20px; font-size: 14px; }

.ci { display: flex; gap: 14px; padding: 18px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
.ci__pic {
  width: 52px; height: 62px; flex: none;
  background: #12161c; padding: 5px;
}
.ci__pic img { width: 100%; height: 100%; object-fit: contain; }
.ci__main { flex: 1; min-width: 0; }
.ci__name {
  margin: 0;
  font-size: 12px; font-weight: 500;
  letter-spacing: .1em; text-transform: uppercase;
}
.ci__meta { margin: 4px 0 10px; font-size: 11px; color: var(--on-dark-dim); letter-spacing: .06em; }
.ci__row { display: flex; align-items: center; gap: 12px; }

.qty { display: flex; align-items: center; border: 1px solid var(--line-dark); }
.qty button {
  width: 27px; height: 27px;
  display: grid; place-items: center;
  font-size: 15px; line-height: 1;
  color: var(--on-dark-mut);
  transition: color .2s var(--ease), background .2s var(--ease);
}
.qty button:hover { color: #fff; background: rgba(255,255,255,.07); }
.qty span { min-width: 28px; text-align: center; font-size: 12px; }

.ci__price { margin-left: auto; font-size: 13px; }
.ci__x {
  font-size: 10px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--on-dark-dim);
  transition: color .2s var(--ease);
}
.ci__x:hover { color: #ff6b6b; }

.cart__ft { padding: 18px 22px 22px; border-top: 1px solid var(--line-dark); }
.cart__sum {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  color: var(--on-dark-mut);
}
.cart__sum strong { font-size: 21px; font-weight: 400; letter-spacing: .04em; color: #fff; }
.cart__note { margin: 6px 0 16px; font-size: 11px; color: var(--on-dark-dim); }

.cart__acts { display: grid; gap: 9px; }
.cart__go {
  display: flex; align-items: center; justify-content: center; gap: 11px;
  width: 100%; padding: 14px;
  font-size: 11px; letter-spacing: .2em; text-transform: uppercase;
  transition: filter .22s var(--ease), background .22s var(--ease);
}
.cart__go--wa { background: var(--wa); color: #05240f; font-weight: 500; }
.cart__go--wa:hover { filter: brightness(1.1); }
.cart__go--em { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.cart__go--em:hover { background: #fff; color: #000; }

.cart__ruo { margin: 14px 0 0; font-size: 10px; line-height: 1.5; color: var(--on-dark-dim); text-align: center; }

/* ---- Aviso rápido -------------------------------------------------------- */

.toast {
  position: fixed; left: 50%; bottom: 28px; z-index: 120;
  transform: translate(-50%, 18px);
  padding: 12px 22px;
  background: #fff; color: #000;
  font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  opacity: 0; pointer-events: none;
  transition: opacity .25s var(--ease), transform .25s var(--ease);
}
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }


/* ==========================================================================
   ECRÃS MÉDIOS
   ========================================================================== */

@media (max-width: 1100px) {

  .nav { display: none; }
  .burger { display: flex; }
  .flags { display: none; }

  .nav.is-open {
    display: flex; flex-direction: column; align-items: stretch;
    position: absolute; top: 100%; left: 0; right: 0;
    background: #06080b;
    border-bottom: 1px solid var(--line-dark);
    padding: 10px var(--gutter) 20px;
    gap: 0;
  }
  .nav.is-open a { padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,.07); }
  .nav.is-open a.is-on::after { display: none; }

  .hero__in { grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); }
  .hero__badges {
    grid-column: 1 / -1;
    flex-direction: row; flex-wrap: wrap; gap: 14px 30px;
    padding-top: 14px; border-top: 1px solid var(--line-dark);
  }

  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }

  .bl__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .bl__shot { grid-column: 1 / -1; }

  .sci__in { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); padding-left: 0; }
  .pillars { grid-column: 1 / -1; padding-top: 0; }

  .ft__in { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ft__nav { justify-content: center; }
  .ft__right { justify-content: center; }
}


/* ==========================================================================
   TELEMÓVEL
   ========================================================================== */

@media (max-width: 720px) {

  .hdr__in { height: 60px; gap: 12px; }
  .logo__mark { width: 28px; }
  .logo__name { font-size: 13px; }
  .logo__sub { font-size: 7px; }

  .hero__in {
    grid-template-columns: 1fr;
    text-align: center;
    min-height: 0;
  }
  .hero__copy { order: 1; }
  .hero__shot { order: 2; max-width: 300px; margin: 0 auto; }
  .hero__badges { order: 3; justify-content: center; }
  .hero__body { margin-left: auto; margin-right: auto; }
  .lede { margin-left: auto; margin-right: auto; }

  /* No telemóvel o nome pode partir em duas linhas — não cabe numa só */
  .hero__h1 { white-space: normal; font-size: clamp(1.7rem, 9vw, 2.6rem); }

  .top__in, .cat__in { grid-template-columns: 1fr; }
  .cat__table { grid-template-columns: 1fr; }
  .cat__side .h2 { white-space: normal; }
  .cat__table .tbl + .tbl thead { display: none; }   /* o cabeçalho só na 1ª metade */
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card__pic img { height: 92px; }

  .cats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 14px; }
  .cats li + li { border-top: 0; }
  .cats li { border-bottom: 1px solid var(--line-dark); }

  .tbl { font-size: 12px; }
  .tbl th:nth-child(2), .tbl td:nth-child(2) { display: none; }   /* esconde CODE */
  .tbl th:nth-child(1), .tbl td:nth-child(1) { width: 50%; }
  .tbl th:nth-child(3), .tbl td:nth-child(3) { width: 21%; }
  .tbl th:nth-child(4), .tbl td:nth-child(4) { width: 21%; }
  .tbl th:nth-child(5), .tbl td:nth-child(5) { width: 8%; }
  .tbl td { padding: 10px 6px; }

  .bl__in, .sci__in, .shp__in, .ruo__in { grid-template-columns: 1fr; }
  .pill { font-size: 8px; padding: 1px 6px; margin-left: 6px; }
  .bl__shot { margin: 0 calc(var(--gutter) * -1); }
  .sci__shot { margin: 0 calc(var(--gutter) * -1); }
  .sci__in { padding: 0 var(--gutter); }
  .sci__shot img { height: 200px; }

  .pillars { grid-template-columns: repeat(2, 1fr); gap: 26px 0; text-align: center; }
  .pillars li:nth-child(odd) { border-left: 0; }
  .pillars li:nth-child(even) { border-left: 1px solid var(--line-light); }

  .shp__left::before, .shp__left::after { right: calc(var(--gutter) * -1); }
  .shp__copy { margin: 0; max-width: none; }
  .shp__right {
    border-left: 0; border-top: 1px solid var(--line-dark);
    padding-left: 0; flex-direction: column; text-align: center; gap: 16px;
  }

  .ab::after { background: linear-gradient(180deg, rgba(0,0,0,.9), rgba(0,0,0,.78)); }
  .ab__copy { max-width: none; }

  .ft__bar { justify-content: center; text-align: center; }

  .cart { width: 100vw; }
}


/* ==========================================================================
   ACESSIBILIDADE
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    transition-duration: .01ms !important;
  }
}

:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.top :focus-visible, .sci :focus-visible { outline-color: #000; }
