/* ==========================================================================
   Medeus Academy — Store front
   Loaded only on store.php and product.php (body.lk-store).
   Fonts: Shrikhand (display), Figtree (body), JetBrains Mono (labels/prices)
   ========================================================================== */

.lk-store {
  --lk-bg: #EDF1F6; --lk-surface: #FFFFFF; --lk-sunk: #E3E9F1; --lk-ink: #121633; --lk-muted: #586080; --lk-line: #D2D9E5;
  --lk-blue: #1F3BB3; --lk-red: #D3243B; --lk-sun: #F2B200; --lk-ok: #1C8752; --lk-warn: #B86200;
  --lk-on-blue: #FFFFFF; --lk-band: #121633; --lk-band-ink: #EEF1FA; --lk-band-muted: #A9B1D3; --lk-viewer: #0A0D1B;
  --lk-display: 'Shrikhand', 'Cooper Black', Georgia, serif;
  --lk-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --lk-mono: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
  --lk-r: 12px;
  background: var(--lk-bg);
  color: var(--lk-ink);
  font-family: var(--lk-body);
  -webkit-font-smoothing: antialiased;
}
.lk-store main { background: var(--lk-bg); }
/* keep the site's own header/footer typography so the menu fits exactly as on other pages */
.lk-store .site-header, .lk-store .site-footer { font-family: var(--font-body); }
.lk-hero > *, .lk-item > *, .lk-band > * { min-width: 0; }
.lk-store .site-header { background: color-mix(in srgb, var(--lk-bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lk-line); }
.lk-store .site-footer { background: var(--lk-bg); border-top: 1px solid var(--lk-line); }

.lk { font-family: var(--lk-body); font-size: 16px; line-height: 1.55; color: var(--lk-ink); }
.lk *, .lk *::before, .lk *::after { box-sizing: border-box; }
.lk h1, .lk h2, .lk h3 { font-family: var(--lk-body); color: var(--lk-ink); text-wrap: balance; margin: 0; line-height: 1.15; letter-spacing: normal; text-transform: none; }
.lk p { margin: 0; }
.lk a { color: inherit; text-decoration: none; }
.lk :focus-visible { outline: 3px solid var(--lk-sun); outline-offset: 2px; border-radius: 6px; }
.lk-wrap { max-width: 1200px; margin-inline: auto; padding-inline: 20px; }
.lk-mono { font-family: var(--lk-mono); font-variant-numeric: tabular-nums; }

/* buttons */
.lk-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 700 16px var(--lk-body); padding: 11px 18px; border-radius: 999px; border: 0; background: var(--lk-blue); color: var(--lk-on-blue) !important; cursor: pointer; transition: transform .15s; text-decoration: none; }
.lk-btn:hover { transform: translateY(-1px); }
.lk-btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.lk-btn.red { background: var(--lk-red); color: #fff !important; }
.lk-btn.sun { background: var(--lk-sun); color: #121633 !important; }
.lk-btn.line { background: transparent; color: var(--lk-ink) !important; box-shadow: inset 0 0 0 1.5px var(--lk-line); }
.lk-btn.full { width: 100%; padding: 15px; }

/* hero */
.lk-hero { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; padding-block: 56px 40px; }
.lk-eyebrow { font: 600 12px var(--lk-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lk-muted); }
.lk-display { font-family: var(--lk-display) !important; font-weight: 400; font-size: clamp(2.6rem, 6.2vw, 4.7rem) !important; line-height: 1.02 !important; margin-top: 14px !important; letter-spacing: -.005em; }
.lk-display span { color: var(--lk-red); }
.lk-lede { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--lk-muted); max-width: 52ch; margin-top: 18px !important; }
.lk-search { display: flex; gap: 8px; margin-top: 28px; background: var(--lk-surface); border: 1.5px solid var(--lk-line); border-radius: 999px; padding: 6px; max-width: 560px; }
.lk-search:focus-within { border-color: var(--lk-blue); }
.lk-search input { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 8px 14px; outline: none; font: 400 16px var(--lk-body); color: var(--lk-ink); box-shadow: none !important; margin: 0; width: auto; }
.lk-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; align-items: center; }
.lk-chips-label { font-size: 13px; color: var(--lk-muted); margin-right: 2px; }
.lk-chip { font: 600 14px var(--lk-body); padding: 6px 12px; border-radius: 999px; background: var(--lk-surface); box-shadow: inset 0 0 0 1px var(--lk-line); color: var(--lk-ink); white-space: nowrap; }
.lk-chip:hover, .lk-chip.on { background: var(--lk-ink); color: var(--lk-bg) !important; box-shadow: none; }

