/* GLOBAL STYLES */
html {
  scroll-behavior: smooth;
}

div[class*="PreviewCalendar_previewContainer"] {
  display: none;
}

.psu-content h1 {
  font-size: 3rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
}

.psu-content h2 {
  font-size: 2.5rem;
  line-height: 1.1;
  letter-spacing: 0.02em;
  color: #fff;
}

.psu-content ul {
  list-style-type: disc;
  list-style-position: inside;
}

.psu-content p,
.psu-content li,
.price-text {
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.75;
  color: #fff;
}

.psu-content .block-subtitle {
  letter-spacing: 0.15em;
  color: #ece81a;
  font-weight: 500;
  font-size: 1rem;
}

.psu-content .block-cta {
  color: black;
  background-color: #ece81a;
  padding: 0.75rem 2rem;
  font-weight: 600;
  width: fit-content;
  font-size: 1rem;
}

@media screen and (min-width: 768px) {
  .psu-content h1 {
    font-size: 5rem;
  }

  .psu-content h2 {
    font-size: 3.25rem;
  }

  .psu-content p,
  .psu-content li {
    font-size: 1.125rem;
  }

  #guides .block-media .guide-tile img {
    max-height: 360px;
  }
}

/* CONTENT BLOCKS */
.psu-content .block-section {
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  min-height: 600px;
  position: relative;
  text-align: center;
}

@media screen and (min-width: 1024px) {
  .psu-content .block-section {
    padding: 8rem 4rem;
  }
}

/* HERO */
#psu-hero {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 4rem 2rem;
  /* height: clamp(500px, 65vh, 800px); use this if hero is a video */
  height: clamp(500px, 50vh, 600px);
  position: relative;
  background: url(https://assets.corsair.com/image/upload/f_auto,q_auto/pages/psu-lp/assets/hero_psu-category.png);
  background-size: cover;
  background-position: center;
}

#psu-hero .video-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

#psu-hero .video-background::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.5) 0%,
    rgba(0, 0, 0, 0) 100%
  );
}

#psu-hero .video-background video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

#psu-hero .block-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  max-width: 500px;
}

@media only screen and (min-width: 768px) {
  /* #psu-hero {
    height: clamp(800px, 65vh, 1200px); use this if hero is a video
  } */

  #psu-hero .block-content {
    max-width: 800px;
  }
}

@media only screen and (min-width: 1024px) {
  #psu-hero .block-content {
    max-width: 1600px;
  }
}

/* NAVIGATION */
#psu-navigation {
  justify-content: center;
  position: sticky;
  top: 60px;
  background: #262626cc;
  z-index: 100;
  transition: all 300ms ease-out;
  padding: 0.75rem 6rem;
  width: 100%;
  backdrop-filter: blur(4px);
}

#psu-navigation .navigation-content {
  max-width: 1920px;
  width: 100%;
  display: flex;
  justify-content: center;
}

#psu-navigation .navigation-list {
  display: none;
  gap: 4rem;
  color: #fff;
}

#psu-navigation .nav-item {
  display: flex;
}

#psu-navigation .nav-item button {
  font-weight: 600;
  font-size: 0.875rem;
}

#shop-all-cta .shop-all-text {
  padding: 0.625rem 1.5rem;
  font-weight: 600;
  text-align: center;
}

#shop-all-cta {
  position: relative;
  background-color: #ece81a;
  font-size: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: center;
  font-weight: 700;
  padding: 0 0.5rem;
}

@media screen and (min-width: 912px) {
  #psu-navigation {
    top: 0px;
    display: flex;
  }

  #psu-navigation.megamenu-visible {
    top: 100px;
  }
}

@media screen and (min-width: 1200px) {
  #psu-navigation {
    padding-left: 2rem;
    padding-right: 2rem;
  }

  #psu-navigation .navigation-list {
    display: flex;
    gap: 2rem;
  }

  #psu-navigation .navigation-content {
    justify-content: space-between;
    gap: 2rem;
  }
}

@media screen and (min-width: 1600px) {
  #psu-navigation {
    padding-left: 4rem;
    padding-right: 4rem;
  }

  #psu-navigation .navigation-list {
    gap: 3rem;
  }
}

