/* General Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background-color: #f9f9f9;
  color: #333;
  line-height: 1.6;
  padding-bottom: 50px;
}

/* Header */
header {
  background-color: #006699;
  padding: 1rem;
  text-align: center;
}

header img {
  height: 60px;
}

nav {
  margin-top: 1rem;
}

nav a {
  color: #ffffff;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
}

/* Hero Banner */
.hero {
  width: 100%;
  max-height: 300px;
  overflow: hidden;
}

.hero img {
  width: 100%;
  display: block;
}

/* Product Grid */
.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  padding: 2rem;
}

.product-card {
  background-color: #ffffff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s;
}

.product-card:hover {
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

.product-card img {
  width: 100%;
  height: auto;
}

.product-card .info {
  padding: 1rem;
}

.product-card .info h3 {
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.product-card .info p {
  color: #777;
  font-size: 0.9rem;
}

.product-card .price {
  color: #006699;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Footer */
footer {
  text-align: center;
  padding: 1rem;
  background-color: #eee;
  margin-top: 2rem;
  font-size: 0.9rem;
}

.navbar {
  background: #ff7043;
  color: white;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.75em 2em;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-title {
  display: flex;
  align-items: center;
}

.logo {
  width: 40px;
  height: 40px;
  margin-right: 0.8em;
}

.mall-title {
  font-size: 1.5em;
  font-weight: bold;
}

.menu a {
  margin-left: 1.5em;
  color: white;
  text-decoration: none;
  font-weight: 500;
}

.menu a:hover {
  text-decoration: underline;
}

/* Search bar section */
.search-bar {
  display: flex;
  justify-content: center;
  margin: 1.5em auto;
  max-width: 600px;
}

.search-bar input {
  flex: 1;
  padding: 0.7em;
  border: 1px solid #ccc;
  border-radius: 4px 0 0 4px;
  font-size: 1em;
}

.search-bar button {
  padding: 0.7em 1.2em;
  background-color: #ff7043;
  color: white;
  border: none;
  border-radius: 0 4px 4px 0;
  font-weight: bold;
  cursor: pointer;
}

.search-bar button:hover {
  background-color: #e55c2a;
}

/* Floating cart button */
.floating-cart {
  position: fixed;
  bottom: 20px;
  right: 20px;
  background: #ff7043;
  color: white;
  font-size: 1.5em;
  padding: 0.6em 0.9em;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  text-decoration: none;
  z-index: 999;
}

.floating-cart:hover {
  background: #e55c2a;
}
