/* Lusen Plants — Products category catalog */
.lusen-pc {
  display: flex;
  align-items: flex-start;
  gap: 32px;
  margin: 8px 0 40px;
}
.lusen-pc-nav {
  flex: 0 0 300px;
  width: 300px;
  position: sticky;
  top: 96px;
}
.lusen-pc-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.lusen-pc-nav li {
  margin: 0 0 2px;
}
.lusen-pc-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 10px 12px;
  text-decoration: none;
  color: inherit;
  border-left: 3px solid transparent;
  min-height: 44px;
  box-sizing: border-box;
}
.lusen-pc-label {
  flex: 1 1 auto;
  min-width: 0;
}
.lusen-pc-en,
.lusen-pc-zh {
  white-space: nowrap;
}
.lusen-pc-nav-item--l2 > .lusen-pc-nav-link {
  padding-left: 32px;
}
.lusen-pc-nav-item--l3 > .lusen-pc-nav-link {
  padding-left: 52px;
  font-size: 0.92em;
  min-height: 40px;
  padding-top: 8px;
  padding-bottom: 8px;
}
.lusen-pc-nav-link:hover {
  background: rgba(0, 0, 0, 0.04);
}
.lusen-pc-nav-link.is-active {
  font-weight: 700;
  border-left-color: currentColor;
  background: rgba(0, 0, 0, 0.04);
}
.lusen-pc-count {
  flex: 0 0 auto;
  white-space: nowrap;
  font-weight: 500;
  opacity: 0.65;
  font-size: 0.9em;
  line-height: 1.35;
  padding-top: 0.15em;
}
.lusen-pc-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
  min-width: 0;
}
.lusen-pc-card {
  margin: 0;
  min-width: 0;
}
.lusen-pc-photo {
  display: block;
  margin: 0 0 12px;
}
.lusen-pc-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.lusen-pc-ph {
  width: 100%;
  aspect-ratio: 3 / 4;
  background: #f0f0f0;
}
.lusen-pc-title {
  margin: 0 0 6px;
  font-size: 1.1rem;
  line-height: 1.35;
}
.lusen-pc-title a {
  text-decoration: none;
  color: inherit;
}
.lusen-pc-title a:hover {
  text-decoration: underline;
}
.lusen-pc-latin {
  margin: 0 0 8px;
  font-size: 0.95rem;
}
.lusen-pc-more {
  margin: 0;
}
.lusen-pc-empty {
  grid-column: 1 / -1;
}
@media (max-width: 900px) {
  .lusen-pc-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 781px) {
  .lusen-pc {
    flex-direction: column;
    gap: 20px;
  }
  .lusen-pc-nav {
    flex: none;
    width: 100%;
    max-width: 100%;
    position: static;
    top: auto;
  }
}
@media (max-width: 520px) {
  .lusen-pc-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

.lusen-pc-nav-sub {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Server-rendered range filter (also used when JS updates data-current) */
.lusen-pc[data-current="nursery"] .lusen-pc-card[data-range="flowers"],
.lusen-pc[data-current="nursery"] .lusen-pc-card[data-range="flowers-large"],
.lusen-pc[data-current="nursery"] .lusen-pc-card[data-range="flowers-small"],
.lusen-pc[data-current="flowers"] .lusen-pc-card[data-range="nursery"],
.lusen-pc[data-current="flowers-large"] .lusen-pc-card:not([data-range="flowers-large"]),
.lusen-pc[data-current="flowers-small"] .lusen-pc-card:not([data-range="flowers-small"]) {
  display: none;
}

/* 2026-11-16: Products desktop — optically shift the 80% column left
   so the light nav + heavy photo grid feels balanced. Other pages unchanged.
   Rollback: restore from /root/lusen-plants-20261115/css-before-products-left-shift-20261116/ */
@media (min-width: 782px) {
  body.page-id-9 main.post-page-area.is-layout-constrained > .wp-block-columns {
    margin-left: max(0px, calc((100% - 80%) / 2 - 64px)) !important;
    margin-right: auto !important;
  }
}


/* Russian text can wrap at word boundaries, counts always remain a separate flex item. */
.lusen-lang-ru .lusen-pc-label { overflow-wrap:normal; word-break:normal; }
.lusen-lang-ru .lusen-pc-count { white-space:nowrap; flex-shrink:0; }
