/* =====================================================
   ELEVA FROTA — Stylesheet
   Plugin v1.0.0
===================================================== */

@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700;800&family=Rubik:wght@400;500;700&display=swap');

/* ── VARIÁVEIS ─────────────────────────────────── */
.ef-wrap {
  --ef-yellow:  #FFD200;
  --ef-orange:  #D35A14;
  --ef-black:   #0F0F0F;
  --ef-gray:    #6B6B6B;
  --ef-border:  #E5E5E5;
  --ef-bg:      #FFFFFF;
  --ef-bg-card: #FFFFFF;
  --ef-radius:  4px;
  font-family: 'Manrope', sans-serif;
  background: #F5F5F5;
  width: 100%;
  box-sizing: border-box;
}
.ef-wrap *, .ef-wrap *::before, .ef-wrap *::after {
  box-sizing: border-box;
}

/* ── CABEÇALHO ──────────────────────────────────── */
.ef-header {
  padding: 64px 48px 32px;
  background: #fff;
  border-bottom: 1px solid var(--ef-border);
}
.ef-header__label {
  display: block;
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  color: var(--ef-yellow);
  margin-bottom: 10px;
}
.ef-header__title {
  font-size: 38px;
  font-weight: 800;
  color: var(--ef-black);
  line-height: 1.1;
  margin: 0 0 12px;
}
.ef-header__hr {
  border: none;
  border-top: 3px solid var(--ef-yellow);
  width: 48px;
  margin: 0 0 18px;
}
.ef-header__desc {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  color: var(--ef-gray);
  max-width: 680px;
  line-height: 1.65;
  margin: 0;
}
.ef-header__desc strong {
  color: var(--ef-black);
  font-weight: 700;
}

/* ── LABEL DE CATEGORIA ─────────────────────────── */
.ef-cat-label {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 36px 48px 16px;
  margin: 0;
  background: #F5F5F5;
}
.ef-cat-label::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--ef-border);
}
.ef-cat-label > span {
  font-family: 'Rubik', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: #fff;
  background: var(--ef-black);
  padding: 4px 14px;
  border-radius: 500px;
  white-space: nowrap;
}

/* ── GRID ───────────────────────────────────────── */
.ef-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--ef-border);
  margin: 0 0 0;
  padding: 0 0 2px;
}
.ef-grid--3 {
  grid-template-columns: repeat(3, 1fr);
}

/* ── CARD ───────────────────────────────────────── */
.ef-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px 22px;
  background: var(--ef-bg-card);
  border: none;
  cursor: pointer;
  text-align: center;
  transition: background 0.18s ease, box-shadow 0.18s ease;
  position: relative;
  width: 100%;
}
.ef-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--ef-yellow);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.2s ease;
}
.ef-card:hover {
  background: #FAFAFA;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  z-index: 1;
}
.ef-card:hover::after {
  transform: scaleX(1);
}
.ef-card:focus-visible {
  outline: 2px solid var(--ef-yellow);
  outline-offset: -2px;
}

/* imagem */
.ef-card__img-wrap {
  width: 100%;
  height: 130px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.ef-card__img-wrap img {
  max-width: 100%;
  max-height: 130px;
  object-fit: contain;
  display: block;
  transition: transform 0.25s ease;
}
.ef-card:hover .ef-card__img-wrap img {
  transform: scale(1.04);
}

/* placeholder */
.ef-card__placeholder {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CCCCCC;
}
.ef-card__placeholder svg {
  width: 100%;
  height: 100%;
}

/* tonelagem badge */
.ef-card__ton {
  font-family: 'Rubik', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--ef-black);
  background: var(--ef-yellow);
  padding: 3px 11px;
  border-radius: 500px;
  margin-bottom: 10px;
  display: inline-block;
}

/* nome */
.ef-card__nome {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  color: var(--ef-black);
  text-transform: uppercase;
  letter-spacing: 0.3px;
  line-height: 1.35;
}

