/* Hex Bay — shop-only identity
   Navy / voltage / flare. Named command board + spectrum filter + hex clip cards.
   Independent of Seed Atelier (folio-*) lookbook / zipper / spreads. */

.page-shop {
  --hb-ink: #eef6ff;
  --hb-mute: rgba(238, 246, 255, 0.62);
  --hb-deep: #071426;
  --hb-panel: #0c1d33;
  --hb-line: rgba(238, 246, 255, 0.14);
  --hb-voltage: #00d4aa;
  --hb-voltage-dim: rgba(0, 212, 170, 0.18);
  --hb-flare: #ff5c39;
  --hb-ice: #7eb6ff;
  --hb-display: "Saira", system-ui, sans-serif;
  --hb-slab: "Zilla Slab", Georgia, serif;
  --hb-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

.page-shop .a60-prism-stage {
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, rgba(0, 212, 170, 0.16), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 0%, rgba(255, 92, 57, 0.12), transparent 50%),
    var(--hb-deep) !important;
  color: var(--hb-ink) !important;
  font-family: var(--hb-display);
}

.page-shop .page-main {
  max-width: none;
  padding: 0 0 3rem;
  color: var(--hb-ink) !important;
}

.page-shop .page-main h1,
.page-shop .page-main h2,
.page-shop .page-main h3,
.page-shop .page-main h4,
.page-shop .page-main p,
.page-shop .page-main span,
.page-shop .page-main a,
.page-shop .page-main strong,
.page-shop .page-main em,
.page-shop .page-main label,
.page-shop .page-main li,
.page-shop .page-main button,
.page-shop .page-main dt,
.page-shop .page-main dd,
.page-shop .page-main small,
.page-shop .page-main time {
  color: inherit;
}

.hb-market {
  padding: 0 clamp(1rem, 3vw, 2.25rem);
}

.hb-kicker {
  margin: 0 0 0.3rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--hb-voltage);
}

/* Command board — named grid areas */
.hb-command {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto;
  grid-template-areas:
    "brand find telemetry"
    "brand find telemetry";
  gap: 1rem 1.5rem;
  align-items: end;
  margin: 0.5rem 0 1.25rem;
  padding: 1.25rem 1.35rem 1.4rem;
  border-radius: 1.5rem;
  background: linear-gradient(145deg, rgba(12, 29, 51, 0.95), rgba(7, 20, 38, 0.88));
  border: 1px solid var(--hb-line);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 1.1rem), calc(100% - 1.1rem) 100%, 0 100%);
}

.hb-brand { grid-area: brand; }
.hb-find { grid-area: find; }
.hb-telemetry { grid-area: telemetry; }

.hb-brand h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 0.95;
  text-transform: uppercase;
}

.hb-brand h1 em {
  font-family: var(--hb-slab);
  font-style: italic;
  font-weight: 600;
  text-transform: none;
  color: var(--hb-flare);
}

.hb-dek {
  margin: 0;
  max-width: 28rem;
  color: var(--hb-mute);
  font-size: 1rem;
  line-height: 1.4;
}

.hb-find {
  display: flex;
  gap: 0.45rem;
  align-items: stretch;
}

.hb-find input {
  flex: 1;
  min-width: 0;
  min-height: 3rem;
  padding: 0.65rem 1rem;
  border-radius: 0.85rem 0.35rem 0.85rem 0.35rem;
  border: 1.5px solid var(--hb-line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--hb-ink);
  font-family: var(--hb-display);
  font-size: 0.95rem;
  font-weight: 600;
  clip-path: polygon(0 0, 100% 0, 100% 78%, 94% 100%, 0 100%);
  transition: border-color 0.25s, box-shadow 0.25s;
}

.hb-find input:focus {
  outline: none;
  border-color: var(--hb-voltage);
  box-shadow: 0 0 0 3px var(--hb-voltage-dim);
}

.hb-find button {
  appearance: none;
  padding: 0 1.15rem;
  border: 0;
  border-radius: 0.35rem 0.85rem 0.35rem 0.85rem;
  background: var(--hb-voltage);
  color: var(--hb-deep);
  font-family: var(--hb-display);
  font-weight: 800;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  clip-path: polygon(12% 0, 100% 0, 100% 100%, 0 100%);
  transition: transform 0.25s var(--hb-ease), background 0.25s;
}

.hb-find button:hover {
  background: #2aefc0;
  transform: translateX(2px);
}

.hb-telemetry {
  display: flex;
  gap: 0.85rem;
  margin: 0;
}

.hb-telemetry > div {
  min-width: 3.5rem;
  padding: 0.55rem 0.7rem;
  border-radius: 0.75rem;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--hb-line);
  text-align: center;
}

.hb-telemetry dt {
  margin: 0;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-mute);
}

.hb-telemetry dd {
  margin: 0.15rem 0 0;
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--hb-voltage);
  font-variant-numeric: tabular-nums;
}

