* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;
}

/* Added Smooth Scrolling for the Category links */
html {
  scroll-behavior: smooth;
}

body {
  background: #f6f1eb;
  color: #3e2723;
}

/* HEADER */
header {
  background: #4e342e;
  color: white;
  text-align: center;
  padding: 30px 15px;
}

/* NAV - Made Sticky so it stays at the top when you scroll */
nav {
  background: #3e2723;
  text-align: center;
  padding: 10px;
  position: sticky;
  top: 0;
  z-index: 1000;
}

nav a {
  color: white;
  margin: 0 15px;
  text-decoration: none;
  font-weight: bold;
}

nav a:hover {
  text-decoration: underline;
  color: #d7ccc8;
}

/* HERO */
.hero {
  padding: 40px 20px;
  text-align: center;
  background: #d7ccc8;
}

/* CATEGORY SECTIONS */
.category {
  padding: 60px 20px; /* Increased padding for better spacing when jumping to section */
  text-align: center;
}

.category.light {
  background: #efe6de;
}

.category h2 {
  margin-bottom: 30px;
  font-size: 2rem;
}

/* ITEMS */
.items {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* CARD UPDATED: Removed internal padding to let image reach edges */
.card {
  background: white;
  width: 220px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden; /* Clips the image to the card's rounded corners */
  padding-bottom: 20px;
  transition: transform 0.3s ease;
}

.card:hover {
  transform: translateY(-5px); /* Subtle lift effect */
}

/* IMAGE STYLING */
.card img {
  width: 100%;       
  height: 160px;     
  object-fit: cover; 
  margin-bottom: 15px;
}

.card h3 {
  margin-bottom: 8px;
  padding: 0 10px;
}

.card p {
  font-size: 0.9rem;
  padding: 0 10px;
  color: #6d4c41;
}

.card span {
  display: block;
  margin-top: 15px;
  font-weight: bold;
  color: #4e342e;
  font-size: 1.1rem;
}

/* FOOTER */
footer {
  background: #3e2723;
  color: white;
  text-align: center;
  padding: 20px;
  margin-top: 40px;
}