/* Honeywhale homepage tabs.
   Scoped to body.hw-home-tabs-page so the duplicated hw-filter-labels markup
   in other elementor_library templates is never affected.
   The theme globally injects `padding: 0 30px` + `display:flex` into every
   <button>; all of it must be explicitly reset here. */
.hw-home-tabs-page .hw-tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 12px 0 20px;
  padding: 0;
}

.hw-home-tabs-page .hw-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: auto;
  min-width: 0;
  height: auto;
  margin: 0;
  padding: 9px 18px !important;
  border: 1px solid #d9d9d9;
  border-radius: 4px;
  background: #fff;
  color: #333;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.hw-home-tabs-page .hw-tab:hover { border-color: #111; color: #111; }
.hw-home-tabs-page .hw-tab:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

.hw-home-tabs-page .hw-tab.is-active {
  border-color: #ffd400;
  background: #ffd400;
  color: #111;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .10);
}

/* Panels are pre-rendered Elementor "Products" widgets. Only the active one
   is visible, so the page still degrades to a single grid if JS fails. */
.hw-home-tabs-page .hw-tab-panel:not(.is-active) { display: none !important; }

@media (max-width: 767px) {
  .hw-home-tabs-page .hw-tabs {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    padding: 2px 0 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }
  .hw-home-tabs-page .hw-tab { padding: 8px 14px !important; }
}
