* { box-sizing: border-box; }

body {
  margin: 0;
  background: #EEF1F3;
  font-family: 'Inter', sans-serif;
}

a { -webkit-tap-highlight-color: transparent; }

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

.kof-card { transition: transform .3s cubic-bezier(.2,.7,.2,1); }
.kof-card:hover { transform: translateY(-5px); }

.eyebrow {
  font-size: 12px;
  letter-spacing: .28em;
  text-transform: uppercase;
  font-weight: 600;
}

/* layout shell */

.page {
  display: flex;
  justify-content: center;
  padding: 40px 0;
  background: #EEF1F3;
}

.sheet {
  width: 1180px;
  background: #FBFCFD;
  box-shadow: 0 30px 80px rgba(31,43,51,.14);
  overflow: hidden;
}

/* header */

.header {
  background: #fff;
  border-bottom: 1px solid #EFEFEF;
  position: relative;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 18px 40px;
}

.logo-link {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: block;
}

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

.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: .02em;
}

.nav-link {
  color: #5B7089;
  text-decoration: none;
  transition: color .2s ease;
}
.nav-link:hover { color: #162d4b; }

.nav-cta {
  color: #fff;
  background: #162d4b;
  border: none;
  padding: 9px 20px;
  border-radius: 100px;
  transition: background .2s ease;
}
.nav-cta:hover { background: #1f3c63; color: #fff; }

/* hero banner */

.hero-banner-link { display: block; }

.hero-banner-img {
  width: 100%;
  height: auto;
  display: block;
}

/* featured */

.featured-section {
  background: #EFEFEF;
  padding: 32px 40px;
}

.featured-eyebrow { color: #162d4b; margin-bottom: 18px; }

.grid--featured {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

/* filter bar */

.filter-section { padding: 26px 40px 0; }

.filter-bar {
  display: flex;
  gap: 26px;
  align-items: center;
  border-bottom: 1px solid #E6EDF0;
  flex-wrap: wrap;
}

.filter-tab {
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  padding: 0 0 14px;
  margin-bottom: -1px;
  cursor: pointer;
  letter-spacing: .01em;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #8496A0;
  font-weight: 400;
}

.filter-tab.is-active {
  border-bottom: 2px solid #162d4b;
  color: #162d4b;
  font-weight: 600;
}

.filter-meta {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 20px 0 6px;
}

.filter-count { font-size: 13px; color: #8496A0; font-weight: 400; }

.filter-label {
  font-size: 12px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #162d4b;
  font-weight: 600;
}

/* grids */

.grid-section { padding: 22px 40px 30px; }

.grid { display: grid; }

.grid--stock {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
}

.grid--archive {
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  opacity: .75;
}

.card {
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.card-media {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-media--stock {
  aspect-ratio: 4/5;
  background: repeating-linear-gradient(135deg, #EBF2F5 0 11px, #E2ECF0 11px 22px);
}

.card-media--archive {
  aspect-ratio: 1/1;
  background: repeating-linear-gradient(135deg, #EEF3F5 0 10px, #E6EEF1 10px 20px);
  filter: grayscale(.5);
}

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

.card-initial { font-size: 60px; font-weight: 300; color: #B9CEDA; }
.card-initial--sm { font-size: 42px; color: #C4D3DA; }

.card-tag {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #162d4b;
  background: rgba(255,255,255,.92);
  padding: 5px 9px;
  border-radius: 3px;
}

.card-name {
  font-size: 12.5px;
  font-weight: 500;
  color: #22303A;
  line-height: 1.3;
}

.card-meta {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.card-price { font-size: 10px; color: #162d4b; font-weight: 600; }

.card-cat {
  font-size: 10px;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #A9B9C1;
}

.card-soldout-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.card-soldout-badge {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(37,57,91,.72);
  padding: 4px 9px;
  border-radius: 3px;
}

.card-name--archive { font-size: 13px; font-weight: 500; color: #7A8892; line-height: 1.25; }

.card-price--archive {
  font-size: 12px;
  color: #A9B9C1;
  text-decoration: line-through;
}

/* archive section */

.archive-section {
  padding: 44px 40px 20px;
  margin-top: 20px;
  border-top: 1px solid #E6EDF0;
}

.archive-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 26px;
}

.archive-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .2em;
  color: #A98A8D;
  margin-bottom: 6px;
}

.archive-title { font-size: 24px; font-weight: 600; color: #7A8892; margin: 0; }

.archive-count { font-size: 12px; color: #A9B9C1; }

/* footer */

.footer {
  margin-top: 56px;
  padding: 52px 40px;
  background: #162d4b;
  color: #B9C6DA;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 48px;
}

.footer-logo { height: 32px; width: auto; display: block; margin-bottom: 18px; filter: brightness(0) invert(1); }

.footer-eyebrow { color: #7E93BC; margin-bottom: 12px; letter-spacing: .16em; }
.footer-eyebrow--tight { margin-bottom: 2px; }

.footer-about {
  max-width: 460px;
  margin: 0;
  font-size: 14px;
  line-height: 1.8;
  color: #C7D3E4;
  font-weight: 300;
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: flex-start;
}

.footer-link {
  color: #C7D3E4;
  text-decoration: none;
  font-size: 14px;
  transition: color .2s ease;
}
.footer-link:hover { color: #fff; }

.footer-shipping { font-size: 12px; color: #6B80A6; margin-top: 14px; }

/* responsive */

@media (max-width: 1220px) {
  .sheet { width: 100%; }
  .page { padding: 0; }
}

@media (max-width: 860px) {
  .header {
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    padding: 16px 24px;
  }
  .logo-link { position: static; transform: none; }
  .header-nav { justify-content: center; }
  .featured-section { padding: 24px 24px; }
  .filter-section { padding: 20px 24px 0; }
  .filter-bar { gap: 18px; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .filter-tab { flex: none; }
  .grid-section { padding: 18px 24px 24px; }
  .grid--featured { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .grid--stock { grid-template-columns: repeat(2, 1fr); gap: 24px 18px; }
  .grid--archive { grid-template-columns: repeat(2, 1fr); gap: 18px; }
  .archive-section { padding: 32px 24px 20px; }
  .footer { grid-template-columns: 1fr; padding: 40px 24px; gap: 32px; }
}

@media (max-width: 480px) {
  .header-nav { gap: 14px; font-size: 12px; }
  .logo { height: 26px; }
  .nav-cta { padding: 8px 14px; }
  .grid--featured { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .grid--stock { grid-template-columns: repeat(2, 1fr); gap: 20px 14px; }
  .grid--archive { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .card-name { font-size: 11.5px; }
  .card-price { font-size: 9.5px; }
}
