/**
 * Appily Fortyfour — Harvest Shelf (catalog)
 * Light intro, compass chips, horizontal aisle cards.
 */

.page-catalog-shelf {
  --sh-forest: #1f3d32;
  --sh-moss: #3d5c4e;
  --sh-gold: #c4a35a;
  --sh-gold-soft: #f3e6c4;
  --sh-cream: #faf9f6;
  --sh-paper: #f4f4f5;
  --sh-ink: #18181b;
  --sh-muted: #71717a;
  --sh-ease: cubic-bezier(0.22, 1, 0.36, 1);
  background:
    radial-gradient(840px 380px at 92% -6%, rgba(196, 163, 90, 0.1), transparent 55%),
    radial-gradient(560px 280px at 4% 14%, rgba(31, 61, 50, 0.06), transparent 50%),
    linear-gradient(180deg, var(--sh-cream) 0%, var(--sh-paper) 54%, #eef0ee 100%);
  color: var(--sh-ink);
}

.page-catalog-shelf .page-main { padding-top: 0; }

.page-catalog-shelf h1,
.page-catalog-shelf h2,
.page-catalog-shelf h3 {
  font-family: var(--a44-font-display);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: inherit;
}

.a44-shelf { padding-bottom: 3rem; }

/* ——— Reveal ——— */
.a44-shelf-reveal,
.page-catalog-shelf .a44-conserv-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s var(--sh-ease), transform 0.6s var(--sh-ease);
}
.a44-shelf-reveal.is-visible,
.page-catalog-shelf .a44-conserv-reveal.is-visible {
  opacity: 1;
  transform: none;
}

.a44-shelf-badge,
.page-catalog-shelf .a44-conserv-badge {
  display: inline-block;
  margin-bottom: 0.35rem;
  padding: 0.28rem 0.6rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(31, 61, 50, 0.08);
  color: var(--sh-moss);
}

/* ——— Intro ——— */
.a44-shelf-intro {
  position: relative;
  padding: clamp(1.75rem, 4vw, 2.75rem) 0 clamp(1rem, 2.5vw, 1.5rem);
  overflow: hidden;
}
.a44-shelf-intro-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.a44-shelf-orb {
  position: absolute;
  top: -40px;
  right: 8%;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: rgba(196, 163, 90, 0.18);
  filter: blur(55px);
  animation: a44ShelfOrb 11s ease-in-out infinite alternate;
}
.a44-shelf-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(31, 61, 50, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(31, 61, 50, 0.04) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(180deg, #000 40%, transparent 95%);
}
@keyframes a44ShelfOrb {
  from { transform: translate(0, 0); }
  to { transform: translate(-12px, 10px); }
}

.a44-shelf-intro-grid {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  align-items: center;
}
.a44-shelf-crumb,
.page-catalog-shelf .a44-conserv-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sh-muted);
}
.a44-shelf-crumb a,
.page-catalog-shelf .a44-conserv-crumb a {
  color: var(--sh-forest);
  text-decoration: none;
}
.a44-shelf-crumb a:hover,
.page-catalog-shelf .a44-conserv-crumb a:hover {
  text-decoration: underline;
}
.a44-shelf-crumb [aria-current="page"],
.page-catalog-shelf .a44-conserv-crumb [aria-current="page"] {
  color: var(--sh-ink);
  font-weight: 700;
}
.a44-shelf-eyebrow {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--sh-muted);
}
.a44-shelf-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #7cb98a;
  box-shadow: 0 0 0 0 rgba(124, 185, 138, 0.55);
  animation: a44ShelfPulse 2.2s ease-out infinite;
}
@keyframes a44ShelfPulse {
  0% { box-shadow: 0 0 0 0 rgba(124, 185, 138, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(124, 185, 138, 0); }
  100% { box-shadow: 0 0 0 0 rgba(124, 185, 138, 0); }
}
.a44-shelf-intro h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 4.2vw, 2.75rem);
  font-weight: 800;
  max-width: 20ch;
}
.a44-shelf-intro h1 em {
  font-style: normal;
  color: var(--sh-forest);
}
.a44-shelf-lede,
.page-catalog-shelf .a44-conserv-lede {
  margin: 0 0 0.85rem;
  max-width: 44ch;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--sh-muted);
}

