html {
  box-sizing: border-box;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
  font-weight: 400;
  font-style: normal;
}

h1 {
  font-size: 50px;
  line-height: 64px;
  color: #222;
}

h2 {
  font-size: 46px;
  line-height: 54px;
  color: #222;
}

h4 {
  font-size: 20px;
  color: #000000;
}

h6 {
  font-weight: 700;
  font-size: 12px;
}

p {
  font-size: 16px;
  color: #465b52;
  margin: 15px 0 20px 0;
}

a {
  text-decoration: none;
}

.section-p1 {
  padding: 40px 80px;
}

.section-m1 {
  padding: 40px 0px;
}

button.normal {
  font-size: 14px;
  font-weight: 600;
  padding: 15px 30px;
  color: #000;
  background-color: #fff;
  border-radius: 4px;
  cursor: pointer;
  border: none;
  outline: none;
  transition: 0.2s;
}

body {
  width: 100%;
}

#header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0px 30px;
  background: #e3e6f3;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.06);
  z-index: 999;
  position: sticky;
  top: 0;
  left: 0;
}

#navbar {
  display: flex;
  align-items: center;
  justify-content: center;
}

#navbar li {
  list-style: none;
  padding: 0 20px;
  position: relative;
}

#navbar li a {
  text-decoration: none;
  font-size: 16px;
  font-weight: 600;
  color: #1a1a1a;
  transition: 0.3s ease;
}

#navbar li a:hover,
#navbar li a.active {
  color: #088178;
}

#navbar li a.active::after,
#navbar li a:hover::after {
  content: "";
  width: 30%;
  height: 2px;
  background: #088178;
  position: absolute;
  bottom: -4px;
  left: 20px;
}

#mobile {
  display: none;
  align-items: center;
}

#close {
  display: none;
}

/* Homepage (index) */

/* Hero section */
#hero {
  position: relative;
  width: 100%;
  height: 60vh;
  overflow: hidden;
}

#hero h4 {
  color: #fff;
}

/* Slides */
.slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  object-fit: cover;
  display: none; /* Tất cả các slide đều bị ẩn ban đầu */
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  padding: 0 80px;
  color: #fff;
}

/* Hiển thị slide đang active */
.slide.active {
  display: flex;
}

/* Slide backgrounds */
.slide:nth-child(1) {
  background-image: url("images/products/hero/hero_12.png");
}

.slide:nth-child(2) {
  background-image: url("images/products/hero/hero_11.png");
}

.slide:nth-child(3) {
  background-image: url("images/products/hero/hero_5.png");
}

/* Button styles */
#hero button {
  background-color: #088178;
  color: #fff;
  border-radius: 30px;
  border: 0;
  padding: 14px 80px 14px 80px;
  margin: 15px;
  background-repeat: no-repeat;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
}

/* Thanh trượt hiển thị vị trí */
#dot-pagination {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
}

#dot-pagination .dot {
  width: 12px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

#dot-pagination .dot.active {
  background-color: rgba(255, 255, 255, 1);
}

/* Product Ads */

#product-ads .content-ads:nth-child(1) {
  background-image: url("images/products/hero/hero_8.png");
  height: 80vh;
  width: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top 25% right 0;
  padding: 0 80px;
}

#product-ads .content-ads:nth-child(2) {
  background-image: url("images/products/hero/hero_13.png");
  height: 80vh;
  width: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top 25% right 0;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

#product-ads .content-ads:nth-child(3) {
  background-image: url("images/products/hero/hero_15.jpg");
  height: 80vh;
  width: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top 25% right 0;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#product-ads .content-ads:nth-child(4) {
  background-image: url("images/products/hero/hero_14.png");
  height: 80vh;
  width: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top 25% right 0;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

#product-ads h4,
h2,
p {
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 15px 0 15px 0;
}

#product-ads button {
  background-color: #088178;
  color: #fff;
  border: 0;
  border-radius: 30px;
  padding: 14px 80px 14px 80px;
  background-repeat: no-repeat;
  cursor: pointer;
  font-weight: 700;
  font-size: 15px;
  display: flex;
}

#feature {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