@media (max-width: 900px) {
  .hb-command {
    grid-template-columns: 1fr 1fr;
    grid-template-areas:
      "brand brand"
      "find find"
      "telemetry telemetry";
    clip-path: none;
    border-radius: 1.25rem;
  }

  .hb-telemetry {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

/* Spectrum filter */
.hb-spectrum {
  position: relative;
  margin: 0 0 1.5rem;
  padding: 0.85rem;
  border-radius: 1.25rem;
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
  overflow: hidden;
}

.hb-spectrum-glow {
  position: absolute;
  inset: auto -20% -60% 20%;
  height: 120%;
  background: radial-gradient(circle, var(--hb-voltage-dim), transparent 65%);
  pointer-events: none;
  animation: hb-pulse 6s ease-in-out infinite;
}

.hb-spectrum-track {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.4rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 0.15rem;
}

.hb-spectrum-track::-webkit-scrollbar { display: none; }

@media (min-width: 900px) {
  .hb-spectrum-track {
    flex-wrap: wrap;
    overflow: visible;
  }
}

.hb-seg {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.6rem;
  padding: 0.45rem 1.1rem;
  color: var(--hb-mute);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid transparent;
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  transition: color 0.25s, background 0.25s, transform 0.25s var(--hb-ease), border-color 0.25s;
  animation: hb-rise 0.45s var(--hb-ease) both;
  animation-delay: calc(var(--si, 0) * 0.04s);
}

.hb-seg:hover {
  color: var(--hb-ink);
  background: rgba(0, 212, 170, 0.12);
  transform: translateY(-2px);
}

.hb-seg.is-on {
  color: var(--hb-deep);
  background: linear-gradient(120deg, var(--hb-voltage), #7aefd4);
  box-shadow: 0 10px 28px rgba(0, 212, 170, 0.3);
}

.hb-seg.is-on span {
  position: relative;
}

.hb-clear {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: -0.5rem 0 1.25rem;
  padding: 0.75rem 1rem;
  border-radius: 0.85rem;
  background: rgba(255, 92, 57, 0.12);
  border: 1px solid rgba(255, 92, 57, 0.35);
  color: var(--hb-ink);
  font-weight: 600;
}

.hb-clear a {
  color: var(--hb-flare) !important;
  font-weight: 800;
  text-decoration: none;
}

.hb-clear a:hover {
  text-decoration: underline;
}

.hb-empty {
  padding: 3rem 1.5rem;
  text-align: center;
  border-radius: 1.5rem;
  border: 1px dashed var(--hb-line);
  background: var(--hb-panel);
}

.hb-empty h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
}

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

.hb-btn {
  display: inline-flex;
  align-items: center;
  min-height: 2.75rem;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  background: var(--hb-voltage);
  color: var(--hb-deep) !important;
  font-weight: 800;
  text-decoration: none;
  transition: transform 0.25s var(--hb-ease);
}

.hb-btn:hover {
  transform: translateY(-2px);
}

/* Product lattice — fluid asymmetric spans */
.hb-lattice {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 0.85rem;
}

.hb-cell {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 0.85rem;
  border-radius: 1.25rem;
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
  opacity: 0;
  transform: translateY(18px);
  transition: border-color 0.3s, box-shadow 0.3s var(--hb-ease), transform 0.35s var(--hb-ease);
}

.hb-cell.is-in {
  opacity: 1;
  transform: none;
  animation: hb-rise 0.55s var(--hb-ease) both;
  animation-delay: calc(var(--ci, 0) * 0.04s);
}

.hb-cell:hover {
  border-color: rgba(0, 212, 170, 0.45);
  box-shadow: 0 20px 48px rgba(0, 212, 170, 0.12);
  transform: translateY(-4px);
}

/* Named span pattern via area classes */
.hb-cell--lead {
  grid-column: span 7;
  grid-row: span 2;
}

.hb-cell--alpha { grid-column: span 5; }
.hb-cell--beta { grid-column: span 4; }
.hb-cell--gamma { grid-column: span 4; }
.hb-cell--delta { grid-column: span 4; }
.hb-cell--epsilon { grid-column: span 6; }

@media (max-width: 1100px) {
  .hb-cell--lead { grid-column: span 12; grid-row: span 1; }
  .hb-cell--alpha,
  .hb-cell--epsilon { grid-column: span 6; }
  .hb-cell--beta,
  .hb-cell--gamma,
  .hb-cell--delta { grid-column: span 4; }
}

@media (max-width: 700px) {
  .hb-lattice {
    grid-template-columns: 1fr 1fr;
  }

  .hb-cell--lead,
  .hb-cell--alpha,
  .hb-cell--beta,
  .hb-cell--gamma,
  .hb-cell--delta,
  .hb-cell--epsilon {
    grid-column: span 1;
    grid-row: span 1;
  }

  .hb-cell--lead {
    grid-column: span 2;
  }
}

.hb-cell-media {
  position: relative;
  display: block;
  flex: 1;
  min-height: 11rem;
  text-decoration: none;
}

.hb-cell--lead .hb-cell-media {
  min-height: 18rem;
}

.hb-hex {
  display: block;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
  background: #051018;
  clip-path: polygon(18% 0, 100% 0, 100% 82%, 82% 100%, 0 100%, 0 18%);
  transition: clip-path 0.45s var(--hb-ease);
}

.hb-cell--lead .hb-hex {
  clip-path: polygon(8% 0, 100% 0, 100% 88%, 92% 100%, 0 100%, 0 10%);
}

.hb-cell--beta .hb-hex,
.hb-cell--delta .hb-hex {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 14% 100%, 0 78%);
}

.hb-cell:hover .hb-hex {
  clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%);
}

