/* =========================
   Main
========================= */

.al3-main {
  background: #050607;
}

/* =========================
   Hero
========================= */

.al3-hero__banner {
  position: relative;
  min-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  background-color: #181818;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: flex-end;
}

.al3-hero__banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(0,0,0,.58) 0%,
    rgba(0,0,0,.26) 58%,
    rgba(0,0,0,.08) 100%
  );
}

.al3-hero__content {
  position: relative;
  z-index: 1;
  padding: 0 68px 68px;
}

.al3-hero__title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: -0.0293em;
  color: #fff;
}

.al3-hero__title span {
  display: block;
}

.al3-hero__text {
  margin-top: 45px;
  font-size: 16px;
  font-weight: 500;
  line-height: 21px;
  color: #fff;
}

/* =========================
   Home Products
========================= */

.al3-home-products__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  align-items: stretch;
}

.al3-home-products__intro {
  min-width: 0;
  align-self: center;
}

.al3-home-products {
  padding-top: 90px;
}

.al3-home-products__title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
}

.al3-home-products__text {
  margin-top: 50px;
  max-width: 320px;
  font-size: 16px;
  line-height: 1.6;
  color: #FFFFFF;
}

/* =========================
   Product Card
========================= */

.hp-card {
  position: relative;
  min-width: 0;
  height: 100%;
  padding: 85px 30px 59px;
  border-radius: 8px;
  background: #0C0E0F;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .06);

  display: flex;
  flex-direction: column;
}

/* Badge */

