/* 
   Global CSS variables (custom properties).
   These can be reused anywhere with var(--name).
*/
:root {
  --bg: #e0c0a4;        /* Main background color (light tan) */
  --ink: #1e1b16;       /* Main text color (dark brown/black) */
  --accent: #000000;    /* Accent color (blue-gray) */
  --accent-2: #494e52;  /* Secondary accent (dark gray-blue) */
}

/* Apply border-box sizing to all elements for consistent sizing */
* {
  box-sizing: border-box;
}

/* Body styling */
body {
  margin: 0; /* Remove default browser margins */
  font-family: system-ui,-apple-system,Segoe UI,Roboto,Ubuntu,Cantarell,
               Arial,Noto Sans,Helvetica Neue,sans-serif; /* Font stack */
  color: var(--ink);     /* Text color from variable */
  background: var(--bg); /* Page background color from variable */
}

/* Default link styling */
a {
  color: var(--accent);      /* Accent color for links */
  text-decoration: none;     /* Remove underline by default */
}

/* Header bar */
header {
  position: sticky;          /* Sticks to the top when scrolling */
  top: 0;                    /* Align sticky to the very top */
  background: #e0c0a4;       /* Header background color (currently dark gray-blue).
                                Change this to update header bar color */
  border-bottom: 4px solid #eee; /* Thin border line below header */
  z-index: 10;               /* Keeps header above other elements */
}

/* General container layout: centers content and sets max width */
.container {
  max-width: 1100px; /* Maximum width */
  margin: 0 auto;    /* Center horizontally */
  padding: 0 20px;   /* Add horizontal spacing inside */
}

/* Navigation bar styling inside header */
.nav {
  display: flex;                   /* Horizontal flex layout */
  align-items: center;             /* Vertically center items */
  justify-content: space-between;  /* Space between brand and nav links */
  padding: 14px 0;                 /* Vertical spacing */
}

/* Brand/logo text styling */
.brand {
  display: flex;        /* Align items in a row */
  align-items: center;  /* Vertically center */
  gap: 10px;            /* Space between logo and text */
  font-weight: 700;     /* Bold */
  font-size: 1.1rem;    /* Slightly larger text */
}

/* Navigation links */
.nav a {
  margin-left: 16px;  /* Space between each link */
  font-weight: 600;   /* Semi-bold text */
}

/* Hero section at top of page */
.hero {
  display: grid; 
  place-items: center;              /* Center content horizontally + vertically */
  min-height: 52vh;                 /* Takes ~half the viewport height */
  background: linear-gradient(120deg,var(--accent-2),#fff); 
                                    /* Gradient background if no hero image is set */
  text-align: center;               /* Center text */
  padding: 40px 20px;               /* Spacing inside */
}

/* Hero heading */
.hero h1 {
  font-size: 3rem;  /* Large font */
  line-height: 1.1; /* Tight line spacing */
  margin: 0 0 12px; /* Space below the heading */
}

/* Hero tagline (below h1) */
.tag {
  font-size: 1.1rem;     /* Slightly bigger than body text */
  opacity: .85;          /* Slightly faded */
  margin-bottom: 20px;   /* Spacing below */
}

/* Buttons */
.btn {
  display: inline-block; 
  padding: 10px 16px; 
  border-radius: 10px; 
  background: var(--accent); /* Accent background */
  color: white;              /* White text */
  font-weight: 700;          /* Bold */
}

/* Grid layout for categories or products */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit,minmax(240px,1fr)); /* Responsive grid */
  gap: 18px; /* Space between items */
}

/* Product/Category cards */
.card {
  background: #fff;                              /* White background */
  border: 1px solid #eee;                        /* Light border */
  border-radius: 14px;                           /* Rounded corners */
  overflow: hidden;                              /* Hide overflow */
  box-shadow: 0 2px 8px rgba(0,0,0,.04);         /* Light shadow */
}

/* Card images */
.card img {
  width: 100%;           /* Fill card width */
  height: 200px;         /* Fixed height */
  object-fit: cover;     /* Crop and fill without stretching */
  display: block;        /* Remove inline gap */
}

/* Card body (text under image) */
.card-body {
  padding: 12px 14px; /* Spacing inside */
}

/* Price label inside product cards */
.price {
  font-weight: 700;  /* Bold */
  margin-top: 6px;   /* Space above */
}

/* Footer section */
footer {
  margin-top: 60px;           /* Push footer down from content */
  border-top: 1px solid #eee; /* Light line above footer */
  background: #fff;           /* White background */
}

/* Footer container spacing */
footer .container {
  padding: 20px 0; /* Vertical padding */
}

/* Filter chip container (above product lists) */
.filters {
  display: flex;        /* Horizontal row */
  gap: 10px;            /* Space between chips */
  flex-wrap: wrap;      /* Wrap to new line if too many */
  margin: 10px 0 20px;  /* Spacing above/below */
}

/* Individual filter chips */
.chip {
  padding: 6px 10px; 
  border-radius: 999px;        /* Fully rounded pill shape */
  border: 1px solid #ddd;      /* Light gray border */
  background: #a3b5b7;         /* Default chip background */
  cursor: pointer;             /* Hand cursor */
}

/* Active (selected) filter chip */
.chip.active {
  background: var(--accent);   /* Accent background */
  color: #fff;                 /* White text */
  border-color: var(--accent); /* Accent border */
}

/* Muted text (for small labels, secondary info) */
.muted {
  color: #6b6b6b; /* Medium gray */
}

