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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen,
    Ubuntu, Cantarell, "Open Sans", "Helvetica Neue", sans-serif;
  background-color: #fafafa;
  color: #222;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Navbar */
.navbar {
  background-color: #0071e3;
  padding: 15px 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.logo {
  font-size: 1.7rem;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  user-select: none;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 25px;
}

.nav-links a {
  color: white;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
}

.nav-links a:hover,
.nav-links a:focus {
  color: #f7b500;
}

.cart {
  background-color: #f7b500;
  padding: 8px 16px;
  border-radius: 6px;
  font-weight: 700;
  color: #222;
  text-decoration: none;
  user-select: none;
  transition: background-color 0.25s ease;
}

.cart:hover,
.cart:focus {
  background-color: #d4a300;
}

/* Section styling */
.section-center {
  max-width: 1000px;
  margin: 40px auto;
  padding: 0 20px;
}

/* Products Grid */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 30px;
}

.product-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 10px 18px rgb(0 0 0 / 0.12);
  padding: 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.product-card img {
  max-width: 180px;
  border-radius: 8px;
  margin-bottom: 10px;
}

.product-name {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
  text-align: center;
}

.product-price {
  font-size: 1.2rem;
  font-weight: 600;
  color: #0071e3;
  margin-bottom: 15px;
}

.btn {
  cursor: pointer;
  padding: 10px 20px;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  background-color: #0071e3;
  color: white;
  transition: background-color 0.2s ease;
  user-select: none;
}

.btn:hover,
.btn:focus {
  background-color: #005bb5;
}

/* Footer */
footer {
  margin-top: auto;
  background-color: #232f3e;
  color: #ccc;
  text-align: center;
  padding: 18px 10px;
  font-size: 0.9rem;
}

/* Responsive adjustments */
@media screen and (max-width: 600px) {
  .products-grid {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .navbar {
    flex-wrap: wrap;
    gap: 8px;
    #auth-area {
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
  font-weight: 700;
  user-select: none;
}

#auth-area button {
  background-color: #f7b500;
  border: none;
  padding: 8px 14px;
  border-radius: 6px;
  cursor: pointer;
  color: #222;
  font-weight: 600;
  transition: background-color 0.25s ease;
}

#auth-area button:hover, #auth-area button:focus {
  background-color: #d4a300;
}

  }
}
