/*
 * LonexLabs Tebex theme — what the storefront needs beyond lonex.css.
 *
 * lonex.css is a verbatim copy of public/assets/store.css from lonexlabs.com
 * and should stay that way so the two can be re-synced by copying the file.
 * Everything Tebex-only (basket, login, options, sidebar modules, tiers)
 * lives here, built from the same lx- tokens.
 */

/* ---------- Tebex legal footer: match the site footer ---------- */
:root {
  color-scheme: dark;
  --tebex-legal-footer-background-color: var(--lx-bg);
  --tebex-legal-footer-text-color: var(--lx-text-3);
  --tebex-legal-footer-border-color: var(--lx-line);
  --tebex-legal-footer-max-width: var(--lx-wrap);
  --tebex-legal-footer-logo-color: var(--lx-text-2);
}

.lx-sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
main { min-height: 50vh; }

/* ---------- Header additions ---------- */
.lx-cart-link .lx-cur, .lx-mini-total .lx-cur { font-size: 11.5px; font-weight: 500; color: var(--lx-text-3); }
.lx-menu-btn-nav[data-active] { color: var(--lx-text); }
.lx-menu-pop-cats { min-width: 220px; }
.lx-menu-pop-cats a { grid-template-columns: 1fr; }
.lx-menu-pop-right { left: auto; right: 0; min-width: 240px; }
.lx-user { gap: 8px; padding-left: 8px; }
.lx-user-dot {
  display: inline-grid; place-items: center; width: 24px; height: 24px; flex: none; border-radius: 99px;
  background: var(--lx-bg-3); border: 1px solid var(--lx-line-2); color: var(--lx-text);
  font-size: 11.5px; font-weight: 700; line-height: 1;
}
.lx-user-dot-lg { width: 40px; height: 40px; font-size: 15px; }
.lx-mobile-menu .lx-mm-sub { padding-left: 18px; font-size: 15px; color: var(--lx-text-3); }

/* Toast from page.message — sits just under the header */
.lx-toast-wrap .lx-flash { margin-top: 16px; }
.lx-flash-info { color: #9cc6ff; background: rgba(99, 168, 255, .07); border-color: rgba(99, 168, 255, .3); }

/* ---------- Select (same control as views/store/layout.php) ---------- */
select {
  appearance: none; -webkit-appearance: none; color-scheme: dark; cursor: pointer;
  width: 100%; min-height: 44px; padding: 10px 38px 10px 13px;
  font: inherit; font-size: 15px; color: var(--lx-text); background-color: var(--lx-bg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%237d858e' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center; background-size: 14px 14px;
  border: 1px solid var(--lx-line-2); border-radius: 10px; outline: none; transition: border-color .15s;
}
select:hover, select:focus { border-color: var(--lx-line-3); }
option, optgroup { background-color: var(--lx-bg-2); color: var(--lx-text); }

/* ---------- Inputs ---------- */
.lx-input {
  width: 100%; min-width: 0; height: 44px; padding: 0 13px;
  font: inherit; font-size: 15px; color: var(--lx-text);
  background: var(--lx-bg); border: 1px solid var(--lx-line-2); border-radius: 10px;
  outline: none; transition: border-color .15s, background-color .15s;
}
.lx-input::placeholder { color: var(--lx-text-3); }
.lx-input:hover { border-color: var(--lx-line-3); }
.lx-input:focus { border-color: var(--lx-text-3); background: #0c0e11; }
.lx-input.lx-mono { font-family: var(--lx-mono); font-size: 14px; letter-spacing: .02em; }
.lx-inline-form { display: flex; gap: 8px; }
.lx-inline-form .lx-btn { --lx-h: 44px; flex: none; }
.lx-input-affix { position: relative; }
.lx-input-affix .lx-input { padding-right: 60px; }
.lx-input-affix span { position: absolute; right: 13px; top: 50%; transform: translateY(-50%); font-size: 13px; font-weight: 600; color: var(--lx-text-3); }

.lx-form { display: grid; gap: 8px; margin-top: 22px; }
.lx-form label { margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--lx-text); }
.lx-form label:first-child { margin-top: 0; }
.lx-form label small { font-weight: 500; color: var(--lx-text-3); }
.lx-form > .lx-btn { margin-top: 12px; }
.lx-form-actions { display: flex; justify-content: space-between; gap: 10px; margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--lx-line); flex-wrap: wrap; }
.lx-discord-link { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 9px 9px 12px; border-radius: 10px; border: 1px solid var(--lx-line-2); }

.lx-btn[aria-disabled="true"] { opacity: .55; cursor: not-allowed; }
.lx-text-btn { font-size: 13px; color: var(--lx-text-3); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lx-line-3); }
.lx-text-btn:hover { color: var(--lx-text); }
.lx-icon-btn { width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; color: var(--lx-text-3); border: 1px solid transparent; transition: color .2s, background-color .2s, border-color .2s; }
.lx-icon-btn:hover { color: var(--lx-text); background: rgba(255, 255, 255, .05); border-color: var(--lx-line-2); }
.lx-icon-btn svg { width: 16px; height: 16px; }