.hb-hex img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  transition: transform 0.55s var(--hb-ease), filter 0.4s;
  filter: saturate(0.95) brightness(0.92);
}

.hb-cell:hover .hb-hex img {
  transform: scale(1.07);
  filter: saturate(1.08) brightness(1);
}

.hb-cell-orbit {
  position: absolute;
  inset: 0.5rem;
  border: 1px dashed rgba(0, 212, 170, 0.35);
  clip-path: polygon(14% 0, 100% 0, 100% 86%, 86% 100%, 0 100%, 0 14%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}

.hb-cell:hover .hb-cell-orbit {
  opacity: 1;
  animation: hb-orbit-dash 8s linear infinite;
}

.hb-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  padding: 0.3rem 0.65rem;
  background: var(--hb-flare);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  clip-path: polygon(8% 0, 100% 0, 92% 100%, 0 100%);
}

.hb-cell-meta {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0 0.15rem 0.2rem;
}

.hb-cell-lane {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--hb-ice);
}

.hb-cell-meta h2 {
  margin: 0;
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.hb-cell--lead .hb-cell-meta h2 {
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  font-family: var(--hb-slab);
  font-weight: 600;
}

.hb-cell-meta h2 a {
  color: inherit !important;
  text-decoration: none;
}

.hb-cell-meta h2 a:hover {
  color: var(--hb-voltage) !important;
}

.hb-cell-foot {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  margin-top: 0.35rem;
  flex-wrap: wrap;
}

.hb-cell-foot strong {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--hb-voltage);
}

.hb-cell-foot em {
  font-style: normal;
  font-size: 0.75rem;
  color: var(--hb-mute);
  font-variant-numeric: tabular-nums;
}

.hb-cell-go {
  margin-left: auto;
  display: grid;
  place-items: center;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--hb-line);
  color: var(--hb-ink) !important;
  text-decoration: none;
  font-size: 1rem;
  transition: background 0.25s, color 0.25s, transform 0.25s var(--hb-ease);
}

.hb-cell-go:hover {
  background: var(--hb-flare);
  border-color: var(--hb-flare);
  color: #fff !important;
  transform: rotate(-12deg) scale(1.06);
}

/* Pagination restyle */
.hb-pages {
  margin-top: 2rem;
  text-align: center;
}

.hb-pages-label {
  margin: 0 0 0.85rem;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hb-mute);
}

.hb-pages-inner .catalog-pagination {
  display: flex;
  justify-content: center;
}

.hb-pages-inner .pagination-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.65rem;
  border-radius: 999px;
  background: var(--hb-panel);
  border: 1px solid var(--hb-line);
}

.hb-pages-inner .pagination-btn,
.hb-pages-inner .pagination-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.4rem;
  min-height: 2.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  color: var(--hb-ink) !important;
  text-decoration: none;
  font-family: var(--hb-display);
  font-weight: 700;
  font-size: 0.88rem;
  background: transparent;
  border: 1px solid transparent;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
}

.hb-pages-inner .pagination-btn:hover,
.hb-pages-inner .pagination-num:hover {
  border-color: var(--hb-line);
  background: rgba(255, 255, 255, 0.06);
}

.hb-pages-inner .pagination-num.is-active {
  background: var(--hb-voltage);
  color: var(--hb-deep) !important;
}

.hb-pages-inner .pagination-btn.is-disabled {
  opacity: 0.35;
  pointer-events: none;
}

.hb-pages-inner .pagination-ellipsis {
  color: var(--hb-mute);
  padding: 0 0.25rem;
}

.hb-pages-inner .pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}

@keyframes hb-rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes hb-pulse {
  50% { opacity: 0.55; transform: translateX(8%); }
}

@keyframes hb-orbit-dash {
  to { stroke-dashoffset: -40; }
}

@media (prefers-reduced-motion: reduce) {
  .hb-seg,
  .hb-cell,
  .hb-spectrum-glow {
    animation: none !important;
  }

  .hb-cell {
    opacity: 1;
    transform: none;
  }

  .hb-hex,
  .hb-hex img {
    transition: none;
  }
}
