/* Reset and Base */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'Poppins', sans-serif;
  background-color: #fdfdfd;
  color: #333;
  scroll-behavior: smooth;
}

/* Sticky Header */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: #fff8f1;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06);
  padding: 12px 0;
}

/* Container */
.nav-container {
  max-width: 1180px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 24px;
}

/* Logo */
.logo {
  display: flex;
  align-items: center;
}
.logo img {
  width: 42px;
  margin-right: 12px;
}
.logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #cc4b00;
}

/* Navbar */
.navbar {
  position: relative;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 24px;
}

.nav-links li a {
  text-decoration: none;
  color: #cc4b00;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 6px;
  transition: background-color 0.3s ease;
}

.nav-links li a:hover {
  background-color: #ffe3cc;
}

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.hamburger span {
  width: 26px;
  height: 3px;
  background-color: #cc4b00;
  border-radius: 2px;
}

/* Responsive Nav */
@media (max-width: 768px) {
  .navbar {
    position: absolute;
    top: 60px;
    right: 20px;
    background-color: #fff1e0;
    border-radius: 12px;
    padding: 15px 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 1000;
  }

  .navbar.active {
    display: block;
  }

  .nav-links {
    flex-direction: column;
    gap: 12px;
  }

  .hamburger {
    display: flex;
  }
}


.hero {
  background: url('/static/img/ccc.png') no-repeat center center/cover;
  padding: 80px 20px;
  text-align: center;
  color: white;
  position: relative;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4); /* optional overlay for contrast */
  z-index: 1;
}

.hero-text {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.hero-text h1 {
  font-size: 48px;
  color: #e65c00;
}

.hero-text p {
  font-size: 20px;
  color: #f0f0f0;
  margin-top: 12px;
}


/* Search Section */
.search-section {
  padding: 30px 20px;
  background: #ffffff;
  border-bottom: 1px solid #eee;
}
.search-form {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
}
.search-form input {
  padding: 12px;
  width: 320px;
  border: 1px solid #ccc;
  border-radius: 5px;
}
.search-form button {
  background: #e65c00;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-weight: 500;
}
.search-form button:hover {
  background: #d14c00;
}

/* Category Cards */
.category-section {
  padding: 40px 5%;
  background: #fef6ef;
  text-align: center;
}
.category-section h2 {
  font-size: 24px;
  margin-bottom: 20px;
  color: #cc4b00;
}
.category-cards {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
}
.category-card {
  display: flex;
  align-items: center;
  padding: 10px 18px;
  background-color: #ffffff;
  border-radius: 8px;
  text-decoration: none;
  color: #cc4b00;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  transition: background-color 0.3s ease, transform 0.2s ease;
  font-weight: 500;
}
.category-card .icon {
  margin-right: 10px;
  font-size: 18px;
}
.category-card:hover {
  background-color: #fff0e0;
  transform: translateY(-4px);
}

/* Products Listing */
.products-listing .container {
  max-width: 1180px;
  margin: auto;
  padding: 40px 20px;
}
.products-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

/* Force 5 per row for large screens */
@media (min-width: 1200px) {
  .products-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

/* Product Card Style */
.product-card {
  background: white;
  border-radius: 10px;
  padding: 10px;
  text-align: center;
  box-shadow: 0 2px 6px rgba(0,0,0,0.07);
  text-decoration: none;
  color: #333;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 12px rgba(0,0,0,0.1);
}
.product-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 6px;
}
.product-card h3 {
  font-size: 16px;
  margin: 10px 0 4px;
  color: #222;
}
.product-card .price {
  color: #cc4b00;
  font-weight: bold;
  font-size: 15px;
}
.product-card .business-name {
  font-size: 13px;
  color: #888;
  margin-top: 3px;
}

/* No Results */
.no-results {
  text-align: center;
  font-size: 18px;
  padding: 40px 0;
  color: #999;
}
