/* CSS gốc giữ nguyên + thêm CSS cho hamburger menu */

body {
  margin: 0px;
  font-family: arial;
}

#top {
  width: 100%;
  height: 48px;
  background-color: green;
}

#top-content {
  height: 100%;
  width: 80%;
  margin: auto;
  line-height: 40px;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: Arial, sans-serif;
}

#top-left {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  width: 60%;
}

#top-right {
  width: 40%;
  text-align: right;
}

#top-right a {
  color: white;
  text-decoration: none;
  font-weight: bold;
}

#top-right a:hover {
  text-decoration: underline;
}

.address {
  padding-left: 15px;
}

#banner {
  width: 100%;
  height: 200px;
  background-color: #fff;
  margin: auto;
  padding: 55px;
}

#banner-content {
  width: 80%;
  margin: auto;
  height: 80px;
}

#logo {
  width: 25%;
  height: 100%;
  float: left;
}

#logo img {
  margin-top: 10px;
  height: 60px;
}

#deliver,
#support,
#time {
  width: 20%;
  height: 100%;
  float: left;
}

#deliver img,
#support img,
#time img {
  margin-top: 25px;
  height: 30px;
  float: left;
}

#deliver .text-block,
#support .text-block,
#time .text-block {
  line-height: 30px;
  height: 60px;
  width: 75%;
  float: left;
  margin-top: 10px;
  padding-left: 7px;
}

#cart {
  width: 15%;
  height: 100%;
  float: left;
}

#cart a {
  display: block;
  line-height: 36px;
  background-color: orange;
  color: white;
  text-decoration: none;
  border: 0;
  border-radius: 15px;
  float: right;
  width: 130px;
  text-align: center;
  margin-top: 22px;
}

#menu {
  width: 100%;
  height: 48px;
  background-color: green;
  position: relative;
}

#slideshow{
	width:100%;
	height:400px;
	margin: auto;
	border-radius:15px;
	text-align: center;
	position: relative;
}

#container {
  width: 100%;
  min-height: 500px;
  background-color: #fff;
}

#chat {
  background-color: white;
  width: 60px;
  height: 180px;
  position: fixed;
  bottom: 50px;
  right: 10px;
  
}
#slide{
	width:100%;
	height:350px;
}
#btnNext, #btnBack {
	width: 48px;
	height: 48px;
	position: absolute;
	top: 43%;
	cursor: pointer;
}
#btnBack {
	left: 10px;
}

#btnNext {
	right: 10px;
}

#chat img {
  width: 30px;
  height: 30px;
  margin: 15px 15px;
}

#footer {
  width: 100%;
  height: 370px;
  background-color: green;
  clear: both;
}

#content {
  width: 80%;
  margin: auto;
  min-height: 500px;
  background-color: #fff;
}

* {
  box-sizing: border-box;
}

.cate {
  width: 100%;
  clear: both;
}

.cate-title {
  width: 300px;
  line-height: 40px;
  font-size: 16pt;
  background-color: green;
  color: #fff;
  padding-left: 15px;
  border-radius: 15px;
  text-transform: uppercase;
}

.item {
  width: 25%;
  padding: 15px;
  float: left;
}

.product {
  padding: 15px;
  float: left;
  width: 100%;
  text-align: center;
  line-height: 40px;
  border-radius: 15px;
  border: 1px solid #ddd;
}

.photo {
  width: 150px;
  height: 150px;
}

.name {
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  color: green;
}

.price {
  color: orange;
  font-weight: bold;
  font-size: 16px;
}

.buy {
  cursor: pointer;
  background-color: orange;
  color: #fff;
  width: 120px;
  height: 36px;
  border: none;
}

#menu-content {
  width: 80%;
  margin: auto;
  height: 100%;
}

/* =========================== */
/* HAMBURGER MENU CSS */
/* =========================== */

/* Hamburger button - mặc định ẩn */
.hamburger-menu {
  display: none;
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1001;
}

.hamburger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
}

.hamburger-btn span {
  display: block;
  width: 25px;
  height: 3px;
  background-color: white;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* Animation khi active */
.hamburger-btn.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.hamburger-btn.active span:nth-child(2) {
  opacity: 0;
}

.hamburger-btn.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Menu chính */
ul {
  list-style: none;
  margin: 0px;
  padding: 0px;
}

ul li {
  line-height: 48px;
  float: left;
  position: relative;
}

ul li li {
  float: none;
  background-color: #ddd;
  color: #000;
  width: 180px;
}

ul li li a {
  color: #000;
  border-bottom: 1px solid #ddd;
}

ul ul {
  display: none;
}

ul li:hover ul {
  display: block;
  position: absolute;
  top: 48px;
  left: 0px;
}

ul li a {
  text-decoration: none;
  color: #fff;
  display: block;
  padding: 0px 15px;
  line-height: 48px;
}

#menu a:hover {
  background-color: orange;
  color: #fff;
  cursor: pointer;
}

/* Footer CSS */
.footer-container {
  width: 80%;
  margin: auto;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  color: white;
  padding: 30px;
  border-radius: 10px;
  font-family: Arial, sans-serif;
}

.footer-column {
  width: 25%;
  min-width: 140px;
  margin-bottom: 20px;
}

.footer-map {
  width: 48%;
  min-width: 300px;
}

.footer-column h2 {
  margin-top: 0;
  font-size: 18px;
}

