/* ==========================================================================
   Swiss Minimalist / Flat theme
   White background, black text, single bold accent, strict grid,
   thin 1px rules only, no shadows / gradients / rounded corners.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --fg: #111111;
  --muted: #6b6b6b;
  --line: #111111;
  --line-soft: #d8d8d8;
  --accent: #ff3d00;
  --accent-fg: #ffffff;
  --font: "Helvetica Neue", Helvetica, Arial, "Segoe UI", system-ui, -apple-system, sans-serif;
  --gutter: 16px;
  --maxw: 1180px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

body { padding-bottom: 40px; }

[v-cloak] { display: none; }

a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; background: none; border: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ---------- Top Bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-logo {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.topbar-search-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  color: var(--fg);
}
.topbar-search-btn:active { background: var(--fg); color: var(--bg); }

/* ---------- Category Tabs ---------- */
.cat-tabs {
  border-bottom: 1px solid var(--line);
  background: var(--bg);
  overflow-x: auto;
  position: sticky;
  top: 56px;
  z-index: 30;
}
.cat-tabs-inner {
  display: flex;
  min-width: max-content;
}
.cat-tab {
  padding: 12px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border-right: 1px solid var(--line-soft);
  white-space: nowrap;
  color: var(--muted);
}
.cat-tab.active {
  color: var(--bg);
  background: var(--fg);
}

