:root {
  --bg: #f8f4ee;
  --surface: rgba(255, 252, 248, 0.9);
  --surface-strong: #ffffff;
  --line: rgba(104, 82, 68, 0.14);
  --text: #302724;
  --muted: #7a6a62;
  --rose: #ba7182;
  --rose-deep: #925766;
  --sage: #6e825e;
  --gold: #d4b16f;
  --shadow: 0 18px 42px rgba(81, 58, 45, 0.12);
  --radius-xl: 32px;
  --radius-lg: 22px;
  --radius-md: 16px;
  --font-copy: "Avenir Next", "Segoe UI", sans-serif;
  --font-display: "Iowan Old Style", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top left, rgba(212, 177, 111, 0.18), transparent 30%),
    radial-gradient(circle at top right, rgba(186, 113, 130, 0.14), transparent 24%),
    linear-gradient(180deg, #f9f4ed 0%, #f4efe8 100%);
  color: var(--text);
  font-family: var(--font-copy);
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.site-shell {
  width: min(1240px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 40px;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 250, 245, 0.92), rgba(244, 235, 228, 0.88)),
    rgba(255, 255, 255, 0.7);
  box-shadow: var(--shadow);
}

.hero__glow {
  position: absolute;
  border-radius: 999px;
  filter: blur(10px);
  opacity: 0.7;
}

.hero__glow--rose {
  top: -40px;
  left: -20px;
  width: 220px;
  height: 220px;
  background: rgba(186, 113, 130, 0.18);
}

.hero__glow--sage {
  right: -10px;
  bottom: -10px;
  width: 240px;
  height: 240px;
  background: rgba(110, 130, 94, 0.16);
}

.hero__content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(280px, 360px);
  gap: 28px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero h1,
.toolbar h2,
.filter-panel h3,
.empty-state h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero h1 {
  font-size: clamp(42px, 6vw, 74px);
  line-height: 0.95;
}

.hero__subtitle {
  width: min(56ch, 100%);
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.hero__button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
}

.hero__button--primary {
  background: linear-gradient(135deg, var(--rose), var(--rose-deep));
  color: white;
  box-shadow: 0 14px 24px rgba(146, 87, 102, 0.22);
}

.hero__button--secondary {
  border: 1px solid rgba(123, 102, 89, 0.16);
  background: rgba(255, 255, 255, 0.72);
  color: var(--text);
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.stat-card {
  padding: 16px 18px;
  border: 1px solid rgba(123, 102, 89, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
}

.stat-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.stat-card strong {
  display: block;
  margin-top: 10px;
  font-size: 28px;
}

.hero__card {
  position: relative;
  padding: 24px;
  border: 1px solid rgba(123, 102, 89, 0.12);
  border-radius: 28px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(250, 244, 238, 0.88));
  box-shadow: 0 18px 32px rgba(85, 63, 50, 0.1);
}

.hero__logo-shell {
  display: grid;
  place-items: center;
  width: min(100%, 240px);
  aspect-ratio: 1;
  margin: 0 auto;
  padding: 16px;
  border-radius: 26px;
  background: linear-gradient(180deg, #fffaf6, #f2ebe3);
}

.hero__logo-shell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero__label {
  margin: 18px 0 10px;
  color: var(--sage);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
}

.hero__note {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
  text-align: center;
}

.page-content {
  margin-top: 24px;
}

.toolbar,
.filter-panel,
.results-bar,
.product-card,
.featured-strip,
.empty-state {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  padding: 22px;
  align-items: end;
}

.toolbar h2 {
  font-size: clamp(28px, 4vw, 40px);
}

.toolbar__note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.search-field {
  display: grid;
  gap: 10px;
}

.search-field span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

.search-field input {
  min-height: 52px;
  padding: 0 18px;
  border: 1px solid rgba(123, 102, 89, 0.16);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.9);
  color: var(--text);
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.filter-panel {
  padding: 18px;
}

.filter-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.filter-panel h3 {
  font-size: 24px;
}

.text-button {
  padding: 0;
  border: none;
  background: transparent;
  color: var(--rose-deep);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
}

.chip-row,
.active-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.filter-chip,
.active-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(123, 102, 89, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  cursor: pointer;
  transition: transform 140ms ease, background 140ms ease, border-color 140ms ease;
}

.filter-chip:hover,
.filter-chip.is-active {
  transform: translateY(-1px);
  border-color: rgba(176, 108, 123, 0.34);
}

.filter-chip.is-active {
  background: linear-gradient(135deg, rgba(186, 113, 130, 0.16), rgba(212, 177, 111, 0.18));
}

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding: 18px 22px;
}

.results-summary {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
}

.active-chip {
  min-height: 32px;
  background: rgba(255, 244, 246, 0.9);
  color: var(--rose-deep);
  font-size: 12px;
  cursor: default;
}

.featured-strip {
  display: none;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
  margin-top: 16px;
  padding: 18px;
}

.featured-strip.is-visible {
  display: grid;
}

.featured-card {
  padding: 16px;
  border: 1px solid rgba(123, 102, 89, 0.12);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.76);
}

.featured-card p,
.product-card p,
.site-footer p {
  margin: 0;
}

.featured-card__label {
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.featured-card h3 {
  margin: 8px 0 6px;
  font-family: var(--font-display);
  font-size: 26px;
}

.featured-card__meta {
  color: var(--muted);
  line-height: 1.6;
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 16px;
}

.product-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 22px 36px rgba(85, 63, 50, 0.14);
}

.product-card.is-spotlight {
  border-color: rgba(176, 108, 123, 0.42);
  box-shadow: 0 24px 38px rgba(146, 87, 102, 0.16);
}

.product-card__image {
  position: relative;
  aspect-ratio: 1.05;
  background: linear-gradient(135deg, #f4e8dc, #f8f1ea);
}

.product-card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-card__body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.product-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(110, 130, 94, 0.12);
  color: var(--sage);
  font-size: 12px;
  font-weight: 800;
}

.badge--featured {
  background: rgba(212, 177, 111, 0.18);
  color: #8b6a2f;
}

.product-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 29px;
  line-height: 1.05;
}

.product-card__description {
  color: var(--muted);
  line-height: 1.7;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(244, 236, 230, 0.88);
  color: #66544c;
  font-size: 12px;
}

.product-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.price {
  font-size: 28px;
  font-weight: 800;
}

.price small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.empty-state {
  margin-top: 16px;
  padding: 36px 22px;
  text-align: center;
}

.empty-state.is-hidden {
  display: none;
}

.empty-state h3 {
  font-size: 30px;
}

.empty-state p {
  margin-top: 10px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 22px;
  padding: 8px 6px 0;
  color: var(--muted);
}

.site-footer p {
  display: grid;
  gap: 6px;
}

.site-footer span {
  font-size: 13px;
}

.site-footer a {
  color: var(--rose-deep);
  font-weight: 700;
}

@media (max-width: 960px) {
  .hero__content,
  .toolbar,
  .filters-grid,
  .results-bar,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .hero__content,
  .site-footer {
    display: grid;
  }

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

  .results-bar {
    justify-content: start;
  }
}

@media (max-width: 640px) {
  .site-shell {
    width: min(100% - 20px, 1240px);
    padding-top: 12px;
  }

  .hero,
  .toolbar,
  .filter-panel,
  .results-bar,
  .featured-strip,
  .product-card,
  .empty-state {
    border-radius: 22px;
  }

  .hero,
  .toolbar {
    padding: 18px;
  }

  .hero h1 {
    font-size: 44px;
  }

  .product-card h3 {
    font-size: 24px;
  }

  .price {
    font-size: 24px;
  }
}
