<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Kingsmen - Clothing Store</title>
  <style>
    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: #f9f9f9;
    }
    header {
      background-color: #000;
      color: #fff;
      padding: 1rem;
      text-align: center;
      font-size: 1.5rem;
    }
    nav.filters {
      display: flex;
      justify-content: space-around;
      padding: 1rem;
      background: #eee;
      flex-wrap: wrap;
    }
    nav.filters select, nav.filters input {
      padding: 0.5rem;
      margin: 0.5rem;
    }
    .categories {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
      gap: 1rem;
      padding: 1rem;
    }
    .category {
      background: white;
      padding: 1rem;
      text-align: center;
      border-radius: 8px;
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      cursor: pointer;
    }
    .bottom-nav {
      position: fixed;
      bottom: 0;
      width: 100%;
      display: flex;
      justify-content: space-around;
      background-color: #000;
      color: white;
      padding: 0.8rem 0;
    }
    .bottom-nav div {
      text-align: center;
      cursor: pointer;
    }
  </style>
</head>
<body>

  <header>
    Kingsmen - Clothing Store
  </header>

  <nav class="filters">
    <select id="categoryFilter">
      <option value="all">All Categories</option>
      <option value="men">Men</option>
      <option value="women">Women</option>
      <option value="kids">Kids</option>
    </select>

    <select id="sortBy">
      <option value="popularity">Sort by Popularity</option>
      <option value="priceLow">Price: Low to High</option>
      <option value="priceHigh">Price: High to Low</option>
    </select>

    <input type="text" placeholder="Search..." id="searchBox">
  </nav>

  <section class="categories" id="clothingSection">
    <div class="category" data-category="men">Men's Shirts</div>
    <div class="category" data-category="men">Men's Pants</div>
    <div class="category" data-category="women">Women's Dresses</div>
    <div class="category" data-category="women">Women's Tops</div>
    <div class="category" data-category="kids">Kids' Wear</div>
    <div class="category" data-category="accessories">Accessories</div>
  </section>

  <div class="bottom-nav">
    <div>Home</div>
    <div>Orders</div>
    <div>Account</div>
  </div>

  <script>
    const categoryFilter = document.getElementById('categoryFilter');
    const searchBox = document.getElementById('searchBox');
    const clothingSection = document.getElementById('clothingSection');

    function filterCategories() {
      const category = categoryFilter.value;
      const searchTerm = searchBox.value.toLowerCase();
      const categories = clothingSection.querySelectorAll('.category');

      categories.forEach(cat => {
        const matchesCategory = category === 'all' || cat.dataset.category === category;
        const matchesSearch = cat.textContent.toLowerCase().includes(searchTerm);
        cat.style.display = matchesCategory && matchesSearch ? 'block' : 'none';
      });
    }

    categoryFilter.addEventListener('change', filterCategories);
    searchBox.addEventListener('input', filterCategories);
  </script>

</body>
</html>
body {
  font-family: system-ui;
  background: #f06d06;
  color: white;
  text-align: center;
}

External CSS

This Pen doesn't use any external CSS resources.

External JavaScript

This Pen doesn't use any external JavaScript resources.