:root {
  color-scheme: dark;
  --bg: #050505;
  --panel: rgba(12, 12, 12, 0.96);
  --panel-2: rgba(18, 18, 18, 0.98);
  --text: #fafafa;
  --muted: #bcbcbc;
  --line: rgba(255, 255, 255, 0.12);
  --accent: #ffffff;
  --accent-2: #d8d8d8;
  --shadow: 0 20px 44px rgba(0, 0, 0, 0.42);
  --radius: 22px;
  --font: "Segoe UI", "Arial", sans-serif;
}

* {
  box-sizing: border-box;
}

a,
button,
input,
.card,
.chip,
.dropdown-trigger,
.dropdown-item,
.open-link,
.page-size-button,
.page-button {
  transition:
    background-color 0.3s ease-in-out,
    border-color 0.3s ease-in-out,
    color 0.3s ease-in-out,
    box-shadow 0.3s ease-in-out,
    transform 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.06), transparent 26%),
    radial-gradient(circle at bottom left, rgba(255, 255, 255, 0.04), transparent 24%),
    var(--bg);
}

.shell {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: 18px 18px 36px;
}

.hero,
.controls,
.chips,
.card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 38%),
    var(--panel-2);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  width: 112px;
  min-width: 112px;
  height: 112px;
  border-radius: 24px;
  overflow: hidden;
  background: #0f0f0f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-mark-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.eyebrow {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: #d7d7d7;
}

.hero h1 {
  margin: 0;
  font-size: clamp(28px, 6vw, 44px);
  line-height: 1;
}

.subtitle {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 620px;
}

.hero-link {
  color: #fff;
  text-decoration: none;
  font-weight: 700;
}

.hero-link:hover {
  text-decoration: underline;
  opacity: 0.8;
}

.stats {
  min-width: 180px;
  align-self: flex-start;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
}

.controls {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 14px;
}

input,
select,
.dropdown-trigger {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: #111;
  color: var(--text);
  font: inherit;
}

.dropdown {
  position: relative;
}

.dropdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 1px 1px rgba(0, 0, 0, 0.35);
}

.dropdown-trigger:hover {
  border-color: rgba(255, 255, 255, 0.22);
  background: #151515;
  transform: translateY(-1px);
}

.dropdown-trigger[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.26);
  background: #181818;
}

.dropdown-trigger:active {
  transform: scale(0.985);
}

.dropdown-caret {
  color: #a3a3a3;
  font-size: 13px;
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 30;
  padding: 8px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #101010;
  box-shadow:
    0 12px 30px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
  max-height: 320px;
  overflow-y: auto;
}

.dropdown-item {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #ededed;
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.dropdown-item:hover {
  background: #1a1a1a;
  transform: translateX(2px);
}

.dropdown-item.active {
  background: #232323;
  color: #fff;
}

.dropdown-item:active {
  transform: scale(0.985);
}

.chips {
  margin-top: 16px;
  padding: 14px;
}

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

.chip-row + .chip-row {
  margin-top: 10px;
}

.chip {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  padding: 9px 12px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  cursor: pointer;
  font: inherit;
}

.chip.active {
  background: #fff;
  color: #000;
}

.chip:hover {
  transform: translateY(-1px);
}

.chip:active {
  transform: scale(0.98);
}

.grid {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 16px;
}

.card {
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 18%),
    #141414;
  border-color: rgba(255, 255, 255, 0.16);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.5);
}

.card-image {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  object-position: center;
  padding: 8px;
  background: #f5f5f5;
}

.card-body {
  padding: 14px;
  background: #141414;
}

.card-meta {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  line-height: 1;
}

.pill-category {
  background: #202020;
  color: #fff;
}

.pill-brand {
  background: #202020;
  color: var(--accent-2);
}

.card-title {
  margin: 10px 0 0;
  font-size: 16px;
  line-height: 1.3;
  min-height: 42px;
}

.card-footer {
  margin-top: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: nowrap;
}

.price {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
  flex: 0 0 auto;
}

.open-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #2a2a2a;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  white-space: nowrap;
  flex: 0 0 auto;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 4px 12px rgba(0, 0, 0, 0.24);
}

.open-link:hover {
  background: #353535;
  border-color: rgba(255, 255, 255, 0.2);
  text-decoration: none;
  transform: translateY(-1px);
}

.open-link:active {
  transform: scale(0.98);
}

.empty {
  text-align: center;
  color: var(--muted);
  margin-top: 28px;
}

.catalog-footer {
  margin-top: 18px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.page-size {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

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

.page-size-options,
.pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.page-size-button,
.page-button {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: #171717;
  color: #fff;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.page-size-button:hover,
.page-button:hover {
  background: #222;
  transform: translateY(-1px);
}

.page-size-button.active,
.page-button.active {
  background: #fff;
  color: #000;
}

.page-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.page-size-button:active,
.page-button:active {
  transform: scale(0.98);
}

.hidden {
  display: none;
}

@media (max-width: 1100px) {
  .shell {
    width: min(1180px, 100%);
    padding: 16px 14px 30px;
  }

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

@media (max-width: 760px) {
  .hero {
    flex-direction: column;
  }

  .brand-lockup {
    align-items: flex-start;
  }

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

  .grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .card-footer {
    gap: 12px;
  }

  .catalog-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding: 10px 8px;
    overflow: hidden;
  }

  .page-size {
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
  }

  .page-size-label {
    display: none;
  }

  .page-size-options {
    flex-wrap: nowrap;
    gap: 4px;
  }

  .pagination {
    justify-content: flex-end;
    flex-wrap: nowrap;
    gap: 4px;
    min-width: 0;
    margin-left: 0;
  }

  .page-size-button,
  .page-button {
    min-width: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 10px;
    font-size: 14px;
  }
}
