/**
 * Appily fortythree — Orchard Harvest Index (catalog)
 * Layout: diagonal hero + lane rail + asymmetric mosaic + shop dock
 */

.page-catalog-orchard {
  --harv-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --harv-glass: rgba(255, 252, 247, 0.84);
  --harv-glass-border: rgba(255, 255, 255, 0.58);
  --harv-dark: #142618;
  background: var(--a43-cream);
}
.page-catalog-orchard .page-main { padding-top: 0; }

.a43-harv { padding-bottom: 3.5rem; }

/* ── Reveal ── */
.a43-harv-reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.65s var(--harv-ease), transform 0.65s var(--harv-ease);
}
.a43-harv-reveal.is-visible { opacity: 1; transform: none; }

/* ── Hero ── */
.a43-harv-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2rem, 4.5vw, 3rem) 0 clamp(2.75rem, 5vw, 3.5rem);
  color: #fff;
}
.a43-harv-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(128deg, var(--harv-dark) 0%, #1a3320 42%, var(--a43-green-dark) 68%, #3d6b4f 100%);
  pointer-events: none;
}
.a43-harv-slice {
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 80px;
  background: var(--a43-cream);
  clip-path: polygon(0 100%, 100% 20%, 100% 100%);
}
.a43-harv-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(72px);
  opacity: 0.4;
  animation: a43HarvBlob 14s ease-in-out infinite alternate;
}
.a43-harv-blob--1 {
  width: min(36vw, 320px);
  height: min(36vw, 320px);
  top: -18%;
  right: 8%;
  background: rgba(212, 160, 23, 0.52);
}
.a43-harv-blob--2 {
  width: min(28vw, 240px);
  height: min(28vw, 240px);
  bottom: 0;
  left: -3%;
  background: rgba(196, 220, 200, 0.32);
  animation-delay: -5s;
}
@keyframes a43HarvBlob {
  to { transform: translate(14px, -10px) scale(1.06); }
}

.a43-harv-dial {
  position: absolute;
  top: 18%;
  right: clamp(4%, 10vw, 12%);
  width: min(140px, 17vw);
  aspect-ratio: 1;
  border: 2px dashed rgba(255, 255, 255, 0.16);
  border-radius: 50%;
  animation: a43HarvDial 26s linear infinite;
  pointer-events: none;
}
@keyframes a43HarvDial { to { transform: rotate(360deg); } }

.a43-harv-hero-grid {
  position: relative;
  z-index: 1;
}

.a43-harv-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.74rem;
  color: rgba(255, 255, 255, 0.62);
}
.a43-harv-crumb a {
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none !important;
  font-weight: 600;
  transition: color 0.2s;
}
.a43-harv-crumb a:hover { color: #fcd34d; }
.a43-harv-crumb [aria-current="page"] { color: #fff; font-weight: 700; }

.a43-harv-live {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.32rem 0.75rem;
  margin-bottom: 0.55rem;
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  backdrop-filter: blur(8px);
}
.a43-harv-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #86efac;
  animation: a43HarvLive 2s ease-out infinite;
}
@keyframes a43HarvLive {
  0% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0.55); }
  70% { box-shadow: 0 0 0 8px rgba(134, 239, 172, 0); }
  100% { box-shadow: 0 0 0 0 rgba(134, 239, 172, 0); }
}

.a43-harv-kicker {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #fcd34d;
}
.a43-harv-hero h1 {
  margin: 0 0 0.6rem;
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.5vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.06;
  max-width: 16ch;
}
.a43-harv-hero h1 em {
  font-style: normal;
  background: linear-gradient(120deg, #fcd34d, #bbf7d0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.a43-harv-lede {
  margin: 0 0 1.15rem;
  max-width: 46ch;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.62;
}

.a43-harv-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  max-width: 520px;
  background: var(--harv-glass);
  border: 1px solid var(--harv-glass-border);
  border-radius: 16px;
  backdrop-filter: blur(14px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.a43-harv-stat {
  flex: 1 1 100px;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  padding: 0.8rem 1rem;
  color: var(--a43-ink);
  border-right: 1px solid rgba(20, 38, 24, 0.08);
}
.a43-harv-stat:last-child { border-right: 0; }
.a43-harv-stat strong {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--a43-green-dark);
  line-height: 1;
}
.a43-harv-stat span {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--a43-muted);
}

/* ── Stage ── */
.a43-harv-stage {
  margin-top: -1.75rem;
  position: relative;
  z-index: 2;
}

/* Lane rail */
.a43-harv-rail-wrap {
  margin-bottom: 1rem;
  padding: 0.75rem 0.85rem;
  background: linear-gradient(135deg, var(--harv-dark), #1f3d28);
  border-radius: 18px;
  box-shadow: 0 12px 36px rgba(20, 38, 24, 0.24);
}
.a43-harv-rail-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.65rem;
}
.a43-harv-rail-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 800;
  color: #fff;
}
.a43-harv-rail-cta {
  padding: 0.38rem 0.85rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  font-size: 0.74rem;
  font-weight: 700;
  color: #fff !important;
  text-decoration: none !important;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.a43-harv-rail-cta:hover {
  background: rgba(252, 211, 77, 0.2);
  border-color: rgba(252, 211, 77, 0.4);
  transform: translateY(-1px);
  color: #fcd34d !important;
}

.a43-harv-rail {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: rgba(252, 211, 77, 0.4) transparent;
}
.a43-harv-rail::-webkit-scrollbar { height: 4px; }
.a43-harv-rail::-webkit-scrollbar-thumb {
  background: rgba(252, 211, 77, 0.4);
  border-radius: 4px;
}
.a43-harv-rail-link {
  flex: 0 0 auto;
  scroll-snap-align: start;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.74rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.88) !important;
  text-decoration: none !important;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.a43-harv-rail-link:hover,
.a43-harv-rail-link.is-active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(252, 211, 77, 0.35);
  transform: translateY(-2px);
  color: #fcd34d !important;
}
.a43-harv-rail-icon { font-size: 1rem; line-height: 1; }

