/* FreshTees house style
   FRESH orange #F06820, FatFrank headings (Typekit kit iwt7njj),
   IBM Plex Sans body, IBM Plex Mono for numbers. */

:root {
  --fresh: #F06820;
  --fresh-dark: #D4551A;
  --ink: #1D1B19;
  --ink-soft: #6B6560;
  --paper: #FAF8F5;
  --card: #FFFFFF;
  --line: #E8E2DC;
  --radius: 10px;
  --font-head: "fatfrank", "IBM Plex Sans", sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

[hidden] { display: none !important; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--ink);
  background: var(--paper);
}

.wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Header */

.site-header {
  background: var(--fresh);
  color: #fff;
  padding: 22px 0 20px;
}

.header-inner {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

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

.brand-logo { height: 34px; width: auto; display: block; }

.brand-sub {
  font-family: var(--font-head);
  font-size: 18px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  opacity: 0.85;
}

.header-note { margin: 0; font-size: 13px; opacity: 0.9; }

/* Controls */

.controls { padding: 22px 0 6px; }

.search-row input {
  width: 100%;
  padding: 12px 14px;
  font: 500 16px var(--font-body);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: var(--radius);
  outline: none;
  transition: border-color 0.15s;
}

.search-row input:focus { border-color: var(--fresh); }

.filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: end;
  margin-top: 12px;
}

.filter { display: flex; flex-direction: column; gap: 4px; }

.filter span {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--ink-soft);
}

.filter select {
  padding: 8px 10px;
  font: 500 14px var(--font-body);
  color: var(--ink);
  background: var(--card);
  border: 2px solid var(--line);
  border-radius: 8px;
  min-width: 160px;
  cursor: pointer;
}

.filter select:focus { border-color: var(--fresh); outline: none; }

.clear-btn {
  padding: 9px 14px;
  font: 600 13px var(--font-body);
  color: var(--fresh);
  background: none;
  border: 2px solid var(--fresh);
  border-radius: 8px;
  cursor: pointer;
}

.clear-btn:hover { background: var(--fresh); color: #fff; }

.result-count {
  margin: 14px 0 4px;
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
}

/* Grid */

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

.card {
  display: flex;
  flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.15s, transform 0.15s, box-shadow 0.15s;
}

.card:hover {
  border-color: var(--fresh);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(29, 27, 25, 0.08);
}

.card-img {
  aspect-ratio: 220 / 290;
  background: #F3EFEA;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-img img { width: 100%; height: 100%; object-fit: cover; display: block; }

.img-fallback {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  padding: 12px;
}

.card-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }

.card-name {
  font-weight: 600;
  font-size: 14.5px;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-top: auto;
  padding-top: 8px;
}

.card-code {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.card-price {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 15px;
  color: var(--fresh-dark);
}

.card-desc {
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.35;
}

.card-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }

.tag {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--ink-soft);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 99px;
  padding: 2px 8px;
}

.empty {
  text-align: center;
  padding: 60px 0;
  color: var(--ink-soft);
  font-size: 16px;
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 18px 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.site-footer p { margin: 0; }

@media (max-width: 560px) {
  .filter select { min-width: 130px; }
  .grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
  .brand-logo { height: 28px; }
}
