:root {
  --bg: #f5f1ea;
  --text: #171512;
  --muted: #6d655d;
  --line: rgba(23, 21, 18, 0.1);
  --accent: #b78e58;
  --dark: #111;
}

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

body {
  font-family: Arial, Helvetica, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

.container {
  width: min(1200px, calc(100% - 60px));
  margin: 0 auto;
}

header {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(245, 241, 234, 0.82);
  border-bottom: 1px solid rgba(23, 21, 18, 0.06);
}

.nav {
  min-height: 78px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}

.logo {
  width: 150px;
  height: auto;
  display: block;
}

.nav-right {
  display: flex;
  align-items: center;
  gap: 42px;
  margin-left: auto;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.nav a,
.nav-links a,
.nav-right a {
  font-size: 0.94rem;
  color: #3c3732;
  text-decoration: none;
}

.nav-links a.active {
  font-weight: 600;
  color: var(--text);
}

.search-hero {
  padding: 70px 0 32px;
  text-align: center;
}

.search-eyebrow {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
color: var(--accent);
  margin-bottom: 12px;
}

.search-hero h1 {
  font-size: clamp(42px, 6vw, 76px);
  line-height: 1.04;
  margin-bottom: 16px;
}

.search-subtitle {
  max-width: 760px;
  margin: 0 auto 34px;
  font-size: 18px;
  color: var(--muted);
}

.search-panel {
  max-width: 980px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid rgba(23, 21, 18, 0.08);
  border-radius: 28px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.06);
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 16px;
}

.search-bar-wrap {
  width: 100%;
}

.search-bar-wrap input,
.filter-row select {
  width: 100%;
  border: 1px solid rgba(23, 21, 18, 0.12);
  background: #fcfbf9;
  color: var(--text);
  border-radius: 16px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.search-bar-wrap input:focus,
.filter-row select:focus {
  border-color: rgba(183, 142, 88, 0.8);
  box-shadow: 0 0 0 4px rgba(183, 142, 88, 0.12);
}

.search-bar-wrap input {
  height: 68px;
  padding: 0 22px;
  font-size: 20px;
}

.filter-row select {
  height: 56px;
  padding: 0 16px;
  font-size: 15px;
  appearance: none;
}

.results-count {
  max-width: 980px;
  margin: 18px auto 0;
  text-align: left;
  font-size: 15px;
  color: var(--muted);
}

.search-results-section {
  padding: 20px 0 80px;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.product-card {
  border: 1px solid rgba(183, 142, 88, 0.16);
  border-radius: 22px;
  overflow: hidden;
  background: #efe7dd;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.04);
}

.product-image-wrap {
  width: 100%;
  aspect-ratio: 4 / 3;
  background: #ffffff;
  overflow: hidden;
  border: 10px solid #efe7dd;
  border-bottom: 1px solid rgba(183, 142, 88, 0.18);
  border-radius: 18px;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  padding: 18px;
  border-radius: 12px;
}

.product-card-content {
  padding: 22px;
  background: #efe7dd;
}

.product-card h3 {
  margin-bottom: 8px;
  font-size: 24px;
  line-height: 1.15;
  color: #171512;
}

.product-category {
  margin-bottom: 10px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #8b6d56;
  font-weight: 700;
}

.product-description {
  margin-bottom: 14px;
  font-size: 15px;
  line-height: 1.7;
  color: #3f3933;
}

.product-packaging {
  margin-bottom: 14px;
  font-size: 14px;
  color: #2f2a25;
}

.product-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.badge {
  display: inline-block;
  padding: 7px 12px;
  border-radius: 999px;
  background: #f2ece5;
  font-size: 12px;
  font-weight: 600;
}

.badge-bonoom {
  background: #e8d8c8;
}

.no-results {
  grid-column: 1 / -1;
  padding: 50px 20px;
  text-align: center;
  border: 1px dashed rgba(23, 21, 18, 0.15);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.55);
  color: var(--muted);
  font-size: 18px;
}

footer {
  background: #111;
  color: #aaa;
  padding: 40px 0;
  margin-top: 40px;
}

footer p {
  color: #aaa;
}

@media (max-width: 1100px) {
  .results-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 800px) {
  .nav {
    padding: 16px 0;
    min-height: auto;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right {
    margin-left: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 14px;
  }

  .nav-links {
    gap: 14px;
  }

  .filter-row {
    grid-template-columns: 1fr;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .search-bar-wrap input {
    font-size: 18px;
    height: 60px;
  }
}