/* ===== Central Stocks — estilos base ===== */
:root {
  --black: #000000;
  --graphite: #1E2024;
  --steel: #3A3D43;
  --grey: #70757D;
  --grey-light: #D5D8DC;
  --paper: #F2F3F4;
  --white: #FFFFFF;
  --red: #CE1F2A;
  --red-dark: #A3161F;
  --red-drawer: #B81B25;
  --alu: linear-gradient(180deg, #F1F3F5 0%, #B9BEC4 55%, #8E949B 100%);

  --font-display: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
  --font-body: "Barlow", "Segoe UI", Arial, sans-serif;

  --wrap: 1160px;
  --radius: 4px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--graphite);
  background: var(--paper);
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 {
  font-family: var(--font-display);
  line-height: 1.05;
  margin: 0;
  color: var(--black);
}
p { margin: 0; }
/* Palavras longas (ou texto aumentado no Android) nunca empurram a página para o lado */
h1, h2, h3 { overflow-wrap: break-word; hyphens: auto; }
.site-footer, .legal-data dd, .form-note, .cookie-note { overflow-wrap: anywhere; }

:focus-visible {
  outline: 3px solid var(--red);
  outline-offset: 3px;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== Botões ===== */
.btn {
  display: inline-block;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  text-decoration: none;
  padding: 14px 26px;
  border-radius: var(--radius);
  border: 2px solid transparent;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn-red { background: var(--red); color: var(--white); }
.btn-red:hover { background: var(--red-dark); }
.btn-ghost { border-color: var(--grey); color: var(--white); }
.btn-ghost:hover { border-color: var(--white); }

/* ===== Barra de promoções (texto contínuo) ===== */
.promo-bar {
  background: var(--red);
  color: var(--white);
  overflow: hidden;
  white-space: nowrap;
  user-select: none;
}
.promo-track {
  display: flex;
  width: max-content;
  animation: promo-scroll 40s linear infinite;
}
/* Dois grupos iguais: quando o primeiro sai, o segundo está exatamente no lugar dele */
.promo-group { display: flex; flex: none; }
.promo-group span {
  display: inline-flex;
  align-items: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  line-height: 1;
  padding: 10px 0;
}
.promo-group span::after {
  content: "";
  width: 6px;
  height: 6px;
  margin: 0 22px;
  border-radius: 50%;
  background: var(--white);
  opacity: .8;
}
.promo-bar:hover .promo-track { animation-play-state: paused; }
@keyframes promo-scroll {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ===== Header ===== */
.site-header {
  background: var(--black);
  color: var(--white);
  position: sticky;
  top: 0;
  z-index: 50;
  border-bottom: 3px solid var(--red);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 80px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--white);
}
.logo-img { display: block; width: 64px; height: 64px; }
.logo-img-footer { display: block; width: 120px; height: 120px; }
.logo-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  background: var(--red);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  border-radius: 3px;
}
.logo-text {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: 0.01em;
}
.main-nav { display: flex; gap: 28px; }
.main-nav a {
  text-decoration: none;
  font-weight: 500;
  color: var(--grey-light);
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] {
  color: var(--white);
  border-bottom-color: var(--red);
}

.menu-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--white);
  margin: 5px 0;
  transition: transform .2s, opacity .2s;
}
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ===== Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--black);
  color: var(--grey-light);
  padding: 128px 0 136px;
}
/* Foto da loja como fundo, com sombra escura do lado do texto */
.hero-bg, .hero-bg img, .hero-shade { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-bg img { object-fit: cover; object-position: 65% 60%; }
.hero-shade {
  background: linear-gradient(90deg,
    rgba(8, 8, 10, .94) 0%,
    rgba(8, 8, 10, .82) 38%,
    rgba(8, 8, 10, .35) 70%,
    rgba(8, 8, 10, .12) 100%);
}
.hero-inner { position: relative; z-index: 1; }
.hero h1, .hero-sub { text-shadow: 0 2px 16px rgba(0, 0, 0, .45); }
.hero h1 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(2rem, 10vw, 6.25rem);
  letter-spacing: -0.015em;
  max-width: 11ch;
}
.hero-sub {
  margin-top: 24px;
  max-width: 52ch;
  font-size: 1.2rem;
}
.hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

