/* englEnglish 
regular : thường xuyên, hay dùng
semi : một nửa
base : căn cứ  vào, cơ bản
reusable :tái sử dụng
swiper : vuoot
article: vat pham
*/

/*=============== GOOGLE FONTS ===============*/
@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@400;600;700&display=swap");

/* variables css */
:root {
  --header-height: 3.5rem;
  /* color */
  /* color mode HSL */
  --title--color: hsl(0, 0%, 100%);
  --text-color: hsl(0, 0%, 60%);
  --body--color: hsl(0, 0%, 0%);

  /* font an typography */
  /* 0.5rem = 8px,  1rem= 16px */
  --body--font: "Montserrat", sans-serif;
  --h1-font-size: 1.5rem;
  --h3-font-size: 1rem;
  --normal-font-size: 0.938rem;
  --small-font-size: 0.813rem;

  /* font weight */

  --font-regular: 400;
  --font-semi-bold: 600;
  --font-bold: 700;
  /* z-index */
  --z-tooltip: 10;
  --z-fixed: 100;
}
/* responsive  typography*/
@media screen and(min-width: 1152px) {
  :root {
    --h1-font-size: 2.25rem;
    --h3-font-size: 1.25rem;
    --normal-font-size: 1rem;
    --small-font-size: 0.875rem;
  }
}
/* base */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}
body {
  font-family: var(--body--font);
  font-size: var(--normal-font-size);
  background-color: var(--body--color);
  color: var(--text-color);
}
ul {
  list-style: none;
}
a {
  text-decoration: none;
}
img {
  display: block;
  max-width: 100%;
  height: auto;
}
/* reusable css class*/
.container {
  max-width: 1120px;
  margin: auto;
  padding: 0rem 1.5rem;
  /* padding-block: 0rem 1.5rem; */
  /* margin-inline: 1.5rem; */
}
.main {
  overflow: hidden;
}
/* header & nav */
.header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  background-color: var(--body--color);
  border-bottom: 1px solid var(--text-color);
  z-index: var(--z-fixed);
}
.nav {
  display: flex;
  height: var(--header-height);
  justify-content: space-between;
  align-items: center;
}
.nav__logo {
  color: var(--title--color);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
}
.nav__toggle,
.nav__close {
  font-size: 1.25rem;
  color: var(--title--color);
  cursor: pointer;
}
@media screen and (max-width: 1023px) {
  .nav__menu {
    position: fixed;
    top: -100%;
    left: 0;
    width: 100%;
    background-color: var(--body--color);
    border-bottom: 1px solid var(--text-color);

    padding-block: 4.5rem 3.5rem;
    transition: top 0.4s;
  }
}
.nav__list {
  display: flex;
  flex-direction: column;
  row-gap: 2rem;
  text-align: center;
}
.nav__link {
  color: var(--text-color);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
  transition: color 0.3s;
}
.nav__link:hover {
  color: var(--title--color);
}
.nav__social {
  display: flex;
  justify-content: center;
  column-gap: 1.5rem;
  margin-top: 3rem;
}
.nav__social-link {
  font-size: 1.5rem;
  color: var(--text-color);
  transition: color 0.4s;
}
.nav__social-link:hover {
  color: var(--title--color);
}
.nav__close {
  position: absolute;
  top: 1.1rem;
  right: 1.1rem;
}
/* show menu */
.show-menu {
  top: 0;
}
/* home */
.home__container,
.home__data,
.home__content,
.home__images,
.home__info-content {
  display: grid;
}
.home__container {
  padding-block: 9rem 3rem;
  row-gap: 3rem;
}
.home__data {
  text-align: center;
  row-gap: 3rem;
}
.home__content {
  row-gap: 0.75rem;
}
.home__stars {
  display: flex;
  column-gap: 0.25rem;
  justify-content: center;
}
.home_title {
  font-size: var(--h1-font-size);
  color: var(--title--color);
}
.home__price {
  font-size: var(--h3-font-size);
}
.home__button {
  border: 1px solid var(--text-color);
  padding: 1rem 1.5rem;
  justify-self: center;
  color: var(--title--color);
  font-size: var(--small-font-size);
  letter-spacing: 3px;
  font-weight: var(--font-semi-bold);
  display: inline-flex;
  align-items: center;
  column-gap: 1.5rem;
  transition: border-color 0.4s;
}
.home__button i {
  font-size: 1.25rem;
}
.home__button:hover {
  border-color: var(--title--color);
}
.home__images {
  position: relative;
}
.home__img {
  width: 180px;
  margin-inline: auto;
  /* margin: 0 auto; */
}
.home__info {
  display: flex;
  align-items: center;
  column-gap: 0.75rem;
  margin-top: 2rem;
}
.home__info--img {
  width: 120px;
}
.home__info-content {
  row-gap: 1.5rem;
}
.home__info-description {
  font-size: var(--small-font-size);
}
.home__button-link {
  color: var(--text-color);
  font-size: var(--small-font-size);
  font-weight: var(--font-semi-bold);
  letter-spacing: 3px;
  justify-self: flex-start;
  transition: color 0.4s;
}
.home__button-link:hover {
  color: var(--title--color);
}
/* swiper class */
.swiper {
  /* margin: initial; */
  margin-inline: initial;
}
.swiper-pagination-bullets.swiper-pagination-horizontal {
  bottom: -2rem;
}
.swiper-pagination-bullet {
  width: 1rem;
  height: 0.15rem;
  border-radius: 0;
  background-color: var(--text-color);
  opacity: 1;
  transition: background-color 0.3s, width 0.3s;
}
.swiper-pagination-bullet-active {
  width: 1.5rem;
  background-color: var(--title--color);
}
/* scroll bar */
::-webkit-scrollbar {
  width: 0.6rem;
  background-color: hsl(0, 0%, 12%);
}
::-webkit-scrollbar-thumb {
  width: 0.6rem;
  background-color: hsl(0, 0%, 20%);
}
/* break point */
/* small devices */
@media screen and (max-width: 320px) {
  .container {
    padding: 0rem 1rem;
    /* padding-block: 0rem 1.5rem; */
    /* margin-inline: 1.5rem; */
  }
  .home__info {
    flex-direction: column;
    row-gap: 2rem;
    text-align: center;
  }
  .home__button-link {
    justify-self: center;
  }
}
/* medium devices */
@media screen and (min-width: 576px) {
  .home__container {
    grid-template-columns: 400px;
    justify-content: center;
  }
}

