:root {
  --primary-color: #042dac; /* Updated header blue */
  --secondary-color: #00a8e8; /* Lighter accent blue */
  --text-color: #333333;
  --bg-color: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  --font-family: 'Figtree', sans-serif;
  --max-width: 800px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  background-color: var(--bg-color);
  color: var(--text-color);
  line-height: 1.6;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Header */
header {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 2rem 1rem;
  text-align: center;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

header p {
  font-size: 1rem;
  opacity: 0.9;
}

/* Main Content */
main {
  flex: 1;
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Search Section */
.search-wrapper {
  margin-bottom: 2rem;
}

.search-container {
  display: flex;
  align-items: center;
  background: var(--white);
  border: 1px solid var(--border-color);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  box-shadow: var(--shadow);
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.search-container:focus-within {
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
  border-color: var(--secondary-color);
}

#searchBar {
  border: none;
  outline: none;
  font-size: 1rem;
  width: 100%;
  font-family: var(--font-family);
  color: var(--text-color);
}

#searchButton {
  background: none;
  border: none;
  cursor: pointer;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}

#searchButton svg {
  width: 20px;
  height: 20px;
}

/* Product List */
#productList {
  background: var(--white);
  border-radius: 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 2.5rem;
}

.product-list {
  list-style: none;
}

.product-item {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--border-color);
  transition: background-color 0.2s ease;
}

.product-item:last-child {
  border-bottom: none;
}

.product-item:hover {
  background-color: #f0f7ff;
}

.no-result {
  padding: 2rem;
  text-align: center;
  color: #666;
}

/* Footer */
footer {
  background-color: #222;
  color: var(--white);
  text-align: center;
  padding: 2rem 1rem;
  margin-top: auto;
}

footer a {
  color: var(--white);
  text-decoration: none;
  font-weight: 600;
}

footer a:hover {
  text-decoration: underline;
}

.footer-content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

.footer-content p {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 0.5rem;
}

/* Responsive */
@media (max-width: 600px) {
  header h1 {
    font-size: 1.5rem;
  }
  
  .product-item {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
  }
}
