/* Trellis Market — vertical vine + staggered glass masonry
   Oswald + Atkinson Hyperlegible — distinct from home/account/help */

body.hl-helix *,
body.hl-helix *::before,
body.hl-helix *::after { box-sizing: border-box; }

body.hl-helix {
  --void: #1C110D;
  --soil: #2A1A14;
  --glass: rgba(48, 28, 20, 0.58);
  --mist: #F6EDE4;
  --mute: #C4A992;
  --clay: #E07A5F;
  --moss: #7BAF7B;
  --honey: #F0C27A;
  --line: rgba(255, 214, 170, 0.18);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  margin: 0;
  min-height: 100vh;
  color: var(--mist);
  font-family: 'Atkinson Hyperlegible', system-ui, sans-serif;
  background-color: var(--void);
  background-image:
    radial-gradient(ellipse 55% 45% at 0% 5%, rgba(123, 175, 123, 0.14), transparent 52%),
    radial-gradient(ellipse 45% 40% at 100% 0%, rgba(224, 122, 95, 0.16), transparent 48%),
    radial-gradient(ellipse 60% 30% at 50% 100%, rgba(240, 194, 122, 0.08), transparent 55%);
  -webkit-font-smoothing: antialiased;
}

.hl-root {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hl-helix .page-main {
  flex: 1;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
}

.hl-market {
  flex: 1;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto;
  padding: 1rem 0 2.2rem;
}

/* —— Mast —— */
.hl-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

.hl-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--mist);
  text-decoration: none;
  min-width: 0;
}

