/* CartTactic — Top Stores sidebar (homepage) */
body.home .rh-content-wrap {
  display: flex !important;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 28px;
}
body.home .main-side.clearfix.full_width {
  float: none !important;
  width: auto !important;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
}
#ct-top-stores {
  flex: 0 0 260px;
  width: 260px;
  margin-top: 4px;
  position: sticky;
  top: 96px;
  z-index: 5;
}
#ct-top-stores .ct-ts-title {
  margin: 0 0 14px;
  padding: 0 0 10px;
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
  color: #f5f5f5;
  letter-spacing: 0.01em;
  border-bottom: 3px solid #f5c518;
  display: inline-block;
  width: auto;
  min-width: 60%;
}
#ct-top-stores .ct-ts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}
#ct-top-stores .ct-ts-card {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  overflow: hidden;
  padding: 10px;
}
#ct-top-stores .ct-ts-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}
#ct-top-stores .ct-ts-card img {
  max-width: 88%;
  max-height: 88%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}
#ct-top-stores .ct-ts-fallback {
  font-size: 15px;
  font-weight: 700;
  color: #222;
  text-align: center;
  line-height: 1.15;
}
#ct-top-stores .ct-ts-more {
  display: block;
  margin-top: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: #f5c518;
  text-decoration: none;
}
#ct-top-stores .ct-ts-more:hover {
  text-decoration: underline;
  color: #ffe066;
}

@media (max-width: 1100px) {
  #ct-top-stores {
    flex-basis: 220px;
    width: 220px;
  }
  #ct-top-stores .ct-ts-card {
    padding: 8px;
    border-radius: 12px;
  }
}

@media (max-width: 900px) {
  body.home .rh-content-wrap {
    flex-direction: column;
  }
  #ct-top-stores {
    width: 100%;
    flex-basis: auto;
    position: static;
    order: -1;
    margin: 0 0 18px;
  }
  #ct-top-stores .ct-ts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
  }
  #ct-top-stores .ct-ts-card {
    aspect-ratio: 1 / 1;
    padding: 12px;
  }
}

@media (max-width: 520px) {
  #ct-top-stores .ct-ts-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }
  #ct-top-stores .ct-ts-title {
    font-size: 18px;
  }
}
