/*!
 * TrustLinks UI — Phase 3 design system
 * Loaded on every page (native WordPress templates and React bridge pages) so the
 * global header, mega menus, cart drawer, catalog cards and footer always look
 * identical, from the very first paint.
 *
 * Conventions
 *  - every class is prefixed with `tl-` so it can never collide with the
 *    Tailwind utilities shipped inside assets/css/trustlinks-current.css
 *  - no CSS framework, no animation library: plain CSS transitions only
 *  - all spacing/colour comes from the tokens below
 */

/* ==========================================================================
   1. Tokens
   ========================================================================== */

:root {
  /* Brand palette — mirrors the values already used by the live TrustLinks UI */
  --tl-blue: #2650e0;
  --tl-blue-hover: #1c3fc0;
  --tl-blue-soft: #eef2fe;
  --tl-blue-border: #dbe4fc;
  --tl-charcoal: #1a1a1e;
  --tl-charcoal-2: #232328;
  --tl-black: #0b0b0d;
  --tl-yellow: #f2b300;
  --tl-yellow-soft: #fef6e0;
  --tl-purple: #6c4f9e;
  --tl-purple-soft: #f5f3fa;
  --tl-green: #0f9d58;
  --tl-green-soft: #eaf7ef;

  /* Neutrals */
  --tl-ink: #12141a;
  --tl-ink-2: #48484f;
  --tl-ink-3: #6f6f78;
  --tl-line: #e6e6ea;
  --tl-line-soft: #f0f0f3;
  --tl-surface: #ffffff;
  --tl-surface-2: #f8f8f9;
  --tl-surface-3: #f4f6fd;

  /* Typography — Outfit is the only typeface on TrustLinks */
  --tl-font: "Outfit", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Elevation */
  --tl-shadow-xs: 0 1px 2px rgba(16, 20, 30, 0.05);
  --tl-shadow-sm: 0 1px 2px rgba(16, 20, 30, 0.04), 0 4px 12px rgba(16, 20, 30, 0.05);
  --tl-shadow-md: 0 2px 4px rgba(16, 20, 30, 0.04), 0 10px 28px rgba(16, 20, 30, 0.08);
  --tl-shadow-lg: 0 12px 40px rgba(16, 20, 30, 0.14);
  --tl-shadow-focus: 0 0 0 3px rgba(38, 80, 224, 0.22);

  /* Radii */
  --tl-r-sm: 8px;
  --tl-r-md: 12px;
  --tl-r-lg: 16px;
  --tl-r-xl: 20px;
  --tl-r-2xl: 26px;
  --tl-r-pill: 999px;

  /* Layout */
  --tl-container: 1200px;
  --tl-gutter: clamp(16px, 4vw, 32px);
  --tl-header-h: 70px;
  --tl-notice-h: 40px;
  --tl-ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ==========================================================================
   2. Global typography — one typeface, everywhere
   ========================================================================== */

.tl-shell,
.tl-shell *,
.tl-header,
.tl-header *,
.tl-footer,
.tl-footer *,
.tl-cart-drawer,
.tl-cart-drawer *,
.tl-mobile-panel,
.tl-mobile-panel *,
.tl-catalog,
.tl-catalog *,
.tl-product,
.tl-product * {
  font-family: var(--tl-font);
}

/* The legacy React stylesheet prints prices and stats in IBM Plex Mono
   (.font-stat). Prices must match the rest of the site, so force Outfit and
   keep the tabular figures that stop numbers jittering. */
.tl-header .font-stat,
.tl-footer .font-stat,
.tl-page .font-stat {
  font-family: var(--tl-font) !important;
  font-feature-settings: "tnum" 1;
  font-variant-numeric: tabular-nums;
}

.tl-shell {
  font-family: var(--tl-font);
  color: var(--tl-ink);
  background: var(--tl-surface);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

.tl-shell a {
  color: inherit;
  text-decoration: none;
}

.tl-shell :focus-visible {
  outline: 2px solid var(--tl-blue);
  outline-offset: 2px;
  border-radius: 4px;
}

.tl-container {
  width: 100%;
  max-width: var(--tl-container);
  margin-inline: auto;
  padding-inline: var(--tl-gutter);
}

.tl-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.tl-skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  padding: 12px 20px;
  border-radius: 0 0 var(--tl-r-md) 0;
  background: var(--tl-charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.tl-skip-link:focus {
  left: 0;
}

/* ==========================================================================
   3. Buttons
   ========================================================================== */

.tl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: var(--tl-r-md);
  padding: 12px 20px;
  font-family: var(--tl-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
  cursor: pointer;
  white-space: nowrap;
  text-align: center;
  transition: background-color 0.18s var(--tl-ease), color 0.18s var(--tl-ease),
    border-color 0.18s var(--tl-ease), box-shadow 0.18s var(--tl-ease),
    transform 0.18s var(--tl-ease);
}

.tl-btn:active {
  transform: translateY(1px);
}

.tl-btn--primary {
  background: var(--tl-blue);
  color: #fff;
  box-shadow: 0 6px 16px rgba(38, 80, 224, 0.22);
}

.tl-btn--primary:hover {
  background: var(--tl-blue-hover);
  box-shadow: 0 8px 22px rgba(38, 80, 224, 0.3);
}

.tl-btn--dark {
  background: var(--tl-charcoal);
  color: #fff;
  box-shadow: var(--tl-shadow-sm);
}

.tl-btn--dark:hover {
  background: var(--tl-blue);
}

.tl-btn--ghost {
  background: var(--tl-surface);
  border-color: var(--tl-line);
  color: var(--tl-ink);
}

.tl-btn--ghost:hover {
  border-color: var(--tl-blue-border);
  background: var(--tl-blue-soft);
  color: var(--tl-blue);
}

.tl-btn--sm {
  padding: 9px 15px;
  font-size: 14px;
  border-radius: var(--tl-r-sm);
}

.tl-btn--lg {
  padding: 15px 26px;
  font-size: 16px;
  border-radius: var(--tl-r-lg);
}

.tl-btn--block {
  width: 100%;
}

.tl-btn[disabled],
.tl-btn[aria-busy="true"] {
  opacity: 0.65;
  cursor: progress;
}

.tl-btn .tl-btn__spin {
  width: 15px;
  height: 15px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: tl-spin 0.7s linear infinite;
}

@keyframes tl-spin {
  to {
    transform: rotate(360deg);
  }
}

/* ==========================================================================
   4. Header — sticky, no layout jump
   ========================================================================== */

/* The notice bar + header reserve their own space so `position: sticky` never
   reflows the page when it engages. */
.tl-header-wrap {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  background: var(--tl-surface);
}

.tl-notice {
  background: var(--tl-charcoal);
  color: #d6d6de;
}

.tl-notice__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: var(--tl-notice-h);
  padding-block: 7px;
  font-size: 12px;
  line-height: 1.35;
}

.tl-notice__tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.tl-notice__tag i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--tl-yellow);
  font-style: normal;
}

