:root {
  --bg: #f4f0ea;
  --card: #ffffff;
  --ink: #1b1b1b;
  --muted: #6b6b6b;
  --accent: #d66a2a;
  --accent-dark: #a64f1f;
  --line: #ded5c9;
  --shadow: 0 25px 60px rgba(27, 27, 27, 0.12);
}

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

body {
  font-family: "Space Grotesk", system-ui, sans-serif;
  background: #f5f4f2;
  color: var(--ink);
  min-height: 100vh;
}

.page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px 24px;
  animation: fade-in 700ms ease forwards;
  opacity: 0;
}

@keyframes fade-in {
  to {
    opacity: 1;
  }
}

.header {
  background: var(--card);
  border-radius: 0 0 24px 24px;
  box-shadow: var(--shadow);
  overflow: hidden;
  margin-bottom: 28px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.topbar {
  display: flex;
  justify-content: space-between;
  padding: 10px 20px;
  background: #111;
  color: #fff;
  font-size: 14px;
  width: 100vw;
  margin-left: calc(50% - 50vw);
}

.topbar__pill {
  background: #c77b2a;
  padding: 4px 10px;
  border-radius: 999px;
}

.nav {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 20px;
  background: #111;
  color: #fff;
}

.logo {
  display: flex;
  gap: 12px;
  align-items: center;
}

.logo__mark {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
  padding: 4px;
}

.logo__text strong {
  display: block;
  font-size: 18px;
}

.logo__text span {
  color: #cfcfcf;
  font-size: 13px;
}

.search {
  display: grid;
  grid-template-columns: 1fr auto;
  background: #fff;
  border-radius: 999px;
  padding: 6px;
  border: 1px solid #222;
}

.search input {
  border: none;
  background: transparent;
  padding: 10px 16px;
  font-size: 15px;
  outline: none;
  color: #111;
}

.search button {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 600;
  cursor: pointer;
}

.nav__actions {
  display: flex;
  gap: 10px;
}

.ghost {
  background: transparent;
  border: 1px solid var(--line);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 500;
}

.ghost--light {
  color: #fff;
  border-color: #3a3a3a;
}
.bag {
  background: #fff;
  color: #111;
  border: none;
  padding: 8px 14px;
  border-radius: 999px;
  display: flex;
  gap: 8px;
  align-items: center;
}

.bag__count {
  background: #c77b2a;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  color: #111;
}

.menu {
  display: flex;
  gap: 18px;
  padding: 0 20px 16px;
  flex-wrap: wrap;
  background: #111;
}

.menu a {
  text-decoration: none;
  color: #f2f2f2;
  font-weight: 500;
  font-size: 14px;
}

.content {
  display: grid;
  gap: 24px;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  background: #fff;
  border-radius: 16px;
  padding: 24px;
  box-shadow: none;
}

.hero--plain h1 {
  font-family: "Fraunces", serif;
  font-size: 36px;
}

.eyebrow {
  color: #111;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
}

#results-count {
  color: #666;
  font-size: 14px;
  margin-top: 6px;
}

.sort {
  display: flex;
  gap: 10px;
  align-items: center;
}

.sort select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid #ddd;
  background: #fff;
}

.grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.catalog {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: start;
}

.sidebar {
  background: #fff;
  padding: 20px;
  border-radius: 10px;
  border: 1px solid #e6e2db;
  position: sticky;
  top: 20px;
  display: grid;
  gap: 18px;
}

.sidebar h2 {
  font-size: 18px;
}

.filter {
  display: grid;
  gap: 8px;
  font-size: 14px;
}

.filter h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.filter label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.price-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 8px;
}

.price-range input {
  padding: 8px 10px;
  border: 1px solid #ddd;
  border-radius: 6px;
}

.ghost.small {
  padding: 6px 10px;
  font-size: 12px;
}

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

.card {
  background: var(--card);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: grid;
  grid-template-rows: auto 1fr;
  animation: rise 0.6s ease forwards;
  opacity: 0;
}

.card__media {
  position: relative;
}

.card__image {
  aspect-ratio: 3 / 4;
  width: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}

.card__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
  transition: opacity 0.3s ease;
}

.card__image img.secondary {
  opacity: 0;
}

.card.has-secondary:hover .card__image img.secondary {
  opacity: 1;
}

.card.has-secondary:hover .card__image img.primary {
  opacity: 0;
}

.tone-a {
  background-image: linear-gradient(135deg, #1f1f1f, #6f6f6f);
}

.tone-b {
  background-image: linear-gradient(135deg, #d2c3b5, #f5e8da);
}

.tone-c {
  background-image: linear-gradient(135deg, #f2ebe2, #c6a992);
}

.tone-d {
  background-image: linear-gradient(135deg, #1b1b1b, #9a6f4b);
}

.tone-e {
  background-image: linear-gradient(135deg, #c9b59b, #efddc8);
}

.tone-f {
  background-image: linear-gradient(135deg, #a0998d, #f3eadf);
}

.tag {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #fff;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.card__info {
  padding: 16px;
  display: grid;
  gap: 10px;
  text-align: center;
}

.card__info h3 {
  font-size: 18px;
  text-transform: uppercase;
  font-size: 14px;
}

.card__desc {
  color: var(--muted);
  font-size: 14px;
}

.card__price {
  display: grid;
  gap: 4px;
}

.card__price span {
  font-weight: 700;
}

.card__price small {
  color: var(--muted);
}

.card__cta {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 600;
  cursor: pointer;
}

.card__cta[disabled] {
  background: #dad2c8;
  color: #6f6a64;
  cursor: not-allowed;
}

.footer {
  margin-top: 40px;
  background: #efefef;
  padding: 40px 24px 0;
  border-radius: 0;
  display: grid;
  gap: 24px;
}

.footer__cols {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1200px;
  margin: 0 auto;
  padding-bottom: 28px;
}

.footer__cols h3 {
  font-size: 18px;
  margin-bottom: 12px;
}

.footer__cols a,
.footer__cols p {
  color: #222;
  text-decoration: none;
  font-size: 14px;
  margin-bottom: 10px;
  display: block;
}

.social {
  display: flex;
  gap: 10px;
}

.social span {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #111;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
}

.footer__bottom {
  background: #111;
  color: #fff;
  padding: 14px 24px;
  font-size: 13px;
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 900px) {
  .nav {
    grid-template-columns: 1fr;
  }

  .nav__actions {
    justify-content: space-between;
  }

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

  .grid--catalog {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .sidebar {
    position: static;
  }

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

@media (max-width: 600px) {
  .topbar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
  }
}