#feature .fe-box {
  width: 180px;
  text-align: center;
  padding: 25px 25px;
  box-shadow: 20px 20px 34px rgba(0, 0, 0, 0.03);
  border: 1px solid #cce7d0;
  border-radius: 4px;
  margin: 15px 0;
}

#feature .fe-box:hover {
  box-shadow: 10px 10px 54px rgba(70, 62, 221, 0.1);
}

#feature .fe-box img {
  width: 80%;
  margin-bottom: 10px;
}

#feature .fe-box h6 {
  display: flex;
  line-height: 1;
  color: #fff;
  background-color: #088178;
  height: 3vh;
  border-radius: 30px;
  opacity: 0.7;
  background-position: center;
  background-size: 120% 100%;
  padding: 17px;
  flex-direction: column;
  justify-content: center;
}

/* Section container */
#product-ads-6-grids {
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* 2 cột */
  gap: 20px; /* Khoảng cách giữa các phần tử */
  padding: 20px;
  background-color: #f5f5f5;
}

/* Mỗi phần tử grid */
#product-ads-6-grids .product-ad {
  position: relative; /* Cho phép định vị ảnh tuyệt đối */
  overflow: hidden; /* Ẩn phần ảnh dư */
  height: 300px; /* Chiều cao cố định của mỗi phần tử */
}

/* Hình ảnh */
#product-ads-6-grids .product-ad img {
  position: absolute; /* Để ảnh nằm toàn bộ trong container */
  top: 0;
  left: 0;
  width: 100%; /* Chiếm hết chiều rộng */
  height: 100%; /* Chiếm hết chiều cao */
  object-fit: cover;
}

/* Tùy chỉnh hover */
#product-ads-6-grids .product-ad:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease-in-out;
}

#product1 {
  text-align: center;
}

#product1 h2,
p {
  color: #1a1a1a;
}

#product1 .pro-container {
  display: flex;
  justify-content: space-between;
  padding-top: 20px;
  flex-wrap: wrap;
}

#product1 .pro {
  width: 23%;
  min-width: 250px;
  padding: 10px 12px;
  border: 1px solid #cce7d0;
  border-radius: 25px;
  cursor: pointer;
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.02);
  margin: 15px 0;
  transition: 0.2 ease;
  position: relative;
}

#product1 .pro:hover {
  box-shadow: 20px 20px 30px rgba(0, 0, 0, 0.06);
}

#product1 .pro img {
  width: 100%;
  border-radius: 20px;
}

#product1 .pro .des {
  text-align: start;
  padding: 10px 0;
}

#product1 .pro .des span {
  color: #060663;
  font-size: 12px;
}

#product1 .pro .des h5 {
  padding-top: 7px;
  color: #1a1a1a;
  font-size: 14px;
}

#product1 .pro .des .star i {
  font-size: 12px;
  color: rgb(243, 181, 25);
  transition: color 0.3s ease;
  cursor: pointer;
}

#product1 .pro .des .star i:hover {
  color: rgb(243, 181, 25);
}

#product1 .pro .des h4 {
  padding-top: 7px;
  font-size: 15px;
  font-weight: 700;
  color: #088178;
}

#product1 .pro .cart {
  width: 40px;
  height: 40px;
  line-height: 40px;
  border-radius: 50px;
  background-color: #e8f6ea;
  font-weight: 600;
  color: #088178;
  border: 1px solid #cce7d0;
  position: absolute;
  bottom: 20px;
  right: 10px;
  display: flex;
  justify-content: center;
  transition: all 0.3s ease;
  overflow: hidden;
}

#product1 .pro .cart::after {
  content: "Add to cart";
  margin-right: 5px;
  font-family: "Poppins", sans-serif;
  color: #088178;
  display: none;
  white-space: nowrap;
}

#product1 .pro .cart:hover {
  width: 180px;
  border-radius: 20px;
  border: 2px solid #088178;
  background-color: #cce7d0;
  flex-direction: row-reverse;
}

#product1 .pro .cart:hover::after {
  display: inline;
  margin-left: 5px;
  padding: 0px 10px 0px;
}

#product1 .pro .cart.added {
  background-color: #d4edda;
  color: #155724;
}

#product1 .pro .cart.added::after {
  content: "Added";
  display: block;
  color: #155724;
}