.hl-brand em {
  flex: 0 0 auto;
  font-style: normal;
  font-family: Oswald, sans-serif;
  font-size: 0.68rem;
  letter-spacing: 0.16em;
  padding: 0.38rem 0.5rem;
  border-radius: 0.55rem 0.2rem 0.55rem 0.2rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.hl-brand strong {
  font-family: Oswald, sans-serif;
  font-weight: 600;
  letter-spacing: 0.03em;
  font-size: clamp(1rem, 2.2vw, 1.15rem);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hl-strip-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.28rem;
  padding: 0.28rem;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.hl-strip-links a {
  color: #EADFD4;
  text-decoration: none;
  padding: 0.42rem 0.78rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  transition: background 0.2s, color 0.2s;
}

.hl-strip-links a.is-on,
.hl-strip-links a:hover {
  background: var(--clay);
  color: var(--void);
}

.hl-bag {
  display: inline-flex !important;
  align-items: center;
  gap: 0.35rem;
}

.hl-bag.has-items {
  background: rgba(224, 122, 95, 0.22);
}

.hl-bag em {
  font-style: normal;
  min-width: 1.15rem;
  text-align: center;
  padding: 0.05rem 0.35rem;
  border-radius: 999px;
  background: var(--void);
  color: var(--honey);
  font-size: 0.7rem;
  font-weight: 800;
}

/* —— Board —— */
.hl-board {
  display: grid;
  grid-template-columns: minmax(15rem, 17.5rem) minmax(0, 1fr);
  gap: 1.5rem 1.6rem;
  align-items: start;
}

.hl-trellis {
  position: sticky;
  top: 0.85rem;
  padding: 0 0 1rem;
}

.hl-vine {
  position: absolute;
  left: 1.05rem;
  top: 0.15rem;
  bottom: 0.35rem;
  width: 3px;
  border-radius: 99px;
  background: linear-gradient(180deg, transparent, var(--moss) 10%, var(--clay) 55%, var(--honey) 90%, transparent);
  opacity: 0.5;
  pointer-events: none;
}

/* Lantern search */
.hl-lantern {
  position: relative;
  margin: 0 0 1.15rem 1.55rem;
}

.hl-lantern-cord {
  display: block;
  width: 2px;
  height: 1.2rem;
  margin: 0 auto 0.15rem;
  background: linear-gradient(var(--mute), var(--moss));
  opacity: 0.65;
}

.hl-lantern-glass {
  display: flex;
  gap: 0.35rem;
  padding: 0.5rem 0.5rem 0.5rem 0.75rem;
  border-radius: 1.4rem 1rem 1.6rem 1.1rem;
  background: var(--glass);
  border: 1px solid var(--line);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hl-lantern-glass input {
  flex: 1;
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--mist);
  font: inherit;
  font-size: 0.92rem;
}

.hl-lantern-glass input::placeholder { color: var(--mute); }
.hl-lantern-glass input:focus { outline: none; }

.hl-lantern-glass button {
  border: 0;
  cursor: pointer;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.48rem 0.75rem;
  border-radius: 999px;
  background: var(--clay);
  color: var(--void);
  transition: filter 0.2s;
}

.hl-lantern-glass button:hover { filter: brightness(1.06); }

.hl-lantern.is-lit .hl-lantern-glass {
  border-color: rgba(240, 194, 122, 0.5);
  box-shadow:
    0 0 0 3px rgba(240, 194, 122, 0.14),
    0 12px 28px rgba(0, 0, 0, 0.28);
}

/* Vine tags */
.hl-vines {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-left: 0.1rem;
}

.hl-tag {
  display: grid;
  grid-template-columns: 2rem 1fr;
  grid-template-rows: auto auto;
  column-gap: 0.5rem;
  padding: 0.68rem 0.8rem 0.68rem 0.7rem;
  margin-left: 1.55rem;
  text-decoration: none;
  color: var(--mist);
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: 0.35rem 1.05rem 0.35rem 1.05rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.16);
  transition: transform 0.2s var(--ease), border-color 0.2s, background 0.2s;
}

.hl-tag:nth-child(even) {
  border-radius: 1.05rem 0.35rem 1.05rem 0.35rem;
  margin-left: 2rem;
}

.hl-tag em {
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-family: Oswald, sans-serif;
  font-size: 0.78rem;
  color: var(--moss);
}

.hl-tag strong {
  font-family: Oswald, sans-serif;
  font-weight: 500;
  letter-spacing: 0.02em;
  font-size: 0.95rem;
}

.hl-tag span {
  grid-column: 2;
  color: var(--mute);
  font-size: 0.7rem;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hl-tag:hover {
  transform: translateX(3px);
  border-color: rgba(240, 194, 122, 0.4);
  color: var(--mist);
}

.hl-tag.is-on {
  background: rgba(224, 122, 95, 0.22);
  border-color: var(--clay);
}

.hl-tag.is-on em { color: var(--honey); }

/* Grove intro */
.hl-intro {
  margin-bottom: 1.25rem;
  padding: 1.2rem 1.25rem;
  border-radius: 1.5rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.hl-kicker {
  margin: 0 0 0.35rem;
  color: var(--honey);
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
}

.hl-intro h1 {
  margin: 0;
  font-family: Oswald, sans-serif;
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  line-height: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.hl-intro h1 span { display: block; }
.hl-title-soft { color: var(--clay); }

.hl-dek {
  margin: 0.7rem 0 0;
  max-width: 42ch;
  color: var(--mute);
  font-size: 1rem;
  line-height: 1.5;
}

.hl-dek em { color: var(--mist); font-style: normal; font-weight: 700; }

.hl-meters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 0;
}

.hl-meters div {
  min-width: 5.2rem;
  padding: 0.6rem 0.8rem;
  border-radius: 0.95rem 0.4rem 0.95rem 0.4rem;
  background: rgba(28, 17, 13, 0.4);
  border: 1px solid rgba(255, 214, 170, 0.12);
}

.hl-meters dt {
  color: var(--mute);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hl-meters dd {
  margin: 0.12rem 0 0;
  font-family: Oswald, sans-serif;
  font-size: 1.35rem;
  font-weight: 600;
}

.hl-seek-chip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.95rem;
  border-radius: 999px;
  background: rgba(240, 194, 122, 0.12);
  border: 1px solid rgba(240, 194, 122, 0.28);
  color: var(--mist);
  font-size: 0.9rem;
}

.hl-seek-chip a {
  color: var(--honey);
  text-decoration: none;
  font-weight: 700;
}
.hl-seek-chip a:hover { color: var(--clay); }

.hl-empty {
  padding: 2.2rem 1.4rem;
  border-radius: 1.6rem;
  background: var(--glass);
  border: 1px solid var(--line);
  text-align: center;
}

.hl-empty h2 {
  margin: 0;
  font-family: Oswald, sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hl-empty p { color: var(--mute); margin: 0.5rem 0 0; }

.hl-btn {
  display: inline-block;
  margin-top: 0.85rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--clay), #c46248);
  color: var(--void);
  text-decoration: none;
  font-family: Oswald, sans-serif;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: 0.85rem;
}

.hl-btn:hover { filter: brightness(1.06); color: var(--void); }

/* Masonry pods */
.hl-masonry {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.05rem 0.95rem;
  align-items: start;
}

.hl-pod {
  --blob: 1.6rem 0.7rem 1.5rem 1rem;
  background: var(--glass);
  border: 1px solid var(--line);
  backdrop-filter: blur(16px);
  border-radius: var(--blob);
  overflow: hidden;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.2);
  animation: hl-pod-in 0.5s var(--ease) both;
  animation-delay: calc(var(--ti, 0) * 0.04s);
  transition: border-color 0.2s, transform 0.2s;
}

.hl-pod:hover {
  border-color: rgba(224, 122, 95, 0.4);
  transform: translateY(-2px);
}

.hl-pod:nth-child(even) { margin-top: 1.5rem; }
.hl-pod:nth-child(4n + 3) { margin-top: 0.35rem; }

@keyframes hl-pod-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: none; }
}

