/**
 * @file
 * Breakpoints
 *
 * With these breakpoints we will define how the page layout works.
 * For reference, below are the grid default breakpoints and max-widths defined by Bootstrap 4.
 * https://getbootstrap.com/docs/4.4/layout/grid/#grid-tiers
 *
 * $grid-breakpoints: (
 *   xs: 0,
 *   sm: 576px,
 *   md: 768px,
 *   lg: 992px,
 *   xl: 1200px
 * );
 *
 * $container-max-widths: (
 *   sm: 540px,
 *   md: 720px,
 *   lg: 960px,
 *   xl: 1140px
 * );
 *
 */

/*
 * Usage:
 * @include breakpoint(md){
 *   background: blue;
 * }
 */

/*
example for $data argument
each breakpoint has a pair of corresponding values
$breakpoints-data: (
  breakpoints: (365px + 20px, 767px, 1023px, 1199px, 1440px - 20px, 1440px + 20px, 1600px),
  values: ((190px, 190px), (400px, 190px), (261px, 194px), (230px, 243px), (266px, 266px), (266px, 266px), (300px, 300px))
);
*/

/*
 * Usage:
 * @include breakpoint(md, 700px){
 *   background: blue;
 * }
 */

/**
* @file
* Mixins
*
*/

/*
  example:
  .root-class {
    .element {
      .theme_cat & {
        ...
      }
    }
  }
  will result into
  .theme_cat .root-class .element

  .root-class {
    .element {
      @include insert-into-selector-as-last-but-one(".theme_cat") {
        ...
      }
    }
  }
  will result into
  .root-class .theme_cat .element
*/

/*
  example:
  repeat-last-part-of-selector(".root-class .element", 3);
  returns
  ".root-class .element.element.element"
*/

/*
A simple little SCSS mixin for creating scrim gradients
Inspired by Andreas Larson - https://github.com/larsenwork
https://css-tricks.com/easing-linear-gradients/
https://toward.studio/latest/making-css-gradients-smooth
*/

/*
a W3C Specs compliant way to override legacy CSS while explicitly highlighting the pieces of CSS code where refactoring is needed

example of usage:

.page {
  .container {
    &__item {
      @include increase-specificity-by-repeating(3) {
        ...
      }
    }
  }
}

will be built into

.page .container__item.container__item.container__item {
  ...
}

this method of increasing specificity is allowed by CSS Specifications
quote from https://www.w3.org/TR/selectors-3/#specificity:
> Note: Repeated occurrences of the same simple selector are allowed and do increase specificity.
*/

.cat-chow-product-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cat-chow-product-slider .swiper-slide.slider-item {
  width: var(--cat-chow-slide-width, 250px);
  box-sizing: border-box;
}

.cat-chow-product-slider .slider-item {
  display: flex;
  flex-direction: column;
  height: auto;
  padding: 15px;
  border-radius: 16px;
  background-color: #F5F5F5;
}

.cat-chow-product-slider .slider-item .brand-products__button {
  display: inline-block;
  align-self: flex-start;
  border-radius: 16px;
}

.cat-chow-product-slider .slider-item .brand-products__button a {
  color: white;
}

.cat-chow-product-slider .slider-item .actions:empty {
  display: none;
}

.cat-chow-product-slider .component--product-tile {
  display: flex;
  width: 100%;
  flex-direction: column;
  gap: 15px;
  border: none;
}

.cat-chow-product-slider .product-tile_image {
  display: grid;
  width: 100%;
  min-height: 200px;
  border-radius: 16px;
  padding: 0;
  background-color: #fff;
}

.cat-chow-product-slider .component--product-tile .field--name-field-product-image {
  padding: 0;
  border: none;
  border-radius: 10px;
}

.cat-chow-product-slider .component--product-tile .field--name-field-product-image img {
  padding-block: 15px;
}

.cat-chow-product-slider .component--product-tile h2 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  padding: 0;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.3;
}

.cat-chow-product-slider .swiper-pagination {
  position: static;
  margin-top: 30px;
}

.cat-chow-product-slider .swiper-pagination-bullet {
  width: 9px;
  height: 9px;
  background-color: #E3000B;
  opacity: 0.4;
}

.cat-chow-product-slider .swiper-pagination-bullet-active {
  opacity: 1;
}

.cat-chow-product-slider .swiper-navigation {
  display: none;
}

.cat-chow-product-slider .swiper-button-next,
.cat-chow-product-slider .swiper-button-prev {
  position: relative;
  left: unset;
  right: unset;
  width: 67px;
  height: 60px;
  border-radius: 15px;
  background-color: #F5F5F5;
  cursor: pointer;
}

.cat-chow-product-slider .swiper-button-next:before,
.cat-chow-product-slider .swiper-button-prev:before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  width: 11px;
  height: 18px;
  -webkit-mask-image: url("data:image/svg+xml,%0A%3Csvg width='11' height='18' viewBox='0 0 11 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_36_588)'%3E%3Cpath d='M9 2L2 9L9 16' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_36_588'%3E%3Crect width='11' height='18' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
          mask-image: url("data:image/svg+xml,%0A%3Csvg width='11' height='18' viewBox='0 0 11 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cg clip-path='url(%23clip0_36_588)'%3E%3Cpath d='M9 2L2 9L9 16' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/g%3E%3Cdefs%3E%3CclipPath id='clip0_36_588'%3E%3Crect width='11' height='18' fill='white'/%3E%3C/clipPath%3E%3C/defs%3E%3C/svg%3E%0A");
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  background-color: #000;
}

.cat-chow-product-slider .swiper-button-next:after,
.cat-chow-product-slider .swiper-button-prev:after {
  display: none;
}

.cat-chow-product-slider .swiper-button-next {
  -webkit-transform: rotate(180deg);
          transform: rotate(180deg);
  -webkit-transform-origin: center;
          transform-origin: center;
}

@media (min-width: 1140px) {
  .cat-chow-product-slider .slider-item {
    padding: 30px;
    min-height: 490px;
  }

  .cat-chow-product-slider .product-tile_image {
    margin-bottom: 30px;
    min-height: 270px;
  }

  .cat-chow-product-slider .component--product-tile .field--name-field-product-image {
    border-radius: 21px;
  }

  .cat-chow-product-slider .component--product-tile h2 {
    display: -webkit-box;
    overflow: hidden;
    -webkit-line-clamp: 8;
    -webkit-box-orient: vertical;
    font-size: 20px;
  }

  .cat-chow-product-slider .swiper-pagination {
    display: none;
  }

  .cat-chow-product-slider .swiper-navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    margin-top: 72px;
  }
}