#newsletter {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  align-items: center;
  background-image: url("images/banner/b14.png");
  background-repeat: no-repeat;
  background-position: 20% 30%;
  background-color: #041e42;
}

#newsletter h4 {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
}

#newsletter p {
  font-size: 14px;
  font-weight: 600;
  color: #818ea0;
  padding-bottom: 0px;
}

#newsletter p span {
  color: #ffbd27;
}

#newsletter .form {
  display: flex;
  width: 30%;
}

#newsletter input {
  height: 3.125rem;
  padding: 0 1.2em;
  font-size: 14px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 4px;
  outline: none;
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

#newsletter button {
  background-color: #088178;
  color: #fff;
  padding: 0 1.2em;
  border: 1px solid transparent;
  white-space: nowrap;
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

#newsletter button:hover {
  background-color: #065c49;
}

footer {
  background-color: white;
  color: black;
  padding: 20px 20px;
  font-family: Arial, sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  text-align: center;
}

.footer-logo {
  margin: 30px;
  width: 25vh;
}

.footer-sections {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-column {
  flex: 1;
  min-width: 200px;
  margin: 0 10px;
  text-align: left;
}

.footer-column h4 {
  font-weight: bold;
  margin-bottom: 15px;
  text-transform: uppercase;
  font-size: 14px;
}

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

.footer-column li {
  margin: 8px 0;
}

.footer-column a {
  text-decoration: none;
  color: black;
  font-size: 14px;
}
.footer-column p {
  text-decoration: none;
  color: black;
  font-size: 14px;
}

.footer-column a:hover {
  text-decoration: underline;
}

footer .follow {
  margin-top: 20px;
}

footer .icon {
  display: flex;
  justify-content: center;
  padding: 20px;
  font-size: 2vh;
  text-decoration: none;
}

footer .icon i {
  color: #465b52;
  cursor: pointer;
}

footer .icon i:hover,
footer a:hover {
  color: #088178;
}

footer .copyright {
  width: 100%;
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #eaeaea;
  margin-top: 20px;
}

#product-description {
  white-space: pre-wrap;
}

#shop_page_hero {
  background-image: url("images/hero.png");
  height: 40vh;
  width: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top 45% right 0px;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

#shop_page_hero h2,
#shop_page_hero p {
  color: #fff;
}
#pagination {
  text-align: center;
}

#pagination a {
  text-decoration: none;
  background-color: #f0f0f0;
  padding: 15px 20px;
  border-radius: 4px;
  color: #333;
  font-weight: 600;
  margin: 5px;
  transition: background-color 0.3s, color 0.3s;
}

#pagination a.active {
  background-color: #088178;
  color: #fff;
}

#pagination a:hover {
  background-color: #ccc;
}

#prodetails {
  display: flex;
  margin-top: 20px;
  padding: 0px 200px 20px 250px;
}

#prodetails .single-pro-image {
  width: 40%;
  margin-right: 50px;
}

.small-img-group {
  display: flex;
  justify-content: space-between;
}

.small-img-col {
  flex-basis: 24%;
  cursor: pointer;
}

#prodetails .single-pro-details {
  width: 50%;
  margin: 30px;
}

#prodetails .single-pro-details h4 {
  padding: 20px 0 0px 0;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

#prodetails .single-pro-details h2 {
  font-size: 26px;
  color: #1a1a1a;
  padding: 20px 0 20px 0;
  font-weight: bold;
  font-family: Arial, sans-serif;
}

#prodetails .single-pro-details select {
  display: block;
  padding: 5px 10px;
  margin-bottom: 10px;
  border: 1px solid #1a1a1a;
}

#prodetails .single-pro-details input {
  width: 20px;
  height: 20px;
  padding-left: 10px;
  font-size: 16px;
  margin-right: 10px;
}

#prodetails .single-pro-details button {
  color: #ccc;
  font-size: 25px;
}

#prodetails .single-pro-details button:hover {
  color: #065c49;
}

#prodetails .single-pro-details input:focus {
  outline: none;
}

#prodetails .single-pro-details span {
  line-height: 25px;
}

