/* Reset và style cơ bản */
* {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
}

body {
  font-family: Arial, sans-serif;
  width: 100%;
  background-color: #f9f9f9;
  color: #333;
  min-height: 100vh; /* Đảm bảo body cao tối thiểu bằng màn hình */
  display: flex;
  flex-direction: column; /* Sử dụng flexbox để sắp xếp các phần tử */
}

main {
  flex: 1 0 auto; /* Phần main sẽ mở rộng để chiếm toàn bộ không gian còn lại */
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: black;
}

/* Fixed Icon */
.fixed-icon {
  width: 60px;
  height: 280px;
  position: fixed;
  right: 0;
  top: 20rem;
  display: flex;
  flex-direction: column;
  z-index: 3;
}

.fixed-icon a {
  color: white;
}

.icons {
  width: 50px;
  height: 50px;
  background-color: red;
  margin-top: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  color: white;
  border-radius: 50px;
  overflow: hidden;
}

.phone { background-color: #e32636; }
.mess, .mail { background: linear-gradient(160deg, #0093e9 0%, #80d0c7 100%); }
.locate { background: linear-gradient(62deg, #e2702e 0%, #f7ce68 100%); }

/* Header */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

.main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 0;
  flex-wrap: wrap;
}

.container {
  max-width: 1200px;
  margin: auto;
  padding: 0 15px;
}

.logo-text {
  font-size: 28px;
  font-weight: bold;
  color: red;
}

.tagline {
  font-size: 14px;
  color: #666;
}

.search-bar {
  display: flex;
  align-items: center;
  flex: 1;
  margin: 10px 20px;
}

.search-bar input {
  width: 100%;
  padding: 10px 15px;
  border: 1px solid #ccc;
  border-radius: 25px 0 0 25px;
  outline: none;
}

.search-bar button {
  padding: 10px;
  border: none;
  background-color: red;
  border-radius: 0 25px 25px 0;
  cursor: pointer;
}

.search-bar button img {
  width: 20px;
  height: 20px;
}

.right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

.user-actions a {
  margin-right: 10px;
  font-size: 14px;
}

.user-actions img {
  width: 24px;
  height: 24px;
  vertical-align: middle;
}

.hotline {
  display: flex;
  align-items: center;
  gap: 10px;
}

.phone-icon img {
  width: 24px;
  height: 24px;
}

.hotline-text {
  font-size: 12px;
  color: #666;
}

.phone-number {
  font-size: 14px;
  color: #e32636;
  font-weight: bold;
}

/* Navigation */
#nav {
  width: 100%;
  height: 50px;
  background-color: red;
}

.nav-content {
  position: relative;
  width: 100%;
  height: 100%;
  margin: 0 auto;
  z-index: 2;
  display: flex;
  justify-content: center;
}

.nav-cont {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 15px;
  font-weight: bold;
  padding: 0 20px;
}

.nav-cont .drop-menu-1 {
  position: absolute;
  top: 100%;
  left: 0;
  background-color: white;
  width: 200px;
  border: 1px solid #ccc;
  line-height: 30px;
  display: none;
}

.drop-menu-2 {
  position: absolute;
  width: 100%;
  min-height: 200px;
  top: 100%;
  left: 0;
  color: black;
  line-height: 30px;
  text-align: left;
  display: none;
  background-color: white;
}

.nav-content-2:hover .drop-menu-2,
.nav-content-1:hover .drop-menu-1 {
  display: block;
}

/* Service Features */
.service-features {
  background-color: #fff;
  padding: 20px 0;
}

.features-grid {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  flex-wrap: wrap;
}

.feature-item {
  flex: 1 1 180px;
  text-align: center;
  font-size: 14px;
}

.feature-icon img {
  width: 50px;
  margin-bottom: 10px;
}

.feature-text {
  color: #333;
}

/* Content */
#content {
  width: 80%;
  min-height: 368px;
  margin: 0 auto;
  overflow: hidden;
}

.danh-muc-img-thuc-pham {
  width: 100%;
  min-height: 412px;
  margin-top: 30px;
  text-align: left;
}

.danh-muc-content {
  width: 100%;
  height: 412px;
  line-height: 40px;
  text-align: left;
}

.danh-muc-content li {
  border: 1px solid black;
  padding-left: 20px;
}

.DM {
  background-color: red;
  font-weight: bold;
  font-size: 25px;
  color: white;
  border-radius: 10px;
}

.danh-muc-content li:first-child { padding-left: 10px; }
.danh-muc-content li:nth-child(2) { border-top: none; }
.li-last { border-radius: 0 0 10px 10px; }

/* Banner */
.img-first {
  width: 100%;
  margin: 20px 20px 50px;
  text-align: center;
  overflow: hidden;
}

.img-first img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.banner-slider-wrapper {
  position: relative;
  width: 125%;
  max-width: 1300px;
  margin: 30px auto;
  overflow: hidden;
  border-radius: 10px;
}

.banner-slider {
  width: 100%;
}

.banner-slide {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
  display: none;
}

.banner-slide[style*="display: block"] {
  display: block;
}

.banner-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.7);
  border: none;
  font-size: 24px;
  padding: 10px;
  cursor: pointer;
  border-radius: 50%;
}

