body {
  font-family: Arial;
  margin: 0;
  background: #f4f4f4;
}

/* HEADER */
header {
  background: #222;
  color: white;
  padding: 15px 30px;
  display: flex;
  justify-content: space-between;
}

nav a {
  color: white;
  margin-left: 15px;
  text-decoration: none;
}

/* HERO */
.hero {
  background: linear-gradient(rgba(0,0,0,0.5), rgba(0,0,0,0.5)),
              url('https://images.unsplash.com/photo-1503387762-592deb58ef4e');
  background-size: cover;
  background-position: center;
  height: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-content {
  color: white;
  text-align: center;
}

.hero-content h2 {
  font-size: 28px;
  font-weight: bold;
}

.btn {
  background: orange;
  color: white;
  padding: 10px 20px;
  text-decoration: none;
  border-radius: 5px;
}

.btn:hover {
  background: #ff6600;
}

/* CATEGORIES */
.categories {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 30px;
  background: #fff;
}

.categories div {
  background: #eee;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.categories div:hover {
  background: orange;
  color: white;
}


/* PRODUCTS */
.featured {
  max-width: 1400px;
  margin: auto;
  padding: 40px 20px;
}

.featured h2 {
  text-align: center;
  margin-bottom: 30px;
  width: 100%;
}

.featured {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 25px;
}

.product {
  background: white;
  padding: 15px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
  transition: 0.3s;
  border: 1px solid #eee;
  cursor: pointer;
}

.product h3 {
  margin-top: 10px;
}

.product:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product p {
  color: #ff6600;
  font-weight: bold;
}

.product img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  border-radius: 8px;
}


.detail {
  max-width: 1100px;
  margin: 50px auto;
  display: flex;
  gap: 40px;
  padding: 20px;
  align-items: center;
}

.detail-img img {
  width: 400px;
  border-radius: 12px;
}

.detail-info {
  flex: 1;
}

.detail-info h2 {
  margin-bottom: 10px;
}

.price {
  color: orange;
  font-size: 22px;
  font-weight: bold;
}

.buy-btn {
  background: orange;
  color: white;
  padding: 12px 25px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  margin-top: 20px;
}


/* TOPBAR */
.topbar {
  background: #1f1f1f;
  color: white;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 30px;
}

.logo {
  font-size: 28px;
  font-weight: bold;
}

.search-box input {
  width: 500px;
  padding: 14px 18px;
  border-radius: 30px;
  border: none;
  outline: none;
  font-size: 15px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
}

.menu a {
  color: white;
  margin-left: 20px;
  text-decoration: none;
}

/* MAIN BANNER */
.main-banner {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.sidebar {
  width: 260px;
  background: white;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.sidebar ul {
  list-style: none;
  padding: 0;
}

.sidebar li {
  padding: 12px 0;
  border-bottom: 1px solid #eee;
  cursor: pointer;
}

.sidebar li:hover {
  color: orange;
}

.banner {
  flex: 1;
  height: auto;
  border-radius: 14px;
  overflow: hidden;
  background: #111;
}

.banner img {
  width: 100%;
  height: auto;
  display: block;
  object-position: center;
  display: block;
}

/* PROMOTION */
.promo-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  padding: 20px;
}

.promo-card {
  background: white;
  border-radius: 12px;
  overflow: hidden;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.promo-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.promo-card p {
  padding: 10px;
  font-weight: bold;
}

.side-contact {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #eee;
}

.side-contact h4 {
  margin-bottom: 10px;
}

.side-contact p {
  margin: 8px 0;
  color: #555;
}

.promo-card {
  transition: 0.3s;
}

.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.15);
}

.products-page {
  padding: 30px;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 25px;
}

.product-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: 0.3s;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.product-card img {
  width: 100%;
  height: 230px;
  object-fit: cover;
}

.product-info {
  padding: 18px;
}

.product-info h3 {
  margin-bottom: 10px;
}

.price {
  color: #ff7a00;
  font-size: 22px;
  font-weight: bold;
  margin: 10px 0;
}

.detail-btn {
  display: inline-block;
  background: #ff7a00;
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
}

.detail-btn:hover {
  background: #e66d00;
}

.page-title {
  text-align: center;
  margin-top: 30px;
}
