.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-links {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 12px !important;
  width: 100%;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-links a.cs-dog-thumb-card {
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px;
  width: auto !important;
  min-width: 0;
  margin: 0 !important;
  padding: 12px 8px !important;
  border: 1px solid #e6e6e6;
  border-radius: 12px;
  background: #fff;
  color: inherit;
  line-height: 1.35;
  text-align: center !important;
  text-decoration: none;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-links a.cs-dog-thumb-card:hover,
.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-links a.cs-dog-thumb-card:focus-visible {
  border-color: #a8a8a8;
  text-decoration: none;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-thumb-media {
  display: block;
  flex: 0 0 auto !important;
  width: 100% !important;
  height: 132px !important;
  max-width: 100%;
  aspect-ratio: auto !important;
  overflow: hidden;
  border-radius: 8px;
  background: #fff;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-thumb-media--failed {
  visibility: hidden;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-thumb-image {
  display: block;
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  object-fit: contain !important;
  border: 0;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-thumb-image[hidden] {
  display: none;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-thumb-name {
  display: block;
  max-width: 100%;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  overflow-wrap: break-word;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-groups section[id^="cs-dog-letter-"] {
  scroll-margin-top: 100px;
}

.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-groups section > h2,
.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-groups section > h3,
.cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-groups section > h4 {
  line-height: 1.3;
  font-size: 20px;
  margin-top: 20px;
  margin-bottom: 12px;
}

@media (min-width: 576px) {
  .cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-links {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 992px) {
  .cs-dog-alpha.cs-dog-thumbs .cs-dog-alpha-links {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}

/* Desktop film-style category index; original blocks remain mobile fallback. */
.cs-pet-compact {
  display: none !important;
}

.cs-pet-compact .cs-alpha-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 0 0 12px;
}

.cs-pet-compact .cs-alpha-nav a {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 29px;
  height: 28px;
  padding: 0 4px;
  border: 1px solid #dbe5dd;
  border-radius: 4px;
  background: #fff;
  color: #276b45;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
}

.cs-pet-compact .cs-alpha-nav a:hover,
.cs-pet-compact .cs-alpha-nav a:focus-visible {
  background: #edf5ee;
}

.cs-pet-compact .cs-alpha-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px 42px;
  align-items: start;
}

.cs-pet-compact .cs-alpha-group {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  margin: 0;
  padding: 0;
  scroll-margin-top: 100px;
}

.cs-pet-compact .cs-alpha-letter {
  color: #276b45;
  font-size: 23px;
  font-weight: 800;
  line-height: 1;
  margin: 0;
  padding: 1px 0;
}

.cs-pet-compact .cs-alpha-links {
  display: block;
  min-width: 0;
}

.cs-pet-compact .cs-alpha-item {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0;
  padding: 3px 0 !important;
  border: 0 !important;
  border-radius: 0;
  background: none !important;
  box-shadow: none !important;
  color: #263b30;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.3;
  text-decoration: none;
}

.cs-pet-compact .cs-alpha-item__arrow {
  flex: 0 0 auto;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.cs-pet-compact .cs-alpha-item:hover .cs-alpha-item__arrow,
.cs-pet-compact .cs-alpha-item:focus-visible .cs-alpha-item__arrow {
  opacity: 1;
}

@media (min-width: 992px) {
  #js-product-list-header .subcategories.cs-pet-original {
    display: none !important;
  }

  .cs-pet-compact {
    display: block !important;
  }
}

@media (min-width: 992px) and (max-width: 1199px) {
  .cs-pet-compact .cs-alpha-groups {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    column-gap: 30px;
  }
}