/* ── MODAL ──────────────────────────────────────── */
.ef-modal {
  position: fixed;
  inset: 0;
  z-index: 99990;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.ef-modal.is-open {
  opacity: 1;
  pointer-events: all;
}
.ef-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.55);
  cursor: pointer;
}
.ef-modal__box {
  position: relative;
  background: #fff;
  width: 100%;
  max-width: 900px;
  max-height: 92vh;
  overflow-y: auto;
  border-radius: 6px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.25);
  transform: translateY(16px);
  transition: transform 0.25s ease;
}
.ef-modal.is-open .ef-modal__box {
  transform: translateY(0);
}
.ef-modal__close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #F0F0F0;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #555;
  z-index: 10;
  transition: background 0.15s;
}
.ef-modal__close:hover {
  background: var(--ef-yellow);
  color: #000;
}

/* interior do modal — 2 colunas como Mongel */
.ef-modal__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 380px;
}
.ef-modal__left {
  padding: 48px 40px 48px 48px;
  border-right: 1px solid #EBEBEB;
  display: flex;
  flex-direction: column;
}
.ef-modal__right {
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FAFAFA;
}

/* nome do equipamento */
.ef-modal__nome {
  font-family: 'Manrope', sans-serif;
  font-size: 32px;
  font-weight: 800;
  color: var(--ef-black);
  line-height: 1.1;
  margin: 0 0 14px;
  text-transform: uppercase;
}
.ef-modal__hr {
  border: none;
  border-top: 3px solid var(--ef-yellow);
  width: 40px;
  margin: 0 0 28px;
}

/* specs — igual Mongel */
.ef-modal__specs {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0 0 32px;
}
.ef-modal__specs dt {
  font-family: 'Rubik', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--ef-gray);
  margin-bottom: 1px;
}
.ef-modal__specs dd {
  font-family: 'Rubik', sans-serif;
  font-size: 16px;
  font-weight: 500;
  color: var(--ef-black);
  margin: 0 0 8px;
}

/* botões de ação */
.ef-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}
.ef-btn-tabela {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ef-black);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s;
  text-decoration: none;
}
.ef-btn-tabela:hover {
  color: var(--ef-orange);
}
.ef-btn-tabela::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--ef-yellow);
  flex-shrink: 0;
}
.ef-btn-orcamento {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--ef-black);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  text-decoration: none;
  transition: color 0.15s;
}
.ef-btn-orcamento:hover { color: var(--ef-orange); }
.ef-btn-orcamento::before {
  content: '';
  display: inline-block;
  width: 18px;
  height: 2px;
  background: #CCCCCC;
  flex-shrink: 0;
}

/* foto no modal */
.ef-modal__foto-wrap img {
  max-width: 100%;
  max-height: 340px;
  object-fit: contain;
  display: block;
}

/* ── LIGHTBOX TABELA ────────────────────────────── */
.ef-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}
.ef-lightbox.is-open {
  opacity: 1;
  pointer-events: all;
}
.ef-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.82);
  cursor: pointer;
}
.ef-lightbox__box {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  border-radius: 4px;
  overflow: hidden;
  transform: scale(0.95);
  transition: transform 0.2s ease;
}
.ef-lightbox.is-open .ef-lightbox__box {
  transform: scale(1);
}
.ef-lightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.6);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  z-index: 10;
  transition: background 0.15s;
}
.ef-lightbox__close:hover { background: rgba(0,0,0,0.9); }
.ef-lightbox__box img {
  display: block;
  max-width: 92vw;
  max-height: 88vh;
  object-fit: contain;
  background: #fff;
}

/* ── RESPONSIVO ─────────────────────────────────── */
@media (max-width: 1100px) {
  .ef-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 860px) {
  .ef-header { padding: 48px 28px 28px; }
  .ef-header__title { font-size: 28px; }
  .ef-cat-label { padding: 28px 28px 14px; }
  .ef-grid { grid-template-columns: repeat(3, 1fr); }
  .ef-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .ef-modal__inner { grid-template-columns: 1fr; }
  .ef-modal__left { padding: 36px 28px 28px; border-right: none; border-bottom: 1px solid #EBEBEB; }
  .ef-modal__right { padding: 24px 28px; }
  .ef-modal__nome { font-size: 26px; }
}
@media (max-width: 560px) {
  .ef-grid { grid-template-columns: repeat(2, 1fr); }
  .ef-grid--3 { grid-template-columns: 1fr; }
  .ef-header__title { font-size: 24px; }
}