.tl-notice__meta {
  color: #a9a9b4;
  font-size: 12px;
}

.tl-header {
  border-bottom: 1px solid var(--tl-line);
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  transition: box-shadow 0.2s var(--tl-ease), background-color 0.2s var(--tl-ease);
}

.tl-header-wrap.is-stuck .tl-header {
  box-shadow: 0 8px 26px rgba(16, 20, 30, 0.08);
  background: rgba(255, 255, 255, 0.98);
}

.tl-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: var(--tl-header-h);
}

.tl-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.tl-brand__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: linear-gradient(140deg, #3f6bf0 0%, #1c3fc0 100%);
  box-shadow: 0 6px 16px rgba(38, 80, 224, 0.28);
  color: #fff;
  transition: transform 0.2s var(--tl-ease);
}

.tl-brand:hover .tl-brand__mark {
  transform: scale(1.05);
}

.tl-brand__mark svg {
  width: 22px;
  height: 22px;
}

.tl-brand__name {
  display: flex;
  align-items: baseline;
  font-size: 23px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1;
}

.tl-brand__name b {
  font-weight: 800;
}

.tl-brand__name .tl-brand__links {
  color: var(--tl-blue);
}

.tl-brand__sub {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--tl-ink-3);
}

/* --- desktop navigation --- */

.tl-nav {
  display: none;
  align-items: center;
  gap: 4px;
}

.tl-nav__item {
  position: relative;
}

.tl-nav__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 9px 13px;
  border-radius: var(--tl-r-sm);
  color: var(--tl-ink-2);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  transition: color 0.16s var(--tl-ease), background-color 0.16s var(--tl-ease);
}

.tl-nav__link:hover,
.tl-nav__item.is-open > .tl-nav__link,
.tl-nav__link[aria-current="page"] {
  color: var(--tl-blue);
  background: var(--tl-blue-soft);
}

.tl-nav__chev {
  width: 13px;
  height: 13px;
  flex: 0 0 auto;
  opacity: 0.6;
  transition: transform 0.2s var(--tl-ease), opacity 0.2s var(--tl-ease);
}

.tl-nav__item.is-open > .tl-nav__link .tl-nav__chev {
  transform: rotate(180deg);
  opacity: 1;
}

/* --- panels (mega menu + industries) --- */

.tl-panel {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  z-index: 95;
  min-width: 260px;
  padding: 14px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-lg);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, -6px);
  transition: opacity 0.18s var(--tl-ease), transform 0.18s var(--tl-ease),
    visibility 0.18s var(--tl-ease);
}

.tl-nav__item.is-open > .tl-panel {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

/* invisible bridge so the pointer can travel from the trigger to the panel */
.tl-panel::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 0;
  right: 0;
  height: 12px;
}

.tl-panel--mega {
  width: min(880px, calc(100vw - 40px));
  left: 0;
  transform: translate(0, -6px);
}

.tl-nav__item.is-open > .tl-panel--mega {
  transform: translate(0, 0);
}

.tl-mega__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 26px;
}

.tl-mega__group + .tl-mega__group {
  padding-top: 0;
}

.tl-mega__title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 0 0 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--tl-line-soft);
  color: var(--tl-ink-3);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tl-mega__list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-mega__link {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 8px 10px;
  border-radius: var(--tl-r-sm);
  transition: background-color 0.15s var(--tl-ease), color 0.15s var(--tl-ease);
}

