html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  font-family: Arial, sans-serif;
  background: #FAF3E6;
  color: #333;
}

main {
  flex: 1 0 auto;
}

header {
  text-align: center;
  padding: 0;
  background: #FAF3E6;
}

header img {
  width: 100%;
  max-width: 600px;
  height: auto;
  display: block;
  margin: 0 auto;
}

.rainbow-bar {
  height: 6px;
  background: linear-gradient(
    90deg,
    red,
    orange,
    yellow,
    green,
    cyan,
    blue,
    violet,
    red
  );
  background-size: 400% 100%;
  animation: rainbowAnimation 15s linear infinite;
}

@keyframes rainbowAnimation {
  from {
    background-position: 0% 50%;
  }
  to {
    background-position: 400% 50%;
  }
}

nav {
  display: flex;
  justify-content: center;
  background-color: #222;
  padding: 10px 20px;
  gap: 40px;
}

.nav-spacer {
  flex-grow: 1;
  min-width: 50px;
  max-width: 100px;
}

@media (max-width: 600px) {
  .nav-spacer {
    display: none;
  }
}

nav a {
  color: white;
  text-decoration: none;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 24px;
  position: relative;
}

nav a:hover {
  text-decoration: underline;
}

.hero {
  text-align: center;
  padding: 50px 20px;
}

.hero h1 {
  font-size: 2em;
  margin-bottom: 10px;
}

.hero p {
  font-size: 1.1em;
  color: #666;
}

.products {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
  padding: 40px 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.product-card {
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  padding: 20px;
  text-align: center;
}

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 6px;
}

.product-card h3 {
  margin: 10px 0 5px;
}

.product-card p {
  font-size: 0.9em;
  color: #555;
}

footer {
  flex-shrink: 0;
  background: #eee;
  padding: 20px;
  text-align: center;
  font-size: 0.85em;
  margin-top: 40px;
}

.footer-links a {
  color: #006699;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}

.cart-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 6px;
  color: white;
  cursor: pointer;
}

.cart-icon {
  position: relative;
  font-size: 1.4em;
}

.cart-badge {
  position: absolute;
  top: -6px;
  right: -8px;
  background-color: red;
  color: white;
  border-radius: 50%;
  padding: 1px 5px;
  font-size: 0.65em;
  font-weight: bold;
  display: none;
}

.cart-price {
  font-size: 0.9em;
  display: none;
}

.user-dropdown {
  position: relative;
  display: inline-block;
  color: white;
}

.user-dropdown button {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  font-weight: bold;
  font-size: 1em;
}

.dropdown-content {
  position: absolute;
  right: 0;
  background-color: white;
  min-width: 140px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  z-index: 1000;
  border-radius: 4px;
  display: none;
}

.dropdown-content a {
  color: #333;
  padding: 8px 12px;
  display: block;
  text-decoration: none;
  font-size: 0.9em;
}

.dropdown-content a:hover {
  background-color: #f0f0f0;
}
.hello-text {
  display: inline;
}

@media (max-width: 599px) {
  .hello-text {
    display: none;
  }
}