@font-face {
  font-family: "Helvetica";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica"), url("./assets/fonts/Helvetica.woff") format("woff");
}

@font-face {
  font-family: "Helvetica Oblique";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica Oblique"), url("./assets/fonts/Helvetica-Oblique.woff") format("woff");
}

@font-face {
  font-family: "Helvetica Compressed";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica Compressed"), url("./assets/fonts/helvetica-compressed-5871d14b6903a.woff") format("woff");
}

@font-face {
  font-family: "Helvetica Rounded Bold";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica Rounded Bold"), url("./assets/fonts/helvetica-rounded-bold-5871d05ead8de.woff") format("woff");
}

@font-face {
  font-family: "Helvetica";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica"), url("./assets/fonts/Helvetica-Bold.woff") format("woff");
}

@font-face {
  font-family: "Helvetica Bold Oblique";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica Bold Oblique"), url("./assets/fonts/Helvetica-BoldOblique.woff") format("woff");
}

@font-face {
  font-family: "Helvetica Light";
  font-style: normal;
  font-weight: normal;
  src: local("Helvetica Light"), url("/assets/fonts/helvetica-light.woff") format("woff");
}

/*  general style  */
:root {
  --primary-color: rgb(0, 113, 227);
  --font-color: #6e6e73;
}
* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  font-family: "Helvetica";
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
.container {
  max-width: 980px;
  margin: 0 auto;
}
.overflow-hidden {
  overflow: hidden;
}
.btn {
  font-size: 17px;
  line-height: 1;
  font-weight: 400;

  border: 1px solid var(--primary-color);
  padding: 11px 21px;
  font-family: "Helvetica Light";
  border-radius: 980px;
  letter-spacing: 1px;
  font-weight: 400;
  transition: all 0.5 ease-in-out;
}
.btn-primary {
  background-color: var(--primary-color);
  color: #fff;
}
.btn-primary:hover {
  opacity: 0.8;
  cursor: pointer;
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
}
.btn-secondary:hover {
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
}
.btn-white {
  background-color: #fff;
  border-color: #fff;
  color: #000;
}
.btn-white:hover {
  opacity: 0.8;
  cursor: pointer;
}
/* header */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: rgb(255, 255, 255, 0.8);
  z-index: 30;
}
.navbar {
  padding: 0px 16px;
  font-size: 12px;
  line-height: 1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.icon-apple {
  width: 15px;
  height: 44px;
}
.icon-search {
  width: 15px;
  height: 44px;
}
.navbar a {
  font-size: 12px;
  color: #000;
  text-decoration: none;
  font-weight: 400;
  font-family: "Helvetica Light";
  display: flex;
  justify-content: center;
  align-items: center;
}
.navbar-menu {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 20px;
}
.navbar-mobile {
  display: none;
}
.menu-mobile {
  display: none;
}
/* Section product */
#iphone-15-black {
  margin-top: 46px;
  background-image: url("./assets/image/hero_iphone.jpg");
}
#iphone-15-white {
  background-image: url("./assets/image/hero_iphone_white.jpg");
  margin-top: 20px;
}
#macbook-air {
  background-image: url("./assets/image/macbook_air.jpg");
  margin-top: 20px;
}

#iphone-15-white p {
  color: #000;
}
#iphone-15-white h1 {
  color: #000;
}

#macbook-air p {
  color: #6e6e73;
  font-size: 21px;
}
#macbook-air h1 {
  color: #000;
}
#macbook-air h5 {
  color: #000;
  font-size: 28px;
  margin-bottom: 18px;
}
#macbook-air .btn-secondary {
  display: none;
}
.product {
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 580px;
}
.product-content {
  display: flex;
  color: white;
  flex-direction: column;
  padding-top: 50px;
  text-align: center;
}
.product-content h1 {
  font-size: 56px;
  line-height: 1;
  font-weight: 600;
  font-family: "Helvetica";
  margin-bottom: 12px;
}

.product-content p {
  font-size: 28px;
  line-height: 1;
  font-family: "Helvetica ";
  font-weight: 400;
  margin-bottom: 16px;
}
.cta-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
}
/*  section grid product*/