.hp-card__badge {
  position: absolute;
  top: 24px;
  left: 30px;

  min-height: 37px;
  padding: 0 14px;
  border-radius: 8px;

  background: #3AAA35;
  color: #fff;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.hp-card__badge--powersports,
.hp-card__badge--for-powersports {
  background: #3AAA35;
}

.hp-card__badge--automotive,
.hp-card__badge--for-automotive {
  background: #F39200;
}

/* Image */

.hp-card__image-link {
  display: block;
  text-decoration: none;
}

.hp-card__img {
  height: 150px;
  margin-bottom: 14px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.hp-card__img img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;

  object-fit: contain;
  object-position: center;
}

/* Title */

.hp-card__title {
  margin: 38px 0 0;

  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.hp-card__title a {
  color: inherit;
  text-decoration: none;
}

.hp-card__title a:hover {
  color: #DF141B;
}

/* Price */

.hp-card__price {
  margin-top: 8px;
  margin-bottom: 18px;
  padding-bottom: 18px;

  border-bottom: 1px solid #1B1B1B;

  color: #DF141B;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
}

.hp-card__price del {
  color: rgba(255, 255, 255, .45);
  font-weight: 500;
}

.hp-card__price ins {
  text-decoration: none;
}

/* Text */

.hp-card__text {
  color: rgba(255, 255, 255, .9);
  font-size: 16px;
  line-height: 1.6;
}

.hp-card__text p {
  margin: 0;
}

/* Bottom buttons */

.hp-card__bottom {
  margin-top: auto;
  padding-top: 27px;

  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: center;
}

.hp-card__btn {
  width: 100%;
  height: 50px;
  padding: 0 18px;

  border: 0;
  border-radius: 8px;

  background: #fff;
  color: #181818;

  text-decoration: none;
  cursor: pointer;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  font-size: 14px;
  font-weight: 700;
  line-height: 14px;
  letter-spacing: 0.0156em;
  text-transform: uppercase;
  white-space: nowrap;

  transition: opacity .2s ease, transform .15s ease, background .2s ease, color .2s ease;
}

.hp-card__btn:hover {
  opacity: .92;
  transform: translateY(-1px);
}

.hp-card__btn--red {
  background: #DF141B;
  color: #fff;
}

.hp-card__btn.loading {
  opacity: .65;
  pointer-events: none;
}

/* Add to cart after successful AJAX */

.hp-card__btn.added,
.hp-card__btn.ajax_add_to_cart.added {
  background: #3AAA35;
  color: #fff;
}

/* Hide WooCommerce extra View Cart link */

.hp-card .added_to_cart,
.hp-card a.added_to_cart,
.hp-card .wc-forward {
  display: none !important;
}

/* Optional focus */

.hp-card__btn:focus {
  outline: none;
}

.hp-card__btn:focus-visible {
  box-shadow: 0 0 0 3px rgba(58, 170, 53, .35);
}

/* =========================
   Home App
========================= */

.al3-home-app {
  padding-top: 90px;
}

.al3-home-app__banner {
  position: relative;
  min-height: 260px;
  border-radius: 22px;
  overflow: hidden;
  background-color: #181818;
  background-image: url("../images/app-background.webp");
  background-size: cover;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
}

.al3-home-app__banner::before {
  content: "";
  position: absolute;
}

.al3-home-app__content {
  position: relative;
  z-index: 1;
  padding: 80px 0 80px 80px;
  max-width: 820px;
}

.al3-home-app__title {
  margin: 0;
  font-size: 36px;
  font-weight: 700;
  line-height: 46px;
  letter-spacing: -0.0293em;
  color: #fff;
}

.al3-home-app__text {
  margin-top: 12px;
  font-size: 16px;
  font-weight: 600;
  line-height: 21px;
  color: rgba(255,255,255,.92);
}

.al3-home-app__stores {
  margin-top: 24px;
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.al3-home-app__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border-radius: 12px;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0,0,0,.18);
  transition: transform .15s ease, opacity .2s ease;
}

.al3-home-app__badge:hover {
  transform: translateY(-1px);
}

.al3-home-app__badge img {
  display: block;
  height: 56px;
  width: auto;
  max-width: 100%;
}

/* =========================
   Responsive Home
========================= */

@media (max-width: 992px) {
  .al3-hero {
    padding-top: 16px;
  }
  
  .al3-home-products__grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.al3-home-products__intro {
  align-self: start;
}

  .al3-hero__banner {
    min-height: 420px;
  }

  .al3-hero__content {
    padding: 0 36px 44px;
  }

  .al3-home-products {
    padding-top: 60px;
  }

  .al3-home-products__text {
    margin-top: 18px;
    max-width: 520px;
  }

  .al3-home-app {
    padding-top: 60px;
  }

  .al3-home-app__content {
    padding: 48px 36px;
  }
}

@media (max-width: 768px) {
  .al3-hero__banner {
    min-height: 360px;
    border-radius: 16px;
  }

  .al3-hero__content {
    padding: 0 20px 28px;
  }

  .al3-hero__title {
    font-size: 28px;
    line-height: 36px;
  }

  .al3-hero__text {
    margin-top: 18px;
    font-size: 15px;
    line-height: 20px;
  }

  .al3-home-products__title,
  .al3-home-app__title {
    font-size: 28px;
    line-height: 36px;
  }
  
  .al3-home-products__grid {
  grid-template-columns: 1fr;
}

  .hp-card {
    padding: 76px 22px 32px;
  }

  .hp-card__badge {
    left: 22px;
  }

  .hp-card__title {
    font-size: 22px;
  }

  .hp-card__bottom {
    gap: 12px;
  }

  .hp-card__btn {
    height: 46px;
    padding: 0 12px;
    font-size: 12px;
  }

  .hp-card__btn,
  .hp-card .added_to_cart {
    height: 46px;
    padding: 0 12px;
    font-size: 12px;
  }

  .al3-home-app__banner {
    min-height: 240px;
    border-radius: 16px;
  }

  .al3-home-app__content {
    padding: 32px 20px;
  }

  .al3-home-app__badge img {
    height: 38px;
  }
}

@media (max-width: 420px) {
  .hp-card__bottom {
    grid-template-columns: 1fr;
  }

  .hp-card__btn,
  .hp-card .added_to_cart {
    width: 100%;
  }
}