/* ===== Vantagens (logo a seguir ao hero) ===== */
.perks { background: var(--black); border-top: 1px solid var(--steel); }
.perks-inner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
}
.perk { display: flex; align-items: center; gap: 14px; color: var(--grey-light); }
.perk svg {
  flex: none;
  width: 34px;
  height: 34px;
  fill: none;
  stroke: var(--red);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.perk strong { display: block; color: var(--white); font-family: var(--font-display); font-size: 1.25rem; font-weight: 700; line-height: 1.2; }
.perk span { font-size: .95rem; }

/* ===== Categorias: carrinho de ferramentas ===== */
.categories { padding: 96px 0; }
.categories-inner {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 64px;
  align-items: center;
}
.categories-intro h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}
.categories-intro p {
  margin-top: 16px;
  max-width: 40ch;
  color: var(--steel);
}

.chest {
  position: relative;
  background: var(--red-dark);
  padding: 14px 14px 18px;
  border-radius: 6px 6px 2px 2px;
  border-top: 10px solid var(--black);
  display: grid;
  gap: 8px;
  margin-bottom: 34px;
}
.drawer {
  position: relative;
  display: block;
  background: var(--red);
  color: var(--white);
  text-decoration: none;
  padding: 30px 24px 22px;
  border-radius: 2px;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22);
  transition: transform .18s ease-out, box-shadow .18s ease-out, background-color .18s;
}
.drawer-handle {
  position: absolute;
  top: 12px;
  left: 24px;
  right: 24px;
  height: 7px;
  border-radius: 4px;
  background: var(--alu);
  box-shadow: 0 2px 2px rgba(0, 0, 0, .3);
}
.drawer-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
}
.drawer:hover,
.drawer:focus-visible {
  background: #D9232F;
  transform: translateY(5px) scale(1.012);
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .22), 0 10px 18px rgba(0, 0, 0, .35);
  z-index: 1;
}
.drawer:focus-visible { outline-color: var(--black); }
.drawer-all { background: var(--steel); }
.drawer-all:hover,
.drawer-all:focus-visible { background: var(--graphite); }

.chest-wheels {
  position: absolute;
  bottom: -30px;
  left: 24px;
  right: 24px;
  display: flex;
  justify-content: space-between;
}
.chest-wheels i {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--black);
  border: 7px solid var(--steel);
}

/* ===== Como funciona ===== */
.how {
  background: var(--white);
  padding: 88px 0;
  border-top: 1px solid var(--grey-light);
}
.how h2 {
  font-size: clamp(2.25rem, 4.5vw, 3.25rem);
  font-weight: 800;
}
.steps {
  list-style: none;
  counter-reset: step;
  margin: 44px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}
.steps li {
  counter-increment: step;
  border-top: 4px solid var(--black);
  padding-top: 18px;
}
.steps li::before {
  content: counter(step);
  display: block;
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 2.75rem;
  line-height: 1;
  color: var(--red);
  margin-bottom: 10px;
}
.steps h3 {
  font-size: 1.6rem;
  font-weight: 700;
}
.steps p {
  margin-top: 8px;
  color: var(--steel);
  max-width: 34ch;
}

