body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
  background-color:#fff;
  background-attachment: fixed;
  width: 100%; 
  overflow-x: hidden;
}


header {
  background-color: #b0e3e3;
 
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: fixed; /* Cố định header */
  top: 0; /* Đặt header ở đầu trang */
  width: 100%; /* Bao phủ toàn bộ chiều ngang */
  z-index: 1000; /* Đảm bảo header nằm trên các phần tử khác */
}


header .logo {
  font-size: 40px;
  font-weight: bold;
  color: #e30613;

}


#menu {
  display: none;
}
.logo img {
  height: 40px;
}

header nav {
  display: flex;
  gap: 20px;
  position: relative;
  font-weight: bold;
}

header nav a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
  position: relative;
}



.content {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  width: 150%;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  display: none;
  z-index: 2;
}

nav a:hover{
  color:#e30613;
}

nav a:hover + .content, .content:hover {
  display: grid;
}

.card {
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.3s;
  width: 200px;
  margin: 5px auto;
  height: 180px;
}

.card:hover {
  transform: scale(1.1);
}

.card img {
  width: 100%;
  height: 70%;
  margin: 0 auto;
  display: block;
}

.card .info {
  padding: 10px;
  text-align: center;
  font-weight: bold;
}

/*------------------------------------------------------------------------*/
.search-and-icons {
  display: flex;
  align-items: center;
  justify-items: center;
  gap: 10px;
  width: 40%;
  margin-right: 20px;
}

.search-bar {
  display: flex;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 5px 10px;
  background-color: #fff;
}

.search-bar input {
  border: none;
  outline: none;
  padding: 5px;
}

.search-bar i {
  color: #5f5a5a;
  font-size: 18px;
  cursor: pointer;
}

.search-bar i:hover{
  color:rgba(0, 0, 0, 0.6);
  transform: scale(1.1);
}





.icons {
  display: flex;
  
  align-items: center;
  justify-items: center;
  justify-content: center;
}

.icons a {
  text-decoration: none;
  color: #333; 
}


.icons a:hover{
  color:#e30613;
  cursor: pointer;
}

.icons img {
  width: 35px;
  height: 35px;
  border-radius: 50%;
}

.icons i {
  font-size: 16px;
}

.icons i:hover{
  transform: scale(1.2);
}


.login{
  font-size: 18px;
  display:flex;
  gap:20px;
  align-items: center;
  justify-content: center;
  font-family: Arial, Helvetica, sans-serif;
  
}

/*--------------------------------------------------*/

/*-------------------------------------------------------------------------------------------*/

.slideshow {
  position: relative;
  width: 80%;
  max-width: 800px;
  height: 400px;
  overflow: hidden;
  border: 2px solid #ccc;
  border-radius: 10px;
  background-color: #000;
  z-index: 1;
}

.list-img{
  margin: 20px 50px;
}

.slide {
  position: absolute;
  object-fit: cover;
  opacity: 0;
  transition: opacity 1s ease-in-out;
  top: 100px;
  left: 10%;
  right: 10%;
  width: 80%;
}

.slide.active {
  opacity: 1;
}

button {
  position: relative;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.7);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  z-index: 10;
}

button.prev {
  left: 130px;
}

button.next {
  right: 130px;
}

button:hover {
  background: rgba(255, 255, 255, 0.9);
}

/* --------------------------------------------------------------------------------- */



.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.5); /* Nền tối mờ */
  z-index: 9999;
}

.popup-content {
  position: relative;
  padding: 20px;
  text-align: center;
}

.popup-content img {
  max-width: 60%;
  height: auto;
}

#close-popup {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent;
  border: none;
  font-size: 24px;
  color: #fff;
  cursor: pointer;
  transition: color 0.4s;
}

#close-popup:hover {
  color: #c7001a;
   /* Đổi màu khi hover */
}


/*-------------------------------------------------------------------------------*/

.container {
  width: 100%;
  margin: 50% 20px 0 20px;
  text-align: center;
  margin-left: 0;
}

.title {
  font-size: 24px;
  margin-left: 20px;
  color: #121111;
  text-align: center;
}

.title a{
  text-decoration: none;
  color:#121111;
}

.title a:hover{
  color: #e60023;
  cursor: pointer;
}

.slider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.products {

  overflow: hidden;
  width: 100%;
  justify-content: center; 
  gap: 10px; 
  margin: 10px 90px;
  display: flex;
}

