/* Reset & Base Styles */
html {
  scroll-behavior: smooth;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  margin: 0;
  padding: 0;
  background: #f0f4f8;
  color: #333;
}

/* Header & Navigation */
header {
  background: #222;
  color: #fff;
  padding: 1rem;
  position: relative;
  text-align: center;
}

header h1 {
  margin: 0 0 10px 0;
  font-family: 'Arial Black', sans-serif;
}

nav ul.nav-links {
  list-style: none;
  padding: 0;
  margin: 0;
}

nav ul.nav-links li {
  display: inline;
  margin: 0 15px;
}

nav ul.nav-links li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1rem;
  padding: 5px 10px;
  border-radius: 4px;
  transition: background 0.3s;
}

nav ul.nav-links li a:hover,
nav ul.nav-links li a.active {
  background: #444;
}

/* Authentication Box */
.auth-section {
  margin-top: 10px;
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Style for login/auth boxes */
.auth-box {
  background: #fff; /* white background, you can change this */
  padding: 15px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  max-width: 250px;
  margin: 10px auto;
  transition: box-shadow 0.3s, transform 0.3s;
}

.auth-box:hover {
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}
.auth-box {
  background: #fff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.auth-box h2 {
  margin-top: 0;
  font-size: 1.2rem;
  color: #222;
}

.auth-box input {
  width: 100%;
  padding: 8px 10px;
  margin-top: 10px;
  border-radius: 6px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.auth-box button {
  width: 100%;
  margin-top: 10px;
  background: #ff6600;
  padding: 10px;
  border-radius: 8px;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.2s;
}

.auth-box button:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

/* Popup Notification */
.popup {
  position: fixed;
  top: 20px;
  right: 20px;
  background: #4CAF50;
  color: #fff;
  padding: 15px 20px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  z-index: 9999;
  animation: fadeIn 0.5s ease;
}

.popup button {
  background: #fff;
  color: #4CAF50;
  border: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
}

.popup button:hover {
  background: #eee;
}

/* Main Content */
main {
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

/* Hero Section */
.hero {
  background: #fff;
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  text-align: center;
  margin-bottom: 2rem;
}

.hero h2 {
  margin-top: 0;
  font-size: 2rem;
  color: #222;
}

.hero p {
  font-size: 1.2rem;
  line-height: 1.5;
  margin-top: 1rem;
  color: #555;
}

.hero img {
  max-width: 100%;
  height: auto;
  margin-top: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.hero img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

/* Footer */
footer {
  background: #222;
  color: #ddd;
  padding: 1.5rem;
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
}

/* Products & Cart Styles */
.product {
  background: #fff;
  padding: 1rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.product h2 {
  margin-top: 0;
  font-size: 1.5rem;
  color: #222;
}

.product p {
  font-size: 1rem;
  margin: 1rem 0;
}

.product img {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
  display: block;
  margin-left: auto;
  margin-right: auto;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  transition: transform 0.3s, box-shadow 0.3s;
}

.product img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 16px rgba(0,0,0,0.2);
}

.price {
  font-size: 1.3rem;
  font-weight: bold;
  margin-top: 0.5rem;
  color: #222;
  text-align: center;
}

button {
  background: #ff6600;
  color: #fff;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  margin-top: 1rem;
  transition: background 0.3s, transform 0.2s;
}

button:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

#shopping-cart {
  background: #f9f9f9;
  border-radius: 10px;
  padding: 1rem;
  max-width: 350px;
  margin: 0 auto 2rem auto;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

#cart-items {
  list-style: none;
  padding: 0;
  margin: 0;
}

#cart-items li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  border-bottom: 1px solid #ddd;
}

#cart-items button {
  background: #c0392b;
  padding: 4px 8px;
  font-size: 0.9rem;
}

@media(max-width: 768px) {
  header, main, footer {
    padding: 1rem;
  }

  nav ul.nav-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
  }

  nav ul.nav-links li {
    margin: 0 10px;
  }
}