/* ===== Footer ===== */
.site-footer {
  background: var(--black);
  color: var(--grey-light);
  padding-top: 64px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-note { margin-top: 14px; color: var(--grey); }
.social { margin-top: 22px; }
.social-title {
  display: block;
  margin-bottom: 10px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--white);
}
.social-links { display: flex; flex-wrap: wrap; gap: 10px; }
.site-footer .social-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 8px 16px 8px 10px;
  border: 1px solid var(--steel);
  border-radius: 999px;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  transition: background-color .15s, border-color .15s;
}
.social-link svg {
  width: 26px;
  height: 26px;
  padding: 3px;
  border-radius: 50%;
  background: var(--red);
  fill: none;
  stroke: var(--white);
  stroke-width: 1.8;
}
.social-link svg .fill { fill: var(--white); stroke: none; }
.site-footer .social-link:hover { background: var(--red); border-color: var(--red); text-decoration: none; }
.social-link:hover svg { background: var(--red-dark); }
.footer-title {
  color: var(--white);
  font-size: 1.35rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.site-footer p + p { margin-top: 6px; }
.footer-bottom p + p { margin-top: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-footer a { color: var(--grey-light); text-decoration: none; display: inline-block; padding: 6px 0; }
.site-footer a:hover { color: var(--white); text-decoration: underline; }
.legal { font-size: .95rem; line-height: 1.6; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 4px 24px;
  border-top: 1px solid var(--steel);
  padding-top: 20px;
  padding-bottom: 24px;
  font-size: .9rem;
  color: var(--grey);
}

/* ===== Mensagens e utilitários ===== */
.status-msg { padding: 48px 0; color: var(--steel); }
.status-msg a { color: var(--red); font-weight: 600; }
.muted { color: var(--grey); }
.btn-block { display: block; width: 100%; text-align: center; cursor: pointer; }
.btn[disabled] { opacity: .6; cursor: wait; }

.price {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--red);
}
.price-old {
  margin-left: 10px;
  color: var(--grey);
  text-decoration: line-through;
}

.badge {
  display: inline-block;
  font-size: .85rem;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
}
.badge-in  { background: #E4F2E7; color: #1D6B34; }
.badge-low { background: #FFF1D6; color: #8A5300; }
.badge-out { background: var(--grey-light); color: var(--steel); }

.no-photo {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: var(--grey);
  font-size: .95rem;
  background: repeating-linear-gradient(45deg, #E6E8EA 0 12px, #EEF0F1 12px 24px);
}

/* ===== Catálogo ===== */
.page-head {
  background: var(--graphite);
  padding: 56px 0 28px;
}
.page-head h1 {
  color: var(--white);
  font-weight: 800;
  font-size: clamp(2.5rem, 6vw, 4rem);
}
.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  gap: 16px;
  align-items: end;
  margin-top: 28px;
}
.filter { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.filter label { color: var(--grey-light); font-weight: 500; font-size: .92rem; }
.filter output { color: var(--white); font-weight: 600; }
.filter select {
  font: inherit;
  color: var(--white);
  background: var(--steel);
  border: 1px solid #50545B;
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
}
.filter select:focus { outline: 2px solid var(--red); outline-offset: 1px; }
.filter-range input {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 42px;
  margin: 0;
  background: transparent;
  cursor: pointer;
  --fill: 100%;
}
.filter-range input:focus { outline: none; }
.filter-range input::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(to right, var(--red) 0 var(--fill), #50545B var(--fill) 100%);
}
.filter-range input::-moz-range-track { height: 6px; border-radius: 3px; background: #50545B; }
.filter-range input::-moz-range-progress { height: 6px; border-radius: 3px; background: var(--red); }
.filter-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 22px;
  height: 22px;
  margin-top: -8px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.filter-range input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--white);
  border: 3px solid var(--red);
  box-shadow: 0 1px 4px rgba(0, 0, 0, .4);
}
.filter-range input:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--white); outline-offset: 2px; }
.filter-range input:focus-visible::-moz-range-thumb { outline: 3px solid var(--white); outline-offset: 2px; }
.filter-reset {
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: none;
  border: 0;
  padding: 10px 0;
  text-decoration: underline;
  cursor: pointer;
  white-space: nowrap;
}

.catalog { padding: 32px 0 96px; }
.catalog .status-msg { padding-top: 0; }
.result-count { color: var(--grey); margin-bottom: 20px; }
.result-count:empty { display: none; }
.collection-group + .collection-group { margin-top: 56px; }
.collection-group h2 {
  font-size: clamp(1.9rem, 3.5vw, 2.5rem);
  font-weight: 800;
  padding-bottom: 10px;
  margin-bottom: 22px;
  border-bottom: 3px solid var(--black);
}

/* ===== Homepage: mais vendidos ===== */
.featured { padding: 0 0 96px; }
.weekly {
  padding: 72px 0 80px;
  background: var(--white);
  border-bottom: 1px solid var(--grey-light);
}
.weekly h2 { display: flex; align-items: center; gap: 14px; min-width: 0; }
.weekly .section-head > h2 { flex: 1 1 auto; }
.weekly-tag {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 1.7rem;
  transform: rotate(-12deg);
}
.weekly .product-card { border-color: #E3B3B6; }
.weekly .product-card:hover { border-color: var(--red); }
.bestsellers { padding: 88px 0 96px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 12px 24px;
  margin-bottom: 32px;
}
.section-head h2 { font-size: clamp(1.9rem, 4.5vw, 3.25rem); font-weight: 800; min-width: 0; }
.section-link { color: var(--red-dark); font-weight: 600; display: inline-block; padding: 10px 0; }
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
}
/* Variantes depois da regra base, para a sobreporem */
.product-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.product-card {
  display: flex;
  flex-direction: column;
  background: var(--white);
  text-decoration: none;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
  transition: border-color .15s;
}
.product-card { transition: border-color .15s, transform .2s ease-out, box-shadow .2s ease-out; }
.product-card:hover {
  border-color: var(--black);
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .10);
}
.product-card-img .img-alt { opacity: 0; transition: opacity .25s ease-out; background: var(--white); }
@media (hover: hover) {
  .product-card:hover .img-alt { opacity: 1; }
}
.product-card-cta {
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  font-size: .95rem;
  color: var(--red-dark);
}
.product-card-cta::after { content: " →"; }
.product-card:hover .product-card-cta { text-decoration: underline; }