#about-page-hero.about-hero {
  background-image: url("images/about/image.png");
  height: 40vh;
  width: 100%;
  max-width: 100%;
  background-size: cover;
  background-position: top 65% right 0px;
  padding: 0 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#about-page-hero h2,
#about-page-hero p {
  color: #1a1a1a;
  font-weight: 500;
  text-align: center;
}

#about-info img {
  width: 50%;
  height: auto;
}

#about-info {
  display: flex;
  align-items: center;
}

#about-info div {
  padding-left: 40px;
}

#about-info h2 {
  font-size: 28px;
  font-weight: bold;
  color: #333;
  margin-bottom: 20px;
}

#about-info p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  text-align: justify;
}

#about-video {
  text-align: center;
}

#about-video .video {
  width: 100%;
  height: 100%;
  margin: 30px auto 0 auto;
}

#about-video .video iframe {
  border-radius: 20px;
}

#cart-page-hero h2,
#cart-page-hero p {
  color: #1a1a1a;
  font-weight: 500;
  text-align: center;
}

#cart {
  overflow-x: auto;
}
#cart table {
  width: 100%;
  border-collapse: collapse;
}

#cart table img {
  width: 70%;
}

#cart table td:nth-child(1) {
  width: 100px;
  text-align: center;
}
#cart table td:nth-child(2) {
  width: 150px;
  text-align: center;
}
#cart table td:nth-child(3) {
  width: 250px;
  text-align: center;
}
#cart table td:nth-child(4),
#cart table td:nth-child(5),
#cart table td:nth-child(6) {
  width: 150px;
  text-align: center;
}

#cart table td:nth-child(5) input {
  width: 70px;
  padding: 10px 5px 10px 15px;
  border: 1px solid #1a1a1a;
}

#cart table thead {
  border: 1px solid #e2e9e1;
  border-left: none;
  border-right: none;
}

#cart table thead td {
  font-weight: 700;
  text-transform: uppercase;
  font-size: 13px;
  padding: 18px 0;
}

#cart table tbody tr td {
  padding-top: 15px;
}

#cart table tbody td {
  font-size: 13px;
}

#cart-add {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

#coupon {
  width: 50%;
  margin-bottom: 30px;
}

#coupon h3,
#subtotal h3 {
  padding-bottom: 15px;
}

#coupon input {
  padding: 10px 20px;
  outline: none;
  width: 80%;
  margin-right: 10px;
  border: 1px solid #e2e9e1;
}

#coupon button,
#subtotal button {
  background-color: #088178;
  color: #fff;
  padding: 12px 20px;
}
#subtotal {
  width: 50%;
  border: 1px solid #e2e9e1;
  padding: 30px;
}

#subtotal table {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 20px;
}

#subtotal table td {
  width: 50%;
  border: 1px solid #e2e9e1;
  padding: 10px;
  font-size: 13px;
}

/* Start Media Query */
@media (max-width: 1500px) {
  h4,
  h2,
  p {
    padding: 0.5vh;
  }
  h2 {
    font-size: 26px;
  }

  #feature .fe-box {
    margin: 15px 60px !important;
  }
}

@media (max-width: 1024px) {
  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #e3e6f3;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.01);
    padding: 80px 0 0 10px;
    transition: 0.3s;
  }

  #navbar.active {
    right: 0px;
  }

  #navbar li {
    margin-bottom: 25px;
  }

  #mobile {
    display: flex;
    align-items: center;
  }

  #mobile i {
    color: #1a1a1a;
    font-size: 24px;
    padding-left: 20px;
  }

  #close {
    display: initial;
    position: absolute;
    top: 30px;
    left: 30px;
    color: #222;
    font-size: 24px;
  }

  #lg-cart {
    display: none;
  }

  .section-p1 {
    padding: 40px 150px;
  }

  #product-ads .content-ads:nth-child(1) {
    height: 60vh;
    background-position: 0;
  }

  #product-ads .content-ads:nth-child(2) {
    height: 60vh;
    background-position: center;
  }

  #product-ads .content-ads:nth-child(3) {
    height: 60vh;
    background-image: url("images/products/hero/hero_15.jpg");
  }

  #product-ads .content-ads:nth-child(4) {
    height: 60vh;
    background-image: url("images/products/hero/hero_14.png");
  }

  #product-ads-6-grids img {
    object-position: left;
  }

  #newsletter .form {
    width: 50%;
  }

  #newsletter.section-p1 {
    padding: 40px 100px;
    height: 35vh;
  }
}