.a44-shelf-stats,
.page-catalog-shelf .a44-conserv-stats {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}
.a44-shelf-stats li,
.page-catalog-shelf .a44-conserv-stats li {
  display: grid;
  text-align: center;
  min-width: 72px;
  padding: 0.55rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(24, 24, 27, 0.06);
  box-shadow: var(--a44-shadow);
}
.a44-shelf-stats strong,
.page-catalog-shelf .a44-conserv-stats strong {
  font-family: var(--a44-font-display);
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--sh-forest);
  line-height: 1.1;
}
.a44-shelf-stats span,
.page-catalog-shelf .a44-conserv-stats span {
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--sh-muted);
}

/* Glyph mosaic */
.a44-shelf-glyphs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.45rem;
  max-width: 200px;
}
.a44-shelf-glyph {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(24, 24, 27, 0.06);
  box-shadow: var(--a44-shadow);
  font-size: 1.2rem;
  line-height: 1;
  animation: a44ShelfGlyphIn 0.5s var(--sh-ease) backwards;
  animation-delay: calc(var(--gi, 0) * 0.06s);
}
@keyframes a44ShelfGlyphIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: none; }
}

/* ——— Marquee ——— */
.a44-shelf-marquee,
.page-catalog-shelf .a44-conserv-ticker {
  margin-bottom: 1.25rem;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(24, 24, 27, 0.06);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
  background: rgba(255, 255, 255, 0.6);
  overflow: hidden;
}
.a44-shelf-marquee-track,
.page-catalog-shelf .a44-conserv-ticker-track {
  display: flex;
  gap: 2rem;
  animation: a44ShelfMarquee 28s linear infinite;
  white-space: nowrap;
}
@keyframes a44ShelfMarquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
.a44-shelf-marquee-track span,
.page-catalog-shelf .a44-conserv-ticker-track span {
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--sh-moss);
}

/* ——— Compass ——— */
.a44-shelf-stage {
  padding-bottom: 1rem;
}
.a44-shelf-compass,
.page-catalog-shelf .a44-conserv-compass {
  position: sticky;
  top: var(--a44-header-offset, 64px);
  z-index: 25;
  margin-bottom: 1.25rem;
  padding: 0.65rem 0;
  background: rgba(250, 249, 246, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(24, 24, 27, 0.06);
}
.a44-shelf-compass-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem;
}
.a44-shelf-compass-link,
.page-catalog-shelf .a44-conserv-compass-link {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(24, 24, 27, 0.08);
  box-shadow: var(--a44-shadow);
  text-decoration: none !important;
  color: inherit;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  transition: transform 0.22s var(--sh-ease), background 0.22s ease, border-color 0.22s ease;
}
.a44-shelf-compass-link:hover,
.page-catalog-shelf .a44-conserv-compass-link:hover {
  transform: translateY(-2px);
  border-color: rgba(31, 61, 50, 0.2);
}
.a44-shelf-compass-link.is-active,
.page-catalog-shelf .a44-conserv-compass-link.is-active {
  background: var(--sh-forest);
  border-color: var(--sh-forest);
  color: #fff;
  box-shadow: 0 8px 20px rgba(31, 61, 50, 0.2);
}
.a44-shelf-compass-link.is-active .a44-shelf-compass-count,
.page-catalog-shelf .a44-conserv-compass-link.is-active .a44-conserv-compass-count {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
.a44-shelf-compass-glyph,
.page-catalog-shelf .a44-conserv-compass-glyph {
  font-size: 0.95rem;
  line-height: 1;
}
.a44-shelf-compass-count,
.page-catalog-shelf .a44-conserv-compass-count {
  padding: 0.15rem 0.4rem;
  border-radius: 6px;
  font-size: 0.62rem;
  font-weight: 800;
  background: rgba(31, 61, 50, 0.08);
  color: var(--sh-forest);
}
.a44-shelf-compass-link--all,
.page-catalog-shelf .a44-conserv-compass-link--all {
  border-color: rgba(196, 163, 90, 0.35);
}

/* ——— Aisle cards ——— */
.a44-shelf-deck,
.page-catalog-shelf .a44-conserv-deck {
  display: block;
}

.a44-shelf-aisles-head,
.page-catalog-shelf .a44-conserv-vine-head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}
.a44-shelf-aisles-head h2,
.page-catalog-shelf .a44-conserv-vine-head h2 {
  margin: 0;
  font-size: 1.35rem;
}
.a44-shelf-shop-cta,
.page-catalog-shelf .a44-conserv-vine-cta {
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sh-forest);
  text-decoration: none;
}
.a44-shelf-shop-cta:hover,
.page-catalog-shelf .a44-conserv-vine-cta:hover {
  text-decoration: underline;
}

.a44-shelf-aisles,
.page-catalog-shelf .a44-conserv-vine {
  display: grid;
  gap: 1rem;
}

