:root {
  --ink: #191716;
  --muted: #666b73;
  --soft: #f5f6f7;
  --surface: #ffffff;
  --line: #dedede;
  --line-strong: #c7c7c7;
  --red: #c73b31;
  --blue: #245f9f;
  --green: #137a68;
  --amber: #d99a24;
  --shadow: 0 18px 48px rgba(20, 20, 20, 0.12);
  --radius: 8px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--soft);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
}

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

button,
input,
select,
textarea {
  font: inherit;
}

button,
select {
  cursor: pointer;
}

img {
  max-width: 100%;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.hero {
  min-height: 74vh;
  color: #fff;
  background-image:
    linear-gradient(90deg, rgba(10, 10, 10, 0.86), rgba(10, 10, 10, 0.5) 56%, rgba(10, 10, 10, 0.34)),
    url("images/shopping.jpg");
  background-position: center;
  background-size: cover;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 22px 0;
}

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

.brand__mark {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
}

.topbar__links {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
}

.topbar__links a {
  padding: 9px 13px;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
}

.topbar__links a:hover,
.topbar__links a:focus-visible {
  background: #fff;
  color: var(--ink);
}

.hero__inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 70px 0 58px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--red);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ffcf70;
}

.hero h1 {
  max-width: 800px;
  margin: 0;
  font-size: 68px;
  line-height: 0.98;
}

.hero__lead {
  max-width: 680px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 22px;
}

.hero-search {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  width: min(760px, 100%);
  margin-top: 34px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.hero-search input {
  min-width: 0;
  height: 52px;
  padding: 0 16px;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--ink);
}

.hero-search button,
.submit-form button {
  min-height: 52px;
  padding: 0 20px;
  border: 0;
  border-radius: 6px;
  background: var(--red);
  color: #fff;
  font-weight: 800;
}

.hero-search button:hover,
.submit-form button:hover {
  background: #a82f28;
}

.hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  width: min(760px, 100%);
  margin-top: 26px;
}