.tl-mega__link:hover {
  background: var(--tl-blue-soft);
}

.tl-mega__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border-radius: 9px;
  background: var(--tl-surface-3);
  font-size: 15px;
  line-height: 1;
}

.tl-mega__text {
  min-width: 0;
}

.tl-mega__name {
  display: block;
  color: var(--tl-ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.tl-mega__link:hover .tl-mega__name {
  color: var(--tl-blue);
}

.tl-mega__desc {
  display: block;
  margin-top: 1px;
  color: var(--tl-ink-3);
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.tl-panel__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--tl-r-md);
  background: var(--tl-surface-2);
}

.tl-panel__foot p {
  margin: 0;
  color: var(--tl-ink-3);
  font-size: 12px;
  line-height: 1.45;
}

.tl-panel__foot strong {
  color: var(--tl-ink);
}

/* industries dropdown: compact 2-column scannable list */
.tl-panel--industries {
  width: min(640px, calc(100vw - 40px));
  left: 0;
  transform: translate(0, -6px);
}

.tl-nav__item.is-open > .tl-panel--industries {
  transform: translate(0, 0);
}

.tl-ind-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 22px;
}

/* --- header actions --- */

.tl-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.tl-cart-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-md);
  background: var(--tl-surface);
  color: var(--tl-ink);
  cursor: pointer;
  transition: border-color 0.16s var(--tl-ease), background-color 0.16s var(--tl-ease),
    color 0.16s var(--tl-ease);
}

.tl-cart-btn:hover {
  border-color: var(--tl-blue-border);
  background: var(--tl-blue-soft);
  color: var(--tl-blue);
}

.tl-cart-btn svg {
  width: 20px;
  height: 20px;
}

.tl-cart-btn__count {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border: 2px solid var(--tl-surface);
  border-radius: var(--tl-r-pill);
  background: var(--tl-blue);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 16px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}

/* Cart button is only rendered when the cart has items — belt and braces so a
   stale server-rendered badge can never show an empty "0". */
.tl-cart-btn[data-count="0"],
.tl-cart-btn[data-count=""] {
  display: none;
}

.tl-cart-btn.is-bump {
  animation: tl-bump 0.32s var(--tl-ease);
}

@keyframes tl-bump {
  40% {
    transform: scale(1.12);
  }
}

.tl-burger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-md);
  background: var(--tl-surface);
  color: var(--tl-ink);
  cursor: pointer;
  transition: border-color 0.16s var(--tl-ease), background-color 0.16s var(--tl-ease);
}

.tl-burger:hover {
  border-color: var(--tl-blue-border);
  background: var(--tl-blue-soft);
}

.tl-burger svg {
  width: 21px;
  height: 21px;
}

.tl-burger__close {
  display: none;
}

.tl-burger[aria-expanded="true"] .tl-burger__open {
  display: none;
}

.tl-burger[aria-expanded="true"] .tl-burger__close {
  display: block;
}

/* ==========================================================================
   5. Mobile navigation panel
   ========================================================================== */

.tl-mobile-panel {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 120;
  display: flex;
  flex-direction: column;
  width: min(360px, 88vw);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.26s var(--tl-ease), visibility 0.26s var(--tl-ease);
  overscroll-behavior: contain;
}

.tl-mobile-panel.is-open {
  transform: translateX(0);
  visibility: visible;
}

.tl-mobile-panel__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--tl-line);
}

.tl-mobile-panel__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 12px 18px;
  -webkit-overflow-scrolling: touch;
}

.tl-mobile-panel__foot {
  padding: 12px 16px calc(16px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--tl-line);
  background: var(--tl-surface-2);
}

.tl-mnav__link,
.tl-mnav__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 11px 12px;
  border: 0;
  border-radius: var(--tl-r-md);
  background: transparent;
  color: var(--tl-ink);
  font-family: var(--tl-font);
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background-color 0.15s var(--tl-ease), color 0.15s var(--tl-ease);
}

.tl-mnav__link:hover,
.tl-mnav__trigger:hover {
  background: var(--tl-blue-soft);
  color: var(--tl-blue);
}

.tl-mnav__trigger .tl-nav__chev {
  width: 15px;
  height: 15px;
}

.tl-mnav__group.is-open > .tl-mnav__trigger .tl-nav__chev {
  transform: rotate(180deg);
}

.tl-mnav__sub {
  display: none;
  margin: 2px 0 6px;
  padding: 4px 0 4px 6px;
  border-left: 2px solid var(--tl-line-soft);
  list-style: none;
}

.tl-mnav__group.is-open > .tl-mnav__sub {
  display: block;
}

.tl-mnav__subtitle {
  margin: 10px 0 4px;
  padding-left: 12px;
  color: var(--tl-ink-3);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.tl-mnav__sub a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 8px 12px;
  border-radius: var(--tl-r-sm);
  color: var(--tl-ink-2);
  font-size: 15px;
  font-weight: 500;
}

.tl-mnav__sub a:hover {
  background: var(--tl-surface-2);
  color: var(--tl-blue);
}

