/*
  Destination: C:\Lensari\Lensari\claude-hq\drafts\gallery-site-v1\products\styles.css
  Purpose: page CSS for the "All products" catalogue page (apply directly; linked
           by index.html in this folder). Extends the shared foundation, never
           overrides tokens. All colors via var(--ls-*), constitution section 1.
  Motion: v1 static discipline (6.1) -- the catalogue portal opens ALREADY LIT.
*/

/* ------------------------------------------------ catalogue hero (portal, lit) */

.cat-hero {
  position: relative;
  padding: clamp(3.2rem, 8vw, 5.5rem) 0 clamp(2rem, 4.5vw, 3rem);
  overflow: hidden;
}

.cat-hero-trace {
  position: absolute;
  top: clamp(3.4rem, 6vw, 4rem);
  left: 0;
  right: 0;
  height: clamp(56px, 8vw, 115px);
}

/* the "you have entered" cue: the motif opens LIT (static, no transition needed) */
.cat-hero-trace .trace-path { opacity: 0.95; filter: drop-shadow(0 0 4px var(--ls-glow)); }
.cat-hero-trace .trace-path-2 { opacity: calc(var(--ls-trace-opacity) * 0.85); }
.cat-hero-trace .trace-node { opacity: 1; filter: drop-shadow(0 0 5px var(--ls-accent)); }

.cat-hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cat-emblem {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3.6rem;
  height: 3.6rem;
  border: 1px solid color-mix(in srgb, var(--ls-accent) 55%, var(--ls-line));
  border-radius: 10px;
  color: var(--ls-accent);
  background: color-mix(in srgb, var(--ls-surface) 40%, var(--ls-base));
  filter: drop-shadow(0 0 12px var(--ls-glow));
  margin-bottom: 1.4rem;
}

.cat-emblem svg { width: 1.8rem; height: 1.8rem; }

.cat-eyebrow { margin-bottom: 0.9rem; }

.cat-title { font-size: clamp(2.1rem, 5.4vw, 3.4rem); }

.cat-lede {
  max-width: 50ch;
  margin-top: 1.1rem;
  font-size: clamp(1rem, 1.6vw, 1.13rem);
  line-height: 1.7;
  color: var(--ls-label);
}

.cat-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: 0.74rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ls-label);
}

.cat-meta-sep { color: var(--ls-line); }

/* ------------------------------------------------ catalogue groups */

.catalogue-group { padding-top: clamp(2.2rem, 5vw, 3.4rem); }

.group-head {
  position: relative;
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.5rem 1.1rem;
  margin-bottom: 1.4rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--ls-line);
}

/* pass-3 upgrade: a quiet circuit node where each group's rule begins */
.group-head::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -3.5px;
  width: 6px;
  height: 6px;
  background: var(--ls-brand);
  transform: rotate(45deg);
}

.group-title {
  font-size: clamp(1.25rem, 2.6vw, 1.65rem);
  margin: 0;
}

.group-count {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ls-label);
}

.group-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ls-accent);
}

.group-link svg { width: 0.85rem; height: 0.85rem; transition: transform 0.3s var(--ease-out); }
.group-link:hover svg { transform: translateX(3px); }

/* keep the two-card desktop group from ballooning: same card width as the row of 3 */
.catalogue-group .product-grid { grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); }

/* zoom crop for onboarding captures with wide dark side margins: the content
   column sits in the middle of the frame; scale in from center-top so the real
   surface fills the card thumb (still the untouched capture, just cropped) */
.thumb-zoom img {
  transform: scale(1.5);
  transform-origin: 50% 0;
}

/* catalogue index numeral, in the cue row (pass-1 upgrade; pass-2 moved it out
   of the name to kill widow wraps; pass-3 moved it off the artwork, which the
   thumb plates were covering) */
.cat-num {
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  color: var(--ls-label);
  margin-right: 0.7rem;
}

.cat-num::after {
  content: "";
  display: inline-block;
  width: 1px;
  height: 0.7em;
  background: var(--ls-line);
  margin-left: 0.7rem;
  vertical-align: -0.06em;
}

/* hero jump links: real in-page anchors to the two category groups */
.cat-jump {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  margin-top: 0.85rem;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cat-jump a { color: var(--ls-accent); }
.cat-jump a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
