:root{
  --color-white: #ffffff;
  --color-black: #000000;
  --color-gray: #9D9D9D;
  --color-gray-100: #787878;
}

* {
  box-sizing: border-box;
}

html, body{
  margin: 0;
}

body{
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  min-width: 320px;
}

img{
  max-width: 100%;
  vertical-align: middle;
}

a{
  text-decoration: none;
}

.container{
  --padding-x: 30px;

  max-width: 1380px;
  padding-left: var(--padding-x);
  padding-right: var(--padding-x);
  margin-left: auto;
  margin-right: auto;
}

@media (max-width: 929px){
  .container{
    --padding-x: 15px;
  }
}

.header{
  .container{
    --padding-y: 40px;

    padding-top: var(--padding-y);
    padding-bottom: var(--padding-y);
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
}

@media (max-width: 992px){
  .header{
    .container{
      --padding-y: 20px;
    }
  }
}

/* Button */

.button{
  margin: 0;
  padding: 20px 10px;
  border: none;
  background-color: var(--color-black);

  color: var(--color-white);
  font-size: 18px;
  font-style: normal;
  font-weight: 700;
  line-height: 1;
  text-align: center;

  cursor: pointer;
}

@media (max-width: 768px){
  .button{
    font-size: 16px;
  }
}


/*
 * Products
 */

.products{
  display: flex;
  column-gap: 20px;
  row-gap: 40px;
  flex-wrap: wrap;
  margin: 135px 0;
}

@media (max-width: 992px){
  .products{
    column-gap: 10px;
    margin: 60px 0;
  }
}

.products .product{
  flex: 0 1 calc(100% / 4 - (3 / 4 * 20px));
  max-width: calc(100% / 4 - (3 / 4 * 20px));
}

@media (max-width: 992px){
  .products .product{
    flex: 0 1 calc(100% / 2 - (1 / 2 * 1%));
    max-width: calc(100% / 2 - (1 / 2 * 10px));
  }
}

@media (max-width: 480px){
  .products .product{
    flex: 1 1 100%;
    max-width: 100%;
  }
}

/*
 * Product
 */

.product{
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.product-top{
  overflow: hidden;
  border-radius: 6px;
  text-align: center;
}

.product-top img{
  width: 100%;
}

.product-content{
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.product-category{
  color: var(--color-gray);
  font-size: 14px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
  text-transform: uppercase;
}

.product-title{
  margin: 8px 0 30px 0;

  color: var(--color-gray-100);
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

.product-button{
  margin-top: auto;
}

/*
 * Swiper. Product slider
 */

.swiper-pi{
  max-width: 100%;
  position: relative;
  img{
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}

.product .swiper-container {
  overflow: hidden;
  height: inherit;
}
@media (max-width: 768px) {
  .product .swiper-container {
    height: 140px;
  }
}
.product .swiper-wrapper {
  align-items: center;
}
.product .swiper-slide {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100% !important;
}
@media (pointer: fine) {
  .product .swiper-pagination {
    height: 100%;
    display: flex;
    flex-wrap: nowrap;
    justify-content: center;
  }
}
@media (pointer: coarse) {
  .product .swiper-pagination {
    height: 6px;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (pointer: fine) {
  .product .swiper-pagination-bullet {
    height: 100%;
    border-radius: 0;
    background: transparent;
    position: relative;
  }
}
@media (pointer: coarse) {
  .product .swiper-pagination-bullet {
    display: block;
    height: 6px;
    background-color: var(--color-white);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.21, 1.1);
    margin: 0 4px;
    opacity: 1;
    border-radius: 0;
    position: relative;
  }
}
@media (pointer: coarse) {
  .product .swiper-pagination-bullet-active {
    background-color: var(--color-black);
  }
}
@media (pointer: fine) {
  .product .swiper-pagination-mini {
    position: absolute;
    left: 0;
    bottom: 10px;
    height: 2px;
    width: 100%;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
  }
}
@media (pointer: coarse) {
  .product .swiper-pagination-mini {
    display: none;
  }
}
.product .swiper-pagination-mini-bullet {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--color-white);
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.21, 1.1);
  margin: 0 4px;
}
.product .swiper-pagination-mini-bullet-active {
  background-color: var(--color-black);
}
.product .swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet {
  margin: 0;
}
.product .swiper-horizontal > .swiper-pagination-bullets,
.product .swiper-pagination-bullets.swiper-pagination-horizontal,
.product .swiper-pagination-custom,
.product .swiper-pagination-fraction {
  bottom: 0px;
}

@media (pointer: coarse){
  .product .swiper-horizontal > .swiper-pagination-bullets, .product .swiper-pagination-bullets.swiper-pagination-horizontal, .product .swiper-pagination-custom, .product .swiper-pagination-fraction{
    bottom: 10px;
    z-index: 1 !important;
  }
  .product .swiper-horizontal .swiper-pagination-bullet {
    width: 6px !important;
    border-radius: 50%;
  }
}
