/* ========================================================
   AlfaLux — SHARED DESIGN SYSTEM
   shared.css
   ======================================================== */

/* ── Reset & Base ── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Effra', -apple-system, BlinkMacSystemFont, sans-serif;
  background: #fff;
  color: #1A1A1A;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  background: none;
  border: none;
  cursor: pointer;
  color: inherit;
}

/* ── Slide-Up Entry Animation ── */
.page-wrapper {
  opacity: 0;
  transform: translateY(40px);
  animation: slideUpFadeIn 0.85s cubic-bezier(0.25, 1, 0.5, 1) forwards;
  animation-delay: 0.08s;
}

@keyframes slideUpFadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ── Header — Ultra Minimalist ── */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
  box-shadow: 0 1px 32px rgba(0, 0, 0, 0.08);
}

.header-inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
  padding: 0 40px;
}

/* Logo absolutamente centralizado */
.header-logo-center {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  z-index: 2;
}

.logo-img {
  height: 40px;
  width: auto;
  object-fit: contain;
  display: block;
}

.header-left {
  display: flex;
  align-items: center;
  z-index: 2;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

/* Hamburger button */
.hamburger-btn {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  flex-shrink: 0;
  transition: opacity 0.2s;
}

.hamburger-btn:hover {
  opacity: 0.55;
}

.hamburger-line {
  display: block;
  height: 1.5px;
  background: #1A1A1A;
  transition: width 0.3s ease;
  border-radius: 1px;
}

.hamburger-line:nth-child(1) {
  width: 26px;
}

.hamburger-line:nth-child(2) {
  width: 20px;
}

.hamburger-line:nth-child(3) {
  width: 14px;
}

.hamburger-btn:hover .hamburger-line {
  width: 26px;
}

/* Icon buttons */
.icon-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  color: #1A1A1A;
  background: none;
  border: none;
  cursor: pointer;
  transition: color 0.2s;
}

.icon-btn:hover {
  color: #0e0500;
}

/* ══════════════════════════════════════════
   MEGA MENU — Porsche Style
   Left: compact nav list | Middle: image cards | Right: dark backdrop
   ══════════════════════════════════════════ */

.mega-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2000;
  display: flex;
  pointer-events: none;
  transform: translateX(-100%);
  transition: transform 0.55s cubic-bezier(0.76, 0, 0.24, 1);
}

.mega-menu.open {
  transform: translateX(0);
  pointer-events: auto;
}

/* Close button — inside panel area top-right */
.mega-close-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  color: #1A1A1A;
  z-index: 10;
  transition: color 0.2s, transform 0.3s;
}

.mega-close-btn:hover {
  color: #0e0500;
  transform: rotate(90deg);
}

/* ── Left nav column — white, compact list ── */
.mega-left {
  width: 320px;
  flex-shrink: 0;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  position: relative;
  z-index: 3;
  padding-top: 76px;
  /* align with header height */
}

.mega-section-label {
  font-family: 'Effra', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #CCC;
  padding: 24px 32px 12px;
}

/* Each nav row */
a.mega-nav-item,
div.mega-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 32px;
  cursor: pointer;
  border-left: 3px solid transparent;
  transition: background 0.15s, border-color 0.15s;
  text-decoration: none;
  color: #1A1A1A;
}

a.mega-nav-item:hover,
div.mega-nav-item:hover,
a.mega-nav-item.active,
div.mega-nav-item.active {
  background: #F5F5F5;
  border-left-color: #0e0500;
}

.mega-nav-item-text {
  font-family: 'Effra', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: inherit;
}

.mega-nav-item-arrow {
  color: #CCC;
  line-height: 1;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}

a.mega-nav-item:hover .mega-nav-item-arrow,
div.mega-nav-item:hover .mega-nav-item-arrow,
a.mega-nav-item.active .mega-nav-item-arrow,
div.mega-nav-item.active .mega-nav-item-arrow {
  transform: translateX(3px);
  color: #0e0500;
}

.mega-nav-divider {
  border: none;
  border-top: 1px solid #F0F0F0;
  margin: 8px 32px;
}

/* Bottom links */
.mega-footer {
  margin-top: auto;
  padding: 20px 32px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  border-top: 1px solid #F0F0F0;
}

.mega-footer-link {
  font-family: 'Effra', sans-serif;
  font-size: 12px;
  color: #888;
  text-decoration: none;
  transition: color 0.2s;
}

