.page-main {
  display: flex;
  flex-direction: column;
  gap: 50px;
}

.title-text,
.title-text--left {
  font-size: 35px;
  line-height: 45px;
  text-align: center;
}

.title-text--left {
  text-align: left;
}

.subtitle-text {
  text-align: center;
}

.subtitle-text--left {
  margin-bottom: 15px;
}

/* page hero section */

.page-hero {
  position: relative;
  display: flex;
  width: 100%;
  height: 75vh;
}

.page-hero__background-image {
  width: 100%;
  object-fit: cover;
}

.page-hero__title-wrapper {
  position: absolute;
  left: 55%;
  top: 50%;
  transform: translateY(-50%);

  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 40vw;
  color: white;
}

.page-hero__button {
  border: 1px solid white;
}

/* your choices section */

.best-sellers,
.design,
.packaging,
.cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 25px;
  align-items: center;
  padding: 0 50px;
  width: 100%;
}

.best-sellers__title-wrapper {
  display: none;
}

.video-recently__grid-wrapper {
  width: 100%;
}

.video-recently__grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: start;
  align-items: center;
  gap: 0.8vw;
  width: 100%;
}

.video-recently__item {
  position: relative;
  aspect-ratio: 9/16;
  width: 100%;
  overflow: hidden;
  /* border: 1px solid lightgray; */
}

.video-recently__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.video-recently__item:hover .video-recently__video {
  transform: scale(1.025);
}

/* design section */

.design-nav {
  width: 100%;
}

.design-nav__item-wrapper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  justify-content: center;
  align-items: center;
  gap: 0.8vw;
  width: 100%;
}

/* customize section */

.customize,
.location {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  padding: 0 50px;
  width: 100%;
  gap: 3vw;
}

.customize__image,
.location__image {
  width: 50%;
  aspect-ratio: 2/1;
  object-fit: cover;
}

.customize__title-wrapper,
.location__title-wrapper {
  width: 50%;
}

.customize__button {
  font-weight: 400;
}

/* packaging section */

.packaging__item-wrapper {
  grid-template-columns: repeat(4, 1fr);
  display: grid;
  justify-content: center;
  align-items: center;
  gap: 0.8vw;
  width: 100%;
}

/* location section */
.location {
  flex-direction: row-reverse;
  background-color: #796862;
  padding: 0;
}

.location__title-wrapper {
  color: white;
  padding-left: 5%;
}

.location__button {
  border: 1px solid white;
}

.location__image {
  height: 50vh;
  object-fit: cover;
}

/* cta section */

.cta {
  background: radial-gradient(circle, #36483c, #222e26);
  color: white;
  height: 70vh;
  gap: 25px;
}

.cta__image {
  height: 100px;
}

.cta__button-wrapper {
  display: flex;
  flex-direction: row;
  gap: 25px;
}

.cta__button {
  text-align: center;
  width: 180px;
  padding: 10px 0;
  border: 1px solid white;
}

/* why section */

.why {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background-color: rgb(247, 247, 247);
  padding: 25px;
  margin-top: -50px;
  gap: 1vw;
}

.why__item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  padding: 0 25px;
  gap: 12.5px;
}

.why__item-image {
  width: 80px;
  aspect-ratio: 1/1;
}

.why__item-name {
  font-weight: 400;
}

.why__item-caption {
  font-size: 14px;
  line-height: 22px;
  text-align: center;
}

