.header {
    background-image: url('banner.jpg');
    background-size: cover; /* hoặc contain tùy ý */
    background-position: center;
    background-repeat: no-repeat;
    color: white;
    padding: 10px 20px;
    position: relative;
    z-index: 1000;

    width: 100%;
    box-sizing: border-box;
}
a.login,
a.logout,
a.cart
 {
  text-decoration: none;
}

.header-top {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;

    position: relative;
    z-index: 1; /* Đảm bảo nằm trên ảnh nền */
    width: 100%;
	
}

.header-left {
    display: flex;
    align-items: center;
    gap: 15px;
}

.header-left img {
    height: 40px;
}

.brand {
    font-size: 18px;
    font-weight: bold;
}

.search-bar {
    flex-grow: 1;
    margin: 0 20px;
    position: relative;
    display: flex;
    align-items: center;
}

.search-bar input {
    width: 100%;
    padding: 12px 50px 12px 20px;
    border: none;
    border-radius: 30px;
    outline: none;
    font-size: 16px;
    font-style: italic;
    background-color: #fff;
    color: #333;
}

.search-bar-icons {
    position: absolute;
    right: 15px;
    display: flex;
    gap: 10px;
}

.search-bar-icons span {
    cursor: pointer;
    font-size: 18px;
}

.suggestions {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    display: none;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
}

.suggestion-item {
    padding: 10px;
    color: #333;
    cursor: pointer;
}

.suggestion-item:hover {
    background-color: #f0f0f0;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 20px;
    white-space: nowrap;
}

.header-right div {
    cursor: pointer;
    font-size: 16px;
}

.hotline a {
    color: white;
    text-decoration: none;
}

.cart {
    background-color: white;
    color: #007bff;
    padding: 8px 15px;
    border-radius: 20px;
    font-weight: bold;
}



.menu-item {
    position: relative;
}

.menu-item > a {
    text-decoration: none;
    color: #1a1a1a; /* Màu chữ mặc định: đen */
    font-size: 14px;
    font-weight: 500;
    padding: 6px 10px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    transition: color 0.2s ease;
}

.menu-item > a:hover {
    color: #007bff; /* Màu xanh khi hover */
}


.dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #fff;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    min-width: 600px;
    padding: 10px;
    border: 1px solid #ddd;
    z-index: 1000;
}

.menu-item:hover .dropdown-menu {
    display: block;
}

.dropdown-left {
    width: 50%;
    float: left;
    padding-right: 10px;
}

.dropdown-left ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.dropdown-left li {
    padding: 5px 0;
}

.dropdown-left a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-left a:hover {
    color: #007bff;
}

.dropdown-right {
    width: 50%;
    float: left;
    padding-left: 10px;
}

.dropdown-right div {
    padding: 5px 0;
}

.dropdown-right a {
    color: #333;
    text-decoration: none;
    font-size: 14px;
}

.dropdown-right a:hover {
    color: #007bff;
}


.category-bar {
    background-color: #fff;
    border-bottom: 1px solid #ddd;
    padding: 10px 0;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 40px; /* Khoảng cách giữa các mục */
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 100;
}


.carousel-container {
    position: relative;
	background-color:#f0f4f8;
    overflow: hidden;
    width: 100%;
}
.carousel-slides {
    display: flex;
    width: 100%;
    transition: transform 0.7s ease-in-out;
    position: relative;
}

.carousel-slide {
    min-width: 100%;
    position: relative;

    height: 300px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: relative;  /* đổi từ absolute → relative */
  z-index: 1;
}




.carousel-slide .banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 20px;
}

.banner-content h2 {
    font-size: 28px;
    font-weight: bold;
    color: #FF4500;
    margin-bottom: 10px;
}

.banner-button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 16px;
    cursor: pointer;
    margin: 10px 0;
}

.banner-button:hover {
    background-color: #0056b3;
}

.banner-content p {
    font-size: 18px;
    color: #007bff;
    font-weight: bold;
}

.decorative-elements {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
}

.bubble {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    position: absolute;
    right: 50px;
    animation: float 4s infinite;
}

.shield {
    width: 120px;
    height: 120px;
    background: url('https://via.placeholder.com/120/transparent?text=Shield') no-repeat center;
    background-size: contain;
    position: absolute;
    left: 50px;
    z-index: 3;
}

.carousel-prev, .carousel-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    color: #007bff ;
    border: none;
    padding: 10px;
    cursor: pointer;
    font-size: 18px;
    z-index: 10;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.carousel-prev {
    left: 205px;
}

.carousel-next {
    right: 205px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-20px); }
    100% { transform: translateY(0); }
}


.slider-container {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-family: 'Segoe UI', sans-serif;
	padding: 10px;
}

/* Phần bạn đã có */
.main-banner {
  position: relative;
  flex: 2;
  border-radius: 12px;
  overflow: hidden;
  height: 241px;

}

.main-banner img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* dùng contain để hiển thị toàn bộ ảnh */
  border-radius: 15px;
  display: block;

}


.side-banners {
  flex-direction: column;
  flex: 1;
  gap: 20px;
}

.side-banners img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  display: block;
}