/* Mosaic grid */
.a43-harv-mosaic {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}

.a43-harv-lot {
  display: flex;
  flex-direction: column;
  background: var(--a43-surface);
  border: 1px solid var(--a43-border);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 12px 36px rgba(33, 37, 41, 0.08);
  scroll-margin-top: 100px;
  transition: transform 0.3s var(--harv-ease), box-shadow 0.3s, border-color 0.3s;
}
.a43-harv-lot:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 48px rgba(33, 37, 41, 0.12);
  border-color: rgba(212, 160, 23, 0.35);
}
.a43-harv-lot.is-wide {
  grid-column: 1 / -1;
  flex-direction: row;
  align-items: stretch;
}

.a43-harv-lot-band {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.65rem 1rem;
  background: linear-gradient(90deg, var(--harv-dark), #2a4a32);
  color: #fff;
}
.a43-harv-lot-num {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  font-size: 0.68rem;
  font-weight: 800;
  flex-shrink: 0;
}
.a43-harv-lot-icon { font-size: 1.05rem; line-height: 1; }
.a43-harv-lot-band h3 {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-family: var(--font-display);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.a43-harv-lot-band h3 a {
  color: #fff !important;
  text-decoration: none !important;
}
.a43-harv-lot-band h3 a:hover { color: #fcd34d !important; }
.a43-harv-lot-count {
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  background: rgba(252, 211, 77, 0.18);
  border: 1px solid rgba(252, 211, 77, 0.3);
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.a43-harv-lot-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.a43-harv-lot.is-wide .a43-harv-lot-inner {
  flex-direction: row;
  align-items: stretch;
}

.a43-harv-lot-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: var(--a43-cream);
  flex-shrink: 0;
}
.a43-harv-lot.is-wide .a43-harv-lot-media {
  width: min(42%, 320px);
  aspect-ratio: auto;
  min-height: 180px;
}
.a43-harv-lot-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s var(--harv-ease);
}
.a43-harv-lot:hover .a43-harv-lot-media img { transform: scale(1.06); }

.a43-harv-lot-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 0.95rem 1rem 1.05rem;
  min-width: 0;
}

.a43-harv-lot-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  list-style: none;
  margin: 0 0 0.85rem;
  padding: 0;
  flex: 1;
}
.a43-harv-lot-pills a {
  display: inline-block;
  max-width: 100%;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--a43-cream);
  border: 1px solid var(--a43-border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--a43-muted);
  text-decoration: none !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.a43-harv-lot-pills a:hover {
  background: rgba(212, 160, 23, 0.1);
  border-color: rgba(212, 160, 23, 0.35);
  color: var(--a43-orange);
  transform: translateY(-1px);
}
.a43-harv-lot-more {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20, 38, 24, 0.06), rgba(64, 145, 108, 0.1));
  border: 1px dashed rgba(64, 145, 108, 0.3);
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--a43-green-dark);
}

.a43-harv-lot-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  margin-top: auto;
  padding-top: 0.65rem;
  border-top: 1px solid var(--a43-border);
}
.a43-harv-lot-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--a43-green-dark);
  text-decoration: none !important;
  transition: color 0.2s, transform 0.2s;
}
.a43-harv-lot-cta:hover {
  color: var(--a43-orange);
  transform: translateX(4px);
}
.a43-harv-lot-ref {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--a43-muted);
  text-transform: uppercase;
}

/* Shop dock */
.a43-harv-dock {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.3rem;
  background: linear-gradient(135deg, var(--harv-dark), #1f3d28);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(20, 38, 24, 0.24);
  color: #fff;
}
.a43-harv-dock-copy strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 800;
  margin-bottom: 0.25rem;
}
.a43-harv-dock-copy p {
  margin: 0;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.68);
  line-height: 1.45;
  max-width: 42ch;
}
.a43-harv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.75rem 1.35rem;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #fcd34d, #f59e0b);
  color: var(--harv-dark) !important;
  font-weight: 800;
  font-size: 0.88rem;
  text-decoration: none !important;
  white-space: nowrap;
  transition: transform 0.2s, box-shadow 0.2s;
}
.a43-harv-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(252, 211, 77, 0.35);
}

/* ── Responsive ── */
@media (max-width: 820px) {
  .a43-harv-mosaic { grid-template-columns: 1fr; }
  .a43-harv-lot.is-wide {
    flex-direction: column;
    grid-column: auto;
  }
  .a43-harv-lot.is-wide .a43-harv-lot-inner { flex-direction: column; }
  .a43-harv-lot.is-wide .a43-harv-lot-media {
    width: 100%;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }
  .a43-harv-dial { display: none; }
}

@media (max-width: 520px) {
  .a43-harv-stats { flex-direction: column; }
  .a43-harv-stat { border-right: 0; border-bottom: 1px solid rgba(20, 38, 24, 0.08); }
  .a43-harv-stat:last-child { border-bottom: 0; }
  .a43-harv-dock { flex-direction: column; align-items: stretch; }
  .a43-harv-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .a43-harv-reveal { transition: none; opacity: 1; transform: none; }
  .a43-harv-blob, .a43-harv-dial, .a43-harv-live-dot { animation: none !important; }
}
