:root {
  --pm-brand-glow: #18a3a0;
  --pm-sun-light: #ffdc66;
  --pm-sun-ink: #8a6500;
  --pm-indigo: #2c3d8f;
  --pm-indigo-tint: #eceff8;
  --pm-on-dark-dot: rgba(255, 255, 255, .5);
  --pm-home-gap: 44px;
}

@media (max-width: 767px) {
  :root {
    --pm-home-gap: 32px;
  }
}

.pm-home > * {
  margin-top: 0;
  margin-bottom: 0;
}

.pm-home > * + * {
  margin-top: var(--pm-home-gap);
}

.pm-home > .pm-hero {
  padding-top: 20px;
}

.pm-home > .pm-trust {
  margin-top: 16px;
}

.pm-sec-link {
  flex: none;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--pm-brand-dark);
  white-space: nowrap;
}

.pm-sec-link:hover {
  color: var(--pm-brand-dark);
  text-decoration: underline;
}

.pm-hero__grid {
  display: grid;
  grid-template-columns: 2.15fr 1fr;
  gap: 16px;
}

.pm-hero__main {
  min-width: 0;
  border-radius: var(--pm-r-lg);
  overflow: hidden;
  background: linear-gradient(120deg, var(--pm-brand-deep) 0%, var(--pm-brand) 62%, var(--pm-brand-glow) 100%);
  container-type: inline-size;
  aspect-ratio: 840 / 395;
}

/* Owl hides the carousel until its script runs. The first slide shows at once, so the hero paints early and nothing below it moves. */

.pm-hero .owl-carousel:not(.owl-loaded) {
  display: block;
}

.pm-hero .owl-carousel:not(.owl-loaded) > :not(:first-child) {
  display: none;
}

.pm-hero .block-slideshow__body {
  height: auto;
}

.pm-hero .owl-stage {
  display: flex;
}

.pm-hero .owl-item {
  display: flex;
  flex-shrink: 0;
}

/* Every slide takes the size of the promotion banners (840x395 desktop, 690x360 mobile), so no banner is cropped. */

.pm-hero .block-slideshow__slide {
  flex: 1 1 auto;
  width: 100%;
  height: auto;
  aspect-ratio: 840 / 395;
}

.pm-hero .block-slideshow__slide-image {
  background-size: cover;
  background-position: center;
}

.pm-hero__slide {
  position: relative;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(120deg, var(--pm-brand-deep) 0%, var(--pm-brand) 62%, var(--pm-brand-glow) 100%);
  color: var(--pm-white);
}

/* style.css sets color: inherit on the hovered slide, which turned the hero text grey. */
.pm-hero .pm-hero__slide:hover {
  color: var(--pm-white);
}

.pm-hero__copy {
  position: relative;
  z-index: 2;
  padding: 2cqw 0 5cqw 6cqw;
}

.pm-hero__eyebrow {
  display: inline-block;
  padding: 6px 12px;
  border-radius: var(--pm-pill);
  background: var(--pm-sun);
  color: var(--pm-ink);
  font-size: clamp(10.5px, 1.4cqw, 12.5px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.pm-hero__title {
  margin: 1.8cqw 0 1.4cqw;
  color: var(--pm-white);
  font-size: 4.5cqw;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -.02em;
}

.pm-hero__text {
  max-width: 30em;
  margin: 0 0 2.6cqw;
  font-size: clamp(13.5px, 1.85cqw, 17px);
  opacity: .94;
}

.pm-hero__btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.pm-hero__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: clamp(38px, 5.2cqw, 48px);
  padding: 0 clamp(18px, 2.8cqw, 26px);
  border-radius: var(--pm-pill);
  font-size: clamp(13.5px, 1.65cqw, 15px);
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--pm-dur) var(--pm-ease), box-shadow var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}

.pm-hero__btn:hover {
  text-decoration: none;
}

.pm-hero__btn--sun,
.pm-hero__btn--sun:hover {
  background: var(--pm-sun);
  color: var(--pm-ink);
}

.pm-hero__btn--sun:hover {
  background: var(--pm-sun-light);
  box-shadow: var(--pm-sh-2);
  transform: translateY(-1px);
}

