* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0px;
  font-family: arial;
  background: #e9ebf0;
}
#header {
  width: 100%;
  height: auto;
  background: linear-gradient(90deg, #2e97fa, #267af2, #1f5dea);
  margin: 0px;
}
#banner img {
  width: 100%;
  height: auto;
  display: block;
}
#header-contents {
  width: 80%;
  height: auto;
  display: flex;
  margin: 0px auto;
  align-items: center;
}
#logo {
  width: 20%;
  height: auto;
}
#logo img {
  width: 100%;
  height: auto;
}
#location {
  width: 5%;
  display: flex;
  justify-content: center;
  align-items: center;
}
#location a {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: white;
  margin: 0px auto;
}
#search-box {
  flex: 1;
  height: 45px;
  background: white;
  border-radius: 10px;
  display: flex;
  align-items: center;
  overflow: hidden;
  border: 2px solid #ddd;
}
#search-box input {
  flex: 1;
  outline: none;
  height: 100%;
  padding: 0px 20px;
  font-size: 13px;
  border: none;
}
#search-box button {
  outline: none;
  border: none;
  height: 100%;
  background: #fff;
  padding: 0px 20px;
  font-size: 20px;
}
#search-box button:hover {
  background: #f2f2f2;
}
#menu {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0;
  padding: 0;
}
ul {
  padding: 0px;
  margin: 0px;
  list-style: none;
  display: flex;
}
#menu li a {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: white;
  font-size: 14px;
  transition: transform 0.25s ease;
  position: relative;
}
#menu li i {
  margin-bottom: 5px;
  font-size: 20px;
}
#menu li span {
  font-size: 13px;
  padding: 5px;
}
#menu li a:hover {
  color: lightblue;
  transform: translateY(-3px);
}
#menu li{
  position: relative;
}

#contact {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  width: 320px;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transition: 0.3s;
  z-index: 999;
}

.contact-dropdown:hover #contact {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  color: #333;
}

.contact-item i {
  color: #1f5dea;
}
.contact-item:hover {
  background-color: #f2f2f2;
  color: #1f5dea;
}
#navbar {
  width: 100%;
  height: auto;
  display: flex;
  background-color: #2366ef;
}
#nav {
  width: 80%;
  height: 50px;
  margin: 0px auto;
  display: flex;
  align-items: center;
}
#nav-menu {
  width: 220px;
  height: 40px;
  background: #fff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  padding-left: 15px;
  cursor: pointer;
  position: relative;
}
#nav-menu h2 {
  font-size: 15px;
  font-weight: 600;
  color: #0f5b9f;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
}
#nav-menu:hover {
  background-color: #f2f2f2;
}
#nav-menu-list {
  position: absolute;
  top: 40px;
  width: 220px;
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}
#nav-menu-list li a {
  display: block;
  padding: 10px 15px;
  text-decoration: none;
  color: #333;
  font-size: 14px;
}
#nav-menu-list li a:hover {
  background-color: #d4cece;
}
#nav-menu:hover #nav-menu-list {
  opacity: 1;
  transform: translateY(0);
  display: block;
}
#nav-menu i {
  font-size: 16px;
  color: #0f5b9f;
}
.icons-nav {
  width: auto;
  height: auto;
  display: flex;
  flex: 1;
}
.icons-nav li a {
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
  font-size: 15px;
  padding: 0 15px;
  transition: transform 0.25s ease;
}
.icons-nav {
  flex: 1;
  display: flex;
}
.icons-nav ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.icons-nav li a {
  display: flex;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: white;
  font-size: 14px;
  padding: 0 12px;
}
.icons-nav li a:hover {
  color: #a8d1ff;
}

#container {
  width: 100%;
  height: auto;
}
#ads {
  width: 100%;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
}
#ads-left {
  position: fixed;
  left: 0;
  top: 200px;
  width: 10%;
  padding: 10px 0;
}
#ads-left img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
#ads-mid {
  width: 80%;
  height: auto;
  padding: 10px;
}
#ads-mid a img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}
#ads-right {
  position: fixed;
  right: 0;
  top: 200px;
  width: 10%;
  padding: 10px 0;
}
#ads-right img {
  width: 100%;
  height: auto;
  border-radius: 10px;
  float: right;
}
#ads-smail {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: -70px;
  z-index: 5;
}
.ads-smail-1 {
  display: flex;
  position: relative;
  left: 0;
  transition: left 0.5s ease;
}
.ads-smail-1 a {
  flex: 0 0 50%;
  padding: 5px;
}
.ads-smail-1 img {
  width: 100%;
  display: block;
  border-radius: 10px;
}

