:root {
  --bg-color: #f4f4f5;
  --card-bg: #ffffff;
  --text-main: #18181b;
  --text-muted: #71717a;
  --accent-label: #a1a1aa;
  --border-color: #e4e4e7;
  --shadow-sm:
    0 1px 3px 0 rgba(0, 0, 0, 0.05), 0 1px 2px -1px rgba(0, 0, 0, 0.05);
  --shadow-md:
    0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
}

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

body {
  font-family: "Plus Jakarta Sans", sans-serif;
  background-color: var(--bg-color);
  color: var(--text-main);
  min-height: 100vh;
  line-height: 1.5;
}

nav {
  background-color: #e4e4e7;
  height: 50px; /* Increased slightly to give underlines room */
  display: flex;
  align-items: center;
  justify-content: center;
}

nav ul {
  gap: 40px;
  display: flex;
  list-style: none;
}


nav ul li a {
  text-decoration: none;
  font-family: "Alata", sans-serif;
  color: var(--text-muted); 
  font-size: 1.1rem;
  font-weight: bold;
  padding-bottom: 4px;
  border-bottom: 2px solid transparent; 
  transition: all 0.2s ease;
}

nav ul li a:hover {
  color: var(--text-main);
}

nav ul li a.active-nav {
  color: var(--text-main);
  border-bottom: 2px solid var(--text-main); 
}


header {
  max-width: 1280px;
  margin: 0 auto;
  padding: 4rem 1rem 3rem 1rem;
  text-align: center;

  h1 {
    font-size: 50px;
  }
  h3 {
    color: var(--accent-label);
  }

  p {
    color: var(--text-muted);
    margin-top: 1rem;
    font-size: 1rem;
    max-width: 32rem;
    margin-left: auto;
    margin-right: auto;
  }
}

.main-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem 6rem 1rem;
}

.grid-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .grid-container {
    grid-template-columns: repeat(3, 1fr);
  }
  .header-title {
    font-size: 3rem;
  }
}

.card {
  background-color: var(--card-bg);
  border-radius: 1rem;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-4px);
}

.image-wrapper {
  aspect-ratio: 3 / 4;
  background-color: #f4f4f5;
  position: relative;
  overflow: hidden;
}

.image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s ease;
}

.card:hover .image-wrapper img {
  transform: scale(1.04);
}

.badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  color: var(--text-main);
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.25rem 0.625rem;
  border-radius: 9999px;
  box-shadow: var(--shadow-sm);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.card-desc {
  color: var(--text-muted);
  font-size: 0.875rem;
  margin-top: 0.5rem;
  line-height: 1.6;
}

.card-footer {
  padding: 0 1.5rem 1.5rem 1.5rem;
}

.shop-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background-color: var(--text-main);
  color: #ffffff;
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.75rem 1rem;
  border-radius: 0.75rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
  gap: 0.5rem;
}

.shop-button:hover {
  background-color: #27272a;
}

.shop-button svg {
  width: 1rem;
  height: 1rem;
}

footer {
  background-color: var(--card-bg);
  border-top: 1px solid var(--border-color);
  padding: 2rem 1rem;
  text-align: center;
  font-size: 0.75rem;
  color: var(--accent-label);
}

footer p {
  max-width: 42rem;
  margin: 0 auto;
  line-height: 1.6;
}
