/* ==========================================================================
   Mega Menu de Marcas (Desktop & Mobile) - Flatsome Child Theme (OB)
   ========================================================================== */

/* --- Dropdown Container no Desktop (800px) --- */
.nav-dropdown.ob-brand-mega-menu,
#menu-item-47 > .nav-dropdown,
#menu-item-48 > .nav-dropdown {
  width: 800px !important;
  min-width: 800px !important;
  max-width: 95vw !important;
  background-color: #ffffff;
  padding: 28px 32px !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
  border: none !important;
  border-radius: 4px;
  margin: 0;
}

/* Flex Container do Tabbed Content */
.ob-tabbed-brands {
  display: flex !important;
  flex-flow: row wrap !important;
  align-items: flex-start !important;
  align-content: flex-start !important;
  width: 100%;
}

/* Linha de Cabeçalhos (Gênero / Principais Marcas) */
.ob-menu-header-row {
  display: flex;
  width: 100%;
  margin-bottom: 20px;
}

.ob-col-header {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #111111;
  padding-bottom: 8px;
  border-bottom: 1px solid #111111;
}

.ob-col-header-gender {
  width: 230px;
  margin-right: 30px;
}

.ob-col-header-brands {
  flex: 1;
}

/* --- Coluna Esquerda: Abas de Gênero (Fixas no Topo) --- */
.ob-gender-nav {
  width: 230px !important;
  margin-right: 30px !important;
  display: flex !important;
  flex-direction: row !important;
  justify-content: space-between !important;
  align-self: flex-start !important;
  gap: 12px;
  padding: 0 !important;
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  border: none !important;
}

.ob-gender-nav > li.tab {
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: inline-block !important;
}

.ob-gender-nav > li.tab > a {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  text-decoration: none !important;
  border: none !important;
  padding: 0 !important;
  background: transparent !important;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ob-gender-icon-wrapper {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 8px;
}

.ob-gender-icon-wrapper img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.ob-gender-title {
  font-size: 14px;
  font-weight: 700;
  color: #111111;
  text-align: center;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent;
  transition: all 0.2s ease;
}

/* Estado Ativo e Hover na Aba */
.ob-gender-nav > li.tab.active > a .ob-gender-title,
.ob-gender-nav > li.tab:hover > a .ob-gender-title {
  color: #b3131b;
  border-bottom-color: #b3131b;
}

/* --- Coluna Direita: Painéis de Marcas (4 Colunas e Imagens Centralizadas) --- */
.ob-brand-panels {
  flex: 1 !important;
  width: auto !important;
  padding: 0 !important;
  align-self: flex-start !important;
  min-height: 220px;
}

.ob-brands-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px 20px;
  align-items: center;
}

.ob-brand-item {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 44px;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.ob-brand-item:hover {
  transform: translateY(-2px);
  opacity: 0.85;
}

.ob-brand-item img {
  max-width: 95px;
  max-height: 38px;
  width: auto;
  height: auto;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

.ob-brand-text {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  color: #111111;
  letter-spacing: 0.5px;
  text-align: center;
  width: 100%;
}

/* Botão "VER MAIS" */
.ob-brand-ver-mais-wrapper {
  grid-column: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.ob-brand-ver-mais-btn {
  display: inline-block;
  border: 2px solid #111111;
  color: #111111;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.8px;
  padding: 5px 16px;
  text-transform: uppercase;
  text-decoration: none;
  border-radius: 2px;
  background: transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}

.ob-brand-ver-mais-btn:hover {
  background-color: #111111;
  color: #ffffff !important;
}

/* --- Customizações no Mobile (Drawer Sidebar) --- */
.ob-mobile-gender-icon {
  width: 28px;
  height: 28px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 12px;
  display: inline-block;
}

.ob-mobile-gender-label {
  vertical-align: middle;
  font-weight: 600;
}

li.ob-mobile-brand-item > a {
  display: flex !important;
  align-items: center;
  min-height: 48px;
  padding-top: 8px !important;
  padding-bottom: 8px !important;
}

.ob-mobile-brand-logo {
  max-width: 110px;
  max-height: 32px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

.ob-mobile-brand-name {
  font-size: 14px;
  font-weight: 600;
}

li.ob-mobile-ver-mais > a {
  font-weight: 700 !important;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #b3131b !important;
}