#wrapper {
  width: 100%;
  height: auto;
}
#hot-category {
  width: 80%;
  height: auto;
  margin: 0px auto;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
#hot-category-title {
  text-align: center;
  border-radius: 20px;
  line-height: 48px;
  margin: 0px;
  padding: 10px 20px;
  background-color: #1f5dea;
  color: white;
}
#list-category-1 {
  width: 100%;
  height: auto;
  align-items: center;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 20px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  text-align: center;
  box-shadow: inset 0 0 10px rgba(0, 0, 0, 0.1);
}
.list-category a {
  display: flex;
  flex: 1;
  flex-direction: column;
  align-items: center;
  text-decoration: none;
  color: #333;
  font-size: 15px;
  padding: 10px;
  color: #036be1;
  transition: 0.5s;
}
.list-category a span {
  font-size: 15px;
  color: #000000;
  text-align: center;
  padding-top: 20px;
}
.list-category a:hover {
  color: #036be1;
  transform: translateY(-3px);
}
.cate {
  height: auto;
  width: 80%;
  margin: 20px auto;
}
.cate-title {
  width: 100%;
  text-align: center;
  border-radius: 20px;
  line-height: 48px;
  margin: 0px;
  padding: 0px;
  color: white;
  font-weight: bold;
  background: linear-gradient(90deg, #0066ff, #00c3ff);
  display: inline-block;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}
.list-product {
  display: flex;
  gap: 20px;
  margin-top: 10px;
  padding: 15px;
  overflow: hidden;
}
.product {
  flex: 0 0 calc(100% / 5 - 12px);
  border: 1px solid #ccc;
  border-radius: 20px;
  display: block;
  background-color: #fff;
  transition: 0.3s;
}
.product:hover {
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  transform: scale(1.05);
}
.product a {
  text-decoration: none;
  color: #333;
}
.photo {
  width: 150px;
  border-radius: 10px;
  display: block;
  margin: 15px auto 0;
}
.name {
  font-size: 15px;
  padding-left: 10px;
}
.price {
  color: red;
  font-size: 15px;
  padding-left: 10px;
}
.buy {
  background-color: rgb(66, 115, 153);
  height: 40px;
  border: 0px;
  cursor: pointer;
  display: block;
  margin: 10px auto;
  padding: 0 20px;
  border-radius: 10px;
  color: #000000;
  transition: 0.3s;
}
.buy:hover {
  background-color: rgb(66, 115, 153);
  color: #fff;
  transform: translateY(-3px);
}
.order-name,
.order-price,
.order-action,
.order-amount,
.order-photo {
  width: 20%;
  line-height: 80px;
}
.order-photo img {
  max-height: 120px;
}
#linhkienmaytinh {
  width:100%
  height: auto;
}
.ads-linhkienmaytinh {
  width: 80%;
  height: auto;
  margin: 20px auto;
  gap: 20px;
}
#linhkienmaytinh-title {
  position: relative;
  font-size: 50px;
  font-weight: bold;
  color: white;
  background: linear-gradient(90deg, #0066ff, #00c3ff);
  padding: 15px 30px;
  display: inline-block;
  border-radius: 40px;
  text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.4);
  box-shadow: 0 6px 18px rgba(0, 102, 255, 0.25);
}
#linhkienmaytinh-img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 10px;
}

#footer {
  width: 100%;
  height: 300px;
  background-color: #5c95eb;
}
#footer-contents {
  width: 80%;
  height: auto;
  margin: 0px auto;
  padding: 20px;
  display: flex;
  justify-content: space-around;
}
.footer-column {
  width: 22%;
  color: white;
}.footer-column p a {
  color: white;
  text-decoration: none;
}