/* ---------- Page heads ---------- */
.lx-section.lx-section-top { padding-top: 22px; }
.lx-page-title { font-family: var(--lx-display); font-weight: 600; font-size: clamp(34px, 4vw, 50px); letter-spacing: -0.04em; line-height: 1; }
.lx-head-desc { margin-top: 12px; color: var(--lx-text-2); font-size: 17px; max-width: 60ch; }
.lx-head-desc p + p { margin-top: 10px; }
.lx-head-desc a { color: var(--lx-text); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hero without screenshots ---------- */
.lx-hero-grid.lx-hero-solo { grid-template-columns: minmax(0, 1fr); min-height: 0; }
.lx-hero-solo h1 { max-width: 14ch; }

/* ---------- Prices ---------- */
.lx-price small { margin-left: 5px; }
.lx-was { font-size: 13.5px; font-weight: 500; color: var(--lx-text-3); margin-right: 6px; letter-spacing: 0; text-decoration-thickness: 1px; }
.lx-was-lg { font-size: 17px; margin: 0; }

/* Card add button states */
.lx-cart-add.lx-in-basket { background: var(--lx-accent-soft); border-color: var(--lx-accent-line); color: var(--lx-accent); }
.lx-pcard:hover .lx-cart-add.lx-in-basket, .lx-cart-add.lx-in-basket:hover { background: var(--lx-accent-soft); border-color: var(--lx-accent-line); color: var(--lx-accent); }
.lx-cart-add.lx-locked, .lx-pcard:hover .lx-cart-add.lx-locked { background: transparent; border-color: var(--lx-line); color: var(--lx-text-3); cursor: not-allowed; }

/* Home grid while its category loads */
.lx-skeleton { pointer-events: none; }
.lx-skeleton .lx-pcard-media, .lx-skeleton .lx-pcard-body span { background: linear-gradient(90deg, var(--lx-bg-1) 0%, var(--lx-bg-2) 50%, var(--lx-bg-1) 100%); background-size: 200% 100%; animation: lx-shimmer 1.4s linear infinite; }
.lx-skeleton .lx-pcard-body { gap: 10px; }
.lx-skeleton .lx-pcard-body span { display: block; height: 14px; border-radius: 6px; width: 40%; }
.lx-skeleton .lx-pcard-body span + span { height: 20px; width: 70%; }
@keyframes lx-shimmer { to { background-position: -200% 0; } }
[data-home-grid].lx-loading { opacity: .5; transition: opacity .2s; }
.lx-chips a.lx-chip { text-decoration: none; }

/* Linked rows (category list fallback, list categories) */
.lx-addon h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lx-line-3); }
.lx-addon-link { grid-template-columns: 44px minmax(0, 1fr) auto 20px; }
.lx-addon-ic { width: 44px; height: 44px; border-radius: 11px; display: grid; place-items: center; background: var(--lx-bg-2); border: 1px solid var(--lx-line-2); color: var(--lx-text-2); }
.lx-addon-ic svg { width: 19px; height: 19px; }
.lx-addon .lx-go { width: 20px; height: 20px; color: var(--lx-text-3); transition: transform .25s var(--lx-ease), color .2s; }
.lx-addon:hover .lx-go { color: var(--lx-text); transform: translateX(3px); }
.lx-home-fallback:not([hidden]) { display: block; }

