/* Grid Layout */
.cat-list-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 35px;
  margin-top: 20px;
}

.cat-list-item {
  background: #fff;
  border: 1px solid #ddd;
  padding: 12px;
  padding-right: 5px;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  text-decoration: none;
  color: #333;
  display: inline-block;
  position: relative;
  text-align: center;
}
.cat-list-item.brand-item {
  padding: 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

.brand-img {
  /* position: absolute;
  top: 50%;
  left: 5%; */
  display: block;
  width: 60px;
  z-index: 10;
  /* transform: translate(-50%, -50%); */
}

.cat-list-item:hover {
  border-color: #002d72;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Alphabet Index */
.alphabet-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  background: #fff;
  padding: 15px;
  border-radius: 4px;
  position: sticky;
  top: calc(var(--e-header-height) - 1px);
  z-index: 100;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
}

.alphabet-nav a {
  text-decoration: none;
  color: #002d72;
  font-weight: bold;
  padding: 5px 10px;
  border-radius: 3px;
}

.alphabet-nav a:hover {
  background-color: #002d72;
  color: #fff;
}

.alphabet-group {
  margin-bottom: 40px;
}

.alphabet-group h2 {
  border-bottom: 2px solid #002d72;
  padding-bottom: 5px;
  margin-bottom: 15px;
}

@media screen and (max-width: 767px) {
  .alphabet-nav {
    position: fixed;
    right: 5px;
    top: 10vh;
    bottom: 2vh;
    width: 28px;
    gap: 5px;
    flex-direction: column;
    flex-wrap: nowrap;
    font-size: 12px;
    align-items: center;
    justify-content: start;
    overflow: auto;
    padding: 10px 0;
    box-shadow: 0 0 6px rgba(0, 0, 0, 0.3);
    border-radius: 15px;
  }
  .alphabet-nav a {
    padding: 2px 5px;
  }

  .cat-list-item.brand-item {
    font-size: 12px;
  }

  .brand-img {
    width: 38px;
  }
}