/* PRODUCT CARDS */
.psu-content .product-card {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.product-card .product-card-carousel {
  display: block;
  background: radial-gradient(50% 50% at 50% 50%, #3b3b3b 0%, #12171b 100%);
  margin: 0;
}

.product-card .product-card-carousel img {
  display: block;
  width: 100%;
  height: 100%;
  object-position: center;
  object-fit: contain;
}

.product-card .product-card-carousel .slick-slide[data-slick-index="0"] img {
  object-fit: cover;
}

.psu-content .product-card .image-wrapper {
  height: 400px;
}

.product-card .custom-prev,
.product-card .custom-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

.product-card .custom-prev {
  left: 8px;
}

.product-card .custom-next {
  right: 8px;
}

.product-card .slick-dots {
  bottom: 8px;
}

.product-card .slick-dots button::before {
  display: none;
}

.product-card .slick-dots li {
  background-color: #fff;
  opacity: 0.35;
  height: 3px;
  min-width: 48px;
  margin-left: 2px;
  margin-right: 2px;
}

.product-card .slick-dots .slick-active {
  opacity: 0.7;
}

.psu-content .product-card-description {
  background: linear-gradient(180deg, #414141 0%, rgba(37, 37, 37, 0.63) 100%);
  color: #fff;
  padding: 1rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.psu-content .product-card-description .description-top {
  display: flex;
  padding-bottom: 1rem;
  justify-content: space-between;
  align-items: flex-end;
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}

.psu-content .product-card-description .product-title {
  line-height: 1;
  font-weight: 600;
}

.psu-content .product-card-description .product-price,
.psu-content .product-card-description .price-text {
  color: #2befff;
  line-height: 1;
}

.psu-content .product-card-description .description-specs {
  padding: 1rem 0.25rem;
  text-align: left;
  font-size: 0.875rem;
  flex-grow: 1;
}

.psu-content .product-card-description .description-specs li {
  color: #b3b3b3;
  font-size: 0.875em;
}

.psu-content .shop-now {
  color: #ece81a;
}

.psu-content .right-arrow,
.modal-content .right-arrow {
  font-size: 1.5em;
  position: relative;
  top: 2px;
}

@media screen and (min-width: 1200px) {
  .product-card {
    max-width: 350px;
  }

  .psu-content .product-card .image-wrapper {
    height: 350px;
  }

  .product-card .product-title {
    text-align: left;
  }
}

@media screen and (min-width: 1440px) {
  .product-card {
    max-width: 450px;
  }

  .psu-content .product-card .image-wrapper {
    height: 450px;
  }

  #next-generation .product-card {
    max-width: 420px;
  }

  #next-generation .psu-content .product-card .image-wrapper {
    height: 420px;
  }
}

/* NEXT GENERATION */
#next-generation {
  background-image: url("https://assets.corsair.com/image/upload/f_auto,q_90/pages/psu-lp/assets/bg_img_next_gen_panel_toned_down.png");
  gap: 3rem;
}

#next-generation .block-content,
#most-popular .block-content,
#cables-accessories .block-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  max-width: 500px;
  gap: 1rem;
}

#next-generation .block-media,
#most-popular .block-media,
#cables-accessories .block-media {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  width: 100%;
  max-width: 500px;
}

@media screen and (min-width: 1200px) {
  #next-generation .block-content,
  #most-popular .block-content,
  #cables-accessories .block-content {
    max-width: 800px;
  }

  #next-generation .block-media,
  #most-popular .block-media,
  #cables-accessories .block-media {
    flex-direction: row;
    max-width: none;
    justify-content: center;
  }
}

/* MEET THE LINEUP */
#meet-the-lineup {
  color: #fff;
  padding-left: 1.5rem;
  padding-right: 0;
  gap: 2rem;
}

#meet-the-lineup .product-price-text {
  color: #2befff;
  line-height: 1;
  font-size: 0.875rem;
}

#meet-the-lineup .block-table-wrapper {
  position: relative;
  overflow-x: auto;
  width: 100%;
  display: flex;
}

#lineup-table {
  border-spacing: 10px;
  margin: 0 auto;
}