/* ---------- Package page ---------- */
.lx-gift { margin-top: 14px; border-top: 1px solid var(--lx-line); }
.lx-gift summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 9px; padding: 14px 0 0; font-size: 14.5px; font-weight: 600; color: var(--lx-text-2); }
.lx-gift summary::-webkit-details-marker { display: none; }
.lx-gift summary:hover { color: var(--lx-text); }
.lx-gift summary > svg { width: 16px; height: 16px; color: var(--lx-text-3); }
.lx-gift .lx-pm { margin-left: auto; width: 18px; height: 18px; position: relative; color: var(--lx-text-3); }
.lx-gift .lx-pm::before, .lx-gift .lx-pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 1.6px; margin: -.8px 0 0 -5px; background: currentColor; border-radius: 2px; }
.lx-gift .lx-pm::after { transform: rotate(90deg); transition: transform .35s var(--lx-ease); }
.lx-gift[open] .lx-pm::after { transform: rotate(0); }
.lx-gift .lx-inline-form { margin-top: 12px; }

.lx-shot-video { display: flex; flex-direction: column; border-radius: var(--lx-r-lg); overflow: hidden; border: 1px solid var(--lx-line); background: var(--lx-bg-1); }
.lx-shot-video .lx-img { aspect-ratio: 16/10; background: #000; }
.lx-shot-video iframe { width: 100%; height: 100%; border: 0; display: block; }
.lx-shot-video b { padding: 13px 16px 15px; font-weight: 600; font-size: 15px; }

/* ---------- Basket ---------- */
.lx-qty { display: flex; align-items: center; gap: 6px; }
.lx-qty .lx-input { width: 64px; height: 34px; padding: 0 8px; text-align: center; border-radius: 8px; font-size: 14px; }
.lx-qty .lx-input::-webkit-inner-spin-button { opacity: .4; }

.lx-panel-hd { margin: -22px -22px 18px; padding: 16px 22px; border-bottom: 1px solid var(--lx-line); font-size: 15px; font-weight: 600; letter-spacing: -0.01em; }
.lx-sum-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; font-size: 14.5px; color: var(--lx-text-2); }
.lx-sum-row > span:first-child { min-width: 0; }
.lx-sum-row small { color: var(--lx-text-3); }
.lx-sum-coupon .lx-tag { height: 22px; }
.lx-sum-total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; padding-top: 16px; border-top: 1px solid var(--lx-line); font-size: 15px; color: var(--lx-text-2); }
.lx-sum-total b { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; color: var(--lx-text); font-variant-numeric: tabular-nums; }
.lx-sum-total b small { font-size: 13px; font-weight: 500; color: var(--lx-text-3); letter-spacing: 0; }
.lx-sum-note { margin-top: 6px; font-size: 13px; color: var(--lx-text-3); }

.lx-basket-empty { max-width: 520px; margin: 0 auto; padding: clamp(40px, 6vw, 72px) 24px; text-align: center; border: 1px dashed var(--lx-line-2); border-radius: var(--lx-r-xl); }
.lx-empty-ic { width: 56px; height: 56px; margin: 0 auto 18px; border-radius: 14px; display: grid; place-items: center; background: var(--lx-bg-2); border: 1px solid var(--lx-line-2); color: var(--lx-text-3); }
.lx-empty-ic svg { width: 24px; height: 24px; }
.lx-basket-empty h2 { font-size: 22px; }
.lx-basket-empty p { margin: 8px 0 24px; color: var(--lx-text-2); }

/* ---------- Sign in / options / quote ---------- */
.lx-auth-section { padding-block: clamp(48px, 8vw, 104px); }
.lx-auth { max-width: 440px; margin: 0 auto; padding: clamp(24px, 3vw, 32px); }
.lx-auth.lx-auth-wide { max-width: 600px; }
.lx-auth h1 { font-family: var(--lx-display); font-weight: 600; font-size: clamp(26px, 2.6vw, 32px); letter-spacing: -0.035em; }
.lx-auth > p { margin-top: 10px; color: var(--lx-text-2); font-size: 15.5px; }
.lx-auth > .lx-btn { margin-top: 22px; }
.lx-auth .lx-prose { margin-top: 12px; }

