/* =================================================================
   BP EQUIPMENT — BigPires
   Componente visual de grelha de produtos de equipamento.
   ================================================================= */

/* ── 1. Variáveis ──────────────────────────────────────────────── */
:root {
  --bpe-bg:            #ffffff;
  --bpe-accent:        #7c6fcd;        /* roxo/lilás — cor dos links de acção */
  --bpe-text-title:    #1a1a1a;
  --bpe-text-name:     #1a1a1a;
  --bpe-img-height:    280px;
  --bpe-gap:           0px;
  --bpe-arrow-size:    44px;
}

/* ── 2. Wrapper de secção (full-bleed) ─────────────────────────── */
.bp-equipment {
  width: 100vw;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--bpe-bg);
  padding: 56px 0 64px;
  box-sizing: border-box;
  overflow: hidden;
}

/* ── 3. Container interno ──────────────────────────────────────── */
.bp-equipment__inner {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 48px;
}

/* ── 4. Cabeçalho da secção ────────────────────────────────────── */
.bp-equipment__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.bp-equipment__header-left {
  display: flex;
  align-items: baseline;
  gap: 16px;
}

.bp-equipment__title {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 700;
  color: var(--bpe-text-title);
  margin: 0;
  line-height: 1.2;
}

.bp-equipment__see-all {
  font-size: .875rem;
  font-weight: 400;
  color: var(--bpe-text-title);
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  opacity: .7;
  transition: opacity .2s;
}

.bp-equipment__see-all:hover {
  opacity: 1;
}

/* ── 5. Grupo de setas (no cabeçalho, lado direito) ────────────── */
.bp-equipment__arrows {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── 6. Setas de navegação ─────────────────────────────────────── */
.bp-equipment__arrow {
  width: var(--bpe-arrow-size);
  height: var(--bpe-arrow-size);
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid #d0d0d0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .875rem;
  color: var(--bpe-text-title);
  transition: background .2s, border-color .2s, color .2s;
  flex-shrink: 0;
}

.bp-equipment__arrow:hover {
  background: var(--bpe-text-title);
  border-color: var(--bpe-text-title);
  color: #fff;
}

.bp-equipment__arrow:disabled,
.bp-equipment__arrow.is-hidden {
  opacity: .35;
  pointer-events: none;
}

/* ── 7. Track (scroll horizontal) ─────────────────────────────── */
.bp-equipment__track {
  display: flex;
  gap: var(--bpe-gap);
  overflow-x: auto;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.bp-equipment__track::-webkit-scrollbar {
  display: none;
}

/* ── 8. Card de produto ────────────────────────────────────────── */
.bp-equipment__card {
  flex: 0 0 calc(100% / 3);   /* exactamente 3 colunas */
  min-width: 220px;
  background: #fff;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 16px 32px;
  box-sizing: border-box;
}

/* ── 9. Imagem do produto ──────────────────────────────────────── */
.bp-equipment__img-wrap {
  width: 100%;
  height: var(--bpe-img-height);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 32px;
  box-sizing: border-box;
}

.bp-equipment__img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
  display: block;
  transition: transform .35s ease;
}

.bp-equipment__card:hover .bp-equipment__img {
  transform: scale(1.04);
}

/* ── 10. Nome do produto ───────────────────────────────────────── */
.bp-equipment__product-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--bpe-text-name);
  margin: 0 0 12px;
  text-align: center;
  line-height: 1.4;
}

/* ── 11. Texto de acção ────────────────────────────────────────── */
.bp-equipment__action {
  font-size: .875rem;
  font-weight: 400;
  color: var(--bpe-accent);
  text-decoration: underline;
  text-underline-offset: 2px;
  text-align: center;
  transition: opacity .2s;
}

.bp-equipment__card:hover .bp-equipment__action {
  opacity: .75;
}

/* ── 12. Responsivo ────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .bp-equipment__card {
    flex: 0 0 50%;   /* 2 colunas */
  }
}

@media (max-width: 640px) {
  .bp-equipment__inner {
    padding: 0 20px;
  }

  .bp-equipment__card {
    flex: 0 0 80vw;
  }

  :root {
    --bpe-img-height: 200px;
  }
}