.hero__stats div {
  min-height: 94px;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.hero__stats strong {
  display: block;
  font-size: 30px;
  line-height: 1;
}

.hero__stats span {
  display: block;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
}

.system-note {
  display: flex;
  gap: 12px;
  align-items: center;
  width: min(1180px, calc(100% - 40px));
  margin: -28px auto 0;
  padding: 16px 18px;
  border: 1px solid #f1d98f;
  border-radius: 8px;
  background: #fff7dc;
  color: #5b4311;
  box-shadow: 0 12px 28px rgba(50, 45, 20, 0.12);
}

.category-band,
.featured-band,
.directory,
.submit-band {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.category-band {
  padding: 74px 0 36px;
}

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

.section-heading h2,
.directory__toolbar h2,
.submit-band h2,
.directory__aside h2 {
  margin: 0;
  font-size: 34px;
  line-height: 1.12;
}

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

.category-tile {
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-top: 5px solid var(--line-strong);
  border-radius: 8px;
  background: var(--surface);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.category-tile:hover,
.category-tile:focus-visible,
.category-tile.is-active {
  transform: translateY(-2px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow);
}

.category-tile--red {
  border-top-color: var(--red);
}

.category-tile--blue {
  border-top-color: var(--blue);
}

.category-tile--green {
  border-top-color: var(--green);
}

.category-tile--amber {
  border-top-color: var(--amber);
}

.category-tile--all {
  border-top-color: var(--ink);
}

.category-tile__count {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 32px;
  padding: 0 10px;
  border-radius: 999px;
  background: #eeeeee;
  color: var(--ink);
  font-weight: 800;
}

.category-tile strong {
  display: block;
  margin-top: 16px;
  font-size: 18px;
  line-height: 1.2;
}

.category-tile small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
}

.featured-band {
  padding: 22px 0 54px;
}

.featured-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.featured-card,
.shop-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.featured-card {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 142px;
  padding: 18px;
}

.featured-card p,
.shop-card__category {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.featured-card h3 {
  margin: 4px 0 10px;
  font-size: 22px;
  line-height: 1.12;
}

.featured-card a,
.shop-card__footer a {
  color: var(--blue);
  font-weight: 800;
}

.shop-logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 8px;
  color: #fff;
  font-weight: 900;
}

.shop-logo--red {
  background: var(--red);
}

.shop-logo--blue {
  background: var(--blue);
}

.shop-logo--green {
  background: var(--green);
}

.shop-logo--amber {
  background: var(--amber);
}

.directory {
  display: grid;
  grid-template-columns: 278px minmax(0, 1fr);
  gap: 22px;
  padding: 32px 0 76px;
}

.directory__aside {
  position: sticky;
  top: 18px;
  align-self: start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.directory__aside h2 {
  margin-bottom: 14px;
  font-size: 24px;
}

.filter-list {
  display: grid;
  gap: 8px;
}

.filter-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-align: left;
}

.filter-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.filter-chip strong {
  display: inline-grid;
  place-items: center;
  min-width: 32px;
  height: 26px;
  padding: 0 7px;
  border-radius: 999px;
  background: #eeeeee;
}

.filter-chip:hover,
.filter-chip:focus-visible,
.filter-chip.is-active {
  border-color: var(--ink);
  background: var(--ink);
  color: #fff;
}

.filter-chip:hover strong,
.filter-chip:focus-visible strong,
.filter-chip.is-active strong {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}

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

.sort-control {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

.sort-control select {
  min-width: 180px;
  min-height: 46px;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.shop-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shop-card {
  display: flex;
  flex-direction: column;
  min-height: 284px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.shop-card:hover,
.shop-card:focus-within {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.shop-card__top {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 68px;
}

.shop-card h3 {
  margin: 4px 0 0;
  font-size: 21px;
  line-height: 1.15;
}

.shop-card__description {
  margin: 18px 0 0;
  color: #444951;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.tag-row span {
  max-width: 100%;
  padding: 6px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.shop-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 18px;
}

.shop-card__footer span {
  min-width: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 14px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shop-card__footer a {
  flex: 0 0 auto;
  padding: 9px 11px;
  border: 1px solid var(--blue);
  border-radius: 6px;
}

.shop-card__footer a:hover,
.shop-card__footer a:focus-visible {
  background: var(--blue);
  color: #fff;
}

.empty-state {
  padding: 42px;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fff;
  text-align: center;
}

.empty-state h3 {
  margin: 0 0 8px;
  font-size: 24px;
}

.empty-state p {
  margin: 0;
  color: var(--muted);
}

.submit-band {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: 28px;
  padding: 54px 0 82px;
}

.submit-band__copy {
  align-self: start;
}

.submit-band__copy p {
  max-width: 520px;
  color: #444951;
  font-size: 18px;
}

.database-card {
  display: grid;
  gap: 7px;
  max-width: 520px;
  margin-top: 24px;
  padding: 18px;
  border: 1px solid #b8d7d0;
  border-left: 5px solid var(--green);
  border-radius: 8px;
  background: #f1fbf8;
}

.database-card span {
  color: #31534d;
}

.submit-form {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 14px 34px rgba(20, 20, 20, 0.08);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.submit-form label {
  display: grid;
  gap: 7px;
  color: #3a3d42;
  font-size: 14px;
  font-weight: 800;
}

.submit-form input,
.submit-form select,
.submit-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
}

.submit-form input,
.submit-form select {
  min-height: 48px;
  padding: 0 12px;
}

.submit-form textarea {
  resize: vertical;
  min-height: 118px;
  padding: 12px;
}

.submit-form input:focus,
.submit-form select:focus,
.submit-form textarea:focus,
.sort-control select:focus,
.hero-search input:focus {
  outline: 3px solid rgba(36, 95, 159, 0.2);
  outline-offset: 2px;
}

.form-status {
  padding: 12px 14px;
  border-radius: 6px;
  font-weight: 700;
}

.form-status--success {
  background: #e8f7ef;
  color: #17623b;
}

.form-status--setup {
  background: #fff2ca;
  color: #5f4310;
}

.form-status--error {
  background: #fde9e7;
  color: #8b251e;
}

.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px max(20px, calc((100vw - 1180px) / 2));
  background: var(--ink);
  color: #fff;
}

.site-footer strong,
.site-footer span {
  display: block;
}

.site-footer span {
  color: rgba(255, 255, 255, 0.68);
}

.site-footer a {
  color: #ffcf70;
  font-weight: 800;
}

[hidden] {
  display: none !important;
}

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

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

  .directory {
    grid-template-columns: 240px minmax(0, 1fr);
  }
}

@media (max-width: 860px) {
  .hero {
    min-height: auto;
  }

  .topbar,
  .section-heading,
  .directory__toolbar,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .topbar__links {
    width: 100%;
    overflow-x: auto;
  }

  .hero__inner {
    padding: 48px 0 44px;
  }

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

  .hero__lead {
    font-size: 19px;
  }

  .directory,
  .submit-band {
    grid-template-columns: 1fr;
  }

  .directory__aside {
    position: static;
  }

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

@media (max-width: 620px) {
  .topbar,
  .hero__inner,
  .category-band,
  .featured-band,
  .directory,
  .submit-band,
  .system-note {
    width: min(100% - 28px, 1180px);
  }

  .brand__mark {
    width: 42px;
    height: 42px;
  }

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

  .hero__lead {
    font-size: 17px;
  }

  .hero-search,
  .hero__stats,
  .category-grid,
  .featured-grid,
  .shop-grid,
  .form-grid,
  .filter-list {
    grid-template-columns: 1fr;
  }

  .hero-search button {
    width: 100%;
  }

  .hero__stats div {
    min-height: 78px;
  }

  .category-band {
    padding-top: 48px;
  }

  .section-heading h2,
  .directory__toolbar h2,
  .submit-band h2 {
    font-size: 28px;
  }

  .shop-card {
    min-height: 260px;
  }

  .submit-form {
    padding: 16px;
  }
}
