/* 野帽屋品牌型號導覽樣式 */
.yw-brand-nav {
  width: 100%;
  margin: 20px 0;
  text-align: left;
}

.yw-brand-nav__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
  align-items: center;
  gap: 8px;
}

.yw-brand-nav__link,
.yw-brand-nav__link:visited,
.yw-brand-nav__pending {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-height: 50px;
  max-width: 100%;
  padding: 0 32px;
  border: 1px solid #000;
  background: #fff;
  color: #000;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color .2s, color .2s;
}

.yw-brand-nav__link:hover,
.yw-brand-nav__link:focus-visible,
.yw-brand-nav__link.is-active,
.yw-brand-nav__link.is-active:visited {
  background: #000;
  color: #fff;
  text-decoration: none;
}

/* 網址尚未填入的項目不會形成錯誤連結 */
.yw-brand-nav__pending {
  border-color: #999;
  color: #777;
  cursor: not-allowed;
}

@media (max-width: 767px) {
  .yw-brand-nav { margin: 16px 0; }
  .yw-brand-nav__items { gap: 6px; }
  .yw-brand-nav__link,
  .yw-brand-nav__pending {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }
}
