.babolat-home-categories {
  margin: 48px 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;

  .category-block {
    overflow: hidden;
    width: 100%;
    /*max-height: 400px;*/
    aspect-ratio: 1/1;


    a {
      aspect-ratio: 1 / 1;
      width: 100%;
      height: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
      flex-direction: column;
      position: relative;

      &::after {
        content: "";
        position: absolute;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 0;
        background: linear-gradient(to bottom, #fff 0 50%, #74ecf7 50% 100%);
        pointer-events: none;
        transition: height 0.25s ease-in-out;
      }

      img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.25s ease-in-out, filter 0.25s ease-in-out;
        object-position: top !important;
      }
    }

    &:hover {
      a::after {
        height: 12px;
      }

      img {
        transform: scale(1.1);
        filter: brightness(0.5);
      }
    }

    h4 {
      position: absolute;
      left: 18px;
      bottom: 1.2rem;
      color: white;
      font-size: 2rem;
      text-transform: uppercase;
      transition: font-size 0.3s ease, bottom 0.3s ease;
    }
  }
}

@media (max-width: 768px) {
  .babolat-home-categories {
    padding: 12px;
    grid-template-columns: 1fr;
    .category-block {
      border-radius: 4px;
      a {
        justify-content: flex-start;
      }

      h4 {
        bottom: 0.2rem;
      }
    }
  }
}