.pm-hero__btn--ghost,
.pm-hero__btn--ghost:hover {
  color: var(--pm-white);
  box-shadow: inset 0 0 0 2px var(--pm-white);
}

.pm-hero__btn--ghost:hover {
  background: var(--pm-on-dark-hover);
}

.pm-hero__art {
  position: relative;
  align-self: stretch;
}

.pm-hero__art::before {
  content: "";
  position: absolute;
  inset: 8% -12% 8% 4%;
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: var(--pm-on-dark-hover);
}

.pm-hero__shot {
  position: absolute;
  aspect-ratio: 1;
  padding: 10px;
  overflow: hidden;
  border-radius: var(--pm-r-lg);
  background: var(--pm-white);
  box-shadow: var(--pm-sh-3);
}

.pm-hero__shot img,
.owl-carousel .owl-item .pm-hero__shot img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.pm-hero__shot--1 {
  top: 14%;
  left: 6%;
  width: 54%;
  transform: rotate(-5deg);
}

.pm-hero__shot--2 {
  top: 6%;
  right: 4%;
  width: 44%;
  transform: rotate(6deg);
}

.pm-hero__shot--3 {
  right: 8%;
  bottom: 6%;
  width: 46%;
  transform: rotate(-2deg);
}

[dir=ltr] .pm-hero.block-slideshow .owl-carousel .owl-dots {
  left: 6cqw;
  bottom: 2.2cqw;
  transform: none;
}

.pm-hero.block-slideshow .owl-carousel .owl-dots {
  align-items: center;
  padding: 0 4px;
  border-radius: var(--pm-pill);
  background: var(--pm-backdrop);
}

.pm-hero.block-slideshow .owl-carousel .owl-dot,
.pm-hero.block-slideshow .owl-carousel .owl-dot.active,
.pm-hero.block-slideshow .owl-carousel .owl-dot:hover {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  margin: 0;
  border-radius: 0;
  background: none;
}

.pm-hero.block-slideshow .owl-carousel .owl-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: var(--pm-pill);
  background: var(--pm-on-dark-dot);
  transition: width var(--pm-dur) var(--pm-ease), background-color var(--pm-dur) var(--pm-ease);
}

.pm-hero.block-slideshow .owl-carousel .owl-dot.active::before,
.pm-hero.block-slideshow .owl-carousel .owl-dot:hover::before {
  background: var(--pm-white);
}

.pm-hero.block-slideshow .owl-carousel .owl-dot.active::before {
  width: 20px;
}

.pm-hero__side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 16px;
}

.pm-tile {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 0;
  padding: 26px 24px;
  overflow: hidden;
  border-radius: var(--pm-r-lg);
  color: var(--pm-text);
  transition: box-shadow var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}

.pm-tile:hover {
  color: var(--pm-text);
  text-decoration: none;
  box-shadow: var(--pm-sh-2);
  transform: translateY(-3px);
}

.pm-tile--sale {
  background: var(--pm-sale-tint);
}

.pm-tile--sun {
  background: var(--pm-sun-tint);
}

.pm-tile__kicker {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .06em;
}

.pm-tile--sale .pm-tile__kicker {
  color: var(--pm-sale);
}

.pm-tile--sun .pm-tile__kicker {
  color: var(--pm-sun-ink);
}

.pm-tile__title {
  position: relative;
  z-index: 1;
  max-width: 58%;
  margin: 8px 0 14px;
  color: var(--pm-ink);
  font-size: 22px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}

.pm-tile__title--clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
  font-size: 19px;
}

.pm-tile__go {
  position: relative;
  z-index: 1;
  align-self: flex-start;
  color: var(--pm-ink);
  font-size: 14px;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.pm-tile__img {
  position: absolute;
  right: -12px;
  bottom: -12px;
  width: 38%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--pm-r);
  background: var(--pm-white);
  box-shadow: var(--pm-sh-2);
  transform: rotate(-8deg);
}

.pm-trust__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 0;
  list-style: none;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
}

.pm-trust__item + .pm-trust__item {
  border-left: 1px solid var(--pm-line);
}