.tl-mnav__sub .tl-mega__icon {
  width: 26px;
  height: 26px;
  font-size: 13px;
}

/* ==========================================================================
   6. Overlay + cart drawer
   ========================================================================== */

.tl-overlay {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(11, 11, 13, 0.5);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.24s var(--tl-ease), visibility 0.24s var(--tl-ease);
  backdrop-filter: blur(2px);
}

.tl-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.tl-cart-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 130;
  display: flex;
  flex-direction: column;
  width: min(430px, 94vw);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.28s var(--tl-ease), visibility 0.28s var(--tl-ease);
  overscroll-behavior: contain;
}

.tl-cart-drawer.is-open {
  transform: translateX(0);
  visibility: visible;
}

.tl-cart-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--tl-line);
}

.tl-cart-drawer__title {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tl-cart-drawer__title span {
  color: var(--tl-ink-3);
  font-size: 13px;
  font-weight: 500;
}

.tl-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-sm);
  background: var(--tl-surface);
  color: var(--tl-ink-2);
  cursor: pointer;
  transition: background-color 0.15s var(--tl-ease), color 0.15s var(--tl-ease);
}

.tl-icon-btn:hover {
  background: var(--tl-surface-2);
  color: var(--tl-ink);
}

.tl-icon-btn svg {
  width: 18px;
  height: 18px;
}

.tl-cart-drawer__body {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 14px 18px;
  -webkit-overflow-scrolling: touch;
}

.tl-cart-drawer__foot {
  padding: 16px 18px calc(18px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--tl-line);
  background: var(--tl-surface-2);
}

.tl-cart-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tl-line-soft);
}

.tl-cart-line:last-child {
  border-bottom: 0;
}

.tl-cart-line__name {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.tl-cart-line__name a:hover {
  color: var(--tl-blue);
}

.tl-cart-line__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  margin: 5px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tl-ink-3);
  font-size: 12.5px;
}

.tl-cart-line__meta li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.tl-cart-line__price {
  font-size: 15px;
  font-weight: 700;
  white-space: nowrap;
}

.tl-cart-line__tools {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
}

.tl-qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-sm);
  overflow: hidden;
  background: var(--tl-surface);
}

.tl-qty button {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--tl-ink-2);
  font-family: var(--tl-font);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}

.tl-qty button:hover {
  background: var(--tl-blue-soft);
  color: var(--tl-blue);
}

.tl-qty output {
  min-width: 30px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tl-linkbtn {
  border: 0;
  padding: 6px 4px;
  background: transparent;
  color: var(--tl-ink-3);
  font-family: var(--tl-font);
  font-size: 12.5px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.tl-linkbtn:hover {
  color: #c2352c;
}

.tl-cart-empty {
  padding: 34px 8px;
  text-align: center;
  color: var(--tl-ink-3);
}

.tl-cart-empty svg {
  width: 42px;
  height: 42px;
  margin-bottom: 12px;
  color: var(--tl-line);
}

.tl-cart-empty p {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 1.55;
}

.tl-cart-totals {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.tl-cart-totals dt {
  color: var(--tl-ink-2);
  font-size: 14px;
  font-weight: 600;
}

.tl-cart-totals dd {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.tl-cart-note {
  margin: 10px 0 0;
  color: var(--tl-ink-3);
  font-size: 11.5px;
  line-height: 1.5;
  text-align: center;
}

.tl-toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 150;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: min(420px, calc(100vw - 32px));
  padding: 12px 16px;
  border-radius: var(--tl-r-md);
  background: var(--tl-charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--tl-shadow-lg);
  opacity: 0;
  visibility: hidden;
  transform: translate(-50%, 10px);
  transition: opacity 0.2s var(--tl-ease), transform 0.2s var(--tl-ease),
    visibility 0.2s var(--tl-ease);
}

.tl-toast.is-open {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}

.tl-toast svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
  color: #6ee7a0;
}

/* Body scroll lock while a drawer/panel is open (JS adds the class + pad) */
.tl-lock {
  overflow: hidden;
}

/* ==========================================================================
   7. Page hero (catalog + industry + product)
   ========================================================================== */

.tl-main {
  flex: 1 0 auto;
  width: 100%;
}

.tl-hero {
  padding: clamp(28px, 5vw, 52px) 0 clamp(22px, 4vw, 38px);
  border-bottom: 1px solid var(--tl-line-soft);
  background:
    radial-gradient(120% 90% at 8% -10%, rgba(38, 80, 224, 0.07) 0%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, #fbfcff 0%, #ffffff 100%);
}

.tl-hero__crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--tl-ink-3);
  font-size: 12.5px;
  font-weight: 500;
}

.tl-hero__crumbs a:hover {
  color: var(--tl-blue);
}

.tl-hero__crumbs li + li::before {
  content: "/";
  margin-right: 6px;
  color: var(--tl-line);
}

.tl-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--tl-blue-border);
  border-radius: var(--tl-r-pill);
  background: var(--tl-blue-soft);
  color: var(--tl-blue);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-hero__title {
  margin: 14px 0 0;
  max-width: 22ch;
  font-size: clamp(30px, 5.2vw, 48px);
  font-weight: 800;
  line-height: 1.06;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.tl-hero__lead {
  margin: 14px 0 0;
  max-width: 66ch;
  color: var(--tl-ink-2);
  font-size: clamp(15px, 1.7vw, 17.5px);
  line-height: 1.65;
}

.tl-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tl-hero__chips li {
  padding: 7px 13px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-pill);
  background: var(--tl-surface);
  color: var(--tl-ink-2);
  font-size: 13px;
  font-weight: 600;
  box-shadow: var(--tl-shadow-xs);
}