.grid-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 12px;
}
.grid-items-product {
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  height: 580px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: center;
}
.watch-nine {
  background-image: url("./assets/image/apple_watch.jpg");
}

.watch-ultra {
  background-image: url("./assets/image/apple_watch_white.jpg");
}
.ipad {
  background-image: url("./assets/image/ipad.jpg");
}
.ipad-pro {
  background-image: url("./assets/image/ipad_black.jpg");
}
.macbook {
  background-image: url("./assets/image/macbook_white.jpg");
}
.airpods {
  background-image: url("./assets/image/airpods.jpg");
}
.watch-nine h5 {
  color: #fff;
}
.watch-ultra h5 {
  color: #000;
}
.airpods h2 {
  color: #fff;
}
.airpods p {
  color: #fff;
}
.grid-items-product img {
  margin-top: 60px;
}
.grid-items-product h5 {
  font-size: 21px;
  font-family: "Helvetica Light";
  margin-bottom: 18px;
}
.logo-product {
  margin-bottom: 10px;
  height: 53px;
  width: auto;
}
.product-item h2 {
  margin-top: 53px;
  margin-bottom: 4px;
  font-size: 40px;
  line-height: 1;
  font-weight: 600;
}
.product-item p {
  margin-bottom: 18px;
  font-size: 21px;
  line-height: 1.2;
  letter-spacing: normal;
  font-family: "Helvetica Light";
}
.ipad-pro h2 {
  color: #fff;
}
.ipad-pro p {
  color: #fff;
}
/* Caraousel */

#apple-tv {
  margin-top: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.carousel {
  position: relative;
  max-width: 1280px;
  margin: 0 auto;
  height: 668px;
  margin-bottom: 12px;
}

.carousel-item {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  transition: transform 0.5s ease-in-out, visibility 0.5s ease-in-out;
  /* visibility: hidden; */
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.carousel-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 12px;
  padding-left: 55px;
  padding-bottom: 50px;
}
.carousel-content p {
  color: #fff;
  font-family: "Helvetica Light";
  font-size: 20px;
  line-height: 1.1;
}

.carousel-control {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
}
.carousel-control span {
  background-color: rgba(0, 0, 0, 0.4);
  height: 8px;
  width: 8px;
  border-radius: 100%;
  cursor: pointer;
}

.carousel-control .active {
  background-color: rgba(0, 0, 0, 0.8);
}
.carousel-item.active {
  visibility: visible;
  z-index: 22;
  position: relative;
  transform: translateX(0%);
}
.carousel-item.previous {
  visibility: visible;
  z-index: 11;
  cursor: pointer;
  transform: translateX(-100%);
}
.carousel-item.next {
  visibility: visible;
  z-index: 10;
  cursor: pointer;
  transform: translateX(100%);
}
.carousel-item.move-left {
  transform: translateX(-100%);
  visibility: visible;
}
.carousel-item.move-right {
  transform: translateX(100%);
  visibility: visible;
}
.carousel-item.enter-right {
  transform: translateX(0%);
  visibility: visible;
}
.carousel-item.enter-left {
  transform: translateX(0%);
  visibility: visible;
}

/* Footer */
footer {
  background-color: rgb(245, 245, 247);
  font-size: 12px;
  font-family: "Helvetica Light";
  padding-top: 12px;
  padding-bottom: 12px;
}