#lineup-table .row-header {
  min-width: 140px;
  position: -webkit-sticky;
  position: sticky;
  background-color: #000;
  left: 0;
  z-index: 1;
}

#lineup-table .column-header {
  padding-bottom: 1rem;
}

#meet-the-lineup .product-title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

#meet-the-lineup .product-image {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin: 0 auto 1rem;
}

#lineup-table tr:not(:last-child) {
  border-bottom: 1px solid #555;
}

#lineup-table td p {
  font-size: 1rem;
}

#lineup-table td {
  background: rgba(55, 55, 55, 0.75);
  padding: 0.5rem 2rem;
  box-shadow: 8px 0px 0px 0px #000 inset;
  position: relative;
  min-width: 200px;
}

#lineup-table .row-header {
  text-align: left;
  vertical-align: top;
}

#lineup-table .bi-check-circle-fill {
  color: #ece81a;
  font-size: 1.25em;
}

#lineup-table .bi-x-lg {
  color: #ddd;
}

@media screen and (min-width: 640px) {
  #meet-the-lineup {
    padding-left: 4rem;
  }

  #lineup-table td:last-child {
    box-shadow: 8px 0px 0px 0px #000 inset, -8px 0px 0px 0px #000 inset;
  }
}

@media screen and (min-width: 1024px) {
  #meet-the-lineup {
    padding-right: 4rem;
  }

  #lineup-table td {
    width: 240px;
    min-width: 240px;
  }

  #lineup-table td:last-child {
    box-shadow: 8px 0px 0px 0px #000 inset;
  }

  #meet-the-lineup .product-title {
    font-size: 1.5rem;
  }

  #meet-the-lineup .product-image {
    width: 150px;
  }
}

@media screen and (min-width: 1920px) {
  #lineup-table td {
    min-width: 300px;
    width: 300px;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
  }

  #lineup-table .row-header {
    min-width: 220px;
  }
}

/* HOW TO CHOOSE */
#how-to-choose {
  background: linear-gradient(180deg, #000 0%, #20242a 100%);
  color: #fff;
  gap: 3rem;
  padding-left: 0;
  padding-right: 0;
  overflow: hidden;
}

#how-to-choose .block-carousel-wrapper {
  width: 100%;
}

#how-to-choose-carousel {
  width: 100%;
  margin-bottom: 0;
}

#how-to-choose-carousel .info-card-wrapper {
  width: 100%;
  max-width: 300px;
  padding: 0 0.5rem;
}

#how-to-choose-carousel .info-card {
  position: relative;
}

#how-to-choose-carousel .info-card-content {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  padding: 1.5rem;
  text-align: left;
}

#how-to-choose-carousel .info-card-logo {
  max-width: 52px;
  margin-bottom: 0.5rem;
}

#how-to-choose-carousel .show-modal {
  position: absolute;
  right: 0.5rem;
  bottom: 0.5rem;
  color: #ece81a;
  font-size: 1.5em;
}

.psu-content .slick-disabled {
  opacity: 0.1 !important;
}

#how-to-choose-carousel .custom-prev,
#how-to-choose-carousel .custom-next {
  transition: opacity 0.2s ease-in-out;
  opacity: 1;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}

#how-to-choose-carousel .custom-prev {
  left: 16px;
}

#how-to-choose-carousel .custom-next {
  right: 16px;
}

#how-to-choose-carousel .slick-dots {
  bottom: -24px;
}

#how-to-choose-carousel .slick-dots button::before {
  display: none;
}

#how-to-choose-carousel .slick-dots li {
  background-color: #797a7e;
  height: 3px;
  width: 14px;
  margin-left: 2px;
  margin-right: 2px;
  border-radius: 2px;
  transition: all 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#how-to-choose-carousel .slick-dots .slick-active {
  background-color: #ffffff;
  width: 44px;
}

#how-to-choose-carousel .slick-slide {
  opacity: 0.3;
  filter: brightness(0.75) saturate(0.25);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

#how-to-choose-carousel :is(.slick-slide.slick-current) {
  filter: brightness(1) saturate(1);
  opacity: 1;
}

