/* --- TỔNG THỂ --- */
body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  margin: 0;
  background-color: #121212;
  color: white;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
}

/* --- HEADER --- */
.main-header {
  background-color: #1a1a1a;
  padding: 15px 0;
  border-bottom: 2px solid #ff4b2b;
}

.main-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo h1 {
  color: #fff;
  margin: 0;
  font-size: 24px;
}

.logo span {
  color: #ff4b2b;
}

.search-bar form {
  display: flex;
  background: white;
  border-radius: 4px;
  overflow: hidden;
}

.search-bar input {
  padding: 10px 15px;
  width: 300px;
  border: none;
  outline: none;
}

.search-bar button {
  background: #eee;
  border: none;
  padding: 0 10px;
  cursor: pointer;
}

.header-icons {
  display: flex;
  align-items: center;
  gap: 15px;
}

.account {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 8px 15px;
  border-radius: 4px;
  color: white;
  text-decoration: none;
  font-size: 14px;
  font-weight: bold;
  transition: 0.3s;
}

.account:hover {
  background-color: #ff4b2b;
}

.cart {
  position: relative;
  text-decoration: none;
  font-size: 22px;
}

.cart-count {
  position: absolute;
  top: -8px;
  right: -10px;
  background: #ff4b2b;
  color: white;
  font-size: 12px;
  padding: 2px 6px;
  border-radius: 50%;
  font-weight: bold;
}

/* --- MENU --- */
.navbar {
  background-color: #252525;
}

.nav-links {
  list-style: none;
  display: flex;
  padding: 0;
  margin: 0;
}

.nav-links a {
  color: white;
  text-decoration: none;
  padding: 15px 20px;
  display: block;
  font-weight: bold;
  font-size: 14px;
}

.nav-links a:hover {
  background-color: #ff4b2b;
}

.dropdown {
  position: relative;
}

.submenu {
  display: none;
  position: absolute;
  background: #333;
  min-width: 200px;
  z-index: 100;
  padding: 0;
  list-style: none !important;
}

.dropdown:hover .submenu {
  display: block;
}

.submenu li a {
  padding: 12px 20px;
  border-bottom: 1px solid #444;
}

/* --- BANNER --- */

.hero-banner {
  background-image: linear-gradient(
      to right,
      rgba(0, 0, 0, 0.8),
      rgba(0, 0, 0, 0.2)
    ),
    url("../img/banner.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  height: 500px;
  display: flex;
  align-items: center;
  border-bottom: 3px solid #ff4b2b;
}

.banner-content {
  max-width: 650px;
}

.banner-title {
  font-size: 52px;
  font-weight: 900;
  margin-bottom: 20px;
  line-height: 1.1;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.highlight {
  color: #ff4b2b;
  display: inline-block;
}

.banner-subtitle {
  font-size: 18px;
  color: #dddddd;
  margin-bottom: 35px;
  line-height: 1.6;
  border-left: 4px solid #ff4b2b;
  padding-left: 20px;
}

.btn-banner {
  padding: 15px 45px;
  background-color: #ff4b2b;
  color: white;
  text-decoration: none;
  font-weight: bold;
  font-size: 16px;
  text-transform: uppercase;
  border-radius: 5px;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(255, 75, 43, 0.3);
}

.btn-banner:hover {
  background-color: #fff;
  color: #ff4b2b;
  transform: scale(1.05);
}

/* --- PRODUCT GRID --- */
.section-title {
  margin: 40px 0 20px;
  font-size: 24px;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 50px;
}

.product-card {
  background: #fff;
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: 0.3s;
  overflow: hidden;
  color: #333;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.5);
}

.product-img {
  width: 100%;
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f9f9f9;
  position: relative;
  padding: 10px;
}

.product-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.badge-sale {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #ff4b2b;
  color: white;
  padding: 2px 8px;
  font-size: 12px;
  font-weight: bold;
  border-radius: 3px;
}

.product-details {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

.product-details h3 {
  font-size: 14px;
  margin: 0 0 15px;
  height: 40px;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.price {
  margin-top: auto;
  color: #ff4b2b;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 15px;
}

.old-price {
  color: #999;
  text-decoration: line-through;
  font-size: 13px;
  margin-left: 5px;
}

.buy-now {
  width: 100%;
  background: #1a1a1a;
  color: white;
  border: none;
  padding: 10px;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  transition: 0.3s;
}

.buy-now:hover {
  background: #ff4b2b;
}

/* --- FOOTER --- */
.main-footer {
  background-color: #1a1a1a;
  color: #888;
  text-align: center;
  padding: 40px 0;
  margin-top: 50px;
  border-top: 1px solid #333;
}

.main-footer p {
  font-size: 14px;
  margin-bottom: 10px;
}

.main-footer strong {
  color: #ff4b2b;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.main-footer .copyright {
  font-size: 12px;
  opacity: 0.6;
}
