* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: Roboto, sans-serif;
  background: #f3f3f3;
  color: #333;
}

img {
  max-width: 100%;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
}

.khung-giua {
  width: 1140px;
  max-width: calc(100% - 20px);
  margin: auto;
}

.dau-trang {
  background: white;
  border-bottom: 1px solid #ddd;
}

.hang-tren {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px 0;
}

.logo {
  height: 55px;
  width: auto;
}

.tim-kiem {
  display: flex;
  flex: 1;
  max-width: 420px;
  border: 1px solid #d8d8d8;
  border-radius: 30px;
  overflow: hidden;
}

.tim-kiem input {
  flex: 1;
  border: none;
  padding: 12px 15px;
  outline: none;
}

.tim-kiem button {
  border: none;
  background: #3f748c;
  color: white;
  padding: 12px 22px;
  font-weight: bold;
}

.tai-khoan-gio-hang {
  display: flex;
  gap: 20px;
  font-weight: 500;
}

.menu-pc {
  background: #3f748c;
  display: flex;
  justify-content: center;
  gap: 40px;
}

.menu-pc a {
  color: white;
  font-weight: 700;
  padding: 15px 0;
}

.nut-menu {
  display: none;
  background: #3f748c;
  padding: 10px 15px;
}

.icon-menu {
  color: white;
  font-size: 30px;
}

.menu-mobile {
  display: none;
}

.noi-dung {
  display: grid;
  grid-template-columns: 1fr 320px;
  margin-top: 20px;
}

.trai {
  padding-right: 20px;
}

.banner {
  position: relative;
  overflow: hidden;
  background: white;
}

.banner img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.chu-banner {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.chu-banner h1 {
  margin: 0;
  color: white;
  text-align: center;
  background: rgba(0, 0, 0, 0.55);
  padding: 18px 30px;
  border-radius: 14px;
  font-size: 28px;
  line-height: 1.4;
}

.tieu-de,
.phai h3 {
  text-align: center;
  color: #3f748c;
  font-size: 26px;
  margin: 25px 0;
}

.ds-san-pham {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

.san-pham {
  background: white;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 18px;
  text-align: center;
}

.san-pham img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  margin-bottom: 15px;
}

.san-pham h3 {
  font-size: 22px;
  margin: 10px 0;
}

.san-pham p {
  color: #58a84d;
  font-weight: bold;
  font-size: 22px;
}

.san-pham button {
  border: none;
  background: #3f748c;
  color: white;
  padding: 12px 20px;
  border-radius: 25px;
  font-weight: bold;
}

.phai {
  background: #efefef;
  padding: 0 14px 20px;
}

.sp-ban-chay {
  display: flex;
  gap: 12px;
  align-items: center;
  background: white;
  padding: 12px;
  margin-bottom: 14px;
  border-radius: 8px;
}

.sp-ban-chay img {
  width: 42px;
  height: 42px;
  object-fit: cover;
}

.sp-ban-chay span {
  display: block;
  margin-bottom: 6px;
}

.sp-ban-chay p {
  margin: 0;
  color: #58a84d;
  font-weight: bold;
}

.cuoi-trang {
  margin-top: 20px;
  background: #3f748c;
  color: white;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
  padding: 40px 20px;
  gap: 20px;
}

@media (max-width: 768px) {
  .hang-tren {
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
  }

  .logo {
    height: 45px;
  }

  .tim-kiem {
    width: 100%;
    max-width: 100%;
    order: 3;
  }

  .tai-khoan-gio-hang {
    width: 100%;
    justify-content: center;
    font-size: 15px;
  }

  .menu-pc {
    display: none;
  }

  .nut-menu {
    display: block;
    background: #4d7892;
    padding: 10px 14px;
  }

  .icon-menu {
    display: inline-block;
    color: white;
    font-size: 30px;
    line-height: 1;
  }

  .menu-mobile {
    display: none;
    background: #4d7892;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  }

  #menu:target {
    display: block;
  }

  .dong-menu {
    display: block;
    color: white;
    font-size: 34px;
    line-height: 1;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  }

  .menu-mobile a {
    display: block;
    color: white;
    padding: 18px 14px;
    font-weight: bold;
  }

  .menu-mobile a:not(.dong-menu) {
    border-top: 1px solid rgba(255, 255, 255, 0.15);
  }

  .noi-dung {
    grid-template-columns: 1fr;
  }

  .trai {
    padding-right: 0;
  }

  .ds-san-pham {
    grid-template-columns: 1fr;
  }

  .phai {
    margin-top: 20px;
  }

  .cuoi-trang {
    grid-template-columns: 1fr;
  }
}