/* ===========================================================================
 * Loreal landing page styles (#69)
 * Migrated from css/global.css.
 * Includes: .page--loreal, .loreal-*, .bestseller-card* and related media-rules.
 * =========================================================================== */

#category-loreal,
#loreal-issues,
#loreal-bestsellers,
#all-products,
#loreal-action {
  scroll-margin-top: 6.875rem;
}

.page--loreal {
  padding-bottom: 0;
}

.loreal-title {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 2.5rem;
  color: var(--grey-scale-700);
  font-size: 2.5rem;
  font-weight: 400;
  line-height: 120%;
  text-transform: uppercase;
}

.loreal-title::before, .loreal-title::after {
  content: "";
  display: block;
  flex: 1 1 auto;
  height: 0.0625rem;
  background: var(--grey-scale-200);
}

.loreal-title:not(:last-child) {
  margin-bottom: 2rem;
}

.loreal-banner {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
}

.loreal-banner .loreal-banner__container {
  max-width: 100rem;
  padding: 0;
}

.loreal-banner picture,
.loreal-banner img {
  width: 100%;
  height: auto;
}

.loreal-nav {
  padding-top: 2rem;
  padding-bottom: 2rem;
  background: var(--white);
}

.loreal-nav__list {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  overflow: auto;
  -ms-overflow-style: none; /* IE and Edge */
  scrollbar-width: none; /* Firefox */
}

.loreal-nav__list::-webkit-scrollbar {
  display: none;
}

.loreal-nav__item {
  flex-shrink: 0;
}

.loreal-nav__link {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 3rem;
  padding: 0.4375rem 2rem;
  gap: 0.625rem;
  color: var(--grey-scale-700);
  font-size: 1.25rem;
  font-weight: 400;
  line-height: 1.7;
  text-transform: uppercase;
  border-radius: 0.375rem;
  background: #f8f9fa;
  transition: all 0.3s ease;
}

.loreal-category {
  position: relative;
  overflow: hidden;
}

.loreal-category__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.loreal-category__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.75rem;
}

.loreal-category__link {
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
  color: var(--grey-scale-700);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: normal;
  transition: color 0.3s ease;
}

.loreal-category__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

.loreal-category__img img {
  width: 100%;
  aspect-ratio: 318/180;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.loreal-issues {
  position: relative;
  overflow: hidden;
  background: var(--white);
}

.loreal-issues__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.loreal-issues__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  row-gap: 0.75rem;
}

.loreal-issues__img {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  overflow: hidden;
  border-radius: 0.75rem;
}

.loreal-issues__img img {
  width: 100%;
  aspect-ratio: 318/180;
  height: auto;
  border-radius: 0.75rem;
  object-fit: cover;
  transition: transform 0.3s ease-in-out;
}

.loreal-issues__link {
  display: flex;
  justify-content: center;
  padding: 0 0.75rem;
  color: var(--grey-scale-700);
  text-align: center;
  font-size: 1.5rem;
  font-weight: 400;
  line-height: normal;
  transition: color 0.3s ease;
}

.loreal-brands {
  padding-bottom: 3rem;
  background: var(--white);
}

.loreal-brands__slider {
  position: relative;
}

.loreal-brands__link {
  padding: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
}

.loreal-brands__link img {
  flex-shrink: 0;
  width: 100%;
  height: auto;
  transition: filter 0.3s ease;
}

.loreal-bestsellers__slider {
  position: relative;
  overflow: visible;
}

.loreal-bestsellers__slider:not(:last-child) {
  margin-bottom: 2rem;
}

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

.bestseller-card {
  display: flex;
  flex-direction: column;
}

.bestseller-card__visual {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 0.75rem 0.75rem 0 0;
}

.bestseller-card__visual img {
  width: 100%;
  height: auto;
  border-radius: 0.75rem 0.75rem 0 0;
  aspect-ratio: 1;
  transition: transform 0.3s ease-in-out;
}

.bestseller-card__body {
  position: relative;
  border-radius: 0 0 1.5rem 1.5rem;
  background: var(--white);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  row-gap: 0.25rem;
  flex-grow: 1;
}

.bestseller-card__brand {
  color: var(--grey-scale-500);
  font-size: 1rem;
  font-weight: 400;
  line-height: 125%;
  text-transform: uppercase;
}