.a44-shelf-aisle,
.page-catalog-shelf .a44-conserv-lane {
  position: relative;
  display: grid;
  grid-template-columns: minmax(200px, 280px) minmax(0, 1fr);
  gap: 1rem;
  align-items: stretch;
  padding: 1rem 1.05rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(24, 24, 27, 0.06);
  box-shadow: var(--a44-shadow);
  transition: transform 0.28s var(--sh-ease), box-shadow 0.28s ease;
  animation: a44ShelfAisleIn 0.5s var(--sh-ease) backwards;
  animation-delay: calc(var(--lane-i, 0) * 0.06s);
}
@keyframes a44ShelfAisleIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
.a44-shelf-aisle:hover,
.page-catalog-shelf .a44-conserv-lane:hover {
  transform: translateY(-3px);
  box-shadow: var(--a44-shadow-hover);
}
.a44-shelf-aisle-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  padding: 0.25rem 0.5rem;
  border-radius: 8px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  background: var(--sh-forest);
  color: var(--sh-gold);
}

.a44-shelf-aisle-media,
.page-catalog-shelf .a44-conserv-lane-media {
  position: relative;
  display: block;
  border-radius: 16px;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  background: var(--sh-paper);
}
.a44-shelf-aisle-media img,
.page-catalog-shelf .a44-conserv-lane-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s var(--sh-ease);
}
.a44-shelf-aisle-media:hover img,
.page-catalog-shelf .a44-conserv-lane-media:hover img {
  transform: scale(1.04);
}
.a44-shelf-aisle-glyph,
.page-catalog-shelf .a44-conserv-lane-glyph {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.92);
  font-size: 1.1rem;
  line-height: 1;
  box-shadow: var(--a44-shadow);
}

.a44-shelf-aisle-count,
.page-catalog-shelf .a44-conserv-lane-count {
  display: inline-block;
  margin-bottom: 0.25rem;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--sh-muted);
}
.a44-shelf-aisle-head h3,
.page-catalog-shelf .a44-conserv-lane-head h3 {
  margin: 0 0 0.65rem;
  font-size: 1.15rem;
}
.a44-shelf-aisle-head h3 a,
.page-catalog-shelf .a44-conserv-lane-head h3 a {
  color: inherit;
  text-decoration: none;
}
.a44-shelf-aisle-head h3 a:hover,
.page-catalog-shelf .a44-conserv-lane-head h3 a:hover {
  color: var(--sh-forest);
}

.a44-shelf-aisle-fan,
.page-catalog-shelf .a44-conserv-lane-fan {
  display: flex;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}
.a44-shelf-aisle-thumb,
.page-catalog-shelf .a44-conserv-lane-thumb {
  flex: 0 0 52px;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid #fff;
  box-shadow: var(--a44-shadow);
  transition: transform 0.22s var(--sh-ease);
}
.a44-shelf-aisle-thumb:hover,
.page-catalog-shelf .a44-conserv-lane-thumb:hover {
  transform: translateY(-3px) scale(1.05);
}
.a44-shelf-aisle-thumb img,
.page-catalog-shelf .a44-conserv-lane-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.a44-shelf-aisle-chips,
.page-catalog-shelf .a44-conserv-lane-chips {
  list-style: none;
  margin: 0 0 0.75rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
.a44-shelf-aisle-chips a,
.page-catalog-shelf .a44-conserv-lane-chips a {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  border-radius: 8px;
  background: var(--sh-paper);
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--sh-forest);
  text-decoration: none;
  border: 1px solid rgba(24, 24, 27, 0.06);
}
.a44-shelf-aisle-chips a:hover,
.page-catalog-shelf .a44-conserv-lane-chips a:hover {
  background: rgba(31, 61, 50, 0.08);
}
.a44-shelf-aisle-more,
.page-catalog-shelf .a44-conserv-lane-more {
  display: inline-block;
  padding: 0.28rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--sh-muted);
}

.a44-shelf-aisle-foot,
.page-catalog-shelf .a44-conserv-lane-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.a44-shelf-aisle-btn,
.page-catalog-shelf .a44-conserv-lane-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 10px;
  background: var(--sh-forest);
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: transform 0.22s var(--sh-ease), background 0.22s ease;
}
.a44-shelf-aisle-btn:hover,
.page-catalog-shelf .a44-conserv-lane-btn:hover {
  transform: translateY(-2px);
  background: #163029;
}
.a44-shelf-aisle-ref,
.page-catalog-shelf .a44-conserv-lane-ref {
  font-family: ui-monospace, monospace;
  font-size: 0.68rem;
  color: var(--sh-muted);
}

