:root {
  --bg: #ffffff;
  --surface: #ffffff;
  --surface-soft: #f7f7f7;
  --ink: #111111;
  --muted: #8a8a8a;
  --line: #e7e7e7;
  --brand: #c51d16;
  --brand-dark: #a91510;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.05);
  --radius-lg: 16px;
  --radius-md: 12px;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background: var(--bg);
}

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

button,
input {
  font: inherit;
}

.site-header {
  background: #fff;
  border-bottom: 1px solid #ededed;
}

.site-header__inner {
  width: min(1280px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 10px;
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.site-header__bar {
  height: 18px;
  background: linear-gradient(180deg, #d83226 0%, var(--brand-dark) 100%);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.35);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(220px, 24vw, 320px);
  height: auto;
}

.header-tools {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.search span,
.header-filter span,
.provider,
.group-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.search input {
  width: 100%;
  border-radius: 999px;
  border: 1px solid #dddddd;
  background: #fff;
  padding: 12px 16px;
  outline: none;
}

.search input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(197, 29, 22, 0.08);
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip {
  border: 1px solid #dddddd;
  background: #fff;
  color: var(--ink);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 0.8rem;
  line-height: 1.1;
  transition: border-color 160ms ease, transform 160ms ease, background 160ms ease;
}

.chip:hover,
.chip:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(197, 29, 22, 0.4);
}

.chip.active {
  background: linear-gradient(180deg, #d73026, #ba1913);
  border-color: transparent;
  color: #fff;
}

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

.stat-card {
  min-width: 100px;
  padding: 10px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: var(--surface-soft);
}

.stat-card strong {
  display: block;
  font-size: 1.25rem;
}

.stat-card span {
  color: var(--muted);
  font-size: 0.78rem;
}

.page-shell {
  width: min(1280px, calc(100% - 28px));
  margin: 10px auto 30px;
}

.notice,
.fabric-card,
.modal {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.notice {
  padding: 14px 18px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
}

.disclaimer {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.88rem;
}

.group-label {
  margin: 0 0 8px;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  text-transform: none;
  color: var(--ink);
}

.notice .group-copy {
  min-width: 0;
}

.catalog {
  margin-top: 14px;
  display: grid;
  gap: 14px;
}

.fabric-card {
  border-radius: 18px;
  padding: 16px 18px;
}

.fabric-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.fabric-head h2 {
  margin: 0;
  font-size: clamp(1.2rem, 2.6vw, 1.65rem);
}

.variant-badge {
  padding: 8px 12px;
  border-radius: 999px;
  background: #e4f0df;
  color: #7d936c;
  font-weight: 700;
  font-size: 0.78rem;
  white-space: nowrap;
  align-self: start;
}

.variant-badge--group {
  margin-top: 4px;
}

.properties {
  list-style: none;
  padding: 0;
  margin: 10px 0 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.properties li {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f3f3f3;
  color: #555;
  font-size: 0.8rem;
}

.variant-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.variant-card {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 14px;
  padding: 8px;
  text-align: left;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.variant-card:hover,
.variant-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(197, 29, 22, 0.24);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.08);
}

.variant-card img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  background: #f2f2f2;
}

.variant-card span {
  display: block;
  padding: 8px 2px 2px;
  font-size: 0.78rem;
  font-weight: 700;
}

.modal {
  border: 0;
  border-radius: 24px;
  padding: 20px;
  width: min(90vw, 960px);
  position: relative;
}

.modal::backdrop {
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(4px);
}

.modal img {
  width: 100%;
  max-height: 75vh;
  object-fit: contain;
  border-radius: 16px;
  background: #f2f2f2;
}

.modal-meta {
  margin-top: 12px;
  text-align: center;
}

.modal-meta p,
.modal-meta strong {
  margin: 0;
}

.modal-meta p {
  color: var(--muted);
  margin-bottom: 4px;
}

.modal-meta strong {
  display: block;
  font-size: 1.1rem;
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.75);
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.72);
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 2;
}

.modal-nav--prev {
  left: 16px;
}

.modal-nav--next {
  right: 16px;
}

.modal-nav:hover,
.modal-nav:focus-visible,
.modal-close:hover,
.modal-close:focus-visible {
  background: rgba(17, 17, 17, 0.9);
}

.modal-nav[disabled] {
  opacity: 0.35;
  cursor: default;
}

.empty-state {
  padding: 32px;
  border-radius: 18px;
  border: 1px dashed #d8d8d8;
  text-align: center;
  color: var(--muted);
}

@media (max-width: 1024px) {
  .site-header__inner {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .header-tools {
    grid-template-columns: 1fr;
  }

  .brand-logo {
    width: clamp(220px, 42vw, 300px);
  }

  .notice {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .site-header__inner {
    width: min(100% - 20px, 1280px);
    padding: 10px 0 8px;
  }

  .site-header__bar {
    height: 14px;
  }

  .page-shell {
    width: min(100% - 20px, 1280px);
  }

  .brand-logo {
    width: min(100%, 260px);
  }

  .fabric-card {
    padding: 14px;
  }

  .variant-grid {
    grid-template-columns: repeat(auto-fill, minmax(104px, 1fr));
  }

  .fabric-head {
    flex-direction: column;
  }

  .group-label {
    font-size: 1.25rem;
  }
}
