/* ==========================================================================
   Products Page Styles
   ========================================================================== */

/* --- Page Header --- */
.products-header {
  padding: 80px 0 0;
  margin-bottom: 125px;
}

.products-header-inner {
  max-width: calc(1170px + var(--pc-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--pc-gutter);
}

.products-header-label {
  font-family: var(--font-en);
  font-size: 25px;
  line-height: 37px;
  font-weight: 700;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 20.5px;
}

.products-header-title {
  font-family: var(--font-en);
  font-size: 179px;
  line-height: 0.8;
  font-weight: bold;
  text-transform: uppercase;
  color: #000;
  margin-bottom: 60px;

  img {
    width: 100%;
    height: auto;
    display: block;
  }
}

.products-header-subtitle {
  margin: 0;

  img {
    width: 100%;
  }
}


/* --- Products Grid --- */
.products-list-section {
  padding: 0 0 60px;
}

.products-list-inner {
  max-width: calc(1170px + var(--pc-gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--pc-gutter);
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 85px 40px;
}


/* --- Product Item --- */
.products-item {
  display: flex;
  flex-direction: column;
  gap: 27px;
  position: relative;
  padding-left: 32px;
}

.products-item-link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.products-item-name {
  font-family: var(--font-en);
  font-size: 54px;
  font-weight: bold;
  line-height: 64px;
  text-transform: uppercase;
  color: #000;
  position: absolute;
  top: -20px;
  left: 0;
  writing-mode: vertical-rl;
  transform: rotate(0deg);
  white-space: nowrap;
  z-index: 1;
}

.products-item-image {
  position: relative;
  aspect-ratio: 1 / 1;
  background-color: #f0f0f0;
  overflow: hidden;

  & img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
  }
}

a.products-item-link:hover .products-item-image img {
  transform: scale(1.03);
}


/* --- Badge --- */
.products-item-badge {
  position: absolute;
  bottom: 18px;
  right: 18px;
}

.products-item-arrow {
  font-size: 14px;
}


/* --- Description --- */
.products-item-description {
  font-family: var(--font-jp);
  font-size: 15px;
  line-height: 23px;
  margin: 0;
}

@media screen and (max-width: 1170px) {
  .products-header {
    padding: calc(80vw / var(--p)) 0 0;
    margin-bottom: calc(125vw / var(--p));
  }

  .products-header-label {
    font-size: calc(25vw / var(--p));
    line-height: calc(37vw / var(--p));
    margin-bottom: calc(20.5vw / var(--p));
  }

  .products-header-title {
    font-size: calc(179vw / var(--p));
    margin-bottom: calc(60vw / var(--p));
    text-align: center;
  }

  .products-list-section {
    padding: 0 0 calc(60vw / var(--p));
  }

  .products-grid {
    gap: calc(85vw / var(--p)) calc(40vw / var(--p));
  }

  .products-item {
    gap: calc(27vw / var(--p));
    padding-left: calc(32vw / var(--p));
  }

  .products-item-name {
    font-size: calc(54vw / var(--p));
    line-height: calc(64vw / var(--p));
    top: calc(-20vw / var(--p));
  }

  .products-item-badge {
    bottom: calc(18vw / var(--p));
    right: calc(18vw / var(--p));
  }

  .products-item-arrow {
    font-size: calc(14vw / var(--p));
  }

  .products-item-description {
    font-size: calc(15vw / var(--p));
    line-height: calc(23vw / var(--p));
  }
}

@media (max-width: 767px) {
  .products-header {
    padding: 0;
    margin-bottom: calc(97.4vw / var(--s));
  }

  .products-header-inner {
    padding: 0 var(--sp-gutter);
  }

  .products-header-title {
    padding: 0 calc(19vw / var(--s));
    font-size: calc(90vw / var(--s));
    line-height: calc(79vw / var(--s));
    margin: calc(-4vw / var(--s)) 0 calc(33.7vw / var(--s));

    img {
      width: calc(283.62vw / var(--s));
    }
  }

  .products-header-label {
    font-size: calc(20vw / var(--s));
    line-height: calc(30vw / var(--s));
    margin-bottom: calc(15.9vw / var(--s));
  }

  .products-list-inner {
    padding: 0 var(--sp-gutter);
  }

  .products-grid {
    display: flex;
    flex-direction: column;
    gap: calc(120vw / var(--s));
  }

  .products-item {
    padding: 0;
    gap: calc(23vw / var(--s));
  }

  .products-item-description {
    font-size: calc(13vw / var(--s));
    line-height: calc(18vw / var(--s));
  }

  .products-item-name {
    font-size: calc(32vw / var(--s));
    line-height: calc(38vw / var(--s));
    top: calc(-20vw / var(--s));
    left: calc(-20vw / var(--s));
  }

  .products-item-badge {
    font-size: calc(16vw / var(--s));
    line-height: calc(24vw / var(--s));
    bottom: calc(10.4vw / var(--s));
    right: calc(10.1vw / var(--s));
    gap: calc(18.1vw / var(--s));

    &::after {
      width: calc(12.47vw / var(--s));
      height: calc(9.54vw / var(--s));
    }
  }

}