/**
 * @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
* Colors
*
* Colors variables for the whole project.
*/

/**
* @file
* Common variables
*
* Common variables for the whole project
*/

/**
* @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.
*/

.component--hero-plp {
  background-color: #f9f9f9;
}

.component--hero-plp .hero-plp--content-container {
  margin-left: 0;
  margin-right: 0;
  max-width: none;
}

.component--hero-plp .hero-plp--content-wrapper {
  align-items: stretch;
}

.component--hero-plp .hero-plp--content-area-wrapper {
  padding: 0;
  order: 2;
}

.component--hero-plp .hero-plp--content-box {
  position: relative;
  margin: -69px 15px 0 15px;
  background-color: #ffffff;
  box-shadow: 0 4px 12px 0 rgba(88, 79, 76, 0.16);
  z-index: 1;
}

.component--hero-plp .purina-border-top {
  width: 100%;
  max-width: 100%;
}

.component--hero-plp .hero-plp--content-area {
  width: 100%;
  max-width: 100%;
  padding: 30px;
  text-align: center;
}

.component--hero-plp .hero-plp--content-area-title,
.component--hero-plp .hero-plp--content-area-intro {
  width: 100%;
  max-width: 100%;
}

.component--hero-plp .hero-plp--image {
  padding: 0;
  order: 1;
}

.component--hero-plp .hero-plp--image .field--name-field-product-lp-hero-image {
  overflow: hidden;
}

.component--hero-plp .hero-plp--image .field--name-field-product-lp-hero-image,
.component--hero-plp .hero-plp--image .field--name-image,
.component--hero-plp .hero-plp--image img {
  width: 100%;
  max-width: 100%;
}

.component--hero-plp .content__brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  height: 49px;
  margin-bottom: 10px;
}

.component--hero-plp .content__brand img {
  height: 100%;
  width: auto;
  max-width: 100%;
}

/**
 * Time to create the template with attributes modified
 * when this component have a brand.
 */

.component--hero-plp.brand--bakers .purina-border-top {
  background-color: #389bc9;
}

.component--hero-plp.brand--felix .purina-border-top {
  background-color: #00238c;
}

.component--hero-plp.brand--purina-pro-plan .purina-border-top {
  background-color: #222222;
}

.component--hero-plp.brand--adventuros .purina-border-top {
  background-color: #3f2021;
}

.component--hero-plp.brand--beta .purina-border-top {
  background-color: #faf6ed;
}

.component--hero-plp.brand--beyond .purina-border-top {
  background-color: #eee9ea;
}

.component--hero-plp.brand--bonio .purina-border-top {
  background-color: #e91c24;
}

.component--hero-plp.brand--dentalife .purina-border-top {
  background-color: #00c0f3;
}

.component--hero-plp.brand--go-cat .purina-border-top {
  background-color: #ffe600;
}

.component--hero-plp.brand--friskies .purina-border-top {
  background-color: #ffe600;
}

.component--hero-plp.brand--purina-one .purina-border-top {
  background-color: #171c8f;
}

.component--hero-plp.brand--proplan-vet-diets .purina-border-top {
  background-color: #222222;
}

.component--hero-plp.brand--winalot .purina-border-top {
  background-color: #0e4231;
}

.component--hero-plp.brand--gourmet .purina-border-top {
  background-color: #84754e;
}

.component--hero-plp.brand--dog-chow .purina-border-top {
  background-color: #234b8d;
}

.component--hero-plp.brand--catchow .purina-border-top {
  background-color: #234b8d;
}

.component--hero-plp.brand--beneful .purina-border-top {
  background-color: #df5300;
}

.component--hero-plp.brand--friskies-dog .purina-border-top {
  background-color: #92b533;
}

@media (min-width: 1140px) {
  .component--hero-plp {
    padding-top: 30px;
    padding-bottom: 30px;
  }

  .component--hero-plp .hero-plp--content-container {
    margin-left: auto;
    margin-right: auto;
    padding: 0;
    max-width: 1110px;
  }

  .component--hero-plp .hero-plp--content-area-wrapper {
    order: 1;
    padding: 0 15px;
  }

  .component--hero-plp .hero-plp--content-box {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    flex-wrap: wrap;
    height: 100%;
    margin: 0;
  }

  .component--hero-plp .hero-plp--content-area {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    flex-wrap: wrap;
    flex-grow: 1;
    text-align: left;
  }

  .component--hero-plp .hero-plp--image {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    order: 2;
  }

  .component--hero-plp .content__brand {
    justify-content: flex-start;
    height: 63px;
  }
}