.cards-container .cards-wrapper {
  margin-top: var(--spacing-xbig);
}

.cards > ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(257px, 1fr));
  gap: var(--spacing-medium);
}

.featured-products .cards > ul {
  display: flex;
  flex-wrap: nowrap;
  gap: var(--spacing-medium);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 0;
  max-width: none;
  margin: 0;
  padding: 0;
}

.featured-products .cards > ul::-webkit-scrollbar {
  display: none;
}

.featured-products .cards > ul {
  scrollbar-width: none;
}

.featured-products .cards > ul > li {
  border: 1px solid var(--color-neutral-300);
  background-color: #ffffff;
  display: flex;
  flex-direction: column;
  text-align: center;
  flex: 0 0 calc((100% - 48px) / 4);
  box-sizing: border-box;
  scroll-snap-align: start;
}

.featured-products .cards .cards-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  min-height: 180px;
  border-bottom: 1px solid var(--color-neutral-200);
}

.featured-products .cards > ul > li img {
  width: auto;
  max-width: 100%;
  max-height: 160px;
  aspect-ratio: auto;
  object-fit: contain;
}

.featured-products .cards .cards-card-body {
  margin: 12px 16px 16px;
  font-size: 13px;
  line-height: 1.4;
}

.featured-products .cards a {
  color: inherit;
  text-decoration: none;
}

.featured-topics .cards {
  width: 100%;
  margin: 0;
}

.featured-topics .cards > ul {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-medium);
}

.featured-topics .cards > ul > li {
  border: 0;
  background-color: transparent;
}

.featured-topics .cards a {
  display: block;
}

.featured-topics .cards > ul > li img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.featured-categories .cards {
  width: 100%;
  margin: 0;
}

.featured-categories .cards > ul {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--spacing-medium);
}

.featured-categories .cards > ul > li {
  border: 0;
  background-color: transparent;
}

.featured-categories .cards a {
  display: block;
}

.featured-categories .cards > ul > li img {
  width: 100%;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
}

.featured-brands .section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--spacing-medium);
  margin-bottom: 20px;
}

.featured-brands .section-header h2 {
  margin: 0;
}

.featured-brands .view-all {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-brand-700);
  text-decoration: none;
}

.featured-brands .view-all:hover {
  text-decoration: underline;
}

.featured-brands .cards {
  width: 100%;
  margin: 0;
}

.featured-brands .cards > ul {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 14px;
  padding: 0;
}

.featured-brands .cards > ul > li {
  border: 0;
  background-color: transparent;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}

.featured-brands .cards a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: var(--shape-border-radius-2);
  background-color: transparent;
  padding: 0;
}

@media (max-width: 1199px) {
  .featured-brands .cards > ul {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 899px) {
  .featured-brands .cards > ul {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 599px) {
  .featured-brands .cards > ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.featured-brands .cards > ul > li img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.customer-support .cards {
  width: 100%;
  margin: 0;
  padding: 0;
}

.customer-support .cards > ul {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: var(--spacing-medium);
}

.customer-support .cards > ul > li {
  border: 1px solid var(--color-neutral-300);
  background-color: #ffffff;
  text-align: center;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 180px;
}

.customer-support .cards .cards-card-body {
  margin: 0;
  color: var(--color-neutral-700);
  font-size: 14px;
  line-height: 1.4;
}

.customer-support .cards .cards-card-body h3 {
  margin: 0 0 8px;
  color: var(--color-brand-700);
  font-size: 18px;
  font-weight: 600;
}

.customer-support .cards .cards-card-body a {
  color: var(--color-brand-700);
  text-decoration: none;
}

.customer-support .cards .cards-card-body a:hover {
  text-decoration: underline;
}

.featured-products .cards {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
}

.featured-products .cards-slider-buttons {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  width: 100%;
  display: flex;
  justify-content: space-between;
  transform: translateY(-50%);
  pointer-events: none;
  z-index: 2;
}

.featured-products .cards-slider-button {
  pointer-events: auto;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-neutral-300);
  background-color: #ffffff;
  color: var(--color-brand-700);
  position: relative;
  box-shadow: var(--shape-shadow-2);
}

.featured-products .cards-slider-button::after {
  display: block;
  content: '';
  border-right: 2px solid currentcolor;
  border-bottom: 2px solid currentcolor;
  height: 8px;
  width: 8px;
  position: absolute;
  top: 50%;
  left: calc(50% + 1px);
  transform: translate(-50%, -50%) rotate(135deg);
}

.featured-products .cards-slider-button.slide-next::after {
  transform: translate(-50%, -50%) rotate(-45deg);
  left: calc(50% - 1px);
}

.featured-products .cards-slider-button:disabled {
  opacity: 0.4;
  cursor: default;
}

@media (max-width: 1199px) {
  .featured-products .cards > ul > li {
    flex: 0 0 calc((100% - 32px) / 3);
  }
}

@media (max-width: 899px) {
  .featured-products .cards > ul > li {
    flex: 0 0 calc((100% - 16px) / 2);
  }
}

@media (max-width: 599px) {
  .featured-products .cards > ul > li {
    flex: 0 0 100%;
  }
}

.cards > ul > li {
  border: var(--shape-border-width-1) solid var(--color-neutral-500);
  background-color: var(--background-color);
}

.cards .cards-card-body {
  margin: var(--spacing-small);
}

.cards .cards-card-image {
  line-height: 0;
}

.cards > ul > li img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