/* Thêm mới để slider ngang hoạt động */
.slider-track {
  display: flex;
  height: 100%;

}





.arrow {
  position: absolute;
  top: 550px; /* 👉 bạn có thể điều chỉnh số px này */
  transform: translateY(-50%);
  background-color: white;
  color: #007bff;
  border: none;
  padding: 0;
  cursor: pointer;
  font-size: 24px;
  z-index: 10;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: background 0.3s ease, transform 0.3s ease;
}

.main-container {
            background-color: #f0f4f8;
            padding: 20px;
        }
.arrow.left {
  left: 370px;
}

.arrow.right {
  right: 782px;
}


.dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #ccc;
  transition: background 0.3s ease;
}

.dot.active {
  background: #007bff;
}
.slider-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  max-width: 1200px;
  margin: auto;
}



.banner-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.banner-image {
  width: 100%;
  display: none;
  transition: opacity 0.5s ease-in-out;
}

.banner-image.active {
  display: block;
}

.arrow {
  position: absolute;
  top: 550px; /* 👉 Bạn có thể đổi số px này tuỳ ý */
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  padding: 12px;
  border-radius: 50%;
  transition: background 0.3s ease, transform 0.3s ease;
}

.arrow:hover {
  background: rgba(0, 0, 0, 0.7);
  transform: scale(1.1);
}

.arrow.left {
  left: 370px;
}

.arrow.right {
  right: 782px;
}

.dots {
  text-align: center;
  margin-top: 10px;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 5px;
  background-color: #bbb;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
}

.dot.active {
  background-color: #717171;
}
.nav-item {
            display: flex;
            justify-content: space-around;
            max-width: 1200px; /* Giới hạn chiều dài tối đa */
            margin: 0 auto; /* Căn giữa vùng chứa */
        }
.nav-button {
            display: flex;
            align-items: center;
            justify-content: center;
            width: 180px; /* Tăng chiều rộng để phù hợp với hình ảnh */
            height: 90px;
            background-color: #f9f9f9; /* Nền nhạt hơn để giống ảnh */
            border: 1px solid #e0e0e0; /* Thêm viền nhẹ */
            border-radius: 12px; /* Bo góc nhiều hơn */
            box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Tăng độ đậm của bóng đổ */
            cursor: pointer;
            font-family: Arial, sans-serif;
            font-size: 16px; /* Tăng cỡ chữ để giống ảnh */
            color: #333;
            text-align: center;
            padding: 0 10px; /* Thêm padding để văn bản không sát viền */
			font-weight: bold;
        }
        .nav-button img {
            margin-right: 8px;
            width: 40px; /* Đảm bảo kích thước biểu tượng */
            height: 40px;
        }
         .featured-products {
            padding: 20px;
            background-color: #f0f4f8;
            font-family: Arial, sans-serif;
        }
        .featured-products h2 {
            text-align: center;
            color: #007bff;
            margin-bottom: 20px;
            position: relative;
        }
        .featured-products h2::after {
            content: '';
            position: absolute;
            bottom: -10px;
            left: 50%;
            transform: translateX(-50%);
            width: 50px;
            height: 4px;
            background-color: #007bff;
        }
        .product-grid {
            display: block; /* Sử dụng block để nhóm hàng */
            justify-content: space-around;
            max-width: 1200px; /* Giới hạn chiều dài tối đa */
            margin: 0 auto;
        }
        .product-row {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin-bottom: 20px;
        }
        .product-card {
            width: 18%;
            min-width: 180px;
            background-color: white;
            border: 1px solid #e0e0e0;
            border-radius: 25px;
            padding: 10px;
            text-align: center;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
            position: relative;
            flex-grow: 1;
        }
        .product-card img {
            width: 100%;
            border-radius: 10px;
            margin-bottom: 10px;
        }
        .product-card h4 {
            font-size: 16px;
            margin: 10px 0;
            color: #333;
        }
        .product-card p {
            margin: 5px 0;
        }
        .discount {
            position: absolute;
            top: 10px;
            left: 10px;
            background-color: #ff4444;
            color: white;
            padding: 2px 8px;
            border-radius: 5px;
            font-size: 12px;
        }
        .original-price {
            text-decoration: line-through;
            color: #888;
            font-size: 14px;
        }
        .sale-price {
            color: #007bff;
            font-weight: bold;
            font-size: 16px;
        }
        .buy-button {
            padding: 8px 15px;
            border: none;
            background-color: #007bff;
            color: white;
            border-radius: 25px;
            cursor: pointer;
            width: 100%;
            margin-top: 10px;
        }
        .buy-button:hover {
            background-color: #0056b3;
        }
.site-footer {
  background-color: white;
  color: blue;
  padding: 40px 20px 20px;
  font-family: 'Segoe UI', sans-serif;
}

.footer-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
  max-width: 1200px;
  margin: auto;
}

.footer-column h4 {
  margin-bottom: 12px;
  color: blue;
  font-size: 16px;
}

.footer-column p,
.footer-column li {
  font-size: 14px;
  line-height: 1.6;
}

.footer-column ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-column ul li {
  margin-bottom: 8px;
}

