/* ==========================================================================
   Logoland 2.7 — Catalog
   Navy cover with the table of contents, a sticky category bar with instant
   search, and one numbered chapter per category with a 4-column product grid.
   Loaded only on the Catalog template, after page-hero.css.
   ========================================================================== */
.lk-catalog { --lk-top: 90px; --lk-bar: 74px; }

/* ---------- Cover ---------- */
.lk-hero { padding-bottom: 72px; }
.lk-hero .lp-hero__layout { align-items: center; }
.lk-stats { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 0; margin: 44px 0 0; padding: 26px 0 0; border-top: 1px solid rgba(124, 196, 245, .2); list-style: none; }
.lk-stats li { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0 34px; border-left: 1px solid rgba(124, 196, 245, .2); }
.lk-stats li:first-child { padding-left: 0; border-left: 0; }
.lk-stats strong { color: #fff; font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.03em; white-space: nowrap; }
.lk-stats span { color: #9fb4d1; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; }
.lk-hero .lp-hero__dots { left: auto; right: 48px; bottom: 36px; -webkit-mask-image: linear-gradient(270deg, #000, transparent); mask-image: linear-gradient(270deg, #000, transparent); }

.lk-toc { position: relative; padding: 30px 28px 22px; border: 1px solid rgba(124, 196, 245, .22); border-radius: 24px; background: rgba(3, 34, 78, .78); box-shadow: 0 40px 70px -40px rgba(0, 0, 0, .75); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.lk-toc::before { content: ''; position: absolute; left: 28px; right: 28px; top: 0; height: 3px; border-radius: 0 0 3px 3px; background: var(--lb-line-brand); }
.lk-toc__title { margin: 0 0 12px; color: var(--lb-blue-light); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lk-toc ol { margin: 0; padding: 0; list-style: none; }
.lk-toc li { margin: 0; border-top: 1px solid rgba(124, 196, 245, .14); }
.lk-toc li:first-child { border-top: 0; }
.lk-toc a { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; padding: 13px 4px; color: #fff; font-size: 15px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; transition: color .18s, padding .18s; }
.lk-toc a:hover { padding-left: 10px; color: var(--lb-gold); }
.lk-toc__num { color: var(--lb-gold); font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.lk-toc__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-toc__count { min-width: 30px; padding: 4px 9px; border-radius: 999px; background: rgba(79, 179, 242, .16); color: #cfe6fb; font-size: 11.5px; font-weight: 800; text-align: center; }
.lk-toc a .lx-icon { color: rgba(255, 255, 255, .45); transition: color .18s, transform .18s; }
.lk-toc a:hover .lx-icon { color: var(--lb-gold); transform: translateX(3px); }

/* ---------- Sticky category bar ---------- */
.lk-bar { position: sticky; top: var(--lk-top); z-index: 40; scroll-margin-top: var(--lk-top); border-bottom: 1px solid var(--lb-line); background: rgba(255, 255, 255, .97); -webkit-backdrop-filter: saturate(1.4) blur(10px); backdrop-filter: saturate(1.4) blur(10px); transition: box-shadow .2s; }
.lk-bar.is-stuck { box-shadow: 0 14px 30px -24px rgba(2, 31, 71, .5); }
.lk-bar__inner { position: relative; display: flex; align-items: center; gap: 24px; min-height: var(--lk-bar); }
.lk-chips { position: relative; display: flex; flex: 1 1 auto; gap: 8px; min-width: 0; overflow-x: auto; padding: 14px 2px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.lk-chips::-webkit-scrollbar { display: none; }
.lk-chip { display: inline-flex; flex-shrink: 0; align-items: center; gap: 8px; min-height: 40px; padding: 0 8px 0 16px; border: 1px solid #d8e1ec; border-radius: 999px; background: #fff; color: var(--lb-navy); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; transition: background .18s, border-color .18s, color .18s, opacity .18s; }
.lk-chip span { min-width: 26px; padding: 4px 7px; border-radius: 999px; background: var(--lb-sky); color: var(--lb-blue-ink); font-size: 11px; font-weight: 800; text-align: center; }
.lk-chip:hover { border-color: var(--lb-navy); color: var(--lb-navy); text-decoration: none; }
.lk-chip.is-active { border-color: var(--lb-navy); background: var(--lb-navy); color: #fff; }
.lk-chip.is-active span { background: var(--lb-gold); color: var(--lb-navy); }
.lk-chip.is-empty { opacity: .45; pointer-events: none; }
.lk-search { position: relative; flex: 0 0 280px; margin: 0; }
.lk-search__icon { position: absolute; left: 16px; top: 50%; color: var(--lb-muted); transform: translateY(-50%); pointer-events: none; }
.lk-search input[type="search"] { display: block; width: 100%; height: 46px; margin: 0; padding: 0 44px 0 46px; border: 1px solid #d5dfeb; border-radius: 999px; background: #f5f8fc; color: var(--lb-navy); font: 600 14px/1 var(--lb-display); box-shadow: none; -webkit-appearance: none; appearance: none; transition: border-color .18s, background .18s, box-shadow .18s; }
.lk-search input[type="search"]::-webkit-search-cancel-button { display: none; }
.lk-search input[type="search"]::placeholder { color: #7d8ba0; font-weight: 500; }
.lk-search input[type="search"]:focus { border-color: var(--lb-blue); background: #fff; outline: none; box-shadow: 0 0 0 4px rgba(0, 136, 224, .14); }
.lk-search__clear { position: absolute; right: 6px; top: 50%; display: grid; place-items: center; width: 34px; height: 34px; padding: 0; border: 0; border-radius: 50%; background: transparent; color: var(--lb-muted); cursor: pointer; transform: translateY(-50%); }
.lk-search__clear:hover { background: var(--lb-sky); color: var(--lb-navy); }
.lk-search__clear[hidden], .lk-search-toggle[hidden] { display: none; }
.lk-search-toggle { display: none; }

/* ---------- Chapters ---------- */
.lk-body { padding: 18px 0 72px; }
.lk-authored { max-width: 820px; margin: 40px 0 0; }
.lk-status { margin: 24px 0 0; color: var(--lb-muted); font-size: 13px; font-weight: 600; }
.lk-chapter { padding-top: 56px; scroll-margin-top: calc(var(--lk-top) + var(--lk-bar) - 24px); }
.lk-chapter[hidden] { display: none; }
.lk-chapter + .lk-chapter { margin-top: 18px; border-top: 1px solid var(--lb-line); }
.lk-chapter__head { display: grid; grid-template-columns: 148px minmax(0, 1fr) auto; align-items: center; gap: 30px; margin-bottom: 28px; }
.lk-chapter__img { overflow: hidden; aspect-ratio: 4 / 3; border-radius: 18px; background: var(--lb-mist); box-shadow: 0 18px 34px -26px rgba(2, 31, 71, .6); }
.lk-chapter__img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.lk-chapter__num { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; color: var(--lb-blue-ink); font-size: 10.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.lk-chapter__num span { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--lb-gold); color: var(--lb-navy); font-size: 11px; letter-spacing: 0; }
.lk-chapter h2 { margin: 0; color: var(--lb-navy); font-size: clamp(26px, 2.3vw, 34px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; }
.lk-chapter__copy > p:last-child { max-width: 620px; margin: 10px 0 0; color: var(--lb-muted); font-size: 14.5px; line-height: 1.6; }
.lk-chapter__aside { display: flex; flex-direction: column; align-items: flex-end; gap: 10px; text-align: right; }
.lk-chapter__count { margin: 0; color: var(--lb-muted); font-size: 13px; font-weight: 600; }
.lk-chapter__count strong { color: var(--lb-navy); font-size: 22px; font-weight: 800; }
.lk-chapter__more { display: inline-flex; align-items: center; gap: 8px; color: var(--lb-blue-ink); font-size: 13px; font-weight: 700; white-space: nowrap; text-decoration: none; }
.lk-chapter__more:hover { color: var(--lb-navy); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Product cards ---------- */
.lk-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 18px; }
.lk-card { min-width: 0; margin: 0; }
.lk-card[hidden] { display: none; }
.lk-card__link { display: flex; flex-direction: column; height: 100%; overflow: hidden; border: 1px solid var(--lb-line); border-radius: 18px; background: #fff; color: inherit; text-decoration: none; transition: border-color .2s, box-shadow .2s, transform .2s; }
.lk-card__link:hover { border-color: #b8d6f2; box-shadow: 0 26px 44px -30px rgba(2, 31, 71, .45); transform: translateY(-4px); text-decoration: none; }
.lk-card__media { position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden; background: #f4f7fb; }
.lk-card__media img { display: block; width: 100%; height: 100%; padding: 7%; object-fit: contain; mix-blend-mode: multiply; transition: transform .35s ease; }
.lk-card__link:hover .lk-card__media img { transform: scale(1.05); }
.lk-card__view { position: absolute; left: 50%; bottom: 14px; display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px; background: var(--lb-navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; opacity: 0; transform: translate(-50%, 8px); transition: opacity .2s, transform .2s; }
.lk-card__link:hover .lk-card__view, .lk-card__link:focus-visible .lk-card__view { opacity: 1; transform: translate(-50%, 0); }
.lk-card__body { display: flex; flex: 1; flex-direction: column; gap: 7px; padding: 14px 16px 16px; }
.lk-card__sku { color: var(--lb-muted); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.lk-catalog .lk-card__title { display: -webkit-box; overflow: hidden; margin: 0; color: var(--lb-navy); font-size: 14.5px; font-weight: 700; line-height: 1.38; letter-spacing: -.01em; -webkit-box-orient: vertical; -webkit-line-clamp: 2; min-height: 2.76em; }
.lk-card__link:hover .lk-card__title { color: var(--lb-blue-ink); }
.lk-card__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; border-top: 1px solid #edf1f6; }
.lk-card__price { color: var(--lb-navy); font-size: 15.5px; font-weight: 800; letter-spacing: -.01em; white-space: nowrap; }
.lk-card__price .woocommerce-Price-amount { color: inherit; font-weight: inherit; }
.lk-card__price small { color: var(--lb-muted); font-size: 11px; font-weight: 600; letter-spacing: 0; }
.lk-card__price--quote { color: var(--lb-blue-ink); font-size: 13px; }
.lk-card__moq { padding: 5px 10px; border-radius: 999px; background: var(--lb-sky); color: var(--lb-blue-ink); font-size: 11px; font-weight: 800; white-space: nowrap; }

/* ---------- Empty state & note ---------- */
.lk-empty { max-width: 640px; margin: 64px auto 0; padding: 48px 40px; border: 1px dashed #c9d6e6; border-radius: 24px; background: var(--lb-mist); text-align: center; }
.lk-empty[hidden] { display: none; }
.lk-empty__icon { display: inline-grid; place-items: center; width: 60px; height: 60px; margin-bottom: 18px; border-radius: 50%; background: #fff; color: var(--lb-blue-ink); box-shadow: 0 10px 24px -16px rgba(2, 31, 71, .5); }
.lk-empty h2 { margin: 0; color: var(--lb-navy); font-size: 24px; font-weight: 800; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lk-empty p { margin: 12px auto 0; color: var(--lb-muted); font-size: 14.5px; line-height: 1.6; }
.lk-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.lk-note { max-width: 760px; margin: 56px 0 0; padding-top: 22px; border-top: 1px solid var(--lb-line); color: var(--lb-muted); font-size: 12.5px; line-height: 1.6; }

/* ---------- Responsive ---------- */
@media (max-width: 1240px) {
    .lk-stats li { padding: 0 24px; }
    .lk-stats strong { font-size: 26px; }
}
@media (max-width: 1240px) {
    .lk-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1100px) {
    .lk-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
    .lk-search { flex-basis: 250px; }
}
@media (max-width: 1000px) {
    .lk-toc ol { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
    .lk-toc li:nth-child(2) { border-top: 0; }
}
@media (max-width: 860px) {
    .lk-chapter__head { grid-template-columns: 116px minmax(0, 1fr); gap: 22px; }
    .lk-chapter__aside { grid-column: 1 / -1; flex-direction: row; align-items: center; justify-content: space-between; text-align: left; }
    .lk-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px 0; }
    .lk-stats li:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 760px) {
    .lk-catalog { --lk-top: 72px; --lk-bar: 64px; }
    .lk-bar__inner { gap: 10px; }
    .lk-chips { padding: 12px 0; }
    .lk-chip { min-height: 38px; font-size: 12.5px; }
    .lk-search { flex-basis: 150px; }
    .lk-bar.is-ready .lk-search { position: absolute; left: 0; right: 54px; top: 50%; display: none; transform: translateY(-50%); }
    .lk-bar.is-ready.is-searching .lk-search { display: block; }
    .lk-bar.is-searching .lk-chips { visibility: hidden; }
    .lk-search-toggle { display: grid; flex-shrink: 0; place-items: center; width: 44px; height: 44px; margin-left: auto; padding: 0; border: 1px solid #d5dfeb; border-radius: 50%; background: #fff; color: var(--lb-navy); cursor: pointer; }
    .lk-search-toggle__close, .lk-bar.is-searching .lk-search-toggle__open { display: none; }
    .lk-bar.is-searching .lk-search-toggle__close { display: block; }
    .lk-bar.is-searching .lk-search-toggle { border-color: var(--lb-navy); background: var(--lb-navy); color: #fff; }
    .lk-search-toggle .lx-icon { display: block; }
}
@media (max-width: 700px) {
    .lk-hero { padding-bottom: 44px; }
    .lk-stats { margin-top: 32px; padding-top: 22px; }
    .lk-stats li { padding: 0 18px; }
    .lk-stats strong { font-size: 24px; }
    .lk-stats span { font-size: 10px; }
    .lk-toc { display: none; }
    .lk-body { padding: 4px 0 48px; }
    .lk-status { margin-top: 18px; font-size: 12.5px; }
    .lk-chapter { padding-top: 40px; }
    .lk-chapter__head { grid-template-columns: 84px minmax(0, 1fr); gap: 16px; margin-bottom: 20px; }
    .lk-chapter__img { border-radius: 14px; }
    .lk-chapter h2 { font-size: 23px; }
    .lk-chapter__copy > p:last-child { display: none; }
    .lk-chapter__num { margin-bottom: 6px; font-size: 9.5px; }
    .lk-chapter__num span { width: 26px; height: 26px; font-size: 10px; }
    .lk-chapter__count strong { font-size: 18px; }
    .lk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
    .lk-card__link { border-radius: 14px; }
    .lk-card__body { gap: 6px; padding: 12px 12px 14px; }
    .lk-card__sku { font-size: 9.5px; letter-spacing: .08em; }
    .lk-catalog .lk-card__title { font-size: 13.5px; line-height: 1.35; min-height: 2.7em; }
    .lk-card__foot { flex-direction: column; align-items: flex-start; gap: 6px; padding-top: 10px; }
    .lk-card__price { font-size: 14.5px; }
    .lk-card__moq { padding: 4px 8px; font-size: 10px; }
    .lk-card__view { display: none; }
    .lk-empty { margin-top: 40px; padding: 34px 22px; }
    .lk-empty h2 { font-size: 20px; }
    .lk-note { margin-top: 40px; }
}
@media (hover: none) { .lk-card__link:hover { transform: none; } .lk-card__link:hover .lk-card__media img { transform: none; } }
@media (prefers-reduced-motion: reduce) {
    .lk-card__link, .lk-card__media img, .lk-toc a, .lk-card__view { transition: none; }
    .lk-card__link:hover { transform: none; }
}