/* ---------- CMS pages ---------- */
.lx-doc { max-width: 860px; }
.lx-doc .lx-page-title { margin-bottom: 8px; }
.lx-prose table { width: 100%; border-collapse: collapse; margin: 16px 0; font-size: 15px; color: var(--lx-text-2); }
.lx-prose th, .lx-prose td { padding: 10px 12px; border-bottom: 1px solid var(--lx-line); text-align: left; }
.lx-prose th { color: var(--lx-text); font-weight: 600; }
.lx-prose code { font-family: var(--lx-mono); font-feature-settings: "zero"; font-size: .9em; padding: 1px 6px; border-radius: 5px; background: var(--lx-bg-2); border: 1px solid var(--lx-line); }
.lx-prose hr { border: 0; border-top: 1px solid var(--lx-line); margin: 28px 0; }
.lx-prose iframe { max-width: 100%; border-radius: var(--lx-r); border: 1px solid var(--lx-line-2); }
.lx-prose-sm p, .lx-prose-sm ul, .lx-prose-sm ol { font-size: 14.5px; }
.lx-prose ul + p, .lx-prose ol + p, .lx-prose ul + h2, .lx-prose ul + h3, .lx-prose ol + h3 { margin-top: 14px; }
.lx-prose > :first-child { margin-top: 0; }

/* ---------- Sidebar modules ---------- */
.lx-modules { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: start; }
.lx-mod.lx-panel { padding: 0; overflow: hidden; }
.lx-mod .lx-panel-hd { margin: 0; padding: 14px 18px; font-size: 14px; }
.lx-mod-body { padding: 16px 18px 18px; }
.lx-mod-hd { margin-bottom: 10px; font-size: 14px; font-weight: 600; }
.lx-mod-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--lx-line); }
.lx-mod-note { font-size: 13.5px; color: var(--lx-text-3); }
.lx-mod-body > * + * { margin-top: 12px; }

.lx-goal-figs { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 13.5px; color: var(--lx-text-3); }
.lx-goal-figs b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; color: var(--lx-text); }
.lx-bar { height: 6px; border-radius: 99px; background: var(--lx-bg-3); overflow: hidden; }
.lx-goal-figs + .lx-bar { margin-top: 8px; }
.lx-bar span { display: block; height: 100%; border-radius: 99px; background: var(--lx-accent); }
@media (prefers-reduced-motion: no-preference) {
  .lx-bar-live span { background-image: linear-gradient(90deg, var(--lx-accent) 0%, var(--lx-accent-hi) 50%, var(--lx-accent) 100%); background-size: 200% 100%; animation: lx-shimmer 2.4s linear infinite; }
}