.banner-btn.prev { left: 10px; }
.banner-btn.next { right: 10px; }

/* Product */
.product {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  height: 360px;
  padding: 10px;
  border: 1px solid gray;
  border-radius: 10px;
  text-align: center;
  background-color: white;
  transition: transform 0.3s ease;
}

.product:hover { transform: translateY(-5px); }

.product-photo {
  width: 100%;
  object-fit: contain;
  margin-bottom: 10px;
}

.product-name {
  font-size: 14pt;
  font-weight: bold;
  color: red;
}

.price {
  font-size: 13pt;
  font-weight: bold;
  margin-bottom: 10px;
}

.add-to-cart {
  padding: 8px 16px;
  background-color: #e32636;
  color: white;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.add-to-cart:hover { background-color: #c22030; }

/* Product Slider */
.product-slider-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  margin: 40px 0;
}

#productSlider {
  display: flex;
  transition: transform 0.5s ease;
  gap: 20px;
}

.product-slider-wrapper .product {
  min-width: 25%;
  height: 300px;
}

/* Footer */
#fotter {
  flex-shrink: 0; /* Ngăn footer bị co lại */
  width: 100%;
  background-color: red;
  color: white;
  margin-top: 20px;
  position: relative; /* Đảm bảo footer không bị che khuất */
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 15px;
}

.footer-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
}

.footer-content h3, .footer-content span, .footer-content li {
  color: white;
}

.pro {
  float: left;
  padding: 15px;
}

/* Responsive Grid */
[class*="col-"] {
  float: left;
  width: 100%;
}

/* Mobile */
@media (max-width: 599px) {
  #nav, .lien-he, .danh-muc, .ho-tro {
    display: none;
  }
  .pro {
    float: none;
    display: flex;
    justify-content: center;
  }
  .product { width: 100%; }
  .col-mb-1 { width: 100%; }
  .img-first { height: 200px; }
  .product-photo { max-width: 120px; height: 120px; }
  .banner-slider { height: 150px; }
}

/* Tablet */
@media (min-width: 600px) and (max-width: 1199px) {
  .choss-type, .lien-he, .danh-muc {
    display: none;
  }
  .col-m-1 { width: 8.33%; }
  .col-m-2 { width: 16.66%; }
  .col-m-3 { width: 25%; }
  .col-m-4 { width: 33.33%; }
  .col-m-5 { width: 41.66%; }
  .col-m-6 { width: 50%; }
  .col-m-7 { width: 58.33%; }
  .col-m-8 { width: 66.66%; }
  .col-m-9 { width: 75%; }
  .col-m-10 { width: 83.33%; }
  .col-m-11 { width: 91.66%; }
  .col-m-12 { width: 100%; }
  .img-first { height: 300px; }
  .product-photo { max-width: 150px; height: 150px; }
  .banner-slider { height: 180px; }
}

/* Desktop */
@media (min-width: 1200px) {
  .col-x-1 { width: 8.33%; }
  .col-x-2 { width: 16.66%; }
  .col-x-3 { width: 25%; }
  .col-x-4 { width: 33.33%; }
  .col-x-5 { width: 41.66%; }
  .col-x-6 { width: 50%; }
  .col-x-7 { width: 58.33%; }
  .col-x-8 { width: 66.66%; }
  .col-x-9 { width: 75%; }
  .col-x-10 { width: 83.33%; }
  .col-x-11 { width: 91.66%; }
  .col-x-12 { width: 100%; }
  .lien-he, .danh-muc, #nav { display: block; }
  .img-first { height: 380px; }
  .product-photo { max-width: 170px; height: 170px; }
  .banner-slider { height: 200px; }
}