.product {
  width: 20%;
  text-align: center;
  background-color: #fff;
  margin: 15px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product:hover {
  transform: scale(1.08);
  cursor: pointer;
  color: #c7001a;
}

.product img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}



.info {
  margin-top: 10px;
}

.info p {
  margin: 5px 0;
  color: #666;
}

.info h3 {
  font-size: 16px;
  color: #333;
}

.price {
  color: #e60023;
  font-weight: bold;
}

button {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
}

button.prev-1 {
  left: 100px;
}

button.next-1 {
  right: 100px;
}

button:hover {
  background-color: #e60023;
  color: #fff;
}
 
/*-------------------------------------------------------------------------------------------*/


.featured {
  padding: 20px;
  text-align: center;
  margin-bottom: 80px;
  margin-right: 190px;
}

.featured h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 50px;
  margin-top: 70px;
  
}

.featured h2 a{
  text-decoration: none;
  color:#121111;
}

.featured h2 a:hover{
  cursor: pointer;
  color: #e60023;
}

.featured-container {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px; /* Tăng khoảng cách giữa các ảnh */
  margin-top: 50px;
  max-height: 350px;
  margin: 10px 116px;
}

.featured-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  display: flex; /* Căn giữa nội dung */
  justify-content: center; /* Căn ngang */
  align-items: center; /* Căn dọc */
}

.featured-item img {
  width: 100%;
  height: auto; /* Đảm bảo ảnh không bị méo */
  object-fit: contain; /* Ảnh được chứa trong khung mà không bị cắt */
  transition: transform 0.3s ease;
}

.featured-item.large {
  grid-row: span 2;
}


.featured-item:hover img {
  transform: scale(1.05); /* Giảm mức phóng to để giữ cân đối */
  cursor: pointer;
}


.featured-item.small {
  position: relative; /* Để định vị overlay */
  width: 180%; /* Đảm bảo container có chiều rộng chiếm toàn bộ */
   /* Đảm bảo chiều cao container linh hoạt */
  overflow: hidden; /* Ẩn phần ảnh tràn ra ngoài container */
}

.featured-item.small img {
  width: 100%; /* Đảm bảo ảnh vừa khít chiều rộng container */
  height: 100%; /* Đảm bảo ảnh phủ kín chiều cao container */
  object-fit: cover; /* Giữ tỷ lệ ảnh, làm cho ảnh vừa khít container mà không bị méo */
  display: block; /* Xóa khoảng trống do ảnh là inline-block */
}
/*------------------------------------------------------------------------------------*/

.container-recommendation .product img {
   width: 100%; 
   border-radius: 10px; 
   height: 100%; }

.container-top-sellings .product img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

/*-----------------------------------------------------------------------*/
.video-container {
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  margin: 0 auto;
}


.video-container h2{
  margin-bottom:50px;
  text-align: center;
}


.video-container h2:hover{
  cursor: pointer;
  color: #e60023;
}

video {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 50px;
}
/*------------------------------------------------------------------------------*/

.popular-searches {
  max-width: 100%;
  margin: 0;
  justify-items: center;
}

.popular-searches h2:hover {
  cursor: pointer;
  color: #e60023;
}


.popular-searches h2 {
  font-size: 24px;
  margin-bottom: 50px;
  margin-top: 100px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 100px;
}

.tag {
  display: inline-block;
  padding: 8px 12px;
  font-size: 14px;
  border-radius: 15px;
  background-color: #f5f5f5;
  border: 1px solid #ddd;
  cursor: pointer;
  transition: background-color 0.3s, transform 0.2s;
}

.tag:hover {
  background-color: #e0e0e0;
  transform: scale(1.05);
}

.tag.special {
  color: #f00;
  font-weight: bold;
}

.tag.special::before {
  content: "🔥 ";
}


  /*---------------------------------------------------------------------------------------------------------------------*/
 

  .products-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 4 cột */
  grid-auto-rows: auto;
  justify-content: center; /* Căn giữa các sản phẩm bên trong */
  gap: 10px;/* Khoảng cách giữa các sản phẩm */
  margin: 10px 90px;

  }

 

  /*---------------------------------------------------------------------------------------*/
  /* Footer Styles */
  .footer {
    background-color: #b0e3e3;
    color: #000;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    height: 200px;
    margin-top: 50px;
}

.footer .column {
    flex: 1;
    margin: 0 10px;
}