/* Esqueletos de carregamento */
.skeleton { pointer-events: none; }
.skeleton .product-card-img,
.sk-line {
  background: linear-gradient(90deg, #ECEEF0 0%, #F7F8F9 50%, #ECEEF0 100%);
  background-size: 200% 100%;
  animation: sk 1.2s linear infinite;
}
.sk-line { display: block; height: 18px; width: 85%; border-radius: 3px; }
.sk-short { width: 40%; height: 22px; }
@keyframes sk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.product-card-img {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--white);
  /* Sem isto, uma foto mais alta do que larga esticava a caixa e desalinhava o cartão */
  overflow: hidden;
}
.sale-tag {
  position: absolute;
  z-index: 1;
  top: 12px;
  left: 12px;
  background: var(--red);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.05rem;
  padding: 3px 10px;
  border-radius: 3px;
}
.sale-tag-inline {
  position: static;
  display: inline-block;
  margin-left: 12px;
  vertical-align: 6px;
}
.product-card-img img,
.product-card-img .no-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
/* Mostra o produto inteiro, seja a foto quadrada, alta ou larga */
.product-card-img img { object-fit: contain; padding: 14px; }
.product-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 16px 18px 20px;
  border-top: 3px solid var(--black);
}
.product-card-name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.15;
  color: var(--black);
}
.product-card-price .price { font-size: 1.5rem; }
.vat { margin-left: 6px; font-size: .85rem; font-weight: 600; color: var(--grey); white-space: nowrap; }
.product-card-price .price-old { margin-left: 10px; }

/* ===== Página de produto ===== */
.product-page { padding: 32px 0 96px; }
.breadcrumb { font-size: .95rem; color: var(--grey); margin-bottom: 24px; }
.breadcrumb a { color: var(--steel); display: inline-block; padding: 8px 0; }

.product-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas:
    "gallery buy"
    "desc    buy";
  gap: 40px 56px;
  align-items: start;
}
.gallery { grid-area: gallery; }
.buy-box { grid-area: buy; }
.product-desc { grid-area: desc; }

.gallery-main {
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  overflow: hidden;
}
.gallery-main > .no-photo { position: absolute; inset: 0; }
.gallery-track {
  display: flex;
  height: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  overscroll-behavior-x: contain;
  scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:focus-visible { outline: 3px solid var(--red); outline-offset: -3px; }
.gallery-slide { flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.gallery-slide img { width: 100%; height: 100%; object-fit: contain; padding: 16px; }

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border: 1px solid var(--grey-light);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: var(--black);
  font-size: 1.8rem;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .12);
  transition: opacity .15s, border-color .15s;
}
.gallery-prev { left: 12px; }
.gallery-next { right: 12px; }
.gallery-nav:hover:not(:disabled) { border-color: var(--black); }
.gallery-nav:disabled { opacity: 0; pointer-events: none; }
/* Em ecrãs táteis desliza-se com o dedo: as setas ficam escondidas */
@media (hover: none) { .gallery-nav { display: none; } }

.gallery-dots {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  margin-top: 10px;
}
.gallery-dot {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}
.gallery-dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #C3C7CC;
  transform: translate(-50%, -50%);
  transition: background-color .2s, width .2s;
}
.gallery-dot[aria-current]::before { background: var(--red); width: 22px; border-radius: 5px; }
.gallery-dot:focus-visible { outline: 2px solid var(--red); border-radius: 50%; }

.buy-box {
  position: sticky;
  top: 104px;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-top: 6px solid var(--red);
  border-radius: var(--radius);
  padding: 28px;
}
.buy-category { color: var(--grey); font-size: .95rem; }
.buy-box h1 {
  font-weight: 800;
  font-size: clamp(2rem, 3.5vw, 2.6rem);
  margin-top: 4px;
}
.price-row {
  margin-top: 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 12px;
}
.price-row .price-old { margin-left: 0; }
.price-row .vat { margin-left: -6px; font-size: .95rem; }
.price-row .sale-tag-inline { margin-left: 0; vertical-align: baseline; }
.price-row .price { font-size: 2.4rem; }
.availability { margin-top: 10px; }

