:root {
  --brand-yellow: #f2c100;
  --brand-yellow-soft: #ffd84a;
  --ink: #121417;
  --ink-2: #21262d;
  --panel: #ffffff;
  --line: #ccd4df;
  --muted: #5f6873;
  --bg: #ecf0f6;
  --grid: #d6dde7;
  --shadow: 0 10px 18px rgba(22, 27, 34, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "IBM Plex Sans", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px),
    var(--bg);
  background-size: 24px 24px, 24px 24px, auto;
}

.catalog-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #121417;
  color: #f4f7fa;
  border-top: 6px solid var(--brand-yellow);
  border-bottom: 2px solid #090a0b;
  box-shadow: var(--shadow);
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand {
  text-decoration: none;
  color: var(--brand-yellow);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 34px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #b4bdc8;
}

.header-meta h1 {
  margin: 3px 0 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(26px, 4vw, 40px);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.catalog-layout {
  max-width: 1280px;
  margin: 24px auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 18px;
}

.sidebar {
  position: sticky;
  top: 92px;
  align-self: start;
  background: var(--panel);
  border: 2px solid #1a1e24;
  box-shadow: var(--shadow);
  padding: 16px;
}

.sidebar h2 {
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 30px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sidebar-hint {
  margin: 6px 0 12px;
  color: var(--muted);
  font-size: 13px;
}

.category-nav {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-link {
  text-decoration: none;
  color: #101317;
  border: 1px solid #9aa4b2;
  background: #f9fbff;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  transition: 0.18s ease;
}

.category-link:hover,
.category-link:focus {
  background: var(--brand-yellow);
  border-color: #121417;
}

.content {
  min-width: 0;
}

.status {
  border: 1px solid #8f99a8;
  background: #fff;
  color: #222b36;
  padding: 10px 12px;
  margin-bottom: 12px;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.group {
  margin-bottom: 26px;
  border: 1px solid #bfc9d8;
  background: #fdfefe;
  box-shadow: var(--shadow);
}

.group-title {
  margin: 0;
  padding: 10px 12px;
  border-bottom: 2px solid #101317;
  background: #e9edf4;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 28px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.product-grid {
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 12px;
}

.product-card {
  border: 1px solid #c2cad8;
  background: #fff;
  display: flex;
  flex-direction: column;
}

.media-wrap {
  aspect-ratio: 4 / 3;
  background: #eef2f8;
  border-bottom: 1px solid #d1d9e6;
}

.product-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-body {
  padding: 10px;
}

.product-name {
  margin: 0 0 10px;
  font-size: 14px;
  line-height: 1.35;
  min-height: 38px;
  font-weight: 600;
  color: #0f141b;
}

.meta-grid {
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.meta-grid div:last-child {
  grid-column: 1 / -1;
}

dt {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

dd {
  margin: 2px 0 0;
  font-size: 12px;
  font-weight: 600;
}

@media (max-width: 980px) {
  .catalog-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
  }

  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
}

@media (max-width: 640px) {
  .header-inner {
    padding: 12px 14px;
  }

  .brand {
    font-size: 30px;
  }

  .catalog-layout {
    padding: 0 14px 30px;
  }

  .group-title {
    font-size: 24px;
  }
}

/* Search-first utility styling paired with an apparel product grid. */
:root {
  --brand-yellow: #ffdc38;
  --brand-green: #226b37;
  --brand-green-dark: #174c29;
  --brand-blue: #1659a5;
  --ink: #171717;
  --panel: #ffffff;
  --line: #d5d5d5;
  --muted: #626262;
  --soft: #f4f4f1;
  --shadow: 0 8px 18px rgba(0, 0, 0, 0.1);
}

body {
  font-family: "Source Sans 3", sans-serif;
  background: #fff;
  background-image: none;
}

button,
input {
  font: inherit;
}

.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;
}

.catalog-header {
  position: relative;
  top: auto;
  color: var(--ink);
  background: #fff;
  border: 0;
  border-bottom: 6px solid var(--brand-yellow);
  box-shadow: none;
}

.utility-bar {
  background: #f2f2ef;
  border-bottom: 1px solid #d9d9d6;
  font-size: 13px;
}

.utility-inner,
.header-inner,
.department-inner,
.catalog-intro-inner {
  width: min(100% - 40px, 1280px);
  margin: 0 auto;
}

.utility-inner {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.utility-inner a {
  color: #555;
  text-decoration: none;
}

.utility-inner a:hover {
  color: var(--brand-blue);
  text-decoration: underline;
}

.utility-links {
  display: flex;
  gap: 24px;
}

.header-inner {
  min-height: 96px;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  justify-content: space-between;
  gap: 28px;
}

.brand-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.brand {
  color: var(--brand-green);
  font-size: 48px;
  font-weight: 700;
  line-height: 0.85;
  letter-spacing: 0;
}

.brand-wrap span {
  margin-top: 7px;
  color: #555;
  font-size: 12px;
  font-weight: 600;
}

.catalog-search {
  height: 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  border: 2px solid #777;
  background: #fff;
}

.catalog-search:focus-within {
  border-color: var(--brand-green);
  outline: 2px solid rgba(34, 107, 55, 0.16);
}

.catalog-search input {
  min-width: 0;
  padding: 0 14px;
  border: 0;
  outline: 0;
}

.catalog-search button {
  padding: 0 23px;
  border: 0;
  border-left: 1px solid #c5c5c5;
  background: var(--soft);
  color: var(--brand-green-dark);
  font-weight: 700;
  cursor: pointer;
}

.catalog-search button:hover {
  background: var(--brand-yellow);
}

.quote-link {
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.quote-link:hover {
  text-decoration: underline;
}

.department-nav {
  border-top: 1px solid #dededb;
}

.department-inner {
  min-height: 44px;
  display: flex;
  align-items: stretch;
}

.department-inner a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 18px;
  color: #292929;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.department-inner a:hover {
  color: var(--brand-green-dark);
  background: var(--soft);
}

.catalog-intro {
  padding: 50px 0 46px;
  border-bottom: 1px solid var(--line);
  background: var(--soft);
}

.catalog-intro .eyebrow {
  color: var(--brand-green);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0;
}

.catalog-intro h1 {
  margin: 6px 0 10px;
  font-family: "Barlow Condensed", sans-serif;
  font-size: clamp(42px, 6vw, 64px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0;
}

.catalog-intro-inner > p:last-child {
  max-width: 700px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.catalog-layout {
  width: min(100% - 40px, 1280px);
  max-width: none;
  margin: 38px auto 0;
  padding: 0;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 42px;
}

.sidebar {
  top: 104px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 124px);
  padding: 0;
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

.sidebar h2 {
  padding-bottom: 12px;
  border-bottom: 2px solid var(--ink);
  font-family: "Barlow Condensed", sans-serif;
  font-size: 26px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.sidebar-hint {
  margin: 10px 0 16px;
}

.content {
  padding-bottom: 64px;
}

.category-nav {
  min-height: 0;
  gap: 0;
  border-top: 1px solid var(--line);
  overflow-y: auto;
  scrollbar-gutter: stable;
}

.category-link {
  padding: 11px 5px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.category-link:hover,
.category-link:focus,
.category-link.active {
  border-color: var(--line);
  background: var(--soft);
  color: var(--brand-green-dark);
  padding-left: 10px;
}

.category-link.active {
  box-shadow: inset 4px 0 0 var(--brand-green);
}

.status {
  padding: 0 0 12px;
  margin-bottom: 24px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0;
  text-transform: none;
}

.group {
  scroll-margin-top: 104px;
  margin-bottom: 48px;
  border: 0;
  background: #fff;
  box-shadow: none;
}

.group-title {
  padding: 0 0 14px;
  margin-bottom: 18px;
  border-bottom: 1px solid var(--ink);
  background: #fff;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 32px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

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

.product-card {
  border: 0;
  background: #fff;
  transition: transform 180ms ease;
}

.product-card:hover {
  transform: translateY(-3px);
}

.media-wrap {
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border: 1px solid #e1e1df;
  background: var(--soft);
}

.product-image {
  object-fit: cover;
  transition: transform 350ms ease;
}

.product-card:hover .product-image {
  transform: scale(1.025);
}

.product-body {
  padding: 12px 1px 0;
}

.product-name {
  min-height: 0;
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.35;
}

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

.meta-grid div:last-child {
  grid-column: auto;
  text-align: right;
}

dt {
  color: #777;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

dd {
  font-size: 13px;
  font-weight: 500;
}

@media (max-width: 980px) {
  .header-inner {
    grid-template-columns: 1fr auto;
    gap: 18px;
  }

  .quote-link {
    display: none;
  }

  .catalog-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .sidebar {
    position: static;
    display: block;
    max-height: none;
    overflow: visible;
  }

  .content {
    padding-bottom: 0;
  }

  .category-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
    border: 0;
    overflow: visible;
    scrollbar-gutter: auto;
  }

  .category-link {
    padding: 8px 12px;
    border: 1px solid var(--line);
  }

  .category-link:hover,
  .category-link:focus,
  .category-link.active {
    padding-left: 12px;
  }
}

@media (max-width: 960px) {
  .group {
    scroll-margin-top: 88px;
  }
}

@media (max-width: 700px) {
  .utility-inner,
  .header-inner,
  .department-inner,
  .catalog-intro-inner,
  .catalog-layout {
    width: min(100% - 28px, 1280px);
  }

  .utility-inner {
    justify-content: center;
  }

  .utility-links,
  .brand-wrap span {
    display: none;
  }

  .header-inner {
    min-height: 72px;
    padding: 0;
    grid-template-columns: 1fr;
    grid-template-rows: 56px;
    gap: 8px;
  }

  .brand {
    font-size: 40px;
  }

  .department-inner {
    overflow-x: auto;
  }

  .department-inner a {
    flex: 0 0 auto;
    padding: 0 14px;
  }

  .catalog-intro {
    padding: 38px 0 34px;
  }

  .catalog-layout {
    margin-top: 28px;
    padding: 0 0 42px;
  }

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

  .meta-grid {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 6px 12px;
  }

  .meta-grid > div:nth-child(1) {
    grid-column: 1;
    grid-row: 1;
  }

  .meta-grid > div:nth-child(2) {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .meta-grid > div:nth-child(3) {
    grid-column: 2;
    grid-row: 1;
  }

  .meta-grid div:last-child {
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-card,
  .product-image,
  .category-link {
    transition: none;
  }
}