.lk-viewer { display: block; margin: 0; background: var(--lk-viewer); border-radius: 16px; padding: 10px; box-shadow: 0 30px 60px -30px rgba(10,14,40,.55); }
.lk-viewer-top, .lk-viewer-bot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: #B9C0DA; font: 500 12px var(--lk-mono); padding: 4px 6px 10px; }
.lk-viewer-top .rec { display: flex; align-items: center; gap: 6px; color: #FFC940; letter-spacing: .12em; text-transform: uppercase; }
.lk-viewer-top .rec::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #FF5C70; }
.lk-viewer img, .lk-viewer .lk-ph { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: 6px; }
.lk-viewer-bot { padding: 12px 6px 4px; align-items: flex-end; }
.lk-viewer-bot strong { display: block; color: #fff; font: 700 16px var(--lk-body); margin-bottom: 2px; }
.lk-viewer-bot .lk-price { color: #fff; font-size: 15px; }

/* sections */
.lk-block { padding-block: 40px; }
.lk-sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }
.lk-sec-head h2 { font-size: clamp(1.4rem, 2.4vw, 1.85rem); font-weight: 800; letter-spacing: -.01em; }
.lk-link { font-weight: 700; color: var(--lk-blue) !important; white-space: nowrap; }
.lk-link:hover { text-decoration: underline; }

/* department tiles */
.lk-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.lk-tile { background: var(--lk-surface); border-radius: var(--lk-r); overflow: hidden; box-shadow: inset 0 0 0 1px var(--lk-line); transition: transform .2s; display: block; }
.lk-tile:hover { transform: translateY(-3px); }
.lk-tile img, .lk-tile .lk-ph { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lk-tile-body { padding: 14px 16px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; }
.lk-tile h3 { font-size: 1.2rem; font-weight: 800; }
.lk-tile p { font-size: 14px; color: var(--lk-muted); margin-top: 2px !important; }
.lk-tile .arrow { font-size: 20px; color: var(--lk-red); line-height: 1; }

/* placeholder thumbnail when a product has no image */
.lk-ph { display: grid !important; place-items: center; aspect-ratio: 16/9; background: linear-gradient(135deg, #1F3BB3, #121633); color: #fff; font: 700 12px var(--lk-mono); letter-spacing: .14em; text-transform: uppercase; }
.lk-ph.photo { background: linear-gradient(135deg, #F2B200, #D3243B); }
.lk-ph.audio { background: linear-gradient(135deg, #1C8752, #121633); }
.lk-ph.files { background: linear-gradient(135deg, #D3243B, #121633); }

/* product grid */
.lk-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px 18px; }
.lk-card { display: block; min-width: 0; }
.lk-thumb { position: relative; border-radius: 10px; overflow: hidden; background: var(--lk-sunk); }
.lk-thumb img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; transition: transform .5s; }
.lk-card:hover .lk-thumb img { transform: scale(1.04); }
.lk-badge { position: absolute; top: 8px; left: 8px; font: 700 11px var(--lk-mono); letter-spacing: .08em; padding: 3px 7px; border-radius: 5px; background: rgba(10,13,27,.78); color: #fff; text-transform: uppercase; }
.lk-badge.log { background: #FFC940; color: #121633; }
.lk-badge.r { left: auto; right: 8px; }
.lk-badge.free { background: var(--lk-ok); color: #fff; }
.lk-hoverbar { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--lk-red); }
.lk-card:hover .lk-hoverbar { width: 100%; transition: width 3s linear; }
.lk-card-body { padding-top: 10px; min-width: 0; }
.lk-card-body h3 { font-size: 15px; font-weight: 700; line-height: 1.3; }
.lk-meta { font-size: 12px; color: var(--lk-muted); margin-top: 3px !important; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.lk-creator { color: var(--lk-muted); }
.lk-price { font-weight: 800; font-family: var(--lk-mono); }

/* bottom band */
.lk-band { background: var(--lk-band); color: var(--lk-band-ink); border-radius: 20px; padding: 44px clamp(20px, 4vw, 48px); display: grid; grid-template-columns: 1fr 1.4fr; gap: 40px; align-items: center; }
.lk-band .lk-eyebrow { color: var(--lk-band-muted); }
.lk-band h2 { font-family: var(--lk-display) !important; font-weight: 400; font-size: clamp(1.9rem, 3.6vw, 2.8rem); line-height: 1.08; margin-top: 10px !important; color: var(--lk-band-ink) !important; }
.lk-band .lk-btn { margin-top: 22px; }
.lk-benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lk-benefit b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.lk-benefit b .big { font-family: var(--lk-display); font-weight: 400; font-size: 2.2rem; color: var(--lk-sun); display: block; line-height: 1.1; }
.lk-benefit p { color: var(--lk-band-muted); font-size: 14px; }

/* category / search page */
.lk-back { display: inline-block; font-weight: 600; color: var(--lk-muted) !important; margin-top: 24px; }
.lk-back:hover { color: var(--lk-ink) !important; }
.lk-page-head { padding-block: 36px 8px; }
.lk-page-head h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.lk-page-head p { color: var(--lk-muted); margin-top: 8px !important; max-width: 60ch; }
.lk-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-block: 20px 24px; align-items: center; }
.lk-count { margin-left: auto; font-size: 13px; color: var(--lk-muted); }
.lk-empty { padding: 40px; text-align: center; color: var(--lk-muted); background: var(--lk-surface); border-radius: var(--lk-r); }

/* product page */
.lk-item { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 36px; padding-block: 20px 48px; align-items: start; }
.lk-player { background: var(--lk-viewer); border-radius: 16px; padding: 10px; }
.lk-stage { position: relative; border-radius: 6px; overflow: hidden; }
.lk-stage img, .lk-stage .lk-ph { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.lk-wm { position: absolute; inset: 0; overflow: hidden; pointer-events: none; display: grid; place-items: center; }
.lk-wm div { transform: rotate(-18deg); display: flex; flex-wrap: wrap; gap: 34px 46px; width: 170%; justify-content: center; }
.lk-wm span { color: rgba(255,255,255,.3); font: 600 13px var(--lk-mono); letter-spacing: .22em; white-space: nowrap; }
.lk-note { font-size: 13px; color: var(--lk-muted); margin-top: 12px !important; }
.lk-metatable { margin: 24px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 1px; background: var(--lk-line); border-radius: var(--lk-r); overflow: hidden; box-shadow: 0 0 0 1px var(--lk-line); }
.lk-metatable div { background: var(--lk-surface); padding: 12px 14px; min-width: 0; }
.lk-metatable dt { font: 600 11px var(--lk-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--lk-muted); }
.lk-metatable dd { margin: 3px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.lk-about { margin-top: 28px; background: var(--lk-surface); border-radius: var(--lk-r); padding: 20px; box-shadow: inset 0 0 0 1px var(--lk-line); }
.lk-about h2 { font-size: 1.15rem; font-weight: 800; margin-bottom: 10px; }
.lk-about p { color: var(--lk-ink); }
.lk-panel { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 20px; }
.lk-panel h1 { font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 800; letter-spacing: -.015em; margin-top: 6px !important; }
.lk-who { display: flex; gap: 12px; align-items: center; }
.lk-avatar { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; background: var(--lk-sun); color: #121633; flex-shrink: 0; }
.lk-who small { display: block; color: var(--lk-muted); font-size: 13px; }
.lk-lic { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: center; padding: 14px; border-radius: var(--lk-r); background: var(--lk-surface); box-shadow: inset 0 0 0 2px var(--lk-blue); }
.lk-lic b { display: block; }
.lk-lic small { color: var(--lk-muted); font-size: 13px; }
.lk-lic .lk-price { font-size: 17px; }
.lk-agree { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin-bottom: 14px; font-weight: 400; color: var(--lk-ink); }
.lk-agree input { width: 18px !important; height: 18px; accent-color: var(--lk-blue); margin: 2px 0 0 !important; flex-shrink: 0; }
.lk-warn { font-size: 13px; color: var(--lk-warn); background: color-mix(in srgb, var(--lk-sun) 16%, var(--lk-surface)); border-radius: 10px; padding: 10px 12px; margin-bottom: 12px; }
.lk-owned { display: inline-flex; font: 700 12px var(--lk-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--lk-ok); margin-bottom: 10px; }
.lk-checks { padding: 16px; background: var(--lk-surface); border-radius: var(--lk-r); box-shadow: inset 0 0 0 1px var(--lk-line); font-size: 14px; }
.lk-checks h3 { font: 600 11px var(--lk-mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--lk-muted) !important; margin-bottom: 2px !important; }
.lk-checks ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.lk-checks li { display: flex; gap: 10px; align-items: flex-start; }
.lk-ic { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; font-size: 11px; font-weight: 800; margin-top: 2px; color: #fff; background: var(--lk-ok); }
.lk-small-link { font-size: 14px; color: var(--lk-muted) !important; }
.lk-small-link:hover { color: var(--lk-ink) !important; text-decoration: underline; }

@media (max-width: 1000px) {
  .lk-tiles { grid-template-columns: repeat(2, 1fr); }
  .lk-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 900px) {
  .lk-hero { grid-template-columns: 1fr; gap: 32px; padding-block: 36px 24px; }
  .lk-band { grid-template-columns: 1fr; }
  .lk-benefits { grid-template-columns: 1fr; }
  .lk-item { grid-template-columns: 1fr; }
  .lk-panel { position: static; }
}
@media (max-width: 760px) { .lk-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 440px) { .lk-grid { grid-template-columns: 1fr; } .lk-tiles { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .lk * { transition: none !important; animation: none !important; } }