#reserve-form { margin-top: 24px; border-top: 1px solid var(--grey-light); padding-top: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; min-width: 0; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field label { font-weight: 600; font-size: .95rem; color: var(--black); }
.field input,
.field select {
  font: inherit;
  padding: 11px 12px;
  border: 1px solid #BFC3C8;
  border-radius: var(--radius);
  background: var(--white);
  color: var(--black);
  width: 100%;
}
.field input:focus,
.field select:focus { border-color: var(--black); outline: 2px solid var(--black); outline-offset: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { color: var(--red-dark); font-weight: 600; min-height: 1.2em; margin-bottom: 10px; }
.form-error:empty { margin: 0; min-height: 0; }
.form-note { margin-top: 12px; font-size: .92rem; color: var(--steel); }

.reserve-done {
  margin-top: 24px;
  padding: 20px;
  background: #E4F2E7;
  border-radius: var(--radius);
  color: #1D4D2A;
}
.reserve-done h2 { font-size: 1.7rem; color: #1D4D2A; margin-bottom: 6px; }

.product-desc h2 {
  font-size: 1.9rem;
  font-weight: 800;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--black);
  margin-bottom: 16px;
}
#desc-text { max-width: 68ch; color: var(--graphite); }

/* ===== Barra fixa de reserva (telemóvel) ===== */
.mobile-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: var(--white);
  border-top: 3px solid var(--red);
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .12);
}
.mobile-buy-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.mobile-buy-name { font-size: .85rem; color: var(--steel); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mobile-buy .price { font-size: 1.35rem; line-height: 1.1; white-space: normal; }
.mobile-buy .btn { flex: none; padding: 12px 22px; }
body.has-mobile-buy { padding-bottom: 76px; }

/* ===== Ficha técnica ===== */
.specs { margin-top: 36px; }
.specs h3 { font-size: 1.5rem; font-weight: 700; margin-bottom: 14px; }
.spec-highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 18px;
}
.spec-item {
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 12px 16px;
}
.spec-item dt { font-size: .88rem; color: var(--grey); }
.spec-item dd {
  margin: 2px 0 0;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--black);
}
.btn-outline {
  background: transparent;
  color: var(--black);
  border-color: var(--black);
  cursor: pointer;
}
.btn-outline:hover { background: var(--black); color: var(--white); }

.spec-dialog {
  width: min(560px, calc(100vw - 24px));
  max-height: calc(100vh - 48px);
  padding: 0;
  border: 0;
  border-top: 6px solid var(--red);
  border-radius: var(--radius);
  color: var(--graphite);
}
.spec-dialog::backdrop { background: rgba(0, 0, 0, .6); }
.spec-dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 24px 14px;
  border-bottom: 1px solid var(--grey-light);
  position: sticky;
  top: 0;
  background: var(--white);
}
.spec-dialog-head h2 { font-size: 1.9rem; font-weight: 800; }
.spec-dialog-product { color: var(--grey); margin-top: 2px; }
.spec-close {
  flex: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--grey-light);
  border-radius: var(--radius);
  background: var(--white);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.spec-close:hover { border-color: var(--black); }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table th,
.spec-table td { text-align: left; padding: 12px 24px; border-bottom: 1px solid var(--grey-light); vertical-align: top; }
.spec-table tr:last-child th,
.spec-table tr:last-child td { border-bottom: 0; }
.spec-table th { width: 42%; font-weight: 500; color: var(--grey); }
.spec-table td { font-weight: 600; color: var(--black); }

@media (max-width: 900px) {
  .product-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "gallery" "buy" "desc";
    gap: 28px;
  }
  .buy-box { position: static; }
}
@media (max-width: 480px) {
  .field-row { grid-template-columns: 1fr; gap: 0; }
  .buy-box { padding: 22px 18px; }
}

