/*
 * lane-index.css — editorial layout for /useful and /weird lane index pages.
 * Matches the design-system "Useful Lane Page" diagram: cream background, sidebar
 * of categories on the left, dense product grid on the right.
 */

body.lane-index {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--hp-cream, #faf7f2);
  color: var(--hp-ink, #0a0a0a);
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

body.lane-index .site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 0.85rem 2rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: rgba(250, 247, 242, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hp-line, #e6e2da);
}
body.lane-index .site-header .logo img { display: block; height: 28px; width: auto; }
body.lane-index .header-nav {
  display: flex;
  gap: 0.85rem;
  margin-left: auto;
}
body.lane-index .header-nav a {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--hp-muted, #5e5b56);
  padding: 0.4rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}
body.lane-index .header-nav a:hover {
  color: var(--hp-ink, #0a0a0a);
  border-bottom-color: var(--hp-ink, #0a0a0a);
}

.lane-index-main {
  flex: 1;
  max-width: 1240px;
  margin: 0 auto;
  padding: 2.5rem 2rem 4rem;
  width: 100%;
  box-sizing: border-box;
}

.lane-index-hero {
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--hp-line, #e6e2da);
}

.lane-index-eyebrow {
  font-size: 0.62rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hp-soft, #8a8680);
  margin: 0 0 0.45rem;
}

.lane-index-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: clamp(2.6rem, 6vw, 4rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--hp-ink, #0a0a0a);
  margin: 0 0 0.6rem;
}

.lane-index-lead {
  font-size: 1.02rem;
  line-height: 1.6;
  color: var(--hp-muted, #5e5b56);
  margin: 0;
  max-width: 60ch;
}

/* ===== Layout ===== */
.lane-index-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
.lane-index-layout--no-sidebar { grid-template-columns: 1fr; }

@media (max-width: 900px) {
  .lane-index-layout {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

/* ===== Sidebar ===== */
.lane-sidebar {
  position: sticky;
  top: 4.5rem;
  padding: 1.25rem 1.1rem;
  background: #fffdf9;
  border: 1px solid var(--hp-line, #e6e2da);
  border-radius: var(--hp-radius, 14px);
  box-shadow: 0 6px 18px rgba(10, 10, 10, 0.04);
}

@media (max-width: 900px) {
  .lane-sidebar { position: static; }
}

.lane-sidebar-eyebrow {
  font-size: 0.6rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 800;
  color: var(--hp-soft, #8a8680);
  margin: 0 0 0.85rem;
}

.lane-sidebar-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.lane-sidebar-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding: 0.55rem 0.6rem;
  border-radius: 6px;
  text-decoration: none;
  color: var(--hp-ink, #0a0a0a);
  transition: background 0.14s ease, color 0.14s ease;
}
.lane-sidebar-item:hover {
  background: var(--hp-cream, #faf7f2);
}

.lane-sidebar-label {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: -0.005em;
}

.lane-sidebar-count {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--hp-soft, #8a8680);
  background: var(--hp-cream, #faf7f2);
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
}

.lane-sidebar-item:hover .lane-sidebar-count {
  background: #fff;
}

/* ===== Category sections + product grid ===== */
.lane-cat-sections {
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

.lane-cat-section {
  scroll-margin-top: 5rem;
}

.lane-cat-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--hp-line, #e6e2da);
}

.lane-cat-title {
  font-family: 'Newsreader', Georgia, serif;
  font-size: 1.55rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  margin: 0;
}

.lane-cat-count {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hp-soft, #8a8680);
}

.lane-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.85rem;
}

.lane-product-card {
  display: flex;
  flex-direction: column;
  background: #fffdf9;
  border: 1px solid var(--hp-line, #e6e2da);
  border-radius: var(--hp-radius-sm, 8px);
  overflow: hidden;
  text-decoration: none;
  color: var(--hp-ink, #0a0a0a);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.lane-product-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 32px rgba(10, 10, 10, 0.08);
  border-color: var(--hp-line-strong, #cfc9bf);
}

.lane-product-media {
  aspect-ratio: 1 / 1;
  background: linear-gradient(135deg, #fffdf9, var(--hp-cream, #faf7f2));
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lane-product-media img {
  max-width: 76%;
  max-height: 76%;
  object-fit: contain;
  filter: drop-shadow(0 6px 12px rgba(10, 10, 10, 0.1));
}

.lane-product-body {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.65rem 0.75rem 0.85rem;
  border-top: 1px solid var(--hp-line, #e6e2da);
}

.lane-product-name {
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.005em;
}

.lane-product-price {
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--hp-soft, #8a8680);
  margin-top: 0.1rem;
}

/* ===== Footer ===== */
.lane-index-footer {
  margin-top: auto;
  padding: 1.75rem 2rem 2.25rem;
  border-top: 1px solid var(--hp-line, #e6e2da);
  background: #fffdf9;
}
.lane-index-footer p {
  margin: 0.15rem 0;
  font-size: 0.78rem;
  color: var(--hp-muted, #5e5b56);
  text-align: center;
}
.lane-index-footer a {
  color: var(--hp-ink, #0a0a0a);
  text-decoration: underline;
  text-underline-offset: 2px;
}
