* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

body {
  background: #f3f3f3;
}

/* Header */
.top-header {
  background: #131921;
  color: white;
  display: flex;
  padding: 10px 20px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}

.logo {
  font-size: 22px;
  font-weight: bold;
}
.logo span { color: #ff9900; }

.search-box {
  display: flex;
  flex: 1;
  max-width: 400px;
  margin: 5px 10px;
}

.search-box input {
  flex: 1;
  padding: 8px;
  border: none;
}

.search-box button {
  background: #febd69;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
}

.nav-icons i {
  font-size: 18px;
  margin-left: 15px;
  position: relative;
  cursor: pointer;
}

.nav-icons span {
  position: absolute;
  background: red;
  font-size: 10px;
  padding: 2px 5px;
  border-radius: 50%;
  top: -5px;
  right: -10px;
}

/* Hero */
.hero {
  background: linear-gradient(135deg,#ff9900,#ff5e00);
  text-align: center;
  color: white;
  padding: 40px 20px;
}

/* Products */
.products {
  max-width: 1200px;
  margin: 30px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(260px,1fr));
  gap: 20px;
  padding: 10px;
}

.product-card {
  background: white;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
  position: relative;
  opacity: 0;
  transform: translateY(40px);
  transition: 0.6s ease;
}

.product-card.show {
  opacity: 1;
  transform: translateY(0);
}

.discount {
  position: absolute;
  background: red;
  color: white;
  padding: 5px 8px;
  border-radius: 5px;
  font-size: 12px;
  top: 10px;
  left: 10px;
}

.product-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 10px;
}

.product-card h3 {
  font-size: 16px;
  margin-top: 10px;
}

.desc {
  font-size: 13px;
  color: #555;
  margin: 6px 0;
}

.rating {
  color: #ffa41c;
  font-size: 14px;
}

.price {
  font-size: 18px;
  font-weight: bold;
  color: #b12704;
  margin-top: 5px;
}

.price span {
  font-size: 13px;
  color: gray;
  text-decoration: line-through;
}

.timer {
  margin: 6px 0;
  font-weight: bold;
  color: #007600;
}

.product-card button {
  margin-top: 8px;
  background: #ffd814;
  border: none;
  padding: 8px;
  width: 100%;
  font-weight: bold;
  cursor: pointer;
  border-radius: 6px;
  transition: 0.3s;
}

.product-card button:hover {
  background: #ff9900;
  transform: scale(1.03);
}

/* Footer */
footer {
  text-align: center;
  padding: 15px;
  background: #131921;
  color: white;
  margin-top: 30px;
}

/* Responsive */
@media(max-width:600px){
  .search-box { order: 3; width: 100%; }
  .nav-icons { order: 2; }
}
