@import './variables.css';

.container {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slider-wrapper {
  overflow: hidden;
  max-width: 130rem;
  margin: 0 10rem 5.5rem;
}

.card-list .card-item {
  width: 32rem;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--light-white);
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.5);
  box-shadow: rgba(0, 0, 0, 0.16) 0px 1px 4px;
  margin-top: 2rem;
}

.card-list .card-item .product-image{
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  margin-bottom: 2rem;
}

.card-list .card-item .product-name{
  color: var(--very-dark);
  font-size: 2.2rem;
  font-weight: 500;
  margin: 1.4rem 0 1rem;
}

.card-list .card-item .product-types {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.2rem;
  font-weight: 500;
}

.card-list .card-item .product-types img {
  width: 1.5rem;
  margin: 0.5rem;
}

.more-info-btn {
  background-image: linear-gradient(to right, 
  #457fca 0%, #5691c8  51%, #457fca  100%)
}
.more-info-btn {
  margin: 10px;
  padding: 15px 25px;
  text-align: center;
  text-transform: uppercase;
  transition: 0.5s ease;
  background-size: 200% auto;
  color: white;            
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
}

.more-info-btn:hover {
  background-position: right center; /* change the direction of the change here */
  color: white;
}

.slider-wrapper .swiper-pagination-bullet {
  background: #457fca;
  height: 12px;
  width: 12px;
}

.slider-wrapper .swiper-slide-button {
  color: #457fca;
  margin-top: -40px;
  transition: 0.5s ease;
}

.slider-wrapper .swiper-slide-button:hover {
  color: #8da9ce;
}

.new-item {
  position: relative;
  overflow:visible;
}

.new-item::after {
  content: 'NEW!';
  position: absolute;
  top: 0; 
  right: 0;
  background-color: red; 
  color: white; 
  font-size: 1.5rem; 
  width: 6rem; 
  height: 3rem; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

@media (max-width: 768px) {

  .slider-wrapper {
    margin: 0 40px 40px;
  }

  .slider-wrapper .swiper-slide-button {
    display: none;
  }

  .new-item {
  position: relative;
  overflow: visible;
}

}