.mega-footer-link:hover {
  color: #0e0500;
}

/* ── Middle panel — light gray, scrollable cards ── */
.mega-panel-area {
  width: 380px;
  flex-shrink: 0;
  background: #F4F4F4;
  overflow-y: auto;
  position: relative;
  z-index: 2;
}

.mega-panel {
  display: none;
  flex-direction: column;
  padding: 76px 0 80px;
  /* top aligns with header */
}

.mega-panel.active {
  display: flex;
}

.mega-panel-title {
  font-family: 'Effra', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: #AAA;
  padding: 0 28px 10px;
  border-bottom: 1px solid #E0E0E0;
  margin-bottom: 8px;
}

/* Card item */
.mega-card {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  text-decoration: none;
  color: #1A1A1A;
  transition: background 0.15s;
  border-bottom: 1px solid #EAEAEA;
}

.mega-card:hover {
  background: #EAEAEA;
}

.mega-card-img {
  width: 90px;
  height: 64px;
  background: #E4E4E4;
  flex-shrink: 0;
  overflow: hidden;
}

.mega-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mega-card-info {
  flex: 1;
}

.mega-card-name {
  font-family: 'Effra', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: #1A1A1A;
  margin-bottom: 3px;
}

.mega-card-sub {
  font-size: 11px;
  color: #888;
  line-height: 1.4;
}

.mega-card-tag {
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 2px 7px;
  border: 1px solid #C8C8C8;
  color: #888;
  margin-top: 5px;
}

/* ── Dark backdrop — right side ── */
.mega-backdrop {
  flex: 1;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  cursor: pointer;
  z-index: 1;

  opacity: 0;
  /* Fechar: some imediatamente, sem delay */
  transition: opacity 0.25s ease 0s;
}

.mega-menu.open .mega-backdrop {
  opacity: 1;
  /* Abrir: aguarda o slide terminar (0.55s) antes de aparecer */
  transition: opacity 0.3s ease 0.5s;
}

/* Scroll lock */
body.menu-open {
  overflow: hidden;
}

/* Accordions mobile — ocultos por padrão (só visíveis em mobile via media query) */
.mobile-accordion {
  display: none;
}

/* ── Footer ── */
.site-footer {
  background: #1A1A1A;
  color: rgba(255, 255, 255, 0.72);
  padding: 80px 0 0;
}

.footer-inner {
  display: flex;
  gap: 48px;
  padding: 0 80px 64px;
  max-width: 1600px;
  margin: 0 auto;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand {
  flex: 1.4;
}

.footer-logo {
  height: 36px;
  width: auto;
  margin-bottom: 20px;
  opacity: 0.85;
}

.footer-tagline {
  font-size: 12px;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.45);
  letter-spacing: 0.05em;
}

.footer-col {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.footer-col-title {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 20px;
}

.footer-link {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 12px;
  transition: color 0.2s;
  text-decoration: none;
}

.footer-link:hover {
  color: #00b5c1;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 80px;
  max-width: 1600px;
  margin: 0 auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
}

.footer-bottom-links {
  display: flex;
  gap: 24px;
}

.footer-bottom-link {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.35);
  transition: color 0.2s;
  text-decoration: none;
}

.footer-bottom-link:hover {
  color: rgba(255, 255, 255, 0.7);
}

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

/* ══════════════════════════════════════════
   FILTER TRAY — Global slide-down panel
   ══════════════════════════════════════════ */

/* Filtros button in header */
.filter-tray-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #1A1A1A;
  background: none;
  border: 1px solid #E0E0E0;
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  white-space: nowrap;
}

.filter-tray-btn:hover,
.filter-tray-btn.active {
  border-color: #0e0500;
  color: #0e0500;
  background: #FAF8F6;
}

.filter-tray-btn svg {
  flex-shrink: 0;
  transition: transform 0.3s;
}

.filter-tray-btn.active svg {
  transform: rotate(180deg);
}