.pm-trust__link {
  display: flex;
  align-items: center;
  gap: 14px;
  height: 100%;
  padding: 18px 22px;
  color: var(--pm-text);
}

.pm-trust__link:hover {
  color: var(--pm-text);
  text-decoration: none;
}

.pm-trust__link:hover strong {
  color: var(--pm-brand-dark);
}

.pm-trust__icon {
  flex: none;
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--pm-brand);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pm-trust__link strong {
  display: block;
  color: var(--pm-ink);
  font-size: 14.5px;
  line-height: 1.35;
  transition: color var(--pm-dur) var(--pm-ease);
}

.pm-trust__link small {
  display: block;
  color: var(--pm-muted);
  font-size: 13px;
  line-height: 1.35;
}

.pm-cats__list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 32px;
}

.pm-cats__item {
  display: block;
  color: var(--pm-ink);
  font-size: 14.5px;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
}

.pm-cats__item:hover {
  color: var(--pm-brand-dark);
  text-decoration: none;
}

.pm-cats__image {
  display: block;
  aspect-ratio: 1;
  margin-bottom: 12px;
  overflow: hidden;
  border: 3px solid transparent;
  border-radius: 50%;
  background: var(--pm-soft);
  transition: border-color var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}

.pm-cats__item:hover .pm-cats__image {
  border-color: var(--pm-brand);
  transform: scale(1.04);
}

.pm-cats__image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pm-deals__list {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.pm-deal {
  position: relative;
  display: block;
  min-height: 168px;
  padding: 22px;
  overflow: hidden;
  border-radius: var(--pm-r-lg);
  color: var(--pm-ink);
  transition: box-shadow var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}

.pm-deal:hover {
  color: var(--pm-ink);
  text-decoration: none;
  box-shadow: var(--pm-sh-2);
  transform: translateY(-3px);
}

.pm-deal__off {
  display: block;
  font-size: 30px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -.02em;
}

.pm-deal__name {
  position: relative;
  z-index: 1;
  display: -webkit-box;
  max-width: 60%;
  margin-top: 10px;
  overflow: hidden;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.pm-deal__img {
  position: absolute;
  right: -10px;
  bottom: -10px;
  width: 42%;
  aspect-ratio: 1;
  object-fit: contain;
  border-radius: var(--pm-r);
  background: var(--pm-white);
  box-shadow: var(--pm-sh-1);
  transform: rotate(7deg);
}

.pm-deal--1 {
  background: var(--pm-brand-tint);
}

.pm-deal--1 .pm-deal__off {
  color: var(--pm-brand-dark);
}

.pm-deal--2 {
  background: var(--pm-sale-tint);
}

.pm-deal--2 .pm-deal__off {
  color: var(--pm-sale);
}

.pm-deal--3 {
  background: var(--pm-sun-tint);
}

.pm-deal--3 .pm-deal__off {
  color: var(--pm-sun-ink);
}

.pm-deal--4 {
  background: var(--pm-indigo-tint);
}

.pm-deal--4 .pm-deal__off {
  color: var(--pm-indigo);
}

.block-products-carousel .block-header__groups-list {
  align-items: center;
}

.block-products-carousel .pm-groups-hidden {
  display: none;
}

.block-products-carousel .pm-groups-link {
  order: 99;
}

[dir=ltr] .block-products-carousel .pm-groups-link {
  margin-left: 8px;
}

.pm-band {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 24px;
  padding: 30px 40px;
  overflow: hidden;
  border-radius: var(--pm-r-lg);
  background: var(--pm-ink);
  color: var(--pm-white);
}

.pm-band::after {
  content: "";
  position: absolute;
  top: -80px;
  right: -60px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: var(--pm-brand);
  opacity: .35;
}

.pm-band__copy {
  position: relative;
  z-index: 1;
}

.pm-band__title {
  margin: 0 0 6px;
  color: var(--pm-white);
  font-size: 26px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: -.01em;
}

.pm-band__text {
  margin: 0;
  opacity: .85;
}

.pm-band__btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 26px;
  border-radius: var(--pm-pill);
  background: var(--pm-sun);
  color: var(--pm-ink);
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
  transition: background-color var(--pm-dur) var(--pm-ease), box-shadow var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}

.pm-band__btn:hover {
  background: var(--pm-sun-light);
  color: var(--pm-ink);
  text-decoration: none;
  box-shadow: var(--pm-sh-2);
  transform: translateY(-1px);
}

.pm-band__img {
  position: relative;
  z-index: 1;
  align-self: stretch;
  width: 240px;
  height: auto;
  margin: -30px -40px -30px 0;
  object-fit: cover;
}

.block-brands__slider {
  border: 0;
  border-radius: 0;
}

.block-brands__slider .block-brands__item {
  padding: 0;
}

.block-brands__slider .owl-item {
  padding: 0 6px;
}

.block-brands__item a {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 84px;
  padding: 14px;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r);
  background: var(--pm-white);
  transition: border-color var(--pm-dur) var(--pm-ease), box-shadow var(--pm-dur) var(--pm-ease);
}