.footer-column ul li a {
  color: blue;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-column ul li a:hover {
  color: blue;
}

.social-icons a img {
  width: 24px;
  height: 24px;
  margin-right: 10px;
  transition: transform 0.3s;
}

.social-icons a:hover img {
  transform: scale(1.1);
}

.footer-bottom {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid #334155;
  padding-top: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.outer-box {
            max-width: 1200px;
            margin: 0 auto;
            text-align: left;
            font-family: Arial, sans-serif;
        }
		.bekhoe {
			background-color: #f0f4f8;
        }
        .title-area {

            border-radius: 10px;
            margin-bottom: 20px;
        }
        .title-area img {
            max-width: 100%;
            height: auto;
        }
        .image-section {
            display: flex;
            justify-content: space-between;
            flex-wrap: wrap;
        }
        .image-block {
    width: 32%;                  /* Tăng từ 30% lên 32% để ảnh to hơn */
    padding: 10px;               /* Giảm padding nội bộ để khoảng cách ít hơn */
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    background-color: #f0f4f8;
}

.image-block img {
    width: 100%;                 /* Cho ảnh to hết khối */
    height: auto;
    border-radius: 5px;
}

.image-block button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 60px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.image-block button:hover {
    background-color: #0056b3;
}

.top-info {
    display: flex;
    align-items: center;         /* căn giữa theo chiều dọc */
    justify-content: flex-start; /* căn trái */
    padding: 10px;
    margin-bottom: 20px;
    border-radius: 10px;
    line-height: 1.2; /* đảm bảo dòng chữ không bị lệch */
}

.top-info img {
    width: 24px;          /* tăng nhẹ kích thước */
    height: 24px;
    margin-right: 10px;
    display: block;       /* chống ảnh bị lệch do inline */
}

.top-info span {
    font-size: 1.1em;
    color: #0c0e15;
    font-weight: 500;
    display: inline-block;
}


.gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
    padding: 10px;
}

.gallery-item {
    width: 32%;
    padding: 10px;
    box-sizing: border-box;
    border-radius: 10px;
    text-align: center;
    background-color: #f9f9f9;
}

.gallery-item img {
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.gallery-item button {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 10px 60px;
    border-radius: 5px;
    cursor: pointer;
    margin-top: 10px;
}

.gallery-item button:hover {
    background-color: #0056b3;
}
.icon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  justify-content: center; /* căn giữa các cột */
  gap: 20px;
  padding: 20px;
  max-width: 1200px; /* giới hạn chiều rộng */
  margin: 0 auto; /* căn giữa toàn bộ grid trong trang */
}

.icon-item {
  background-color: white;
  border-radius: 12px;
  text-align: center;
  padding: 16px 12px;
  box-shadow: 0 0 0 1px #e0e0e0; /* viền nhẹ */
  transition: transform 0.2s, box-shadow 0.2s;
  width: 140px; /* thu gọn chiều ngang */
  height: 120px; /* thu gọn chiều cao */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.icon-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.icon-item img {
  width: 36px;
  height: 36px;
  object-fit: contain;
  margin-bottom: 6px;
}

.icon-item h4 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
  color: #111;
}

.icon-item p {
  font-size: 13px;
  color: #6b7280; /* màu xám như ảnh */
  margin: 2px 0 0 0;
}


/* Nút điều hướng */
#btnBack, #btnNext {
  width: 45px;
  height: 45px;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  color: blue;
  background-color: white;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  z-index: 2;
  transition: background-color 0.3s ease;
}


#btnBack {
  left: 20px;
}

#btnNext {
  right: 20px;
}
/* Nút biểu tượng chat */
.chat-toggle {
  position: fixed;
  bottom: 100px;
  right: 30px;
  background-color: #007bff;
  color: white;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  cursor: pointer;
  z-index: 1001;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Khung chat */
.chat-box {
  position: fixed;
  bottom: 150px;
  right: 30px;
  width: 300px;
  max-height: 500px;
  background-color: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  overflow: hidden;
  font-family: sans-serif;
}

.chat-header {
  background-color: #007bff;
  color: white;
  padding: 10px;
  font-weight: bold;
  text-align: center;
}

.chat-body {
  flex: 1;
  padding: 10px;
  overflow-y: auto;
  background-color: #f9f9f9;
}

.message {
  margin-bottom: 10px;
  padding: 8px 12px;
  border-radius: 16px;
  max-width: 80%;
  font-size: 14px;
}

.message.bot {
  background-color: #e5e5ea;
  color: #000;
  align-self: flex-start;
}

.message.user {
  background-color: #007bff;
  color: #fff;
  align-self: flex-end;
}

.chat-input {
  display: flex;
  border-top: 1px solid #ddd;
  padding: 10px;
  background-color: #fff;
}

.chat-input input {
  flex: 1;
  padding: 8px;
  border: 1px solid #ccc;
  border-radius: 20px;
  outline: none;
}

.chat-input button {
  background-color: #007bff;
  border: none;
  color: white;
  padding: 8px 14px;
  margin-left: 8px;
  border-radius: 20px;
  cursor: pointer;
}
@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}