@media screen and (min-width: 639px) {
  #how-to-choose .block-carousel-wrapper {
    padding-left: 4rem;
  }

  #how-to-choose-carousel .info-card-wrapper {
    max-width: 320px;
  }

  #how-to-choose-carousel .slick-list {
    overflow: visible;
  }

  #how-to-choose-carousel .custom-prev {
    left: -48px;
  }

  #how-to-choose-carousel .custom-next {
    right: 24px;
  }

  #how-to-choose-carousel .slick-dots .slick-active,
  #how-to-choose-carousel .slick-dots .slick-active + li {
    background-color: #ffffff;
    width: 44px;
  }

  #how-to-choose-carousel :is(.slick-slide.slick-current + .slick-slide, ) {
    filter: brightness(1);
    opacity: 1;
  }
}

@media screen and (min-width: 1023px) {
  #how-to-choose .block-carousel-wrapper {
    max-width: 1024px;
  }

  #how-to-choose-carousel .info-card-wrapper {
    max-width: 380px;
  }

  #how-to-choose-carousel .info-card-content {
    padding: 2rem;
  }

  #how-to-choose-carousel .info-card-logo {
    max-width: 64px;
  }

  #how-to-choose-carousel .info-card-title {
    font-size: 2.5rem;
    font-weight: 600;
  }
}

@media screen and (min-width: 1600px) {
  #how-to-choose .block-carousel-wrapper {
    max-width: 1350px;
    padding: 0;
  }

  #how-to-choose-carousel .info-card-wrapper {
    max-width: 450px;
  }

  #how-to-choose-carousel
    :is(.slick-slide.slick-current + .slick-slide + .slick-slide) {
    filter: brightness(1);
    opacity: 1;
  }

  #how-to-choose-carousel .slick-dots {
    bottom: -36px;
  }

  #how-to-choose-carousel .slick-dots .slick-active,
  #how-to-choose-carousel .slick-dots .slick-active + li,
  #how-to-choose-carousel .slick-dots .slick-active + li + li {
    background-color: #ffffff;
    width: 44px;
  }

  #how-to-choose-carousel .custom-prev {
    left: -48px;
  }

  #how-to-choose-carousel .custom-next {
    right: -48px;
  }
}

/* MODAL */
.modal-wrapper {
  display: none;
  position: fixed;
  inset: 0px;
  z-index: 99;
  background: rgba(0, 0, 0, 0.8);
  justify-content: center;
  align-items: center;
}

.modal-wrapper .modal-close {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  color: #ece81a;
  font-size: 1.5em;
}

.modal-wrapper .modal-content {
  width: 100%;
  background: radial-gradient(
      59.4% 47% at 50% 100%,
      rgba(255, 255, 255, 0.1) 0%,
      rgba(255, 255, 255, 0) 100%
    ),
    linear-gradient(180deg, #14151a 0%, #2d3040 100%);
  padding: 2rem;
  padding-top: 3rem;
  color: #fff;
  position: relative;
  margin-top: 60px;
  max-height: calc(100vh - 60px);
  overflow-y: auto;
  border-radius: 4px;
  display: grid;
  gap: 2rem;
  max-width: 720px;
}

.modal-wrapper .modal-logo-image {
  width: 64px;
  height: 64px;
}

.modal-wrapper .modal-subtitle {
  font-size: 0.75rem;
  font-weight: 500;
  color: #ece81a;
  letter-spacing: 0.3em;
  line-height: 1.25;
  margin-bottom: 0.125rem;
}

.modal-wrapper .modal-title {
  line-height: 1.1;
}

.modal-wrapper .modal-description,
.modal-wrapper .modal-description li {
  line-height: 1.75;
  font-weight: 400;
  font-size: 1rem;
}

@media screen and (min-width: 1024px) {
  .modal-wrapper .modal-content {
    padding: 4rem;
    max-height: calc(90vh - 154px);
    max-width: 1024px;
    grid-template-columns: repeat(2, 1fr);
  }

  .modal-wrapper .modal-image-wrapper {
    margin-bottom: 3rem;
  }

  .modal-wrapper .modal-title {
    font-size: 3rem;
  }

  .modal-wrapper .modal-description li {
    font-size: 1.125rem;
    margin-bottom: 1rem;
  }

  .modal-wrapper .modal-description {
    font-size: 1.125rem;
  }
}

/* MODAL CONTENT */
#how-to-choose-modal [data-card] {
  display: none;
}