/* Tone accents on aisle border */
.a44-shelf-aisle.tone-veg,
.page-catalog-shelf .a44-conserv-lane.tone-veg { border-top: 3px solid var(--sh-gold); }
.a44-shelf-aisle.tone-herb,
.page-catalog-shelf .a44-conserv-lane.tone-herb { border-top: 3px solid #4f9a78; }
.a44-shelf-aisle.tone-fruit,
.page-catalog-shelf .a44-conserv-lane.tone-fruit { border-top: 3px solid #d97a3d; }
.a44-shelf-aisle.tone-flower,
.page-catalog-shelf .a44-conserv-lane.tone-flower { border-top: 3px solid #d67aa8; }
.a44-shelf-aisle.tone-spice,
.page-catalog-shelf .a44-conserv-lane.tone-spice { border-top: 3px solid #c45c2a; }
.a44-shelf-aisle.tone-forage,
.page-catalog-shelf .a44-conserv-lane.tone-forage { border-top: 3px solid #8aa53a; }
.a44-shelf-aisle.tone-other,
.page-catalog-shelf .a44-conserv-lane.tone-other { border-top: 3px solid #5a7d8f; }

.a44-shelf-empty,
.page-catalog-shelf .a44-conserv-empty {
  text-align: center;
  padding: 2rem 1.5rem;
  border-radius: 22px;
  background: #fff;
  border: 1px dashed rgba(31, 61, 50, 0.2);
  box-shadow: var(--a44-shadow);
}
.a44-shelf-empty h3,
.page-catalog-shelf .a44-conserv-empty h3 {
  margin: 0 0 0.5rem;
}
.a44-shelf-empty p,
.page-catalog-shelf .a44-conserv-empty p {
  margin: 0 0 1rem;
  color: var(--sh-muted);
}

/* ——— Dock ——— */
.a44-shelf-dock,
.page-catalog-shelf .a44-conserv-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.5rem;
  padding: 1.15rem 1.2rem;
  border-radius: 22px;
  background: linear-gradient(145deg, #163029, #1f3d32);
  color: #fff;
  box-shadow: 0 14px 36px rgba(31, 61, 50, 0.25);
}
.a44-shelf-dock-copy strong,
.page-catalog-shelf .a44-conserv-dock-copy strong {
  display: block;
  font-size: 1rem;
  margin-bottom: 0.25rem;
}
.a44-shelf-dock-copy p,
.page-catalog-shelf .a44-conserv-dock-copy p {
  margin: 0;
  font-size: 0.86rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.75);
  max-width: 42ch;
}
.a44-shelf-btn,
.page-catalog-shelf .a44-conserv-btn {
  display: inline-flex;
  align-items: center;
  padding: 0.78rem 1.2rem;
  border-radius: 12px;
  background: var(--sh-gold);
  color: var(--sh-forest) !important;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  transition: transform 0.22s var(--sh-ease);
}
.a44-shelf-btn:hover,
.page-catalog-shelf .a44-conserv-btn:hover {
  transform: translateY(-2px);
}

/* ——— Responsive ——— */
@media (max-width: 900px) {
  .a44-shelf-aisle,
  .page-catalog-shelf .a44-conserv-lane {
    grid-template-columns: 1fr;
  }
  .a44-shelf-aisle-media,
  .page-catalog-shelf .a44-conserv-lane-media {
    aspect-ratio: 16 / 10;
  }
  .a44-shelf-glyphs {
    max-width: none;
    grid-template-columns: repeat(auto-fill, minmax(44px, 1fr));
  }
}

@media (max-width: 640px) {
  .a44-shelf-intro-grid {
    flex-direction: column;
    align-items: stretch;
  }
  .a44-shelf-compass-inner {
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 0.35rem;
    -webkit-overflow-scrolling: touch;
  }
  .a44-shelf-dock,
  .page-catalog-shelf .a44-conserv-dock {
    flex-direction: column;
    text-align: center;
  }
  .a44-shelf-dock-copy p,
  .page-catalog-shelf .a44-conserv-dock-copy p {
    margin-inline: auto;
  }
  .a44-shelf-btn,
  .page-catalog-shelf .a44-conserv-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .a44-shelf-reveal,
  .page-catalog-shelf .a44-conserv-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .a44-shelf-orb,
  .a44-shelf-pulse {
    animation: none !important;
  }
  .a44-shelf-marquee-track,
  .page-catalog-shelf .a44-conserv-ticker-track {
    animation: none;
  }
  .a44-shelf-glyph,
  .a44-shelf-aisle {
    animation: none;
  }
}
