.header {
  background: black;
  color: rgb(0, 0, 0);
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-container {
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero {
  background: #f5f5f7;
  width: 100%;
}

.hero-container {
  width: 100%;
  max-width: 1400px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-text h1 {
  font-size: 40px;
  font-weight: bold;
}

.hero-text p {
  margin: 15px 0;
  font-size: 18px;
}

.hero-btn {
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid black;
  background: transparent;
  cursor: pointer;
}

.hero::after {
  content: "● ● ● ●";
  display: block;
  text-align: center;
  margin-top: 20px;
  color: #ccc;
}

.hero-img img {
  width: 100%;
  max-width: 100%;
}

.logo {
  font-weight: bold;
  font-size: 20px;
}

.nav {
  display: flex;
  gap: 25px;
}

.nav a {
  color: rgb(0, 0, 0);
  text-decoration: none;
  font-size: 14px;
}

.nav a:hover {
  color: #aaa;
}

.actions span {
  margin-left: 15px;
  cursor: pointer;
}



/* layout chính */
.main-layout {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 10px;
}

body {
  margin: 0;
  font-family: Arial;
  background: #f5f5f7;
}

/* container */
.container {
  width: 100%;
  max-width: 1200px;
  margin: auto;
  padding: 0 10px;
}

/* header */
.header {
  background: white;
  padding: 15px 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: inline-block;
}

.search {
  float: right;
  padding: 8px;
}

/* banner */
.banner {
  text-align: center;
  padding: 50px 0;
}

.banner h2 {
  font-size: 30px;
}

/* card */
.card {
  background: white;
  padding: 20px;
  border-radius: 16px;
  text-align: center;
  transition: 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
}

.card img {
  width: 100%;
  height: 200px;
  object-fit: contain;
}

.card h3 {
  font-size: 14px;
  min-height: 40px; /* QUAN TRỌNG: giữ đều chiều cao */
}

.price {
  font-size: 16px;
}

.price {
  color: red;
  font-weight: bold;
}

button {
  background: black;
  color: white;
  padding: 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

/* footer */
.footer {
  text-align: center;
  padding: 20px;
  background: white;
  margin-top: 40px;
}
/* giảm giá */
.badge {
  position: absolute;
  background: red;
  color: white;
  padding: 5px 10px;
  border-radius: 10px;
  top: 10px;
  left: 10px;
  font-size: 12px;
}

button {
  background: black;
  color: white;
  padding: 10px 15px;
  border-radius: 999px;
  transition: 0.3s;
}

button:hover {
  background: #333;
}

.section-title {
  margin: 40px 0 10px;
  font-size: 22px;
  font-weight: bold;
}

.grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.section-title {
  text-align: center;
  margin: 40px 0 20px;
}


.storage {
min-height: 30px;
}

.storage span {
  border: 1px solid #ddd;
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 12px;
  cursor: pointer;
  transition: 0.2s;
}

/* hover */
.storage span:hover {
  border-color: black;
}

/* chọn */
.storage span.active {
  background: black;
  color: white;
  border-color: black;
}

/* FOOTER */
.footer {
  background: #111;
  color: #ccc;
  margin-top: 50px;
  padding-top: 40px;
}

.footer-container {
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h3,
.footer-col h4 {
  color: white;
  margin-bottom: 10px;
}

.footer-col p {
  font-size: 14px;
  margin: 6px 0;
  cursor: pointer;
}

.footer-col p:hover {
  color: white;
}

/* bottom */
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid #333;
  margin-top: 20px;
  font-size: 13px;
}

/* product */

.product-container {
  max-width: 1200px;
  margin: auto;
  display: flex;
  gap: 40px;
}

/* LEFT */
.main-img-box {
  width: 740px;
  height: 550px;
  background: #ffffff;
  border-radius: 12px;

  display: flex;
  align-items: center;
  justify-content: center;
}

.main-img-box img {
  max-width: 100%;
  max-height: 100%;

}

.thumb-list {
  display: flex;
  gap: 10px;
  justify-content: center; /* căn giữa */
  margin-top: 15px;
}

.thumb-list img {
  width: 65px;
  height: 65px;
  object-fit: cover;   /* fix ảnh lệch */
  border-radius: 8px;
  cursor: pointer;
}
.thumb-list img.active {
  border: 2px solid #1482ff;
}

/* RIGHT */
.product-right h1 {
  font-size: 24px;
}

.price-box {
  margin: 10px 0;
}

.new-price {
  color: #0071e3;
  font-size: 24px;
  font-weight: bold;
}

.old-price {
  text-decoration: line-through;
  margin-left: 10px;
  color: #999;
}

/* OPTION */
.storage span {
  border: 1px solid #ddd;
  padding: 8px 12px;
  margin-right: 8px;
  border-radius: 8px;
  cursor: pointer;
}

.storage .active {
  border: 2px solid #0071e3;
}

.colors {
  display: flex;
  gap: 10px;
}

.color {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid #ccc;
}

.color.active {
  border: 2px solid #0071e3;
}

/* PROMO */
.promo-box {
  background: #f9f9f9;
  padding: 15px;
  border-radius: 15px;
  margin: 20px 0;
}

/* BUTTON */
.buy-main {
  background: #0071e3;
  font-weight: bold;
  font-size: 18px;
  transition: 0.2s;
}

.buy-main:hover {
  transform: scale(1.03);
}

.card {
  background: white;
  padding: 12px;
  border-radius: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: 0.3s;
}

/*MOBILE */ 

@media (max-width: 768px) {
  .card {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px;
  }
}

@media (max-width: 768px) {

  .storage span {
    padding: 4px 8px;
    font-size: 12px;
    margin: 2px;
  }

  .card button {
    margin-right: 20px;
    padding: 8px;
    font-size: 13px;
    border-radius: 20px;
  }

  .card h3 {
    font-size: 14px;
  }

  .price {
    margin: 10px;
    font-size: 14px;
  }

  .card {
    padding: 10px;
    border-radius: 12px;
  }

  .card img {
    width: 100%;
    max-height: 140px;
    object-fit: contain;
  }
  .buy-main {
    position: fixed;
    bottom: 10px;
    left: 10px;
    right: 10px;
    z-index: 999;
  }

  .nav {
    display: none;
  }

  .product-left,
  .product-right {
    width: 100%;
  }

  .main-img-box {
    width: 100%;
    height: auto;
  }

  .main-img-box img {
    width: 100%;
  }

  .thumb-list {
    justify-content: center;
    flex-wrap: wrap;
  }

}

@media (max-width: 768px) {

  .footer-container {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .footer-col {
    font-size: 13px;
  }

  /* map xuống dòng riêng */
  .footer-col iframe {
    width: 100%;
    height: 150px;
  }

}

.footer-container {
  text-align: left;
}


/* ===== SEARCH BAR ===== */
.search-box {
  display: flex;
  align-items: center;
  background: #f5f5f7;
  border-radius: 999px;
  padding: 5px 10px;
  width: 300px;
}

.search-box input {
  border: none;
  outline: none;
  background: transparent;
  flex: 1;
  padding: 8px;
  font-size: 14px;
}

.search-box button {
  background: #ffffff;
  border: none;
  border-radius: 50%;
  width: 35px;
  height: 35px;
  color: white;
  cursor: pointer;
}

@media (max-width: 768px) {
  .search-box {
    width: 100%;
    margin-top: 10px;
  }

  .header-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
}


/* ===== CONTACT FLOAT ===== */
.contact-fixed {
  position: fixed;
  bottom: 20px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 999;
}

.contact-fixed a {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  transition: 0.3s;
}

.contact-fixed img {
  width: 28px;
}

.contact-fixed a:hover {
  transform: scale(1.1);
}