.footer-links li {
  margin-bottom: 10px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links a {
  color: white;
  text-decoration: none;
  color: #fff;
  font-size: 16px;
}

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

.contact-info {
  width: 25%;
}

.support-links {
  width: 21%;
}

.support-links ul {
  list-style: none;
  padding-left: 0;
}

.support-links ul li {
  margin-bottom: 10px;
}

.support-links ul li a {
  color: white;
  text-decoration: none;
}

.support-links ul li a:hover {
  text-decoration: underline;
}

.map {
  width: 48%;
}

/* Grid System */
.col-1 {
  width: 8.33%;
}
.col-2 {
  width: 16.66%;
}
.col-3 {
  width: 25%;
}
.col-4 {
  width: 33.33%;
}
.col-5 {
  width: 41.66%;
}
.col-6 {
  width: 50%;
}
.col-7 {
  width: 53.33%;
}
.col-8 {
  width: 66.66%;
}
.col-9 {
  width: 75%;
}
.col-10 {
  width: 83.33%;
}
.col-11 {
  width: 91.66%;
}
.col-12 {
  width: 100%;
}

[class*="col-"] {
  float: left;
  padding: 15px;
  box-sizing: border-box;
}

/* =========================== */
/* RESPONSIVE MEDIA QUERIES */
/* =========================== */

/* Mobile: <= 768px */
@media only screen and (max-width: 768px) {
  .col-s-1 {
    width: 8.33%;
  }
  .col-s-2 {
    width: 16.66%;
  }
  .col-s-3 {
    width: 25%;
  }
  .col-s-4 {
    width: 33.33%;
  }
  .col-s-5 {
    width: 41.66%;
  }
  .col-s-6 {
    width: 50%;
  }
  .col-s-7 {
    width: 53.33%;
  }
  .col-s-8 {
    width: 66.66%;
  }
  .col-s-9 {
    width: 75%;
  }
  .col-s-10 {
    width: 83.33%;
  }
  .col-s-11 {
    width: 91.66%;
  }
  .col-s-12 {
    width: 100%;
  }

  /* Hiện hamburger menu */
  .hamburger-menu {
    display: block;
  }

  /* Ẩn slideshow */
  #slideshow {
    display: none;
  }
/* Ẩn toàn bộ nội dung banner */
  #banner-content {
    display: none;
  }
  
  /* Menu mobile styling */
  #main-menu {
    position: fixed;
    top: 96px; /* sau top + banner */
    left: -100%;
    width: 80%;
    max-width: 300px;
    background-color: green;
    transition: left 0.3s ease;
    z-index: 1000;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.3);
    max-height: calc(100vh - 96px);
    overflow-y: auto;
  }

  /* Menu khi mở */
  #main-menu.menu-open {
    left: 0;
  }

  /* Menu items trên mobile */
  #main-menu li {
    float: none;
    width: 100%;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  }

  #main-menu li a {
    padding: 15px 20px;
    line-height: normal;
    display: block;
    color: white;
  }

  /* Submenu trên mobile */
  #main-menu ul ul {
    position: static;
    display: none;
    background-color: rgba(0, 0, 0, 0.2);
    box-shadow: none;
  }

  #main-menu li:hover ul {
    display: block;
    position: static;
  }

  #main-menu ul ul li {
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  }

  #main-menu ul ul li a {
    padding-left: 40px;
    background-color: transparent;
    color: #ddd;
  }

  /* Mobile: Chỉ hiện bản đồ trong footer */
  #footer > .footer-container > div {
    display: none;
  }

  #footer > .footer-container > .footer-map {
    display: block;
    width: 100%;
    min-width: 0;
  }
}

/* Tablet: 769px - 1024px */
@media only screen and (min-width: 769px) and (max-width: 1024px) {
  .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: 53.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%;
  }

  /* Ẩn hamburger menu */
  .hamburger-menu {
    display: none;
  }

  /* Hiện menu bình thường */
  #main-menu {
    position: static;
    width: auto;
    background: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    left: auto;
  }

  #main-menu li {
    float: left;
    width: auto;
    border-bottom: none;
  }

  #main-menu li a {
    padding: 0px 15px;
    line-height: 48px;
  }

  #menu,
  #slideshow {
    display: block;
  }

/* Ẩn tất cả các con trong footer */
	#footer > .footer-container > div {
		display: none;
	}
	#header-top {
		display: none;
	  }
	/* Chỉ hiện phần có class footer-map */
	#footer > .footer-container > . footer-map{
		display: block;
		width: 50%;
	}
	#footer > .footer-container > .footer-column{display: block;}
  /* Tablet: ẨN bản đồ */
  .footer-column1 {
    display: none !important;
  }
}

/* Desktop/PC: >= 1025px */
@media only screen and (min-width: 1025px) {
  .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: 53.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%;
  }

  /* Ẩn hamburger menu */
  .hamburger-menu {
    display: none;
  }

  /* Hiện menu bình thường */
  #main-menu {
    position: static;
    width: auto;
    background: none;
    box-shadow: none;
    max-height: none;
    overflow: visible;
    left: auto;
  }

  #main-menu li {
    float: left;
    width: auto;
    border-bottom: none;
  }

  #main-menu li a {
    padding: 0px 15px;
    line-height: 48px;
  }

  /* Desktop: Hiện tất cả */
  #footer .footer-container > * {
    display: block;
  }
}
