:root {
  --bg: #F9F6F0; 
  --card: #FFFFFF; 
  --muted: #6B5E55; 
  --text: #3E3228; 
  --brand: #8B5A2B; 
  --brand-light: rgba(139, 90, 43, 0.1);
  --border: rgba(62, 50, 40, 0.15);
  --shadow: 0 8px 24px rgba(62, 50, 40, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Assistant', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container { max-width: 1100px; margin: 0 auto; padding: 24px; }

/* Navigation */
.nav {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 12px 24px; max-width: 1100px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.3rem; text-decoration: none; color: var(--text); }
.nav-links { display: flex; gap: 12px; }
.pill { padding: 8px 18px; border-radius: 6px; font-weight: 700; color: var(--muted); text-decoration: none; border: 1px solid transparent; transition: 0.2s; }
.pill.active { border-color: var(--border); background: var(--card); color: var(--text); box-shadow: var(--shadow); }

/* Hero & Cards */
.hero { display: flex; justify-content: center; width: 100%; padding: 40px 0; }
.hero .card { width: 100%; max-width: 800px; border-radius: var(--radius); }
.card { background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow); overflow: hidden; }
.card-inner { padding: 32px; }
.h1 { font-size: 42px; margin: 0 0 16px 0; font-weight: 800; color: var(--text); }
.h2 { font-size: 22px; margin: 0 0 16px 0; font-weight: 800; }
.muted { color: var(--muted); font-size: 18px; }
.kicker { color: var(--brand); font-weight: 800; text-transform: uppercase; font-size: 14px; margin-bottom: 10px; }

.btn {
  display: inline-flex; align-items: center; padding: 14px 28px; border-radius: 8px;
  text-decoration: none; font-weight: 700; font-size: 18px; transition: 0.2s; cursor: pointer;
}
.btn.primary { background: var(--brand); color: white; box-shadow: 0 4px 12px rgba(139, 90, 43, 0.3); }
.btn.primary:hover { background: #7A4F26; transform: translateY(-2px); }

/* Modern Filter Toolbar */
.toolbar {
  background: white;
  padding: 24px;
  border-radius: 12px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  margin: 30px 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.toolbar input, 
.toolbar select {
  flex: 1;
  min-width: 180px;
  padding: 12px 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  background-color: #fff;
  border: 2px solid #EEE9E2;
  border-radius: 8px;
  outline: none;
  transition: all 0.2s ease;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238B5A2B' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 16px;
}

.toolbar input:focus, 
.toolbar select:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px var(--brand-light);
}

.toolbar input#q {
  flex: 2;
  background-image: none;
  padding-right: 12px;
}

/* Catalog Grid */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px; margin-top: 30px; }
.photo { 
  cursor: pointer; overflow: hidden; border-radius: var(--radius-sm); 
  border: 1px solid var(--border); background: var(--card); transition: 0.3s; 
}
.photo:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.photo img { width: 100%; aspect-ratio: 1/1; object-fit: cover; display: block; border-bottom: 1px solid var(--border); }
.photo .meta { padding: 16px; }
.meta .title { font-weight: 800; font-size: 18px; color: var(--brand); margin-bottom: 4px; }
.meta .sub { font-size: 15px; font-weight: 600; color: var(--muted); }

/* Lightbox / Popup */
#lightbox {
  position: fixed; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.95); display: none; align-items: center; justify-content: center;
  z-index: 2000; cursor: pointer;
}
#lightbox img { 
  max-width: 90%; max-height: 85%; border-radius: 8px; 
  box-shadow: 0 0 50px rgba(0,0,0,0.8); border: 2px solid white;
}

@media (max-width: 600px) {
  .toolbar { flex-direction: column; padding: 16px; }
  .toolbar input, .toolbar select { width: 100%; }
  .h1 { font-size: 32px; }
}