.tl-hero__stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.tl-hero__stats li {
  padding: 14px 16px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-lg);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-xs);
}

.tl-hero__stats b {
  display: block;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.tl-hero__stats span {
  display: block;
  margin-top: 3px;
  color: var(--tl-ink-3);
  font-size: 12px;
  font-weight: 500;
}

.tl-hero__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
}

.tl-hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-lg);
  background: var(--tl-surface);
  font-size: 13.5px;
  font-weight: 600;
  color: var(--tl-ink-2);
}

.tl-hero__features li i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: var(--tl-blue-soft);
  font-size: 16px;
  font-style: normal;
}

/* ==========================================================================
   8. Master catalog card  (the High DA Backlinks reference design)
   ========================================================================== */

.tl-section {
  padding: clamp(30px, 5vw, 54px) 0;
}

.tl-section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 22px;
}

.tl-section__title {
  margin: 6px 0 0;
  font-size: clamp(23px, 3.4vw, 32px);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.035em;
}

.tl-section__lead {
  margin: 8px 0 0;
  max-width: 68ch;
  color: var(--tl-ink-2);
  font-size: 15px;
  line-height: 1.65;
}

.tl-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

.tl-grid--cards {
  grid-template-columns: 1fr;
}

/* Card: fixed internal rhythm + `margin-top:auto` footer keeps every CTA and
   price on the same baseline no matter how long the title is. */
.tl-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 340px;
  padding: 18px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-xl);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-xs);
  text-align: left;
  transition: border-color 0.2s var(--tl-ease), box-shadow 0.2s var(--tl-ease),
    transform 0.2s var(--tl-ease);
}

.tl-card:hover {
  border-color: var(--tl-blue-border);
  box-shadow: var(--tl-shadow-md);
  transform: translateY(-2px);
}

.tl-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tl-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: var(--tl-r-pill);
  background: var(--tl-blue-soft);
  border: 1px solid var(--tl-blue-border);
  color: var(--tl-blue);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
}

.tl-badge--gold {
  background: var(--tl-yellow-soft);
  border-color: #f3e0ac;
  color: var(--tl-yellow-deep, #a97200);
}

.tl-badge--violet {
  background: var(--tl-purple-soft);
  border-color: #e6dff2;
  color: var(--tl-purple);
}

.tl-badge--green {
  background: var(--tl-green-soft);
  border-color: #cdeada;
  color: #0b7a44;
}

.tl-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--tl-surface-3);
  font-size: 19px;
  line-height: 1;
}

.tl-card__title {
  margin: 12px 0 0;
  font-size: 17.5px;
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.022em;
  /* Long service names wrap to two lines and never push the layout around. */
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  overflow-wrap: anywhere;
  min-height: 2.56em;
}

.tl-card:hover .tl-card__title {
  color: var(--tl-blue);
}

.tl-card__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tl-ink-3);
  font-size: 12.5px;
  font-weight: 500;
}

.tl-card__meta li {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.tl-card__meta .tl-star {
  color: var(--tl-yellow);
  font-size: 13px;
}

.tl-card__meta b {
  color: var(--tl-ink);
  font-weight: 700;
}

.tl-card__specs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  margin: 14px 0 0;
  border: 1px solid var(--tl-line-soft);
  border-radius: var(--tl-r-md);
  background: var(--tl-line-soft);
  overflow: hidden;
}

.tl-spec {
  padding: 9px 8px;
  background: var(--tl-surface-2);
  text-align: center;
  min-width: 0;
}

.tl-spec__k {
  display: block;
  color: var(--tl-ink-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.tl-spec__v {
  display: block;
  margin-top: 3px;
  color: var(--tl-ink);
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.tl-card__foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 16px;
}

.tl-price-wrap {
  min-width: 0;
}

.tl-price-label {
  display: block;
  color: var(--tl-ink-3);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-price {
  display: block;
  margin-top: 1px;
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.05;
  color: var(--tl-ink);
}

.tl-price sup {
  font-size: 0.55em;
  font-weight: 700;
  vertical-align: super;
}

.tl-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 10px 16px;
  border-radius: var(--tl-r-md);
  background: var(--tl-charcoal);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.18s var(--tl-ease), gap 0.18s var(--tl-ease);
}

.tl-card:hover .tl-card__cta {
  background: var(--tl-blue);
  gap: 10px;
}

.tl-card__cta svg {
  width: 15px;
  height: 15px;
}

/* Category / directory card variant (used on /services/ and industry pages) */
.tl-card--category {
  min-height: 0;
}

.tl-card--category .tl-card__title {
  -webkit-line-clamp: 3;
  line-clamp: 3;
  min-height: 0;
}

.tl-card__desc {
  margin: 8px 0 0;
  color: var(--tl-ink-2);
  font-size: 13.5px;
  line-height: 1.55;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  overflow: hidden;
}

.tl-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}

.tl-card__tags li {
  padding: 4px 9px;
  border-radius: var(--tl-r-pill);
  background: var(--tl-surface-2);
  border: 1px solid var(--tl-line-soft);
  color: var(--tl-ink-3);
  font-size: 11.5px;
  font-weight: 600;
}

/* Empty state */
.tl-empty {
  padding: 40px 20px;
  border: 1px dashed var(--tl-line);
  border-radius: var(--tl-r-xl);
  background: var(--tl-surface-2);
  text-align: center;
  color: var(--tl-ink-3);
  font-size: 14.5px;
  line-height: 1.6;
}

/* Simple filter bar — links only, never duplicate indexable URLs */
.tl-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
  padding: 0;
  list-style: none;
}