.block-brands__item a:hover {
  border-color: var(--pm-brand);
  box-shadow: var(--pm-sh-1);
}

.block-brands__slider .owl-item img {
  width: auto;
  max-width: 100%;
  max-height: 44px;
  object-fit: contain;
}

.block-posts .owl-stage-outer {
  padding: 16px 0 32px;
  margin: -16px 0 -32px;
}

.block-posts .owl-stage {
  display: flex;
}

.block-posts .owl-item {
  display: flex;
  flex-shrink: 0;
}

.block-posts .post-card {
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--pm-line);
  border-radius: var(--pm-r-lg);
  background: var(--pm-white);
  transition: box-shadow var(--pm-dur) var(--pm-ease), transform var(--pm-dur) var(--pm-ease);
}

.block-posts .post-card:hover {
  box-shadow: var(--pm-sh-2);
  transform: translateY(-2px);
}

.block-posts[data-layout][data-mobile-columns] .post-card .post-card__image {
  margin-bottom: 0;
  border-radius: 0;
}

.block-posts .post-card__image img {
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.block-posts[data-layout][data-mobile-columns] .post-card .post-card__info {
  display: block;
  padding: 14px 16px 18px;
}

.block-posts[data-layout][data-mobile-columns] .post-card .post-card__category {
  display: block;
  color: var(--pm-brand-dark);
  font-size: 11.5px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.block-posts[data-layout][data-mobile-columns] .post-card .post-card__name {
  margin-top: 6px;
  color: var(--pm-ink);
  font-size: 15.5px;
  line-height: 1.4;
  font-weight: 600;
}

.block-posts .post-card__name a:hover {
  color: var(--pm-brand-dark);
  text-decoration: underline;
}

.block-posts[data-layout][data-mobile-columns] .post-card .post-card__read-more {
  display: none;
}

/* main.js sets stagePadding, so the carousels bleed by that amount and clip the peeking neighbour cards. */

@media (min-width: 768px) {
  .block-brands__slider {
    margin: 0 -30px;
    clip-path: inset(-8px 24px);
  }

  .block-posts__slider {
    margin: 0 -30px;
    clip-path: inset(-24px 12px -48px);
  }
}

@media (max-width: 1199px) {
  .pm-hero__grid {
    grid-template-columns: 1fr;
  }

  .pm-hero__side {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: none;
  }

  .pm-tile {
    min-height: 190px;
  }
}

@media (max-width: 991px) {
  .pm-hero__text {
    display: none;
  }

  .pm-hero__title {
    margin-bottom: 2.6cqw;
  }

  .pm-cats__list {
    gap: 16px;
  }

  .pm-trust__list {
    grid-template-columns: 1fr 1fr;
  }

  .pm-trust__item:nth-child(n + 3) {
    border-top: 1px solid var(--pm-line);
  }

  .pm-trust__item:nth-child(3) {
    border-left: 0;
  }

  .pm-deals__list {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 767px) {
  .pm-home > .pm-hero {
    padding-top: 12px;
  }

  .pm-home > .pm-trust {
    margin-top: 12px;
  }

  .pm-sec-link {
    font-size: 14px;
  }

  .pm-hero__side {
    gap: 12px;
  }

  .pm-hero__main,
  .pm-hero .block-slideshow__slide {
    aspect-ratio: 690 / 360;
  }

  .pm-hero .block-slideshow__slide-image--desktop {
    display: none;
  }

  .pm-hero__slide {
    grid-template-columns: 1.3fr 1fr;
  }

  .pm-hero__copy {
    padding: 0 0 0 4.6cqw;
  }

  .pm-hero__eyebrow,
  .pm-hero__btn--ghost {
    display: none;
  }

  .pm-hero__title {
    margin: 0 0 3.6cqw;
    font-size: clamp(19px, 6cqw, 34px);
  }

  .pm-hero__btn {
    height: clamp(34px, 10cqw, 44px);
    padding: 0 clamp(16px, 5cqw, 24px);
    font-size: clamp(13px, 3.7cqw, 15px);
  }

  .pm-hero__shot {
    padding: 5px;
    border-radius: var(--pm-r);
  }

  [dir=ltr] .pm-hero.block-slideshow .owl-carousel .owl-dots {
    left: auto;
    right: 10px;
    bottom: 8px;
  }

  .pm-tile {
    justify-content: flex-start;
    min-height: 0;
    padding: 14px;
  }

  .pm-tile__kicker {
    font-size: 12px;
  }

  .pm-tile__title {
    max-width: none;
    margin: 6px 0 10px;
    font-size: 15px;
    line-height: 1.25;
  }

  .pm-tile__title--clamp {
    -webkit-line-clamp: 2;
  }

  .pm-tile__go {
    font-size: 13px;
  }

  .pm-tile__img {
    width: 38%;
  }

  .pm-trust__link {
    gap: 10px;
    padding: 14px;
  }

  .pm-trust__icon {
    width: 26px;
    height: 26px;
  }

  .pm-trust__link strong {
    font-size: 13.5px;
  }

  .pm-trust__link small {
    font-size: 12px;
  }

  .pm-cats__list {
    display: flex;
    gap: 14px;
    margin: 0 -15px;
    padding: 0 15px 4px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .pm-cats__list::-webkit-scrollbar {
    display: none;
  }

  .pm-cats__item {
    flex: 0 0 92px;
    font-size: 13px;
  }

  .pm-deals__list {
    gap: 12px;
  }

  .pm-deal {
    min-height: 150px;
    padding: 16px;
  }

  .pm-deal__off {
    font-size: 24px;
  }

  .pm-deal__name {
    font-size: 14px;
  }

  .block-products-carousel .block-header__arrows-list,
  .block-posts .block-header__arrows-list {
    display: none;
  }

  [dir=ltr] .block-products-carousel .block-header__divider + .block-header__groups-list {
    order: 0;
    margin: 0 0 0 auto;
    padding: 0;
  }

  [dir=ltr] .block-products-carousel.pm-row--tabs .block-header__divider + .block-header__groups-list {
    order: 100;
    width: 100%;
    margin: 0;
    padding: 0 0 4px;
    scrollbar-width: none;
  }

  .block-products-carousel.pm-row--tabs .block-header__groups-list::-webkit-scrollbar {
    display: none;
  }

  .pm-band {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 24px 22px;
  }

  .pm-band__title {
    font-size: 21px;
  }

  .pm-band__btn {
    justify-self: start;
    height: 44px;
    padding: 0 22px;
    font-size: 14.5px;
  }

  .pm-band__img {
    display: none;
  }

  .block-brands__slider {
    margin: 0 -15px;
  }

  .block-brands__item a {
    height: 60px;
    padding: 8px;
  }

  .block-posts__slider {
    margin: 0 -15px;
  }

  .block-posts[data-layout][data-mobile-columns] .post-card .post-card__info {
    padding: 10px 12px 14px;
  }

  .block-posts[data-layout][data-mobile-columns] .post-card .post-card__name {
    font-size: 14px;
  }
}

/* style.css sets this slider to margin 0 -16px against the 15px container gutter, which made the page 1px wider than the viewport. */

@media (prefers-reduced-motion: reduce) {
  .pm-hero__btn:hover,
  .pm-tile:hover,
  .pm-cats__item:hover .pm-cats__image,
  .pm-deal:hover,
  .pm-band__btn:hover,
  .block-posts .post-card:hover {
    transform: none;
  }
}
