/* ======================
   Global Styles
====================== */
body {
  font-family: "Segoe UI", Arial, sans-serif;
  margin: 0;
  background: #f9f9fb;
  color: #333;
  line-height: 1.6;
}

h1, h2, h3 {
  margin: 0 0 10px;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  padding: 20px 0; /* back to normal */
}

.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 6px;
  border: none;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: 0.3s ease;
}

.btn.primary {
  background: #007bff;
  color: #fff;
}

.btn.primary:hover {
  background: #0056b3;
}

/* ======================
   Navbar
====================== */
.navbar {
  background: #fff;
  border-bottom: 1px solid #eee;
  padding: 10px 0;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);

  /* ❌ Removed fixed positioning */
  position: relative;
}

.nav-container {
  width: 90%;
  max-width: 1200px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  height: 120px;
  margin-right: 60px;
}

.brand {
  display: flex;
  align-items: center;
}

nav {
  display: flex;
  gap: 20px;
}

.nav-link {
  text-decoration: none;
  font-weight: 600;
  color: #333;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: #007bff;
}

/* ======================
   Hero Section
====================== */
.hero {
  background: linear-gradient(135deg, #007bff, #00b3ff);
  color: #fff;
  text-align: center;
  padding: 80px 20px; /* back to normal */
}

.hero h2 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero p {
  font-size: 1.1rem;
  margin-bottom: 25px;
}

.hero .highlight {
  color: #ffe066;
}

/* ======================
   Filter Section
====================== */
.filter-section {
  background: #fff;
  padding: 15px;
  margin: 20px 0;
  border-radius: 10px;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);

  /* ✅ Only filter is sticky */
  position: sticky;
  top: 0;
  z-index: 998;
}

.filter-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  align-items: center;
}

.filter-controls label {
  font-weight: 600;
}

#searchBox {
  padding: 8px 12px;
  border-radius: 6px;
  border: 1px solid #ccc;
  min-width: 200px;
}

/* ======================
   Video Section
====================== */
.video-section {
  text-align: center;
  margin: 40px 0;
}

.video-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0,0,0,0.1);
  max-width: 800px;
  margin: auto;
}

/* ======================
   Products Grid
====================== */
.product-section h2 {
  margin-bottom: 20px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.product-card {
  background: #fff;
  border-radius: 12px;
  padding: 15px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-align: center;

  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.15);
}

.product-card img {
  max-width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-card h3 {
  font-size: 1.1rem;
  margin-bottom: 8px;
  flex-grow: 1;
}

.product-card p {
  font-size: 0.9rem;
  color: #555;
  margin-bottom: 12px;
  flex-grow: 1;
}

.product-card .btn {
  margin-top: auto;
}

.product-card .category {
  display: inline-block;
  padding: 5px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  border-radius: 20px;
  background: #e9f2ff;
  color: #007bff;
  margin-top: 10px;
}

/* ======================
   Footer
====================== */
.footer {
  background: #222;
  color: #bbb;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}

.footer p {
  margin: 0;
  font-size: 0.9rem;
}