/* Overlay backdrop */
.filter-tray-backdrop {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.filter-tray-backdrop.visible {
  opacity: 1;
  pointer-events: auto;
}

/* Tray panel */
.filter-tray {
  position: fixed;
  top: 76px;
  /* header height */
  left: 0;
  right: 0;
  z-index: 950;
  background: #fff;
  border-bottom: 1px solid #E8E8E8;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.12);
  transform: translateY(-20px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
}

.filter-tray.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.filter-tray-inner {
  max-width: 1600px;
  margin: 0 auto;
  padding: 28px 48px 32px;
}

/* Horizontal columns of filter groups */
.filter-tray-cols {
  display: flex;
  gap: 40px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.tray-group {
  flex: 1;
  min-width: 140px;
}

.tray-group-title {
  font-family: 'Effra', sans-serif;
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: #999;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid #EBEBEB;
}

/* Checkbox items inside tray */
.tray-check-list {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.tray-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.tray-check-item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 13px;
  height: 13px;
  border: 1px solid #C0C0C0;
  background: #fff;
  cursor: pointer;
  position: relative;
  flex-shrink: 0;
  transition: border-color 0.2s, background 0.2s;
}

.tray-check-item input[type="checkbox"]:checked {
  background: #0e0500;
  border-color: #0e0500;
}

.tray-check-item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 3px;
  width: 4px;
  height: 6px;
  border: 1.5px solid #fff;
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
}

.tray-check-item label {
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  color: #444;
  cursor: pointer;
}

/* Range slider inside tray */
.tray-range-wrap {
  margin-top: 2px;
}

.tray-range-track {
  position: relative;
  height: 3px;
  background: #E0E0E0;
  border-radius: 2px;
  margin: 12px 0 6px;
}

.tray-range-fill {
  position: absolute;
  height: 100%;
  background: #0e0500;
  border-radius: 2px;
  pointer-events: none;
}

.tray-range-input {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 100%;
  height: 3px;
  appearance: none;
  -webkit-appearance: none;
  background: transparent;
  pointer-events: none;
}

.tray-range-input::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  pointer-events: all;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0e0500;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
  cursor: pointer;
}

.tray-range-input::-moz-range-thumb {
  pointer-events: all;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0e0500;
  border: 2px solid #fff;
  cursor: pointer;
}

.tray-range-values {
  display: flex;
  justify-content: space-between;
  font-family: 'Effra', sans-serif;
  font-size: 10px;
  color: #555;
}

.tray-range-values span {
  font-weight: 600;
  color: #1A1A1A;
}

/* Select inside tray */
.tray-select {
  width: 100%;
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  color: #444;
  border: 1px solid #E0E0E0;
  background: #fff;
  padding: 7px 10px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 24px;
  transition: border-color 0.2s;
}

.tray-select:hover,
.tray-select:focus {
  outline: none;
  border-color: #0e0500;
}

/* Temp swatches inside tray */
.tray-swatches {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.tray-swatch {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.tray-swatch-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.tray-swatch:hover .tray-swatch-circle,
.tray-swatch.active .tray-swatch-circle {
  border-color: #0e0500;
  transform: scale(1.1);
}

.tray-swatch-label {
  font-size: 8px;
  color: #999;
  font-weight: 500;
}

/* Distribution icons in tray */
.tray-dist-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 4px;
}

.tray-dist-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 8px 10px;
  border: 1.5px solid #E8E8E8;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  border-radius: 2px;
  min-width: 0;
}

/* Force icon SVGs to a readable size regardless of inline attributes */
.tray-dist-item svg {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.tray-dist-item:hover {
  border-color: #0e0500;
  background: #FAFAF8;
}

.tray-dist-item.active {
  border-color: #0e0500;
  background: #F5F0EC;
}

.tray-dist-label {
  font-size: 9px;
  color: #666;
  text-align: center;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: 0.04em;
}

/* Tray footer: actions */
.filter-tray-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  padding: 16px 48px;
  border-top: 1px solid #F0F0F0;
  max-width: 1600px;
  margin: 0 auto;
}

.tray-btn-clear {
  font-family: 'Effra', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #999;
  background: none;
  border: 1px solid #DDD;
  padding: 8px 20px;
  cursor: pointer;
  transition: 0.2s;
}

.tray-btn-clear:hover {
  border-color: #999;
  color: #555;
}

.tray-btn-apply {
  font-family: 'Effra', sans-serif;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #fff;
  background: #0e0500;
  border: 1px solid #0e0500;
  padding: 8px 24px;
  cursor: pointer;
  transition: background 0.2s;
}

.tray-btn-apply:hover {
  background: #00b5c1;
  color: #fff;
}

/* ── Obras Filters ── */
.obra-filter-btn {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 18px 20px;
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: #888;
  cursor: pointer;
  transition: color 0.3s, border-color 0.3s;
}

.obra-filter-btn:hover {
  color: #1A1A1A;
}

.obra-filter-btn.active {
  color: #00b5c1;
  border-bottom-color: #00b5c1;
}

/* ══════════════════════════════════════════
   RESPONSIVE — Tablet & Mobile
   ══════════════════════════════════════════ */

/* ── Tablet (≤1024px) ── */
@media (max-width: 1024px) {

  /* Header */
  .header-inner {
    padding: 0 24px;
  }

  /* Footer */
  .footer-inner {
    padding: 0 40px 48px;
    gap: 32px;
    flex-wrap: wrap;
  }

  .footer-bottom {
    padding: 20px 40px;
  }

  /* Mega Menu — coluna esquerda menor */
  .mega-left {
    width: 260px;
  }

  .mega-panel-area {
    width: 300px;
  }

  /* Filter tray */
  .filter-tray-inner {
    padding: 20px 24px 24px;
  }

  .filter-tray-footer {
    padding: 14px 24px;
  }
}

/* ── Mobile (≤768px) ── */
@media (max-width: 768px) {

  /* ── Header ── */
  .header-inner {
    height: 60px;
    padding: 0 16px;
  }

  .logo-img {
    height: 32px;
  }

  .header-right {
    gap: 4px;
  }

  /* Ocultar texto do botão de filtro, manter ícone */
  .filter-tray-btn {
    font-size: 0;
    padding: 8px 10px;
    gap: 0;
  }

  .filter-tray-btn svg {
    width: 18px;
    height: 18px;
  }

  /* Filter tray posicionada abaixo do header mobile */
  .filter-tray {
    top: 60px;
  }

  /* ── Mega Menu Mobile — Full Screen ── */
  .mega-menu {
    flex-direction: row;
  }

  /* Coluna de navegação ocupa tela toda — rola internamente */
  .mega-left {
    width: 100%;
    flex-shrink: 0;
    padding-top: 60px;
    overflow-y: auto;
    height: 100%;
    /* preenche o mega-menu fixo */
    -webkit-overflow-scrolling: touch;
  }

  /* Painel de cards do desktop — oculto em mobile */
  .mega-panel-area {
    display: none !important;
  }

  /* Backdrop — sem largura em mobile (menu cobre tela toda) */
  .mega-backdrop {
    display: block;
    flex: none;
    width: 0;
  }

  /* Botão fechar — fixo no topo direito */
  .mega-close-btn {
    position: fixed;
    top: 10px;
    right: 16px;
    z-index: 3010;
    width: 44px;
    height: 44px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    display: flex !important;
    align-items: center;
    justify-content: center;
  }

  /* Nav items maiores para toque */
  a.mega-nav-item,
  div.mega-nav-item {
    padding: 20px 24px;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
  }

  .mega-nav-item-text {
    font-size: 17px;
  }

  /* Seta do item rotaciona quando accordion está aberto */
  div.mega-nav-item.sub-open .mega-nav-item-arrow {
    transform: rotate(90deg) !important;
    color: #0e0500 !important;
  }

  /* Botão de fechar mobile — criado via JS, fixo no topo do mega-left */
  #mobileMenuClose {
    display: flex;
    align-items: center;
    justify-content: center;
    position: fixed;
    top: 10px;
    right: 16px;
    width: 44px;
    height: 44px;
    background: #1A1A1A;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    z-index: 3020;
    color: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
    transition: background 0.2s, transform 0.3s;
  }

  #mobileMenuClose:active {
    background: #00b5c1;
    transform: rotate(90deg);
  }

  /* ── Accordion (persiana) de sub-menu em mobile ──
     Usa grid-template-rows: 0fr → 1fr para animar height:auto sem JS.
     É a técnica mais confiável — não depende de scrollHeight nem imagens. */
  .mobile-accordion {
    display: grid;
    /* sobrescreve o display:none global */
    grid-template-rows: 0fr;
    /* fechado: 0 altura */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    background: #F4F4F4;
    border-top: 1px solid #EAEAEA;
  }

  .mobile-accordion.open {
    grid-template-rows: 1fr;
    /* aberto: altura total do conteúdo */
  }

  /* Inner: min-height:0 é obrigatório para o grid trick funcionar */
  .mobile-accordion-inner {
    min-height: 0;
    overflow: hidden;
    /* clips durante a animação */
  }

  /* Quando totalmente aberto, libera overflow para não cortar sombras/margens */
  .mobile-accordion.open .mobile-accordion-inner {
    overflow: visible;
  }

  /* Título da seção dentro do accordion */
  .mobile-accordion .mega-panel-title {
    padding: 12px 24px 8px;
    border-bottom: 1px solid #E0E0E0;
    margin-bottom: 4px;
  }

  /* Cards compactos dentro do accordion mobile */
  .mobile-accordion .mega-card {
    padding: 12px 24px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-decoration: none;
    color: #1A1A1A;
    border-bottom: 1px solid #EAEAEA;
    transition: background 0.15s;
  }

  .mobile-accordion .mega-card:active {
    background: #E8E8E8;
  }

  /* Imagem menor no accordion mobile */
  .mobile-accordion .mega-card-img {
    width: 56px;
    height: 40px;
    flex-shrink: 0;
  }

  .mobile-accordion .mega-card-name {
    font-size: 13px;
    font-weight: 600;
  }

  .mobile-accordion .mega-card-sub {
    font-size: 11px;
    color: #888;
  }

  .mobile-accordion .mega-card-tag {
    font-size: 9px;
    margin-top: 3px;
  }

  /* ── Footer Mobile ── */
  .footer-inner {
    flex-direction: column;
    padding: 0 24px 40px;
    gap: 32px;
  }

  .footer-brand {
    flex: none;
  }

  .footer-col {
    flex: none;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 20px 24px;
    font-size: 10px;
  }

  .footer-bottom-links {
    gap: 16px;
  }

  /* ── Filter Tray Mobile ── */
  .filter-tray-inner {
    padding: 16px 16px 20px;
  }

  .filter-tray-cols {
    gap: 20px;
  }

  .tray-group {
    flex: none;
    min-width: calc(50% - 10px);
  }

  .filter-tray-footer {
    padding: 12px 16px;
    gap: 10px;
  }

  .tray-btn-clear,
  .tray-btn-apply {
    padding: 10px 16px;
    font-size: 9px;
  }
}