/* ===== Termos e condições ===== */
.legal-page { padding: 56px 0 96px; }
.legal-wrap { max-width: 820px; }
.legal-page h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); font-weight: 800; }
.legal-updated { color: var(--grey); margin-top: 6px; }
.legal-index {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 28px 0 8px;
}
.legal-index a {
  padding: 8px 14px;
  border: 1px solid var(--grey-light);
  border-radius: 999px;
  background: var(--white);
  text-decoration: none;
  font-weight: 500;
  font-size: .95rem;
}
.legal-index a:hover { border-color: var(--black); }
.legal-page section { margin-top: 40px; scroll-margin-top: 100px; }
.legal-page h2 {
  font-size: 1.9rem;
  font-weight: 800;
  padding-bottom: 8px;
  border-bottom: 3px solid var(--black);
  margin-bottom: 14px;
}
.legal-page p, .legal-page li { color: var(--graphite); max-width: 70ch; }
.legal-page p + p { margin-top: 12px; }
.legal-page ul { margin: 10px 0 12px; padding-left: 22px; }
.legal-page a { color: var(--red-dark); }
.legal-data {
  display: grid;
  grid-template-columns: minmax(0, max-content) minmax(0, 1fr);
  gap: 8px 20px;
  margin: 0;
  background: var(--white);
  border: 1px solid var(--grey-light);
  border-left: 4px solid var(--red);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.legal-data dt { color: var(--grey); }
.legal-data dd { margin: 0; font-weight: 600; color: var(--black); }

/* ===== Aviso de cookies ===== */
.cookie-note {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 45;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: min(440px, calc(100vw - 32px));
  padding: 12px 14px 12px 18px;
  background: var(--graphite);
  color: var(--grey-light);
  border-radius: var(--radius);
  border-left: 4px solid var(--red);
  box-shadow: 0 8px 24px rgba(0, 0, 0, .25);
  font-size: .92rem;
  line-height: 1.45;
}
.cookie-note a { color: var(--white); }
.cookie-ok {
  flex: none;
  min-width: 56px;
  min-height: 40px;
  font: inherit;
  font-weight: 600;
  color: var(--white);
  background: var(--red);
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
}
.cookie-ok:hover { background: var(--red-dark); }
body.has-mobile-buy .cookie-note { bottom: 92px; }

/* Consentimento no formulário */
.opt { font-weight: 400; color: var(--grey); font-size: .85rem; }
.form-note a { color: var(--red-dark); }
.consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 4px 0 14px;
  font-size: .92rem;
  color: var(--steel);
  cursor: pointer;
}
.consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--red); }
.consent a { color: var(--red-dark); }

/* ===== Responsivo ===== */
@media (max-width: 900px) {
  .product-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .perks-inner { grid-template-columns: 1fr; gap: 14px; }
  .hero { padding: 96px 0 104px; }
  .hero-shade { background: linear-gradient(180deg, rgba(8, 8, 10, .60) 0%, rgba(8, 8, 10, .82) 55%, rgba(8, 8, 10, .92) 100%); }
  .product-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filters { grid-template-columns: 1fr 1fr; }
  .filter-reset { justify-self: start; }
  .categories-inner { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: 1fr; gap: 32px; }
  .footer-inner { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-inner > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 720px) {
  .weekly { padding: 56px 0 64px; }
  .weekly-tag { width: 42px; height: 42px; font-size: 1.35rem; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 83px;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 0;
    background: var(--black);
    border-bottom: 3px solid var(--red);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 0; border-bottom: 1px solid var(--steel); }
  .main-nav a[aria-current="page"] { border-bottom-color: var(--red); }
  .hero { padding: 64px 0 72px; }
  .categories, .how { padding: 64px 0; }
  .drawer-name { font-size: 1.35rem; }
  .footer-inner { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 560px) {
  .product-grid-3 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .spec-item { padding: 10px 12px; }
  .spec-item dd { font-size: 1.15rem; }
  .spec-table th, .spec-table td { padding: 10px 16px; }
  .filters { grid-template-columns: 1fr; }
  .product-grid-4 { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .legal-data { grid-template-columns: 1fr; gap: 2px; }
  .legal-data dd { margin-bottom: 8px; }
}

@media (max-width: 340px) {
  .spec-highlights { grid-template-columns: 1fr; }
  .mobile-buy { gap: 8px; padding-left: 12px; padding-right: 12px; }
  .mobile-buy .btn { padding: 10px 14px; }
  .mobile-buy .price { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .skeleton .product-card-img, .sk-line { animation: none; }
  .gallery-track { scroll-behavior: auto; }
  .promo-track { animation: none; }
  .product-card:hover { transform: none; }
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
  .drawer:hover, .drawer:focus-visible { transform: none; }
}