.lx-mod-rows { list-style: none; margin: 0; padding: 0; }
.lx-mod-rows li { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 11px 18px; border-bottom: 1px solid var(--lx-line); }
.lx-mod-rows li:last-child { border-bottom: 0; }
.lx-mod-rows b, .lx-top b { display: block; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-mod-rows small, .lx-top small { display: block; font-size: 12.5px; color: var(--lx-text-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lx-amt { font-size: 14px; font-weight: 600; white-space: nowrap; }
.lx-amt small { font-size: 11.5px; font-weight: 500; color: var(--lx-text-3); }
.lx-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.lx-top img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; background: var(--lx-bg-3); }

.lx-server { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--lx-text-3); }
.lx-server b { color: var(--lx-text); font-weight: 600; }
@media (prefers-reduced-motion: no-preference) {
  .lx-breathe { animation: lx-breathe 2.4s var(--lx-ease) infinite; }
  @keyframes lx-breathe { 50% { opacity: .35; } }
}
.lx-copy {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 10px; height: 40px; padding: 0 12px;
  border-radius: 9px; border: 1px solid var(--lx-line-2); background: var(--lx-bg); color: var(--lx-text-2); cursor: pointer;
  font-size: 13px; transition: border-color .2s, color .2s;
}
.lx-copy:hover { border-color: var(--lx-line-3); color: var(--lx-text); }
.lx-copy small { font-family: var(--lx-font); font-size: 12px; font-weight: 600; color: var(--lx-text-3); }

.lx-mod-flush .lx-pcard-body h3 { font-size: 17px; }

/* ---------- Tiers ---------- */
.lx-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; align-items: stretch; }
.lx-tier { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.lx-tier-current { border-color: var(--lx-accent-line); }
.lx-tier-img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-bottom: 1px solid var(--lx-line); }
.lx-tier-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 22px 22px; flex: 1; }
.lx-tier h3 { font-size: 19px; letter-spacing: -0.015em; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lx-tier .lx-price { font-size: 28px; letter-spacing: -0.03em; }
.lx-tier-actions { margin-top: auto; padding-top: 6px; }

/* ---------- Responsive ---------- */
@media (max-width: 600px) {
  .lx-addon-link { grid-template-columns: 44px minmax(0, 1fr) 20px; }
  .lx-addon-link > span:empty { display: none; }
  .lx-inline-form { flex-wrap: wrap; }
  .lx-inline-form .lx-btn { flex: 1; }
  .lx-form-actions .lx-btn { flex: 1; }
}

/* ---------- Inline logo (logo.twig) — same boxes as the site's <img> logo ---------- */
.lx-brand .lx-logo { display: block; width: 158px; height: 36px; }
.lx-footer-brand .lx-logo { display: block; width: 141px; height: 32px; margin-bottom: 16px; }
@media (max-width: 480px) { .lx-brand .lx-logo { width: 132px; height: 30px; } }

/* Modules after the description: store.css zeroes the top padding of a small
   section that follows a full one, which leaves the panels on the rule. */
.lx-section-sm.lx-modules-section { padding-top: clamp(48px, 6vw, 72px); }

/* ===========================================================
   Package page (tx-): media, then description and gallery in one
   column, with the buy rail sticky beside the lot.
   =========================================================== */
.tx-p { grid-template-areas: "media buy" "body buy"; row-gap: 0; }
.tx-p-media { grid-area: media; }
.tx-p-buy { grid-area: buy; align-self: start; }
.tx-p-body { grid-area: body; min-width: 0; }
/* Show the whole main image (package art often has text at the edges)
   rather than cropping it to the site's 2.1:1 box. */
.tx-p .lx-shot-main { aspect-ratio: auto; }
.tx-p .lx-shot-main img { height: auto; max-height: 78vh; object-fit: contain; }
.tx-reqs h2 { font-size: 13px; font-weight: 600; color: var(--lx-text-3); letter-spacing: 0; }
.tx-reqs ul { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.tx-reqs li { font-size: 13.5px; font-weight: 500; padding: 5px 10px; border-radius: 7px; border: 1px solid var(--lx-line-2); background: var(--lx-bg-2); }

.tx-p-sec { padding-top: clamp(48px, 6vw, 72px); }
.tx-p-h { font-family: var(--lx-display); font-weight: 600; font-size: clamp(26px, 2.8vw, 34px); letter-spacing: -.03em; margin-bottom: 20px; }

.tx-tour {
  margin-top: 28px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; border-radius: var(--lx-r-lg);
  border: 1px solid var(--lx-accent-line); background: linear-gradient(100deg, var(--lx-accent-soft), transparent 70%);
  transition: border-color .2s, background-color .2s;
}
.tx-tour b { display: block; font-size: 16.5px; }
.tx-tour span span { display: block; margin-top: 2px; font-size: 14.5px; color: var(--lx-text-2); }
.tx-tour .lx-arrow { width: 18px; height: 18px; flex: none; color: var(--lx-accent); transition: transform .25s var(--lx-ease); }
.tx-tour:hover { border-color: var(--lx-accent); }
.tx-tour:hover .lx-arrow { transform: translateX(4px); }

/* The description, after tebex.js has dressed it up. */
.tx-desc > :first-child { margin-top: 0; }
.tx-desc .tx-lede { font-size: clamp(19px, 1.8vw, 22px); line-height: 1.5; font-weight: 500; color: var(--lx-text); max-width: 56ch; letter-spacing: -.01em; }
.tx-desc .tx-lede + p { margin-top: 20px; }
.tx-desc .tx-sub-h { font-family: var(--lx-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.025em; color: var(--lx-text); margin: 44px 0 16px; }
.tx-desc ul.tx-feats { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tx-feats > li { padding: 16px 18px 17px; border-radius: var(--lx-r-lg); border: 1px solid var(--lx-line); background: var(--lx-bg-1); transition: border-color .2s; }
.tx-feats > li:hover { border-color: var(--lx-line-2); }
.tx-feat-t { display: block; font-size: 15.5px; font-weight: 600; color: var(--lx-text); letter-spacing: -.01em; }
.tx-feat-d { margin-top: 4px; font-size: 14.5px; line-height: 1.55; color: var(--lx-text-2); }
.tx-feat-d ul { margin-top: 6px; padding-left: 16px; gap: 3px; font-size: 14.5px; }
.tx-feat-d code { font-size: .86em; }

.tx-shots { grid-template-columns: repeat(2, minmax(0, 1fr)); }

@media (max-width: 1080px) {
  .tx-p { grid-template-areas: "media" "buy" "body"; row-gap: 24px; }
}
@media (max-width: 640px) {
  .tx-desc ul.tx-feats { grid-template-columns: 1fr; }
  .tx-tour { padding: 16px 18px; }
}

/* ===========================================================
   Category page (tx-cat): banner, price filter.
   =========================================================== */
.tx-cat-banner {
  display: flex; align-items: center; gap: 16px; margin-bottom: 20px;
  padding: 16px 16px 16px 20px; border-radius: var(--lx-r-lg);
  border: 1px solid var(--lx-accent-line); background: linear-gradient(100deg, var(--lx-accent-soft), transparent 75%);
}
.tx-cat-banner > svg { width: 22px; height: 22px; flex: none; color: var(--lx-accent); }
.tx-cat-banner p { flex: 1; min-width: 0; font-size: 15.5px; color: var(--lx-text); }
.tx-cat-banner .lx-btn { flex: none; }
.tx-cat-filter { margin-bottom: 20px; }
.tx-cat-filter .lx-chip { cursor: pointer; }
/* While filtered, every card is the same size so the grid has no holes. */
.tx-filtered .lx-pcard.lx-lg { grid-column: auto; }
.tx-filtered .lx-pcard.lx-lg .lx-pcard-media { aspect-ratio: 16 / 10; }
.tx-filtered .lx-pcard.lx-lg h3 { font-size: 19px; }
@media (max-width: 640px) {
  .tx-cat-banner { flex-wrap: wrap; }
  .tx-cat-banner .lx-btn { width: 100%; }
}

/* ===========================================================
   Basket (tx-b): item cards and suggestions on the left, the
   summary sticky on the right; on phones the summary comes
   straight after the items.
   =========================================================== */
.tx-b-head { align-items: flex-end; }
.tx-b-head p strong { color: var(--lx-text); font-weight: 600; }
.tx-b {
  display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 0 clamp(24px, 3vw, 40px);
  grid-template-areas: "items sum" "suggest sum"; align-items: start;
}
.tx-b-items { grid-area: items; display: grid; gap: 12px; }
.tx-b-sum { grid-area: sum; align-self: start; }
.tx-suggest { grid-area: suggest; min-width: 0; padding-top: clamp(40px, 5vw, 64px); }

.tx-bitem {
  display: grid; grid-template-columns: 220px minmax(0, 1fr) auto; gap: 22px; align-items: center;
  padding: 14px 22px 14px 14px; border-radius: var(--lx-r-xl);
  border: 1px solid var(--lx-line-2); background: var(--lx-bg-1);
}
.tx-bitem-img { display: block; aspect-ratio: 3 / 2; border-radius: var(--lx-r); overflow: hidden; background: var(--lx-bg-2); border: 1px solid var(--lx-line); }
.tx-bitem-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--lx-ease); }
.tx-bitem-img:hover img { transform: scale(1.04); }
.tx-bitem h3 { font-size: 20px; letter-spacing: -.02em; line-height: 1.2; }
.tx-bitem h3 a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--lx-line-3); }
.tx-bitem-meta { margin-top: 4px; font-size: 14.5px; color: var(--lx-text-2); font-variant-numeric: tabular-nums; }
.tx-bitem-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; margin-top: 16px; }
.tx-remove { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--lx-text-3); transition: color .2s; }
.tx-remove svg { width: 14px; height: 14px; }
.tx-remove:hover { color: var(--lx-red); }
.tx-bitem-price { font-size: 22px; font-weight: 700; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.tx-bitem-price small { margin-left: 5px; font-size: 12px; font-weight: 500; color: var(--lx-text-3); letter-spacing: 0; }
.tx-bitem-price.lx-free { color: var(--lx-accent); }

/* One item and no coupons: the total sits right under the heading. */
.lx-sum-total.tx-sum-solo { margin-top: 0; padding-top: 0; border-top: 0; }
.tx-b-sum .lx-incl { margin-top: 18px; }
.tx-coupon { margin-top: 16px; }

.tx-suggest-hd { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.tx-suggest-hd h2 { font-family: var(--lx-display); font-weight: 600; font-size: clamp(22px, 2.2vw, 26px); letter-spacing: -.025em; }
.lx-store-grid.tx-suggest-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tx-suggest-grid .lx-pcard h3 { font-size: 16.5px; }
.tx-suggest-grid .lx-pcard-body { padding: 14px 16px 16px; }
.tx-suggest-grid .lx-pcard-foot { padding-top: 12px; }

@media (max-width: 1080px) {
  .tx-b { grid-template-columns: minmax(0, 1fr); grid-template-areas: "items" "sum" "suggest"; row-gap: 24px; }
  .tx-suggest { padding-top: 16px; }
}
@media (max-width: 640px) {
  .tx-bitem { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; padding: 12px; }
  .tx-bitem-price { grid-column: 2; font-size: 18px; }
  .tx-bitem h3 { font-size: 17px; }
  .tx-bitem-actions { margin-top: 10px; }
  .lx-store-grid.tx-suggest-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* ===========================================================
   Waypoint homepage — from views/store/waypoint.php (wp- rules)
   =========================================================== */
.wp-hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: max(560px, calc(100svh - 73px)); /* header is 72px + 1px border */
  display: flex; flex-direction: column; justify-content: space-between;
  background: #0b2a20;
}
.wp-hero picture { position: absolute; inset: 0; z-index: -2; }
.wp-hero-img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; object-position: 42% 50%; }
.wp-hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(to bottom, transparent 52%, rgba(10, 11, 13, .55) 74%, var(--lx-bg) 100%);
}
.wp-word {
  padding-top: clamp(28px, 6vh, 64px);
  font-family: "Big Shoulders Display", var(--lx-display); font-weight: 900; text-transform: uppercase;
  font-size: clamp(92px, 15.5vw, 248px); line-height: .8; letter-spacing: -.01em;
  color: #04201a;
  margin-left: -.03em;
}
.wp-hero-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px 40px; flex-wrap: wrap; padding-bottom: clamp(32px, 6vh, 56px); }
.wp-hero-foot p { max-width: 32rem; font-size: clamp(19px, 1.7vw, 22px); line-height: 1.4; font-weight: 500; color: var(--lx-text); text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.wp-credit { position: absolute; right: var(--lx-gutter); bottom: 12px; font-size: 12px; color: var(--lx-text-3); }
.wp-hero-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.wp-hero .lx-btn-ghost { background: rgba(10, 11, 13, .45); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
@media (max-width: 640px) {
  .wp-hero-img { object-position: 50% 50%; } /* the phone crop is already framed */
  .wp-hero::after { background: linear-gradient(to bottom, transparent 40%, rgba(10, 11, 13, .7) 62%, var(--lx-bg) 100%); }
  .wp-hero-cta, .wp-hero-cta .lx-btn { width: 100%; }
}
/* Tebex wraps list text in <p>; inside a card it takes the card's type. */
.tx-feat-d p, .tx-feat-d li p { margin: 0; max-width: none; font-size: inherit; line-height: inherit; color: inherit; }