.hl-pod-media {
  display: block;
  position: relative;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: var(--soil);
}

.hl-pod-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s var(--ease);
}

.hl-pod:hover .hl-pod-media img { transform: scale(1.04); }

.hl-flag {
  position: absolute;
  top: 0.7rem;
  left: 0.7rem;
  padding: 0.28rem 0.6rem;
  border-radius: 999px;
  background: var(--moss);
  color: var(--void);
  font-size: 0.68rem;
  font-weight: 800;
}

.hl-pod-meta { padding: 0.85rem 0.95rem 1rem; }

.hl-pod-aisle {
  display: block;
  color: var(--moss);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 700;
}

.hl-pod-meta h2 {
  margin: 0.3rem 0 0;
  font-family: Oswald, sans-serif;
  font-weight: 500;
  font-size: 1.08rem;
  line-height: 1.2;
}

.hl-pod-meta h2 a {
  color: var(--mist);
  text-decoration: none;
}

.hl-pod-meta h2 a:hover { color: var(--honey); }

.hl-pod-foot {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.7rem;
  flex-wrap: wrap;
}

.hl-price {
  font-family: Oswald, sans-serif;
  font-size: 1.15rem;
  color: var(--honey);
  font-weight: 600;
}

.hl-sku {
  font-style: normal;
  color: var(--mute);
  font-size: 0.72rem;
}

.hl-go {
  margin-left: auto;
  color: var(--clay);
  text-decoration: none;
  font-weight: 800;
  font-size: 0.86rem;
}
.hl-go:hover { color: var(--honey); }

/* Pagination */
.hl-pages { margin-top: 1.85rem; }

.hl-pages-label {
  margin: 0 0 0.55rem;
  color: var(--mute);
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 700;
}

.hl-pages .catalog-pagination,
.hl-pages .pagination-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.hl-pages .pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.hl-pages .pagination-btn,
.hl-pages .pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.3rem;
  padding: 0.48rem 0.7rem;
  border-radius: 0.75rem 0.3rem 0.75rem 0.3rem;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--mist);
  text-decoration: none;
  font-size: 0.88rem;
  font-weight: 700;
}

.hl-pages .pagination-num.is-active,
.hl-pages .pagination-btn:hover,
.hl-pages .pagination-num:hover {
  background: var(--clay);
  color: var(--void);
  border-color: var(--clay);
}

.hl-pages .pagination-btn.is-disabled {
  opacity: 0.4;
  pointer-events: none;
}

.hl-pages .pagination-ellipsis { color: var(--mute); padding: 0 0.2rem; }

.hl-foot {
  display: flex;
  justify-content: space-between;
  gap: 0.7rem;
  flex-wrap: wrap;
  width: min(100% - 2rem, 1180px);
  margin: 0 auto 1.3rem;
  padding: 0.95rem 1.15rem;
  border-radius: 1.25rem;
  background: var(--glass);
  border: 1px solid var(--line);
  color: var(--mute);
  font-size: 0.86rem;
}

.hl-foot a {
  color: var(--honey);
  text-decoration: none;
  font-weight: 700;
}
.hl-foot a:hover { color: var(--clay); }

@media (max-width: 980px) {
  .hl-board { grid-template-columns: 1fr; }

  .hl-trellis { position: static; }

  .hl-vine { display: none; }

  .hl-lantern { margin-left: 0; }

  .hl-lantern-cord { display: none; }

  .hl-vines {
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 0.45rem;
    gap: 0.45rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
  }

  .hl-tag,
  .hl-tag:nth-child(even) {
    margin-left: 0;
    min-width: 10rem;
    flex: 0 0 auto;
  }

  .hl-pod:nth-child(even),
  .hl-pod:nth-child(4n + 3) { margin-top: 0; }

  .hl-pod:nth-child(odd) { margin-top: 1rem; }
}

@media (max-width: 640px) {
  .hl-market { width: min(100% - 1.4rem, 1180px); padding-top: 0.75rem; }

  .hl-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .hl-strip-links {
    border-radius: 1.15rem;
    justify-content: flex-start;
  }

  .hl-intro { padding: 1.05rem 1.1rem; border-radius: 1.3rem; }
  .hl-intro h1 { font-size: 2rem; }

  .hl-masonry { grid-template-columns: 1fr; }
  .hl-pod:nth-child(odd) { margin-top: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .hl-pod {
    animation: none !important;
  }
  .hl-pod,
  .hl-tag,
  .hl-pod-media img {
    transition: none !important;
  }
}