/* large  devices */
@media screen and (min-width: 1023px) {
  .nav {
    height: calc(var(--header-height) + 2rem);
  }
  .nav__close,
  .nav__toggle {
    display: none;
  }
  .nav__menu {
    display: flex;
    align-items: center;
    column-gap: 4rem;
  }
  .nav__list {
    flex-direction: row;
    column-gap: 4rem;
  }
  .nav__social {
    margin: 0;
  }
  .home__container {
    height: 100vh;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    column-gap: 4rem;
  }
  .home__data {
    text-align: initial;
  }
  .home__stars {
    justify-content: initial;
  }
  .home__button {
    justify-self: flex-start;
  }
  .home__info {
    margin: 0;
    flex-direction: column;
    align-items: initial;

    row-gap: 1.25rem;
  }
}
@media screen and (min-width: 1152px) {
  .container {
    margin: auto;
    /* margin-inline: 1.5rem; */
  }
  .home__container {
    height: initial;
    grid-template-columns: repeat(3, 320px);
    justify-content: space-between;
    padding-block: 11rem 4rem;
  }
  .home__data {
    row-gap: 9.5rem;
  }
  .home__stars {
    column-gap: 0.75rem;
  }
  .home__img {
    width: 300px;
  }
  .home__info-img {
    width: 150px;
  }
  .home__info-description {
    font-size: var(--normal-font-size);
  }
  .home__info-content {
    row-gap: 7.5rem;
  }
}
/* taller devices */
@media screen and (min-width: 1500px) and (min-height: 1032px) {
  .home__container {
    height: 100vh;
    align-items: center;
  }
}
.border {
  width: 200px;
  height: 200px;
  border: 4px solid;
  border-image: linear-gradient(
    to right,
    red,
    orange,
    yellow,
    green,
    blue,
    indigo,
    violet
  );
  border-image-slice: 1;
}
