/* Title styling */
.popular-categories__title-wrapper {
	
}


/* Categories grid styling */
.popular-categories__list {
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	column-gap: 1.5rem;
	row-gap: 2rem;
}

.popular-category {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	row-gap: 1rem;
}

.popular-category__image-wrapper {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	
	background-color: #F6FBFF;
	
	border-radius: 50%;
	
	width: 15.75rem;
    height: 15.75rem;
	
	transition: all 0.3s ease;
	
	position: relative;
  	overflow: hidden;
}

.popular-categories__list a:hover .popular-category__image-wrapper {
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
  transform: translateY(-5px);
}

@media only screen and (max-width: 660px) {
  .popular-category__image-wrapper {
    width: 10rem;
    height: 10rem;
  }
}

@media only screen and (max-width: 430px) {
  .popular-category__image-wrapper {
    width: 8rem;
    height: 8rem;
  }
}

.popular-category__image-wrapper:after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle, rgba(255,255,255,0) 70%, rgba(90,181,94,0.1) 100%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.popular-categories__list a:hover .popular-category__image-wrapper:after {
  opacity: 1;
}

.popular-category__image {
	max-width: 6.5rem !important;
	height: 12.5rem !important;
	
	object-fit: contain;
}

@media only screen and (max-width: 660px) {
  .popular-category__image {
    max-width: 4.5rem !important;
	height: 7.75rem !important;
  }
}

@media only screen and (max-width: 430px) {
  .popular-category__image {
    max-width: 3.5rem !important;
	height: 7.75rem !important;
  }
}

.popular-category__title {
	font-size: 1.625rem !important;
}

@media only screen and (max-width: 550px) {
  .popular-categories__list {
    column-gap: 0.75rem;
    justify-content: space-between;
    width: 100%;
  }
  
  .popular-categories__list a {
    width: calc(50% - 0.5rem);
  }
  
  .popular-category {
    width: 100%;
  }
  
  .popular-category__image-wrapper {
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 100%;
    position: relative;
  }
  
  .popular-category__image {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    max-width: 50% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
  }
}