.tl-filters a {
  padding: 8px 14px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-pill);
  background: var(--tl-surface);
  color: var(--tl-ink-2);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 0.15s var(--tl-ease), background-color 0.15s var(--tl-ease);
}

.tl-filters a:hover {
  border-color: var(--tl-blue-border);
  background: var(--tl-blue-soft);
  color: var(--tl-blue);
}

.tl-filters a[aria-current="true"] {
  border-color: var(--tl-blue);
  background: var(--tl-blue);
  color: #fff;
}

/* ==========================================================================
   9. Product page — one purchase flow
   ========================================================================== */

.tl-product {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: clamp(24px, 4vw, 40px) 0;
}

.tl-product__body {
  min-width: 0;
}

.tl-product__aside {
  min-width: 0;
}

.tl-prose {
  color: var(--tl-ink-2);
  font-size: 15.5px;
  line-height: 1.72;
}

.tl-prose > * + * {
  margin-top: 14px;
}

.tl-prose h2,
.tl-prose h3 {
  color: var(--tl-ink);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin: 26px 0 0;
}

.tl-prose h2 {
  font-size: 24px;
}

.tl-prose h3 {
  font-size: 19px;
}

.tl-prose ul {
  margin: 12px 0 0;
  padding-left: 20px;
  list-style: disc;
}

.tl-prose li + li {
  margin-top: 6px;
}

.tl-tiers {
  display: grid;
  gap: 10px;
  margin: 0 0 16px;
  padding: 0;
  list-style: none;
}

.tl-tier {
  position: relative;
  display: block;
  width: 100%;
  padding: 14px 15px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-lg);
  background: var(--tl-surface);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s var(--tl-ease), background-color 0.18s var(--tl-ease),
    box-shadow 0.18s var(--tl-ease);
}

.tl-tier:hover {
  border-color: var(--tl-blue-border);
  background: var(--tl-surface-3);
}

.tl-tier input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}

.tl-tier__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.tl-tier__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.015em;
}

.tl-tier__price {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.tl-tier__detail {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  margin: 7px 0 0;
  padding: 0;
  list-style: none;
  color: var(--tl-ink-3);
  font-size: 12.5px;
}

.tl-tier input:checked ~ .tl-tier__row,
.tl-tier.is-selected .tl-tier__row {
  color: var(--tl-blue);
}

.tl-tier.is-selected {
  border-color: var(--tl-blue);
  background: var(--tl-blue-soft);
  box-shadow: var(--tl-shadow-focus);
}

.tl-tier__flag {
  padding: 2px 8px;
  border-radius: var(--tl-r-pill);
  background: var(--tl-yellow-soft);
  color: #8a5c00;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tl-buybox {
  position: sticky;
  top: calc(var(--tl-header-h) + var(--tl-notice-h) + 16px);
  padding: 18px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-xl);
  background: var(--tl-surface);
  box-shadow: var(--tl-shadow-sm);
}

.tl-buybox__title {
  margin: 0 0 4px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.025em;
  overflow-wrap: anywhere;
}

.tl-buybox__sub {
  margin: 0 0 14px;
  color: var(--tl-ink-3);
  font-size: 13px;
}

.tl-buybox__total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--tl-r-md);
  background: var(--tl-surface-2);
}

.tl-buybox__total span {
  color: var(--tl-ink-2);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.tl-buybox__total b {
  font-size: 27px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.tl-buybox__assurances {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}

.tl-buybox__assurances li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--tl-ink-3);
  font-size: 12.5px;
  line-height: 1.45;
}

.tl-buybox__assurances li svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  margin-top: 2px;
  color: var(--tl-green);
}

.tl-seller {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
  padding: 12px 14px;
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-lg);
  background: var(--tl-surface-2);
}

.tl-seller__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--tl-blue);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.tl-seller__meta {
  min-width: 0;
  flex: 1 1 auto;
}

.tl-seller__meta b {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
}

.tl-seller__meta span {
  display: block;
  color: var(--tl-ink-3);
  font-size: 11.5px;
}

/* ==========================================================================
   10. FAQ / content blocks
   ========================================================================== */

.tl-faq {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
}

.tl-faq details {
  border: 1px solid var(--tl-line);
  border-radius: var(--tl-r-lg);
  background: var(--tl-surface);
  padding: 0;
  overflow: hidden;
}