.subscribe {
  color: rgba(0, 0, 0, 0.56);
}
.line {
  border-color: rgba(0, 0, 0, 0.16);
  margin: 14px 0;
}
footer ul {
  list-style: none;
}
footer li {
  font-family: "Helvetica Light";
  color: rgba(0, 0, 0, 0.72);
}
.list-footer {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
.list-footer ul {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.retailer {
  color: rgba(0, 0, 0, 0.56);
  font-size: 12px;
}
.list-copyright {
  display: flex;
  justify-content: space-between;
  color: rgba(0, 0, 0, 0.56);
}
.list-accordion {
  display: none;
}
/* Responsive Tablet */
@media screen and (max-width: 920px) {
  .menu-mobile {
    display: flex;
    align-items: center;
    gap: 12px;
  }
  .navbar-menu {
    display: none;
  }
  .navbar-toggle {
    background-color: transparent;
    border: none;
  }
  .navbar-toggle svg {
    height: 24px;
    width: 24px;
  }
  .navbar-mobile {
    position: fixed;
    z-index: 40;
    top: 0;
    bottom: 0;
    right: 0;
    left: 0;
    background: #fff;
    padding: 48px;
    display: none;
    flex-direction: column;
    gap: 16px;
    font-size: 28px;
  }
  .navbar-mobile.active {
    display: flex;
  }
  .navbar-mobile .menu-item {
    text-decoration: none;
    color: #000;
  }
  .close-toggle {
    position: absolute;
    top: 18px;
    right: 18px;
    background-color: transparent;
    border: none;
  }
  .icon-mark {
    width: 24px;
    height: 24px;
  }
  /* Product */
  .product {
    height: 650px;
  }
  .product-content h1 {
    font-size: 48px;
  }
  /* slider */
  .carousel {
    height: 368px;
  }
  .carousel-content {
    padding-left: 30px;
    padding-bottom: 24px;
  }
  .carousel-content .btn {
    font-size: 14px;
  }
  .carousel-content p {
    font-size: 18px;
  }
  /* footer */
  footer {
    padding: 18px 16px;
  }
  .list-footer {
    display: none;
  }
  /* accordion */
  .list-accordion {
    display: block;
  }
  .accordion {
    border: none;
    border-top: 1px solid #000;
    padding: 10px;
    width: 100%;
    text-align: left;
    font-size: 12px;
    position: relative;
    background-color: transparent;
    transition: 0.4s;
  }
  .accordion:first-of-type {
    border: none;
  }
  .accordion:after {
    content: url('data:image/svg+xml;utf,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"> <path stroke-linecap="round" stroke-linejoin="round" d="m4.5 15.75 7.5-7.5 7.5 7.5" /> </svg>');
    color: #000;
    position: absolute;
    right: 20px;
    top: 25%;
    width: 16px;
    height: 16px;
    transform: translate(-50%);
  }
  .accordion.active:after {
    content: url('data:image/svg+xml;utf,<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6"> <path stroke-linecap="round" stroke-linejoin="round" d="m19.5 8.25-7.5 7.5-7.5-7.5" /> </svg>');
  }
  .panel {
    padding: 0 14px;
    background-color: transparent;
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.2s ease-in-out;
  }
  .panel ul {
    display: block;
    height: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 6px;
  }
  .retailer {
    padding: 18px 0px;
  }
  #last-line {
    display: none;
  }
  .list-copyright {
    flex-direction: column;
    gap: 12px;
  }
  .list-copyright .country {
    order: 1;
  }
  .list-copyright .copyright {
    color: rgba(0, 0, 0, 0.25);
    order: 2;
  }
  .list-copyright .law {
    order: 3;
  }
}
/* Mobile */
@media screen and (max-width: 425px) {
  /* general */
  .btn {
    padding: 6px 14px;
    font-size: 14px;
  }
  /* product */
  #iphone-15-black {
    background-image: url("./assets/image/iphone-large-mobile.jpg");
  }

  .product {
    height: 500px;
  }
  .product-content h1 {
    font-size: 32px;
  }
  .product-content p {
    font-size: 18px;
    padding: 0 24px;
  }
  .product-content .check {
    display: none;
  }
  #macbook-air h5 {
    font-size: 18px;
  }
  #macbook-air .btn-secondary {
    display: block;
  }
  #macbook-air {
    background-image: url("./assets/image/macbook_air-mobile.jpg");
  }
  /* grid */
  .grid-container {
    grid-template-columns: repeat(1, 1fr);
  }
  /* caraousel */
  .carousel {
    height: 548px;
  }
  .carousel-content {
    flex-direction: column-reverse;
    padding: 24px 8px;
  }
  .carousel-content p {
    font-size: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }
}