/* Mobile Styles */
@media (max-width: 799px) {
  #header-contents {
    flex-direction: column;
    gap: 15px;
    padding: 20px 0;
  }
  #logo {
    width: 20%;
  }
  #location {
    display: none;
  }
  #search-box {
    width: 80%;
  }
  #menu {
    flex-direction: column;
    gap: 10px;
  }
  #nav {
    flex-direction: column;
    gap: 10px;
    height: auto;
  }
  .icons-nav{
    display: none
  }
  .icons-nav li a {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
  }
}

/* Đăng nhập -  Đăng ký*/

.auth-container {
  max-width: 1000px;
  margin: auto;
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.auth-left,
.auth-right {
  width: 50%;
  padding: 40px;
}

.auth-left {
  background: #fff;
}

.tabs {
  display: flex;
  margin-bottom: 25px;
  border-bottom: 2px solid #eee;
}

.tab-btn {
  padding: 12px 24px;
  border: none;
  background: none;
  font-size: 16px;
  cursor: pointer;
  color: #555;
  font-weight: bold;
}

.tab-btn.active {
  color: #0081e3;
  border-bottom: 2px solid #009be3;
}

.form {
  display: none;
}

.form.active {
  display: block;
}

.form h2 {
  margin-bottom: 20px;
  font-size: 24px;
  color: #222;
}

.input-group {
  margin-bottom: 18px;
}

.input-group label {
  display: block;
  margin-bottom: 6px;
  color: #333;
  font-size: 14px;
}

.input-group input {
  width: 100%;
  height: 45px;
  padding: 0 12px;
  border: 1px solid #ccc;
  border-radius: 6px;
  outline: none;
}

.input-group input:focus {
  border-color: #2d00e3;
}

.btn-submit {
  width: 100%;
  height: 45px;
  background: #006ee3;
  color: white;
  border-radius: 6px;
  font-size: 16px;
  cursor: pointer;
  font-weight: bold;
}

.btn-submit:hover {
  background: #00adc4;
}

.auth-right {
  background: #fff5f6;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.auth-right h1 {
  color: #0057e3;
  margin-bottom: 15px;
  font-size: 32px;
}

.auth-right p {
  color: #444;
  margin-bottom: 20px;
  line-height: 1.6;
}

.auth-right img {
  max-width: 100%;
  height: auto;
}


/* Chi tiết sản phẩm  */
.product-detail {
  width: 80%;
  margin: 10px auto;
  display: flex;
}
.product-image {
  width: 60%;
  padding: 20px;
}
.product-image img {
  width: 100%;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 20px;
}
.product-detail-1{
  width: 100%;
  height: auto;
  border: 2px solid #ddd;
  border-radius: 20px;
}
.product-detail-1 h3 {
  font-size: 18px;
  padding-left: 20px;
  color: #333;
}
.product-detail-1 ul {
  list-style-type: disc;
  padding: 0px 40px 20px 40px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 11px;
}
.product-info {
  width: 60%;
  padding: 20px;
}
.product-info h2 {
  font-size: 18px;
  margin-bottom: 10px;
}
.product-info .product-price {
  width: 300px;
  background-color: #f2f2f2;
  border: 2px solid #ff0000;
  border-radius: 10px;
  color: red;
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 20px;
  padding: 20px;
  text-align: center;
}
.product-info img {
  width: 100%;
  height: auto;
  margin: 20px 0;
  border-radius: 30px;
}
.quantity {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 10px;
}
.quantity h2 {
  font-size: 16px;
  margin: 0;
}
.quantity button {
  width: 35px;
  height: 35px;
  color: black;
  font-size: 18px;
  cursor: pointer;
  border-radius: 5px;
}
.quantity button:hover {
  background: #DDD;
}
.quantity input {
  width: 50px;
  height: 35px;
  text-align: center;
  border: 1px solid #000000;
  border-radius: 5px;
}
.product-info .add-to-cart {
  background-color: #1f5dea;
  color: white;
  border: none;
  padding: 15px 30px;
  font-size: 16px;
  cursor: pointer;
  border-radius: 10px;
  transition: 0.3s;
}
.product-info .add-to-cart:hover {
  background-color: #1f5dea;
  color: #fff;
  transform: translateY(-2px);
}