/* ══════════════════════════════════════════
   SEARCH OVERLAY — Global
   ══════════════════════════════════════════ */
.search-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 1050; /* Acima do Header (1000) */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.3s ease;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
}

.search-overlay.open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.search-overlay-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 32px 40px;
}

.search-form-global {
  display: flex;
  align-items: center;
  position: relative;
  width: 100%;
}

.search-icon-input {
  color: #1A1A1A;
  margin-right: 24px;
  flex-shrink: 0;
}

.search-input-global {
  flex: 1;
  border: none;
  background: transparent;
  font-family: 'Poppins', sans-serif;
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  color: #1A1A1A;
  outline: none;
  padding: 10px 0;
}

.search-input-global::placeholder {
  color: #CCC;
}

/* Esconde o X nativo de search no Chrome/Safari */
.search-input-global::-webkit-search-decoration,
.search-input-global::-webkit-search-cancel-button,
.search-input-global::-webkit-search-results-button,
.search-input-global::-webkit-search-results-decoration {
  display: none;
}

.search-submit-btn {
  font-family: 'Effra', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #fff;
  background: #0e0500;
  padding: 16px 32px;
  margin-left: 24px;
  transition: background 0.2s;
  cursor: pointer;
}

.search-submit-btn:hover {
  background: #00b5c1;
}

.search-close-btn {
  margin-left: 32px;
  color: #888;
  transition: color 0.2s, transform 0.3s;
  flex-shrink: 0;
}

.search-close-btn:hover {
  color: #0e0500;
  transform: rotate(90deg);
}

@media (max-width: 768px) {
  .search-overlay-inner {
    padding: 24px 16px;
  }
  .search-icon-input {
    display: none; /* Em mobile removemos a lupa lateral para dar espaço */
  }
  .search-submit-btn {
    padding: 14px 20px;
    margin-left: 12px;
  }
  .search-close-btn {
    margin-left: 16px;
  }
}

/* Blinda os SVGs dos filtros (Header e Sidebar) contra resets do Elementor */
.tray-dist-item svg,
.dist-item svg,
.dist-icon svg {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    min-height: 36px !important;
    flex-shrink: 0 !important;
    display: block !important;
}