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

html, body {
  height: 100%; /* Ensure the page fills the entire browser window */
}

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.container {
  width: 90%;
  margin: 0 auto;
  flex: 1;
}

/* Header Styling */
header {
  background-color: #fff;
  color: #333;
  padding: 10px 0;
}

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

.navbar .logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 20px;
  margin-left: auto;
}

.nav-links li a {
  text-decoration: none;
  color: #333;
  font-size: 1.2rem;
}

.nav-links li a.active,
.nav-links li a:hover {
  color: #f39c12;
}

/* Hero Section Styling */
.hero {
  background: url('./images/background.jpg') no-repeat center center/cover; /* Use an image as background */
  padding: 50px 0;
  color: white;
  text-align: center;
}

.hero h1 {
  font-size: 3rem;
  margin-bottom: 20px;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 30px;
}

/* Top Products Section */
.top-products-section {
  margin-top: 50px;
  padding-bottom: 50px;
}

.top-products-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 30px;
}
/* Product Grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-top: 30px;
}

/* Product Card */
.product-card {
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card img {
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.product-card h3 {
  margin-top: 15px;
  font-size: 1.2rem;
}

.product-card p {
  margin-top: 10px;
  color: #777;
}

.product-card .btn-secondary {
  background-color: #f39c12;
  color: #fff;
  padding: 8px 16px;
  border-radius: 5px;
  text-decoration: none;
  margin-top: 15px;
}

/* Click Effect */
.product-card.clicked {
  transform: scale(1.05); /* Slightly enlarge the card */
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2); /* Increase shadow to highlight */
  background-color: #f0f0f0; /* Change background color on click */
}

/* Reviews Styling */
.product-card .reviews {
  display: none; /* Hidden by default */
  margin-top: 15px;
  font-size: 0.9rem;
  color: #666;
}

.product-card .reviews p {
  margin-bottom: 10px;
}

.product-card .reviews .review {
  background-color: #fafafa;
  padding: 10px;
  border-radius: 5px;
  margin-bottom: 10px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.product-card .reviews .review strong {
  font-weight: bold;
}

.product-card .reviews .review p {
  font-size: 0.9rem;
}

/* Review Form Styling */
form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

form label {
  font-size: 1.1rem;
}

form select, form input, form textarea {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

form button {
  background-color: #f39c12;
  color: white;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

/* Footer Styling */
footer {
  background-color: #333;
  color: #fff;
  padding: 20px 0;
  text-align: center;
  margin-top: auto;
}

footer p {
  font-size: 1rem;
}

/* User Management Styling */
.user-form, .user-search-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background-color: #f9f9f9;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  margin-top: 30px;
}

.user-form label, .user-search-form label {
  font-size: 1.1rem;
}

.user-form input, .user-search-form input {
  padding: 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  font-size: 1rem;
}

.user-form button, .user-search-form button {
  background-color: #f39c12;
  color: white;
  padding: 10px;
  border-radius: 5px;
  cursor: pointer;
}

.user-form input[type="submit"] {
  align-self: flex-start;
}

.user-search-form input[type="submit"] {
  align-self: flex-start;
}

.user-table {
  width: 100%;
  margin-top: 30px;
  border-collapse: collapse;
}

.user-table th, .user-table td {
  padding: 12px;
  text-align: left;
  border: 1px solid #ddd;
}

.user-table th {
  background-color: #f39c12;
  color: white;
}

.user-table tr:nth-child(even) {
  background-color: #f9f9f9;
}

.user-table tr:hover {
  background-color: #f0f0f0;
}