.footer .column h3 {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
}



  .footer .column ul {
    list-style: none;
    padding: 0;
}

.footer .column ul li {
    margin-bottom: 10px;
    font-size: 14px;
}

.footer .column ul li a {
    text-decoration: none;
    color: #000;
    transition: color 0.3s;
}

.footer .column ul li a:hover {
    color: #e30613;
}

.footer .contact {
    font-size: 14px;
}

.footer .contact i {
    margin-right: 10px;
}

.footer .logo img {
  width: 150px;
  margin-top: 20px;
  height: auto;
  }

/*ipad pro*/
  @media (max-width: 1024px){
    .login-text {
      display: none;
  }

  .skullpanda {
    display: none;
  }

  .search-and-icons {
    gap: 15px;
    margin-right: 10px;
  }

  .icons{
    gap:15px;
  }

  .slide-show .list-img button{
    display: none;
  }


  }




  /*iphone 6/7/8 plus    <i class="fa-solid fa-bars"></i>   */
  @media (max-width: 414px) {

      .logo img {
        height: 40px;
        position: absolute;
        right: 40%;
        top: 10px;
    }
  

  header nav {
    display: none;
  }

  .slide {
    position: absolute;
    left: 10%;
    width: 80%;
    top: 80px;
  }

  .productss .product {
    display: none; /* Ẩn tất cả sản phẩm */
  }
  
  .products .product:first-child {
    display: block; /* Chỉ hiện sản phẩm đầu tiên */
  }

  .product {
    flex: 0 0 calc(50% - 15px); /* Đảm bảo mỗi sản phẩm chiếm 50% chiều rộng (trừ khoảng cách giữa chúng) */
}

  button.next-1{
    display:none;
  }

  button.prev-1{
    display:none;
  }

  .icons {
    display: none;
  }
  .search-bar {
    display: none;
  }

  #menu{
    display: flex;
  }

  .container {
    width: 100%;
    margin: 250px 20px 0 20px;
    text-align: center;
    margin-left: 0;
}

.products {
  overflow: hidden;
  width: 100%;
  justify-content: center;
  gap: 12px;
  margin: 10px 40px;
  display: flex;
  justify-content: space-between;
}

  .fa-solid, .fas {
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 35px;
}

.footer .logo img {
  display:none;
}

.product {
  width: 20%;
  text-align: center;
  background-color: #fff;
  /* margin: 15px; */
  margin: 5px;
  margin-bottom: 20px;
  border-radius: 10px;
  transition: transform 0.3s ease;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

.product img {
  width: 100%;
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
}

.featured-container {
  display: grid
;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: repeat(2, 1fr);
  gap: 20px;
  margin-top: 50px;
  max-height: 350px;
  margin: 10px 40px;
}

.featured {
  padding: 0px;
  text-align: center;
}


.popular-searches h2 {
  font-size: 24px;
  margin-bottom: 50px;
  margin-top: 50px;
}


.popular-searches h2 {
  font-size: 24px;
  margin-bottom: 50px;
  margin-top: 50px;
}

.title {
  font-size: 24px;
  margin-left: 20px;
  color: #121111;
  text-align: center;
  margin-top: 30px;
}

.featured h2 {
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 40px;
  margin-top: 20px;
}

.tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
  margin-left: 40px;
  margin-right: 40px;
}


.products-top {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: auto;
  justify-content: center;
  gap: 12px;
  margin: 20px 30px;
  justify-items: center;
}

.footer {
  background-color: #b0e3e3;
  color: #000;
  padding: 0px;
  display: flex;
  justify-content: space-between;
  height: 200px;
  margin: 50px 0;
  margin-bottom: 0;
}



.footer .column {
  margin: 20px 10px;
  flex:auto;
}

.contact {
  display:none;
}

video {
  width: 80%;
  height: auto;
  display: block;
  margin-bottom: 50px;
  margin: auto 40px;
}

.video-container h2 {
  margin-bottom: 50px;
  text-align: center;
  margin: 40px 40px;
}


.video-container {
  max-width: 800px;
  width: 100%;
  overflow: hidden;
  margin: 50px 0;
  margin-top: 20px;
}

.products-top .product:nth-child(n+9) {
  display: none; /* Ẩn các sản phẩm từ vị trí thứ 9 trở đi */
}

html{
  width:100%;
  overflow-x: hidden;
  background-attachment: fixed;
}
  }

  