:root {
  --primary: linear-gradient(135deg, #5A4FCF, #0066CC);
  --bg: #fff;
  --text: #222;
  --muted: #777;
  --shadow: 0 4px 10px rgba(0,0,0,0.08);
  --radius: 12px;
}

* { margin:0; padding:0; box-sizing:border-box; font-family: 'Segoe UI', sans-serif; }
body { background: #f7f7f7; color: var(--text); padding-bottom: 60px; }

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg);
  padding: 8px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}
.logo i { width: 24px; height: 24px; }
.search-bar {
  flex: 1;
  display: flex;
  margin: 0 8px;
  background: #f2f2f2;
  border-radius: var(--radius);
  overflow: hidden;
}
.search-bar input {
  flex: 1;
  border: none;
  padding: 8px;
  outline: none;
  background: transparent;
}
.search-bar button {
  border: none;
  background: var(--primary);
  color: #fff;
  padding: 0 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.search-bar button i { width: 18px; height: 18px; }
.icons i { margin-left: 8px; width: 22px; height: 22px; }

/* Banner */
.banner { margin: 10px; overflow: hidden; border-radius: var(--radius); box-shadow: var(--shadow); }
.slider { display: flex; transition: transform 0.5s ease; }
.slide {
  min-width: 100%;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary);
  color: #fff;
  font-size: 20px;
}

/* Categories */
.categories { padding: 10px; background: var(--bg); margin: 10px 0; }
.cat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.cat-item {
  text-align: center;
  background: #fff;
  padding: 10px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.cat-item i { width: 24px; height: 24px; margin-bottom: 4px; }
.cat-item p { font-size: 12px; }

/* Flash Sale */
.flash-sale { padding: 10px; background: var(--bg); margin-bottom: 10px; }
.fs-header { display:flex; justify-content:space-between; align-items:center; margin-bottom:8px; }
.fs-products { display: flex; overflow-x: auto; gap: 10px; }
.fs-item {
  min-width: 120px;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 6px;
  text-align: center;
}
.fs-item img { width: 100%; border-radius: var(--radius); }

/* Produk Grid */
.products { padding: 10px; background: var(--bg); }
.product-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 10px;
}
.product-card {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 8px;
  text-align: center;
}
.product-card img { width: 100%; border-radius: var(--radius); }
.name { font-size: 14px; margin: 6px 0; }
.price { color: #5A4FCF; font-weight: bold; }

/* Footer Nav */
.bottom-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg);
  box-shadow: var(--shadow);
  display: flex;
  justify-content: space-around;
  padding: 6px 0;
}
.bottom-nav a {
  flex:1;
  text-align: center;
  font-size: 12px;
  color: var(--muted);
  text-decoration: none;
}
.bottom-nav i { width: 20px; height: 20px; }
.bottom-nav a p { margin-top: 2px; }