/* ---------- Search Bar ---------- */
.search-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0;
  border-bottom: 1px solid var(--line);
  padding: 10px var(--gutter);
}
.search-input {
  flex: 1;
  border: 1px solid var(--line);
  padding: 10px 12px;
  font-size: 14px;
  font-family: inherit;
  background: var(--bg);
  color: var(--fg);
  border-radius: 0;
  outline: none;
}
.search-input:focus { border-color: var(--accent); }
.search-cancel {
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

/* ---------- Loading ---------- */
.loading-full {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.loading-ring {
  width: 28px;
  height: 28px;
  border: 2px solid var(--line-soft);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Shared section header ---------- */
.sec-hd {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 20px var(--gutter) 12px;
  max-width: var(--maxw);
  margin: 0 auto;
}
.sec-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.sec-label::before {
  content: '';
  display: inline-block;
  width: 8px;
  height: 8px;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}
.sec-more, .sec-cnt {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sec-more:hover { color: var(--accent); }

section { border-bottom: 1px solid var(--line-soft); }

/* ---------- Hero: stark full-width block ---------- */
.hero-sec { border-bottom: 1px solid var(--line); }
.hero-stark {
  position: relative;
  display: block;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px var(--gutter) 32px;
}
.hero-stark-thumb {
  position: absolute;
  top: 20px;
  right: var(--gutter);
  width: 64px;
  height: 64px;
  border: 1px solid var(--line);
  overflow: hidden;
}
.hero-stark-thumb img { width: 100%; height: 100%; object-fit: cover; }
.hero-stark-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.hero-stark-title {
  font-size: 34px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  max-width: 78%;
}
.hero-stark-desc {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 16px;
  max-width: 60ch;
}
.hero-stark-cta {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border: 1px solid var(--line);
  padding: 10px 18px;
}
.hero-stark-cta:hover, .hero-stark:hover .hero-stark-cta {
  background: var(--fg);
  color: var(--bg);
}

/* ---------- Strict 3-column grid (hot, kids) ---------- */
.grid3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.grid3-item {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grid3-img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f2f2f2;
}
.grid3-img img { width: 100%; height: 100%; object-fit: cover; }
.grid3-nm {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

/* ---------- Spec-sheet list (bordered table) ---------- */
.spec-list {
  max-width: var(--maxw);
  margin: 0 auto var(--gutter);
  border: 1px solid var(--line);
  border-bottom: none;
}
.spec-list-hdr, .spec-row {
  display: grid;
  grid-template-columns: 1.3fr 0.7fr 1.6fr;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  align-items: center;
}
.spec-list-hdr {
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #fafafa;
}
.spec-row { font-size: 13px; }
.spec-row:hover { background: #fafafa; }
.spec-name { font-weight: 700; }
.spec-cat {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--accent);
}
.spec-desc {
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ---------- Numbered stacked list ---------- */
.num-list {
  max-width: var(--maxw);
  margin: 0 auto var(--gutter);
  border-top: 1px solid var(--line);
}
.num-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px var(--gutter);
  border-bottom: 1px solid var(--line-soft);
}
.num-row:hover { background: #fafafa; }
.num-idx {
  font-size: 20px;
  font-weight: 800;
  color: var(--line-soft);
  width: 36px;
  flex: none;
}
.num-nm {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
}
.num-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--bg);
  background: var(--accent);
  padding: 3px 8px;
  flex: none;
}

/* ---------- Uniform square grid ---------- */
.sqr-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: var(--maxw);
  margin: 0 auto;
  border-top: 1px solid var(--line-soft);
  border-left: 1px solid var(--line-soft);
}
.sqr-item {
  border-right: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.sqr-img {
  width: 100%;
  aspect-ratio: 1/1;
  overflow: hidden;
  background: #f2f2f2;
}
.sqr-img img { width: 100%; height: 100%; object-fit: cover; }
.sqr-nm {
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ---------- Split-half featured rectangle ---------- */
.split-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  max-width: var(--maxw);
  margin: 0 auto var(--gutter);
  border: 1px solid var(--line);
  min-height: 220px;
}
.split-half.rev { direction: rtl; }
.split-half.rev .split-half-body { direction: ltr; }
.split-half-img { overflow: hidden; background: #f2f2f2; }
.split-half-img img { width: 100%; height: 100%; object-fit: cover; }
.split-half-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-left: 1px solid var(--line);
}
.split-half.rev .split-half-body { border-left: none; border-right: 1px solid var(--line); }
.split-half-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 10px;
}
.split-half-nm {
  font-size: 20px;
  font-weight: 800;
  margin: 0 0 10px;
  line-height: 1.15;
}
.split-half-desc {
  font-size: 13px;
  color: var(--muted);
  margin: 0;
}

/* ---------- More / Load more ---------- */
.more-wrap, .loadmore-wrap {
  display: flex;
  justify-content: center;
  padding: 20px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
}
.more-btn, .loadmore-btn {
  border: 1px solid var(--line);
  padding: 12px 28px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.more-btn:hover, .loadmore-btn:hover { background: var(--fg); color: var(--bg); }

/* ---------- Filter / Search header + grid ---------- */
.filter-hdr {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px var(--gutter);
  max-width: var(--maxw);
  margin: 0 auto;
  border-bottom: 1px solid var(--line);
}
.filter-back {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  border: 1px solid var(--line);
  padding: 8px 12px;
}
.filter-title {
  flex: 1;
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.filter-cnt {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.empty-msg {
  padding: 60px var(--gutter);
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* ---------- Footer ---------- */
.site-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 28px var(--gutter);
  font-size: 12px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
.site-footer a:hover { color: var(--accent); }

/* ---------- Back to top ---------- */
.totop-btn {
  position: fixed;
  right: var(--gutter);
  bottom: var(--gutter);
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--fg);
  font-size: 16px;
  z-index: 50;
}
.totop-btn:hover { background: var(--fg); color: var(--bg); }

/* ==========================================================================
   Responsive: tablet / desktop widen grids
   ========================================================================== */
@media (min-width: 640px) {
  .grid3 { grid-template-columns: repeat(4, 1fr); }
  .sqr-grid { grid-template-columns: repeat(5, 1fr); }
  .hero-stark-title { font-size: 44px; max-width: 70%; }
}

@media (min-width: 960px) {
  .grid3 { grid-template-columns: repeat(6, 1fr); }
  .sqr-grid { grid-template-columns: repeat(7, 1fr); }
  .split-half { min-height: 300px; }
  .hero-stark-title { font-size: 56px; }
}