@media (max-width: 820px) {
  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #e3e6f3;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.01);
    padding: 80px 0 0 10px;
    transition: 0.3s;
  }

  #navbar.active {
    right: 0px;
  }

  #navbar li {
    margin-bottom: 25px;
  }

  #mobile {
    display: flex;
    align-items: center;
  }

  #mobile i {
    color: #1a1a1a;
    font-size: 24px;
    padding-left: 20px;
  }

  #close {
    display: initial;
    position: absolute;
    top: 30px;
    left: 30px;
    color: #222;
    font-size: 24px;
  }

  #lg-cart {
    display: none;
  }

  #hero {
    height: 50vh;
    width: 100%;
    padding: 0 20px;
    background-image: url("images/hero.png");
    background-position: 35%;
  }

  #feature .fe-box {
    margin: 15px 30px !important;
  }

  .section-p1 {
    padding: 40px 100px;
  }

  #newsletter.section-p1 {
    padding: 40px 30px;
    height: 25vh;
  }

  #newsletter .form {
    width: 50%;
  }

  #newsletter input {
    width: 19em;
    padding: 0 3.1em;
  }
}

@media (max-width: 768px) {
  #navbar {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    position: fixed;
    top: 0;
    right: -300px;
    height: 100vh;
    width: 300px;
    background-color: #e3e6f3;
    box-shadow: 0 40px 60px rgba(0, 0, 0, 0.01);
    padding: 80px 0 0 10px;
    transition: 0.3s;
  }

  #navbar.active {
    right: 0px;
  }

  #navbar li {
    margin-bottom: 25px;
  }

  #mobile {
    display: flex;
    align-items: center;
  }

  #mobile i {
    color: #1a1a1a;
    font-size: 24px;
    padding-left: 20px;
  }

  #close {
    display: initial;
    position: absolute;
    top: 30px;
    left: 30px;
    color: #222;
    font-size: 24px;
  }

  #lg-cart {
    display: none;
  }

  #hero {
    height: 50vh;
    width: 100%;
    padding: 0 20px;
    background-image: url("images/hero.png");
    background-position: 35%;
  }

  .section-p1 {
    padding: 40px 100px;
  }

  #newsletter .form {
    width: 50%;
  }

  #newsletter.section-p1 {
    padding: 40px 70px;
    height: 25vh;
  }
}

@media (max-width: 477px) {
  .section-p1 {
    padding: 40px;
  }
  #header {
    padding: 0px 20px;
  }

  h1 {
    font-size: 38px;
  }

  h2 {
    font-size: 21px;
  }

  h4 {
    font-size: 15px;
    color: #222;
  }

  #hero {
    height: 50vh;
    padding: 0 20px;
    background-image: url("images/hero.png");
    background-position: 15%;
    overflow: hidden;
  }

  #hero h4,
  h2,
  p {
    color: #fff;
    padding-bottom: 10px;
  }

  #hero button {
    padding: 14px 40px 14px 40px;
  }

  #feature {
    justify-content: space-between;
    flex-direction: column;
  }

  #product-ads .content-ads:nth-child(1) {
    background-position: center;
  }

  #product1 .pro-container {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    flex-wrap: wrap;
  }

  #product1 .pro {
    width: 48%;
    min-width: 200px;
  }

  #product1 .pro img {
    width: 50%;
    border-radius: 20px;
  }

  #product-ads-6-grids {
    display: grid;
    grid-template-columns: none;
    gap: 20px;
    padding: 20px;
    background-color: #f5f5f5;
  }

  #newsletter {
    padding: 40px 20px;
  }

  #newsletter .form {
    width: 100%;
  }

  #newsletter input {
    width: 14em;
    padding: 0 1em;
  }

  #newsletter .form {
    width: 50%;
  }

  #newsletter.section-p1 {
    padding: 40px 50px;
    height: 40vh;
  }

  footer p {
    color: #1a1a1a;
  }

  .copyright p {
    color: #1a1a1a;
  }
}