.tl-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 17px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.015em;
  list-style: none;
}

.tl-faq summary::-webkit-details-marker {
  display: none;
}

.tl-faq summary::after {
  content: "";
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-right: 2px solid var(--tl-ink-3);
  border-bottom: 2px solid var(--tl-ink-3);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s var(--tl-ease);
}

.tl-faq details[open] summary::after {
  transform: rotate(-135deg) translate(-2px, -2px);
}

.tl-faq details[open] summary {
  border-bottom: 1px solid var(--tl-line-soft);
}

.tl-faq__a {
  padding: 14px 17px 17px;
  color: var(--tl-ink-2);
  font-size: 14.5px;
  line-height: 1.7;
}

.tl-callout {
  padding: 20px;
  border: 1px solid var(--tl-blue-border);
  border-radius: var(--tl-r-xl);
  background: var(--tl-blue-soft);
}

.tl-callout h3 {
  margin: 0 0 6px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.tl-callout p {
  margin: 0;
  color: var(--tl-ink-2);
  font-size: 14px;
  line-height: 1.6;
}

/* ==========================================================================
   11. Footer
   ========================================================================== */

.tl-footer {
  background: var(--tl-black);
  color: #b9b9c4;
  font-size: 14px;
}

.tl-footer a {
  transition: color 0.15s var(--tl-ease);
}

.tl-footer a:hover {
  color: #fff;
}

.tl-footer__main {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  padding: clamp(36px, 5vw, 60px) 0 34px;
}

.tl-footer__brand p {
  margin: 14px 0 0;
  max-width: 40ch;
  color: #8f8f9c;
  font-size: 13.5px;
  line-height: 1.65;
}

.tl-footer__brand .tl-brand__name {
  color: #fff;
}

.tl-footer__brand .tl-brand__sub {
  color: #7c7c88;
}

.tl-footer__contact {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.tl-footer__contact a {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: var(--tl-r-pill);
  color: #d6d6de;
  font-size: 12.5px;
  font-weight: 600;
}

.tl-footer__contact a:hover {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.tl-footer__col h2 {
  margin: 0 0 14px;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.tl-footer__col ul {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-footer__col a {
  color: #9c9ca8;
  font-size: 13.5px;
}

.tl-footer__bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
}

.tl-footer__bottom-in {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px 0 22px;
  color: #7c7c88;
  font-size: 12.5px;
}

.tl-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.tl-footer__legal a {
  color: #9c9ca8;
  font-size: 12.5px;
}

/* ==========================================================================
   12. Floating contact buttons
   ========================================================================== */

.tl-float {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 80;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

.tl-float a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  color: #fff;
  box-shadow: 0 10px 24px rgba(11, 11, 13, 0.24);
  transition: transform 0.18s var(--tl-ease), box-shadow 0.18s var(--tl-ease);
}

.tl-float a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(11, 11, 13, 0.3);
}

.tl-float svg {
  width: 23px;
  height: 23px;
}

.tl-float .tl-float--wa {
  background: #25d366;
}

.tl-float .tl-float--tg {
  background: #26a5e4;
}

/* ==========================================================================
   13. Generic native page scaffolding
   ========================================================================== */

.tl-page {
  padding: clamp(28px, 5vw, 52px) 0;
}

.tl-page__inner {
  max-width: 74ch;
}

.tl-page__title {
  margin: 0;
  font-size: clamp(28px, 4.6vw, 42px);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.tl-legal-updated {
  margin: 10px 0 26px;
  color: var(--tl-ink-3);
  font-size: 13px;
}

/* ==========================================================================
   14. Responsive
   ========================================================================== */

@media (min-width: 640px) {
  .tl-grid--cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .tl-footer__bottom-in {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

@media (min-width: 782px) {
  .tl-burger {
    display: none;
  }

  .tl-nav {
    display: flex;
  }

  .tl-mega__grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tl-mobile-panel {
    display: none;
  }
}

@media (min-width: 1024px) {
  .tl-grid--cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tl-grid--categories {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tl-product {
    grid-template-columns: minmax(0, 1.55fr) minmax(330px, 0.85fr);
    gap: 34px;
    align-items: start;
  }

  .tl-footer__main {
    grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr;
    gap: 26px;
  }
}

@media (max-width: 1279px) {
  .tl-panel--mega {
    width: min(760px, calc(100vw - 32px));
  }

  .tl-mega__desc {
    display: none;
  }

  .tl-nav__link {
    padding: 9px 10px;
    font-size: 14.5px;
  }
}

@media (max-width: 1099px) {
  .tl-nav__link {
    padding: 9px 8px;
    font-size: 14px;
  }

  .tl-brand__sub {
    display: none;
  }
}

/* Tablet portrait — the desktop nav is replaced by the hamburger below 782px,
   but keep the header comfortable between 782px and 900px. */
@media (max-width: 899px) {
  :root {
    --tl-header-h: 66px;
  }

  .tl-nav__link {
    padding: 8px 7px;
    font-size: 13.5px;
  }

  .tl-actions .tl-btn span {
    display: none;
  }

  .tl-actions .tl-btn {
    padding: 11px 13px;
  }
}

/* Phones */
@media (max-width: 639px) {
  :root {
    --tl-header-h: 62px;
    --tl-notice-h: 34px;
    --tl-gutter: 16px;
  }

  .tl-notice__meta {
    display: none;
  }

  .tl-notice__inner {
    justify-content: center;
    text-align: center;
  }

  .tl-brand__mark {
    width: 36px;
    height: 36px;
    border-radius: 11px;
  }

  .tl-brand__mark svg {
    width: 19px;
    height: 19px;
  }

  .tl-brand {
    gap: 9px;
  }

  .tl-brand__name {
    font-size: 19px;
  }

  .tl-actions {
    gap: 6px;
  }

  .tl-cart-btn,
  .tl-burger {
    width: 40px;
    height: 40px;
    border-radius: 11px;
  }

  .tl-cart-btn svg,
  .tl-burger svg {
    width: 19px;
    height: 19px;
  }

  .tl-card {
    min-height: 0;
    padding: 16px;
    border-radius: var(--tl-r-lg);
  }

  .tl-card__title {
    font-size: 16.5px;
  }

  .tl-spec__v {
    font-size: 12.5px;
  }

  .tl-spec__k {
    font-size: 8.5px;
    letter-spacing: 0.06em;
  }

  .tl-price {
    font-size: 23px;
  }

  .tl-card__cta {
    padding: 9px 13px;
    font-size: 13.5px;
  }

  .tl-hero__title {
    max-width: none;
  }

  .tl-buybox {
    position: static;
  }

  .tl-float {
    right: 12px;
    bottom: 12px;
  }

  .tl-float a {
    width: 44px;
    height: 44px;
  }
}

/* Small phones (360–390px) — nothing may crop or overflow */
@media (max-width: 379px) {
  :root {
    --tl-gutter: 13px;
  }

  .tl-brand__name {
    font-size: 17.5px;
  }

  .tl-grid {
    gap: 12px;
  }

  .tl-card {
    padding: 14px;
  }

  .tl-card__specs {
    gap: 1px;
  }

  .tl-spec {
    padding: 8px 4px;
  }

  .tl-spec__v {
    font-size: 11.5px;
  }

  .tl-card__foot {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tl-card__cta {
    width: 100%;
    justify-content: center;
  }

  .tl-cart-drawer,
  .tl-mobile-panel {
    width: 100vw;
  }

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

/* ==========================================================================
   15. Motion + print
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .tl-shell *,
  .tl-header *,
  .tl-footer *,
  .tl-cart-drawer *,
  .tl-mobile-panel * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .tl-card:hover {
    transform: none;
  }
}


/* Selected Phase 2.1 corrections. */
@media (min-width:782px){.tl-actions--no-cta{min-width:150px;justify-content:flex-end}}
.tl-contact-grid{display:grid;gap:28px;align-items:start}
.tl-page__eyebrow{margin:0 0 10px;color:var(--tl-blue);font-size:11px;font-weight:700;letter-spacing:.14em;text-transform:uppercase}
.tl-contact-lead{margin:14px 0 24px;color:var(--tl-ink-2);font-size:17px;line-height:1.65}
.tl-contact-card{padding:22px;border:1px solid var(--tl-line);border-radius:var(--tl-r-xl);background:#fff;box-shadow:var(--tl-shadow-sm)}
.tl-contact-card h2{margin:0 0 16px;font-size:22px;letter-spacing:-.025em}
.tl-contact-form{display:grid;gap:13px}
.tl-contact-form label{display:grid;gap:6px;color:var(--tl-ink-2);font-size:13px;font-weight:600}
.tl-contact-form input,.tl-contact-form textarea{width:100%;box-sizing:border-box;border:1px solid var(--tl-line);border-radius:var(--tl-r-md);background:#fff;color:var(--tl-ink);padding:11px 12px;font:inherit;outline:none}
.tl-contact-form input:focus,.tl-contact-form textarea:focus{border-color:var(--tl-blue);box-shadow:var(--tl-shadow-focus)}
.tl-contact-form textarea{resize:vertical;min-height:130px}
.tl-contact-direct{display:flex;flex-wrap:wrap;gap:8px;margin-top:16px;padding-top:16px;border-top:1px solid var(--tl-line-soft)}
.tl-contact-direct a{display:inline-flex;align-items:center;gap:7px;padding:8px 11px;border:1px solid var(--tl-line);border-radius:var(--tl-r-pill);font-size:12.5px;font-weight:600}
.tl-contact-notice{margin:20px 0;padding:12px 14px;border-radius:var(--tl-r-md);font-size:14px}
.tl-contact-notice.is-success{border:1px solid #bde8ce;background:#eaf7ef;color:#137440}
.tl-contact-notice.is-error{border:1px solid #f0c5c5;background:#fff1f1;color:#9b2929}
.tl-hp-field{position:absolute!important;left:-10000px!important;width:1px!important;height:1px!important;overflow:hidden!important}
@media (min-width:900px){.tl-contact-grid{grid-template-columns:minmax(0,1fr) minmax(340px,.75fr);gap:40px}}
