/* ProductPanelMob.css — drawer mobile com navegação 2 níveis */

/* ── Overlay ── */
.panelContainerMob {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  justify-content: flex-start;
  /* z-index ALTO o suficiente para ficar acima de: barra de contato (1001),
     navbar (1000), search-dropdown (1050), product-panel desktop (1500),
     search-overlay (999). Painel mobile deve cobrir tudo. */
  z-index: 99999;
  pointer-events: none;
  transition: background-color 0.3s ease;
}

/* Quando o painel está aberto, trava o scroll do body para que nada por
   baixo se mova (classe adicionada pelo JS). */
body.mobile-menu-open {
  overflow: hidden !important;
  touch-action: none;
}
.panelContainerMob.show {
  pointer-events: auto;
  background-color: rgba(0, 0, 0, 0.45);
}

/* ── Drawer ── */
.productPanelMob {
  background-color: #fff;
  width: 88%;
  max-width: 360px;
  height: 100%;
  display: flex;
  flex-direction: column;
  position: absolute;
  left: 0;
  top: 0;
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(.4, 0, .2, 1);
  overflow: hidden;
  pointer-events: auto;
  box-shadow: 6px 0 30px rgba(0, 0, 0, 0.12);
}
.panelContainerMob.show .productPanelMob { transform: translateX(0); }
.panelContainerMob:not(.show) .productPanelMob { transform: translateX(-100%); }

/* ── Header ── */
.drawerHeaderMob {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid #f0f0f0;
  flex-shrink: 0;
}
.logoMob { height: 40px; width: auto; object-fit: contain; }
.closeBtnMob {
  width: 38px; height: 38px;
  background: #f5f5f5;
  border: none;
  border-radius: 10px;
  color: #666;
  font-size: 16px;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}
.closeBtnMob:hover { background: #fef2f2; color: #BB0606; }

/* ── Área scrollável ── */
.mainViewMob {
  flex: 1;
  overflow-y: auto;
  padding-bottom: 20px;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

/* ── Sistema de "views" (lista raiz / detalhe) ── */
.viewMob {
  display: none;
}
.viewMob.is-active {
  display: block;
}

/* ── Títulos de seção (Produtos / Suporte) ── */
.sectionTitleMob {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #999;
  margin: 22px 20px 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #f0f0f0;
}

/* ─────────────────────────────────────────────────────────
   VIEW 1 — Lista de subcategorias (3 botões grandes)
   ───────────────────────────────────────────────────────── */

.subListMob {
  list-style: none;
  padding: 0 10px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.subItemMob {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 12px;
  background: #fff;
  border: 1px solid #f0f0f0;
  border-radius: 12px;
  cursor: pointer;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
  font-family: inherit;
}
.subItemMob:hover,
.subItemMob:active {
  background: #fef2f2;
  border-color: rgba(187, 6, 6, 0.2);
}

.subItemIconMob {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: #fef2f2;
  color: #BB0606;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.subItemTextMob {
  flex: 1;
  font-size: 0.96rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
}

.subItemChevronMob {
  color: #c8c8c8;
  font-size: 0.85rem;
  flex-shrink: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}
.subItemMob:hover .subItemChevronMob {
  color: #BB0606;
  transform: translateX(2px);
}

/* ─────────────────────────────────────────────────────────
   VIEW 2 — Detalhe (lista de categorias dentro da subcategoria)
   ───────────────────────────────────────────────────────── */

.backBtnMob {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 14px 16px 4px;
  padding: 6px 8px 6px 4px;
  background: transparent;
  border: none;
  color: #BB0606;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  font-family: inherit;
  border-radius: 8px;
  transition: background 0.2s ease;
}
.backBtnMob:hover { background: #fef2f2; }
.backBtnMob i { font-size: 0.75rem; }

.detailTitleMob {
  font-size: 1.05rem;
  font-weight: 800;
  color: #111;
  margin: 4px 20px 14px;
  letter-spacing: -0.2px;
}

.categoriesContainerMob {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.emptyHintMob {
  color: #999;
  font-size: 0.85rem;
  padding: 16px 12px;
  text-align: center;
  margin: 0;
}

/* ── Item de categoria ── */
.productLinkMob {
  display: block;
  text-decoration: none;
  color: inherit;
}

.productItemMob {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 10px;
  transition: background 0.18s ease;
}
.productItemMob:hover,
.productItemMob:active { background: #fef2f2; }

.productImageMob {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  background: #f5f5f5;
  flex-shrink: 0;
  border: 1px solid #ececec;
  transition: transform 0.2s ease;
}
.productItemMob:hover .productImageMob { transform: scale(1.04); }

.productNameMob {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.productChevronMob {
  color: #c8c8c8;
  font-size: 0.7rem;
  flex-shrink: 0;
}

/* ─────────────────────────────────────────────────────────
   Suporte (na view raiz, abaixo das subcategorias)
   ───────────────────────────────────────────────────────── */

.suporteContainerMob {
  padding: 0 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.suporteItemMob {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.18s ease;
}
.suporteItemMob:hover,
.suporteItemMob:active { background: #f7f7f7; }

.suporteIconMob {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #fef2f2;
  color: #BB0606;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.suporteIconMob--wpp { background: #ecfdf5; color: #16a34a; }

.suporteTextMob {
  flex: 1;
  font-size: 0.92rem;
  font-weight: 600;
  color: #1a1a1a;
}

.suporteChevronMob {
  color: #c8c8c8;
  font-size: 0.75rem;
  flex-shrink: 0;
}

/* ── Estados ── */
.errorContainerMob {
  padding: 24px 20px;
  text-align: center;
  color: #BB0606;
  font-size: 0.9rem;
}
.retryButtonMob {
  margin-top: 10px;
  padding: 9px 18px;
  background: #BB0606;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
}
.retryButtonMob:hover { background: #9a0505; }

.loadingOverlay {
  padding: 40px 20px;
  text-align: center;
  color: #888;
  font-size: 0.9rem;
}

/* Scrollbar discreta */
.mainViewMob::-webkit-scrollbar { width: 4px; }
.mainViewMob::-webkit-scrollbar-thumb { background: #e0e0e0; border-radius: 4px; }

/* ── Compatibilidade com classes legadas (não usadas mas mantidas) ── */
.logoAnimationContainerMob, .subcategoryViewMob, .productsContainerMob,
.headerMob, .sectionTitleMobCateg, .chevronIconMob, .chevronLeftMob,
.categorySectionMob, .categoryHeaderMob, .categoryNameMob,
.tabsMob, .tabMob, .tabPanelMob, .seminovosSectionMob, .seminovosListMob { /* sem estilo */ }