#how-to-choose-modal .modal-content-copy {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 720px;
}

#how-to-choose-modal .modal-content-media {
  display: flex;
  max-height: 600px;
  max-width: 300px;
  justify-self: center;
}

#how-to-choose-modal .modal-content-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#how-to-choose-modal .modal-cta {
  color: #ece81a;
}

/* MOST POPULAR */
#most-popular {
  padding-top: 6rem;
  padding-bottom: 6rem;
  display: flex;
  flex-direction: column;
  gap: 3rem;
}

#most-popular .block-section {
  padding-top: 1rem;
  padding-bottom: 1rem;
}

#most-popular .block-content {
  margin-bottom: 2rem;
}

@media screen and (min-width: 1024px) {
  #most-popular {
    padding-top: 8rem;
    padding-bottom: 8rem;
  }
}

/* PSU FINDER */
#psu-finder {
  background-image: url("https://assets.corsair.com/image/upload/f_auto,q_auto/v1730790222/pages/psu-lp/assets/bg_img_psu_finder_panel.png");
}

.psu-content .block-two-tile .block-content {
  display: grid;
  gap: 2rem;
  text-align: center;
  width: 100%;
  max-width: 600px;
}

.psu-content .block-two-tile .block-copy {
  display: grid;
  gap: 0.5rem;
  align-content: center;
  max-width: 700px;
}

.psu-content .block-two-tile .block-description {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.psu-content .block-two-tile .block-cta {
  margin: 0 auto;
}

@media screen and (min-width: 1024px) {
  .psu-content .block-two-tile {
    padding-left: 8rem;
    padding-right: 8rem;
  }

  .psu-content .block-two-tile .block-content {
    grid-template-columns: 1fr 1fr;
    max-width: 1600px;
    text-align: left;
  }

  .psu-content .block-two-tile .block-description {
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .psu-content .block-two-tile .block-cta {
    margin: 0;
  }
}

/* CABLES ACCESSORIES */
#cables-accessories {
  color: #fff;
}

#cables-accessories .block-content {
  margin-bottom: 3rem;
}

#cables-accessories .block-media {
  align-items: center;
}

#cables-accessories .product-tile {
  display: grid;
  gap: 1rem;
  justify-items: center;
  max-width: 300px;
}

#cables-accessories .product-tile .image-wrapper {
  height: 300px;
}

#cables-accessories .product-tile .image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

#cables-accessories .product-tile-name {
  max-width: 300px;
}

@media screen and (min-width: 1024px) {
  #cables-accessories .block-media {
    align-items: flex-start;
    gap: 4rem;
  }
}

/* GUIDES */
#guides {
  background-image: url("https://assets.corsair.com/image/upload/f_auto,q_auto/v1730790226/pages/psu-lp/assets/bg_img_guides_tips_tricks.png");
}

#guides .block-media {
  display: grid;
  gap: 2rem;
}

#guides .block-content {
  margin-bottom: 2rem;
}

#guides .block-media .guide-tile {
  display: grid;
  justify-items: flex-start;
  max-width: 500px;
  background: #0c0d0d;
  color: #fff;
  text-align: left;
  overflow: hidden;
}

#guides .block-media .guide-tile img {
  max-height: 275px;
  width: 100%;
  object-fit: cover;
  border-radius: 2px 2px 0px 0px;
}

#guides .block-media .guide-tile .guide-tag,
#guides .block-media .guide-tile .guide-tile-name {
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

#guides .block-media .guide-tile .guide-tag {
  padding-top: 1rem;
  padding-bottom: 0.25rem;
  color: #aaa;
}

#guides .block-media .guide-tile .guide-tile-name {
  padding-bottom: 2rem;
  font-size: 1.25rem;
  font-weight: 500;
}

@media screen and (min-width: 1024px) {
  #guides .block-media {
    grid-template-columns: repeat(3, 1fr);
  }
}
