:root {
  --black: #070707;
  --ink: #17130b;
  --muted: #6f6658;
  --gold: #cfa43a;
  --gold-dark: #9f781f;
  --cream: #fbf8f0;
  --paper: #fffdf8;
  --line: #e3c778;
  --green: #1f8f53;
  --shadow: 0 18px 45px rgba(0, 0, 0, 0.16);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--cream);
  font-family: Arial, Helvetica, sans-serif;
}

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

button,
input,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 78px;
  padding: 14px clamp(18px, 4vw, 56px);
  color: var(--paper);
  background: rgba(7, 7, 7, 0.96);
  border-bottom: 1px solid rgba(207, 164, 58, 0.45);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 190px;
}

.brand-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.brand strong {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.2rem;
  letter-spacing: 0.02em;
}

.brand small {
  display: block;
  color: #d6c8a8;
  font-size: 0.82rem;
  margin-top: 2px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 4vw, 52px);
  flex: 1;
}

.nav-links a {
  color: #f5ead0;
  font-weight: 700;
  font-size: 1.02rem;
}

.whatsapp-link,
.buy-button,
.footer a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 18px;
  color: #fff;
  background: var(--green);
  border-radius: 8px;
  font-weight: 800;
}

main {
  width: min(1850px, 100%);
  margin: 0 auto;
  padding: 0 clamp(14px, 2.6vw, 44px) 48px;
}

.catalog-panel {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  padding: clamp(22px, 3.5vw, 42px) 0 22px;
}

.intro h1,
.section-heading h2 {
  margin: 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  line-height: 1.04;
}

.intro h1 {
  max-width: none;
  font-size: clamp(3rem, 6vw, 7.6rem);
}

.filter-note {
  max-width: 100%;
  margin: -4px 0 0;
  color: var(--muted);
  font-size: clamp(1rem, 1.35vw, 1.35rem);
  line-height: 1.55;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--gold-dark);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.filters {
  display: grid;
  grid-template-columns: minmax(300px, 1.4fr) minmax(160px, 0.8fr) minmax(190px, 1fr) minmax(160px, 0.75fr) minmax(170px, 0.8fr);
  gap: 14px;
  align-items: end;
  padding: 16px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.filters label,
.search-field {
  display: grid;
  gap: 7px;
}

.search-field {
  grid-column: auto;
}

.filters span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.filters input,
.filters select {
  width: 100%;
  min-height: 46px;
  color: var(--ink);
  background: #fff;
  border: 1px solid #d7c79d;
  border-radius: 8px;
  padding: 10px 12px;
  outline: none;
}

.filters input:focus,
.filters select:focus {
  border-color: var(--gold-dark);
  box-shadow: 0 0 0 3px rgba(207, 164, 58, 0.18);
}

.quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chip {
  border: 1px solid var(--gold);
  background: transparent;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 14px;
  font-weight: 800;
  cursor: pointer;
}

.chip.active {
  color: var(--paper);
  background: var(--black);
  border-color: var(--black);
}

.chip.muted {
  border-color: #d3c5a4;
  color: var(--muted);
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  margin: 6px 0 34px;
}

.stats div {
  display: grid;
  gap: 4px;
  padding: 18px 16px;
  text-align: center;
}

.stats div + div {
  border-left: 1px solid var(--line);
}

.stats strong {
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.8rem, 4vw, 3rem);
}

.stats span {
  color: var(--muted);
  font-weight: 700;
}

.section-block {
  padding: 28px 0 18px;
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-heading h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.text-link {
  color: var(--gold-dark);
  font-weight: 900;
  white-space: nowrap;
}

.result-count {
  color: var(--muted);
  font-weight: 800;
}

.brand-strip,
.brand-list {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-bottom: 20px;
}

.brand-chip,
.brand-list button {
  border: 1px solid #d5bd72;
  background: #fff;
  color: var(--ink);
  border-radius: 8px;
  padding: 9px 12px;
  font-weight: 800;
  cursor: pointer;
}

.brand-chip.active,
.brand-list button:hover {
  color: var(--paper);
  background: var(--black);
  border-color: var(--black);
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.product-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 100%;
  background: var(--paper);
  border: 1px solid #e3cf91;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
}

.image-wrap {
  position: relative;
  z-index: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  height: 310px;
  padding: 30px 22px 32px;
  overflow: hidden;
  background: #fff;
  border-bottom: 1px solid #eadfae;
}

.image-wrap img {
  display: block;
  width: auto;
  height: auto;
  max-width: 88%;
  max-height: 88%;
  object-fit: contain;
  object-position: center;
}

.product-info {
  position: relative;
  z-index: 1;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 10px;
  min-height: 260px;
  padding: 16px 18px 18px;
  background: var(--paper);
}

.category-pill {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 5px 9px;
  border-radius: 8px;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--gold-dark);
  background: #f7ecd0;
  border: 1px solid #eadfae;
}

.product-card h3 {
  display: block;
  min-height: 2.85em;
  margin: 0;
  color: var(--black);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.22rem;
  line-height: 1.18;
  overflow-wrap: anywhere;
}

.brand-name {
  margin: 0;
  color: var(--gold-dark);
  font-weight: 900;
}

.description {
  flex: 1 1 auto;
  min-height: 4.35em;
  margin: 0;
  color: #453c2e;
  line-height: 1.45;
  text-align: left;
}

.price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.price {
  color: var(--black);
  font-size: 1.32rem;
}

.buy-button {
  min-height: 38px;
  padding: 9px 14px;
  font-size: 0.9rem;
}

.empty-state {
  padding: 34px;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.load-more {
  display: block;
  min-height: 48px;
  margin: 24px auto 0;
  padding: 12px 22px;
  color: var(--paper);
  background: var(--black);
  border: 0;
  border-radius: 8px;
  font-weight: 900;
  cursor: pointer;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--paper);
  background: var(--black);
  border-top: 1px solid var(--gold);
}

.footer p {
  margin: 0;
  color: #eadfbf;
  font-weight: 700;
}

@media (max-width: 1120px) {
  .filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-field {
    grid-column: 1 / -1;
  }

  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar {
    position: static;
    flex-wrap: wrap;
  }

  .nav-links {
    order: 3;
    flex-basis: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 3px;
  }

  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 560px) {
  main {
    padding-inline: 12px;
  }

  .topbar {
    padding-inline: 14px;
  }

  .brand {
    min-width: 0;
  }

  .brand strong {
    font-size: 1.05rem;
  }

  .whatsapp-link {
    padding-inline: 12px;
  }

  .intro h1 {
    font-size: 2.4rem;
  }

  .filters,
  .product-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .stats div + div {
    border-left: 0;
    border-top: 1px solid var(--line);
  }

  .section-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-card {
    min-height: auto;
  }

  .image-wrap {
    height: 260px;
    padding: 28px 20px 30px;
  }

  .product-info {
    min-height: auto;
  }
}