.bestseller-card__title {
  color: var(--grey-scale-700);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 120%;
}

.bestseller-card__title a {
  transition: color 0.3s ease;
}

.bestseller-card__category {
  padding-right: 1.25rem;
  color: var(--grey-scale-500);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 128%;
}

.bestseller-card__link-btn {
  position: absolute;
  z-index: 2;
  right: 0.5rem;
  bottom: 0.5rem;
  display: flex;
  width: 2rem;
  height: 2rem;
  padding: 0.25rem;
  justify-content: center;
  align-items: center;
  border-radius: 4.375rem;
  background: #ebf6ff;
  color: var(--main-700);
  font-weight: 700;
  font-size: 1.25rem;
  transition: all 0.3s ease;
}

.bestseller-card__link-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 0.8125rem;
  height: 0.8125rem;
  background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="13" height="13" viewBox="0 0 13 13" fill="none"><path fill-rule="evenodd" clip-rule="evenodd" d="M10.707 3.4141V10.9999H12.707V-9.65174e-05H1.70703V1.9999H9.29282L-6.79071e-05 11.2928L1.41413 12.707L10.707 3.4141Z" fill="%23075BA2"/></svg>') center no-repeat;
}

@media (max-width: 85.37375em) {
  .loreal-category__list {
    grid-template-columns: repeat(3, 1fr);
  }
  .loreal-issues__list {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 61.99875em) {
  #category-loreal, #loreal-issues, #loreal-bestsellers, #loreal-action {
    scroll-margin-top: 5rem;
  }
  .loreal-title {
    font-size: 2rem;
    gap: 1.5rem;
  }
  .loreal-title:not(:last-child) {
    margin-bottom: 1.25rem;
  }
  .loreal-category__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .loreal-issues__list {
    grid-template-columns: repeat(2, 1fr);
  }
  .loreal-brands {
    padding-bottom: 1.5rem;
  }
}

@media (max-width: 47.99875em) {
  .loreal-title {
    font-size: 1.25rem;
    gap: 0.625rem;
  }
  .loreal-nav {
    padding-top: 1.5rem;
    padding-bottom: 0;
  }
  .loreal-nav__body {
    margin: 0 -1rem;
  }
  .loreal-nav__list {
    padding: 0 1rem;
    justify-content: flex-start;
    width: 100%;
    scroll-snap-type: x mandatory;
  }
  .loreal-nav__item {
    scroll-snap-align: center;
  }
  .loreal-nav__link {
    font-size: 1rem;
    padding: 0.375rem 1.25rem;
    min-height: 2.5rem;
  }
  .loreal-category__list {
    grid-template-columns: repeat(1, 1fr);
  }
  .loreal-category__link {
    font-size: 1.125rem;
  }
  .loreal-issues__list {
    grid-template-columns: repeat(1, 1fr);
  }
  .loreal-issues__link {
    font-size: 1.125rem;
  }
  .loreal-brands__link {
    padding: 1rem;
  }
  .loreal-bestsellers__slider:not(:last-child) {
    margin-bottom: 1.5rem;
  }
  .bestseller-card__body {
    padding: 0.75rem;
    border-radius: 0 0 1.25rem 1.25rem;
  }
  .bestseller-card__brand {
    font-size: 0.875rem;
  }
  .bestseller-card__title {
    font-size: 1rem;
  }
}

@media (any-hover: hover) {
  .loreal-nav__link:hover {
    color: var(--white);
    box-shadow: inset 0 3rem 0 0 var(--secondary);
  }
  .loreal-category__link:hover {
    color: var(--secondary);
  }
  .loreal-category__img:hover img {
    transform: scale(1.03);
  }
  .loreal-issues__img:hover img {
    transform: scale(1.03);
  }
  .loreal-issues__link:hover {
    color: var(--secondary);
  }
  .loreal-brands__link:hover img {
    filter: grayscale(100%);
  }
  .bestseller-card__visual:hover img {
    transform: scale(1.03);
  }
  .bestseller-card__title a:hover {
    color: var(--main-700);
  }
  .bestseller-card__link-btn:hover {
    transform: rotate(45deg);
    background: var(--main-200);
  }
}