/* phone screen */
@media (max-width: 1024px) {
  .title-text,
  .title-text--left {
    font-size: 28px;
    line-height: 38px;
    text-align: center;
  }

  .subtitle-text,
  .subtitle-text--left {
    font-size: 14px;
    text-align: center;
  }

  /* page hero section */

  .page-hero {
    position: static;
    height: auto;
    flex-direction: column;
    gap: 25px;
  }

  .page-hero__background-image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    object-position: 15%;
  }

  .page-hero__title-wrapper {
    position: static;
    transform: none;
    align-items: center;
    width: 100%;
    color: black;
    padding: 0 15px;
  }

  .page-hero__button {
    border: 1px solid black;
  }

  /* your choices section */

  .best-sellers,
  .design,
  .packaging,
  .cta {
    padding: 0 15px;
    width: 100%;
  }

  .video-recently__grid-wrapper {
    width: 100%;
  }

  .video-recently__grid {
    display: grid;
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: 80vw;
    gap: 15px;

    overflow: auto hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .video-recently__grid::-webkit-scrollbar {
    display: none;
  }

  .video-recently__item {
    scroll-snap-align: center;
  }

  /* design section */

  .design-nav__item-wrapper {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-template-columns: 30vw;
    justify-content: start;
    gap: 15px;
    width: 100%;

    overflow: auto hidden;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .design-nav__item-wrapper::-webkit-scrollbar {
    display: none;
  }

  /* customize section */

  .customize,
  .location {
    flex-direction: column;
    justify-content: center;
    padding: 0;
    gap: 25px;
  }

  .customize__image,
  .location__image {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
  }

  .customize__image {
    transform: rotate(270deg);
  }

  .customize__title-wrapper,
  .location__title-wrapper {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 15px;
  }

  .packaging__item-wrapper {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-flow: none;
    grid-auto-columns: none;
    gap: 15px;
    width: 100%;
  }

  /* location section */

  .location {
    flex-direction: column;
    background: none;
    padding: 0;
  }

  .location__title-wrapper {
    color: black;
    padding-left: none;
  }

  .location__button {
    border: 1px solid black;
  }

  .location__image {
    width: 100%;
    height: auto;
    aspect-ratio: 1/1;
  }

  /* cta section */

  .cta {
    height: auto;
    gap: 50px;
    padding: 50px 25px;
  }

  .cta__image {
    height: 50px;
  }

  .cta__button-wrapper {
    flex-direction: column;
    gap: 12.5px;
  }

  .cta__button {
    font-size: 14px;
  }

  /* why section */

  .why {
    grid-template-columns: none;
    grid-template-rows: repeat(4, 1fr);
    padding: 50px;
    gap: 50px;
  }

  .why__item {
    padding: 0;
  }

  .why__item-image {
    width: 50px;
  }

  .why__item-caption {
    font-size: 12px;
  }
}

/* portrait tablet screen */
@media (min-width: 769px) and (max-width: 1024px) {
  .title-text,
  .title-text--left {
    font-size: 35px;
    line-height: 45px;
  }

  .subtitle-text,
  .subtitle-text--left {
    font-size: 16px;
  }

  .page-hero__title-wrapper {
    padding: 0 50px;
  }

  .best-sellers,
  .design,
  .packaging,
  .cta {
    padding: 0 25px;
  }

  .video-recently__grid {
    grid-auto-columns: 60vw;
  }

  .design-nav__item-wrapper {
    grid-template-columns: 25vw;
  }

  .design-nav__item-link {
    height: 25vw;
    width: 25vw;
  }

  .design-nav__item-name {
    font-size: 16px;
  }

  .customize__title-wrapper,
  .location__title-wrapper {
    padding: 0 25px;
  }

  .cta {
    aspect-ratio: 1/1;
    padding: 50px 100px;
  }

  .cta__image {
    height: 100px;
  }

  .cta__button-wrapper {
    flex-direction: row;
    gap: 25px;
  }

  .cta__button {
    font-size: 16px;
  }

  .why {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: none;
    padding: 50px;
    gap: 50px;
  }

  .why__item {
    padding: 0 25px;
  }

  .why__item-image {
    width: 50px;
  }

  .why__item-caption {
    font-size: 14px;
  }
}

@media (min-width: 1025px) and (max-width: 1399px) {
  .page-hero {
    height: auto;
    aspect-ratio: 2/1;
  }

  .customize__image {
    aspect-ratio: 3/2;
  }

  .cta {
    aspect-ratio: 2/1;
    height: auto;
  }
}
