:root {
  --primary-color: #2a2a2a;
  --secondary-color: #ffffff;
  --accent-color: #007bff;
  --accent-color-dark: #0062cc; /* Pre-calculated darker version */
  --background-color: #f8f9fa;
  --card-background: #ffffff;
  --text-color: #2c3e50;
  --border-radius: 8px;
  --shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  --button-color: #005f8b;
  --button-hover-color: #004a6e;
}

body {
  font-family: 'Inter', 'Avenir', Helvetica, Arial, sans-serif;
  background-color: var(--background-color);
  color: var(--text-color);
  margin: 0;
  padding: 120px 0 0 0; /* Add top padding to push content down */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-align: center;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* Navigation styles */
.header,
nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000; /* High z-index to ensure it stays on top */
  background: var(--primary-color);
  color: var(--secondary-color);
  padding: 1rem 2rem;
}

nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

ul {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

li {
  margin: 0 1rem;
}

a {
  color: #fff;
  text-decoration: none;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 1rem;
  margin: 0;
}

/* Product Display */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.product-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.product-card {
  background: var(--card-background);
  padding: 15px;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  transition: transform 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  margin: 1rem;
  padding: 1rem;
  border: 1px solid #ccc;
}

.product-card:hover {
  transform: translateY(-5px);
}

.product-card img {
  max-width: 100%;
  margin-bottom: 1rem;
}

.product-card a {
  text-decoration: none;
  color: #333;
}

.product-card h2 {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.product-card p {
  margin-bottom: 1rem;
}

.product-controls {
  display: flex;
  align-items: center;
  margin-top: 0.5rem;
}

.product-controls p {
  margin-right: 20px;
}

.product-price {
  font-weight: bold;
  font-size: 1.2rem;
}

/* Button Styles */
.button,
button {
  background: var(--accent-color);
  color: var(--secondary-color);
  border: none;
  padding: 10px 15px;
  border-radius: var(--border-radius);
  cursor: pointer;
  transition: background 0.3s;
}

.button:hover,
button:hover {
  background: var(--accent-color-dark);
}

.product-controls button:hover {
  background-color: var(--button-hover-color);
}

/* Form Controls */
.quantity-input {
  width: 50px;
  height: 30px;
  border: 1px solid #ccc;
  border-radius: 5px;
  padding: 5px;
  margin-right: 10px;
}
