:root {
  --lp-primary: #1565C0;
  --lp-primary-dark: #0D47A1;
  --lp-primary-light: #60A5FA;
  --lp-dark: #0F1A2B;
  --lp-accent: #1565C0;
  --lp-bg: #f6f7f9;
  --lp-card: #ffffff;
  --lp-border: #e5e7eb;
  --lp-text: #1f2937;
  --lp-muted: #6b7280;

  /* override Bootstrap primary to match brand */
  --bs-primary: #1565C0;
  --bs-primary-rgb: 21, 101, 192;
  --bs-link-color: #1565C0;
  --bs-link-hover-color: #0D47A1;
}

.btn-primary {
  --bs-btn-bg: var(--lp-primary);
  --bs-btn-border-color: var(--lp-primary);
  --bs-btn-hover-bg: var(--lp-primary-dark);
  --bs-btn-hover-border-color: var(--lp-primary-dark);
  --bs-btn-active-bg: var(--lp-primary-dark);
  --bs-btn-active-border-color: var(--lp-primary-dark);
}
.text-primary { color: var(--lp-primary) !important; }
.bg-primary  { background-color: var(--lp-primary) !important; }
.border-primary { border-color: var(--lp-primary) !important; }

* { box-sizing: border-box; }

body {
  font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--lp-bg);
  color: var(--lp-text);
  font-size: 15px;
  line-height: 1.55;
}

a { color: var(--lp-accent); }
a:hover { color: var(--lp-primary-dark); }

/* === Header === */
.lp-topbar { background: #f1f3f5; border-bottom: 1px solid var(--lp-border); }
/* Keep each contact link intact (icon + number / @lestpro + note never split
   mid-phrase) and a touch larger on mobile so both are clear and legible. */
.lp-topbar-contact a { white-space: nowrap; }
@media (max-width: 575px) {
  .lp-topbar .small { font-size: 0.8rem; }
  .lp-topbar-contact { row-gap: 2px; }
  .lp-topbar-contact a { font-size: 0.82rem; }
}
.lp-logo { height: 48px; width: auto; display: block; }

.lp-search .input-group-text,
.lp-search .form-control {
  border-color: #ced4da;
  height: 52px;
}
.lp-search .form-control:focus { box-shadow: none; border-color: var(--lp-primary); }
.lp-search .btn { font-weight: 600; }

/* Alpine: keep x-cloak elements hidden until Alpine hydrates. The header search
   dropdown is global, so this rule must be global too (catalog.php has its own
   inline copy, kept for pages that load before this stylesheet). */
[x-cloak] { display: none !important; }

/* === Header search suggestions === */
.lp-search-suggest {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 1080;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.14);
  padding: 6px;
  max-height: min(70vh, 460px);
  overflow-y: auto;
}
.lp-suggest-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 11px;
  border-radius: 9px;
  text-decoration: none;
  color: var(--lp-text);
}
.lp-suggest-item.active { background: #E3F2FD; }
.lp-suggest-icon {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  color: #fff;
  background: var(--lp-primary);
}
.lp-suggest-icon.is-cat { background: #455A64; }
.lp-suggest-icon.is-mat { background: #C9A227; }
.lp-suggest-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.lp-suggest-label {
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-suggest-label mark {
  background: #FFF3B0;
  color: inherit;
  padding: 0;
  border-radius: 2px;
}
.lp-suggest-context {
  font-size: 11.5px;
  color: var(--lp-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.lp-suggest-go {
  flex-shrink: 0;
  font-size: 13px;
  color: var(--lp-muted);
  opacity: 0;
  transition: opacity 0.12s;
}
.lp-suggest-item.active .lp-suggest-go { opacity: 1; }
.lp-suggest-all {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  border: none;
  border-top: 1px solid var(--lp-border);
  background: transparent;
  border-radius: 0 0 9px 9px;
  color: var(--lp-primary-dark);
  font-size: 13.5px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.lp-suggest-all .bi { flex-shrink: 0; }
.lp-suggest-all.active { background: #E3F2FD; }
.lp-suggest-all span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-suggest-empty {
  padding: 14px 12px;
  font-size: 13px;
  color: var(--lp-muted);
  text-align: center;
}

/* === Hero === */
.lp-home-top {
  padding: 20px 0 8px;
}

/* === Banner grid (1 big slider + 1 medium + 2 small stacked) === */
.lp-banner-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 10px;
  min-height: 380px;
}
.lp-banner-main { grid-column: 1; grid-row: 1 / span 2; }
.lp-banner-medium { grid-column: 2; grid-row: 1 / span 2; }
.lp-banner-small:nth-of-type(3) { grid-column: 3; grid-row: 1; }
.lp-banner-small:nth-of-type(4) { grid-column: 3; grid-row: 2; }

@media (max-width: 991px) {
  .lp-banner-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto auto;
  }
  .lp-banner-main { grid-column: 1 / -1; grid-row: 1; min-height: 280px; }
  .lp-banner-medium { grid-column: 1 / -1; grid-row: 2; min-height: 160px; }
  .lp-banner-small:nth-of-type(3) { grid-column: 1; grid-row: 3; min-height: 90px; }
  .lp-banner-small:nth-of-type(4) { grid-column: 2; grid-row: 3; min-height: 90px; }
}

/* === Hero slider === */
.lp-hero-slider {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  height: 100%;
}
.lp-slides {
  position: relative;
  min-height: 380px;
  height: 100%;
  background: #0A1929;
}
.lp-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 40px 48px;
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateX(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.lp-slide.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(0);
  z-index: 2;
}

/* Slide themes — Gemini-generated banner images with darker overlay on left for text readability */
.lp-slide {
  background-size: cover;
  background-position: center right;
  background-repeat: no-repeat;
}
.lp-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(95deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.25) 40%, transparent 65%),
    radial-gradient(circle at 96% 92%, rgba(0,0,0,.45) 0%, rgba(0,0,0,.15) 35%, transparent 65%);
  pointer-events: none;
}
.lp-slide-blue   { background-color: #0A1929; background-image: url('../banners/slide-1-products.jpg'); }
.lp-slide-orange { background-color: #BF360C; background-image: url('../banners/slide-2-shipping.jpg'); }
.lp-slide-green  { background-color: #1B5E20; background-image: url('../banners/slide-3-line.jpg'); }
.lp-slide-navy   { background-color: #1A237E; background-image: url('../banners/slide-4-b2b.jpg'); }

.lp-slide-body {
  position: relative;
  z-index: 1;
  flex: 1;
  max-width: 620px;
}
.lp-slide-badge {
  display: inline-block;
  background: #FFC107;
  color: #1a1d23;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  animation: lp-pulse 2.4s ease-in-out infinite;
}
@keyframes lp-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(255,193,7,.6); }
  50% { transform: scale(1.04); box-shadow: 0 0 0 8px rgba(255,193,7,0); }
}
.lp-slide-eyebrow {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,.85);
  margin-bottom: 8px;
}
.lp-slide-title {
  font-size: clamp(24px, 3.4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 12px;
}
.lp-slide-title strong {
  color: #FFD54F;
  font-weight: 900;
}
.lp-slide-green .lp-slide-title strong { color: #B9F6CA; }
.lp-slide-orange .lp-slide-title strong { color: #FFEB3B; }
.lp-slide-sub {
  font-size: 15px;
  color: rgba(255,255,255,.88);
  margin-bottom: 18px;
  line-height: 1.5;
}
.lp-slide-cta {
  font-weight: 700;
  padding: 12px 24px !important;
  border-radius: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,.2);
}

/* Slide graphic icon hidden — replaced by background images */
.lp-slide-graphic { display: none; }

/* Slider navigation */
.lp-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,.2);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff;
  font-size: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  transition: all 0.15s;
}
.lp-slider-nav:hover { background: rgba(255,255,255,.4); }
.lp-slider-prev { left: 12px; }
.lp-slider-next { right: 12px; }

.lp-slider-dots {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}
.lp-slider-dots button {
  width: 24px; height: 4px;
  border: none;
  background: rgba(255,255,255,.4);
  border-radius: 2px;
  padding: 0;
  cursor: pointer;
  transition: all 0.2s;
}
.lp-slider-dots button.active {
  background: #fff;
  width: 36px;
}

@media (max-width: 767px) {
  .lp-slide { padding: 24px 28px; flex-direction: column; align-items: flex-start; gap: 16px; }
  .lp-slide-graphic { font-size: 80px; width: 100px; height: 100px; align-self: flex-end; margin-top: -40px; }
  .lp-slider-nav { display: none; }
  .lp-slides { min-height: 320px; }
}

/* === Medium banner — Gemini hero shot of socket cap screw on orange === */
.lp-banner-medium {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: #BF360C;
  background-image:
    linear-gradient(180deg, rgba(0,0,0,.38) 0%, rgba(0,0,0,0) 32%, rgba(0,0,0,0) 65%, rgba(0,0,0,.45) 100%),
    radial-gradient(circle at 92% 92%, rgba(0,0,0,.35) 0%, transparent 45%),
    url('../banners/banner-featured.jpg');
  background-size: cover;
  background-position: center;
  color: #fff;
  border-radius: 14px;
  padding: 18px 18px 14px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(0,0,0,.08);
  transition: all 0.2s;
}
.lp-banner-medium:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(244,81,30,.3);
}
.lp-banner-medium::before { display: none; }
.lp-banner-medium-eyebrow {
  font-size: 12px;
  font-weight: 700;
  background: rgba(255,255,255,.25);
  display: inline-block;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
  align-self: flex-start;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
}
.lp-banner-medium-title {
  font-size: 18px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  position: relative;
  z-index: 1;
}
.lp-banner-medium-sub {
  font-size: 13px;
  opacity: 0.85;
  margin-bottom: 8px;
  position: relative;
  z-index: 1;
}
.lp-banner-medium-spacer { flex: 1; min-height: 80px; }
.lp-banner-medium-cta {
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.2);
  position: relative;
  z-index: 1;
}
.lp-banner-medium-cta .bi { transition: transform 0.15s; }
.lp-banner-medium:hover .lp-banner-medium-cta .bi { transform: translateX(4px); }

/* === Small banners (product image rotation + brand tint overlay) === */
.lp-banner-small {
  display: block;
  border-radius: 14px;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
  background: #0F1A2B;
  min-height: 90px;
}
.lp-banner-small:hover { color: #fff; transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.18); }
.lp-banner-line { background: #00B900; }
.lp-banner-phone { background: #0D47A1; }
.lp-banner-line:hover { box-shadow: 0 10px 24px rgba(6,199,85,.35); }
.lp-banner-phone:hover { box-shadow: 0 10px 24px rgba(13,71,161,.35); }

.lp-banner-small-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #fff;
}
.lp-banner-small-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.lp-banner-small-bg img.active { opacity: 1; }

/* brand-color tint overlay so product images peek through but identity stays */
.lp-banner-small-tint {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.2s;
}
.lp-banner-line .lp-banner-small-tint {
  background: linear-gradient(135deg, rgba(6,199,85,.78) 0%, rgba(0,150,0,.88) 100%);
}
.lp-banner-phone .lp-banner-small-tint {
  background: linear-gradient(135deg, rgba(21,101,192,.78) 0%, rgba(13,71,161,.88) 100%);
}
.lp-banner-small:hover .lp-banner-small-tint { opacity: 0.85; }

.lp-banner-small-content {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  height: 100%;
  min-height: 90px;
}
.lp-banner-small-icon {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: rgba(255,255,255,.22);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  -webkit-backdrop-filter: blur(4px);
  backdrop-filter: blur(4px);
  border: 1px solid rgba(255,255,255,.15);
}
.lp-banner-small-body { flex: 1; min-width: 0; }
.lp-banner-small-title {
  font-weight: 700;
  font-size: 14px;
  line-height: 1.2;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.lp-banner-small-sub {
  font-size: 12px;
  opacity: 0.95;
  margin-top: 2px;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,.2);
}
.lp-banner-small-arrow {
  font-size: 16px;
  opacity: 0.7;
  transition: all 0.15s;
}
.lp-banner-small:hover .lp-banner-small-arrow { opacity: 1; transform: translateX(3px); }

/* friendly callout in footer */
.lp-footer-friendly {
  background: rgba(255,193,7,.12);
  border: 1px solid rgba(255,193,7,.25);
  border-radius: 8px;
  padding: 10px 12px;
  color: rgba(255,255,255,.85);
  line-height: 1.55;
}
.lp-footer-friendly .bi { color: #FFD54F; }

/* social icon buttons row (footer) */
.lp-social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.lp-social {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  font-size: 18px;
  transition: all 0.18s ease;
  flex-shrink: 0;
  padding: 0;
  overflow: hidden;
}
.lp-social:hover {
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 14px rgba(0,0,0,.25);
}
/* wider pill for SVG wordmark logos */
.lp-social-wide {
  width: auto;
  min-width: 64px;
  border-radius: 20px;
  padding: 0 12px;
}
.lp-social-img {
  height: 18px;
  width: auto;
  max-width: 60px;
  display: block;
  filter: brightness(0) invert(1);
}
.lp-social-lazada .lp-social-img { height: 18px; max-width: 72px; filter: none; }
.lp-social-shopee .lp-social-img { height: 24px; width: 24px; max-width: none; filter: none; }

.lp-social-fb     { background: #1877F2; }
.lp-social-line   { background: #06C755; }
.lp-social-tiktok { background: #000; }
.lp-social-shopee { background: #fff; }
.lp-social-lazada { background: #fff; }

/* === Main category row (horizontal shelf with side arrows) === */
.lp-maincat-row-section {
  padding: 16px 0 8px;
}
.lp-maincat-wrap {
  position: relative;
}
.lp-maincat-catalog {
  margin: 6px 0 18px;
}
.lp-maincat-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding: 4px 0;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  /* Hide native scrollbar — arrows + drag replace it */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.lp-maincat-row::-webkit-scrollbar { display: none; }
.lp-maincat-row.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;          /* don't snap mid-drag */
  user-select: none;
}

.lp-maincat-tile {
  flex: 1 0 auto;
  width: calc((100% - 98px) / 14);
  min-width: 108px;
  aspect-ratio: 1 / 1;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  scroll-snap-align: start;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.lp-maincat-tile:hover {
  transform: translateY(-3px);
  border-color: #F4511E;
  box-shadow: 0 6px 16px rgba(0,0,0,0.08);
}
.lp-maincat-tile.active {
  border-color: #F4511E;
  border-width: 2px;
  background: #FFF3EF;
  box-shadow: 0 4px 14px rgba(244,81,30,0.18);
}
.lp-maincat-tile.active::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 4px;
  height: 3px;
  border-radius: 3px;
  background: #F4511E;
}
.lp-maincat-tile { position: relative; }
.lp-maincat-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
/* "ทั้งหมด" tile: a neutral home/reset affordance — never carries the orange
   active state (the active main tile is the position indicator, this is the
   "back to everything" entry point). */
.lp-maincat-all {
  flex-direction: column;
  gap: 5px;
  color: var(--lp-text);
  font-size: 12.5px;
  font-weight: 600;
}
.lp-maincat-all .bi {
  font-size: 26px;
  color: var(--lp-primary);
  line-height: 1;
}
.lp-maincat-all span { line-height: 1.1; }
.lp-maincat-all:hover { border-color: var(--lp-primary); }

.lp-maincat-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--lp-border);
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: var(--lp-text);
  cursor: pointer;
  padding: 0;
  transition: background 0.15s, color 0.15s, border-color 0.15s, transform 0.15s;
}
.lp-maincat-nav:hover {
  background: #F4511E;
  color: #fff;
  border-color: #F4511E;
  transform: translateY(-50%) scale(1.05);
}
.lp-maincat-prev { left: -12px; }
.lp-maincat-next { right: -12px; }

@media (max-width: 575px) {
  .lp-maincat-tile { min-width: 96px; padding: 4px; }
  .lp-maincat-nav { width: 34px; height: 34px; font-size: 17px; }
  .lp-maincat-prev { left: -4px; }
  .lp-maincat-next { right: -4px; }
}

/* === Header category bar (text links) === */
.lp-catnav { gap: 0; }
.lp-catnav .nav-link {
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
  transition: background 0.15s;
}
.lp-catnav .nav-link:hover {
  background: rgba(21,101,192,.18);
  color: var(--lp-primary-light) !important;
}
.lp-catnav::-webkit-scrollbar { display: none; }
.lp-catnav { scrollbar-width: none; }

/* === Mega menu sidebar === */
.lp-mega-menu {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  position: relative;
  z-index: 50;
  height: 100%;
  min-height: 380px;
  display: flex;
  flex-direction: column;
}
.lp-mega-menu-head {
  background: var(--lp-primary);
  color: #fff;
  padding: 14px 18px;
  font-weight: 700;
  font-size: 15px;
  border-radius: 14px 14px 0 0;
}
.lp-mega-menu-list {
  list-style: none;
  padding: 6px 0;
  margin: 0;
  flex: 1;
  overflow-y: auto;
}
.lp-mega-menu-item a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 18px;
  color: var(--lp-text);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.12s;
  border-left: 3px solid transparent;
}
.lp-mega-menu-item a > span { line-height: 1.3; }
.lp-mega-menu-item a .bi {
  color: var(--lp-muted);
  font-size: 11px;
  flex-shrink: 0;
}
.lp-mega-menu-item.active > a,
.lp-mega-menu-item > a:hover {
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  border-left-color: var(--lp-primary);
}
.lp-mega-menu-item.active > a .bi,
.lp-mega-menu-item > a:hover .bi { color: var(--lp-primary); }
.lp-mega-menu-all {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 4px 12px 12px;
  padding: 11px 16px;
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.12s;
}
.lp-mega-menu-all:hover {
  background: var(--lp-primary);
  color: #fff;
}
.lp-mega-menu-all .bi { font-size: 13px; flex-shrink: 0; }

/* Flyout panel */
.lp-mega-flyout {
  position: absolute;
  top: 0;
  left: calc(100% + 6px);
  width: calc((100vw - 100%) - 60px);
  max-width: 880px;
  min-height: 100%;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  box-shadow: 0 18px 40px rgba(0,0,0,0.14);
  padding: 18px 22px;
  z-index: 60;
  max-height: 520px;
  overflow-y: auto;
}
.lp-mega-flyout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--lp-primary);
  padding-bottom: 10px;
  margin-bottom: 14px;
}
.lp-mega-flyout-head h5 {
  margin: 0;
  font-weight: 700;
  color: var(--lp-primary-dark);
  font-size: 16px;
}
.lp-mega-flyout-all {
  font-size: 13px;
  color: var(--lp-primary);
  text-decoration: none;
  font-weight: 600;
}
.lp-mega-flyout-all:hover { color: var(--lp-primary-dark); }
.lp-mega-flyout-all .bi { font-size: 12px; transition: transform 0.15s; }
.lp-mega-flyout-all:hover .bi { transform: translateX(3px); }

.lp-mega-flyout-grid {
  column-count: 3;
  column-gap: 24px;
}
@media (max-width: 1199px) { .lp-mega-flyout-grid { column-count: 2; } }
.lp-mega-flyout-col {
  break-inside: avoid;
  margin-bottom: 14px;
  display: block;
}
.lp-mega-flyout-cat {
  display: block;
  font-weight: 700;
  font-size: 13px;
  color: var(--lp-primary-dark);
  text-decoration: none;
  margin-bottom: 4px;
  line-height: 1.3;
}
.lp-mega-flyout-cat:hover { color: var(--lp-primary); }
.lp-mega-flyout-subs {
  list-style: none;
  padding: 0 0 0 0;
  margin: 0;
}
.lp-mega-flyout-subs li { margin-bottom: 2px; }
.lp-mega-flyout-subs a {
  color: var(--lp-muted);
  text-decoration: none;
  font-size: 12px;
  display: block;
  padding: 1px 0;
  transition: color 0.1s;
}
.lp-mega-flyout-subs a:hover { color: var(--lp-primary); }

/* === Marketplace embeds === */
.lp-marketplace-strip {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 14px 16px 16px;
}
.lp-marketplace-head {
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.lp-marketplace-head .bi { color: var(--lp-primary); font-size: 16px; }

.lp-marketplace {
  display: block;
  border-radius: 10px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border: 1px solid var(--lp-border);
  transition: all 0.2s;
  height: 100%;
}
.lp-marketplace:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(0,0,0,.10);
  color: inherit;
  border-color: transparent;
}

.lp-mp-head {
  padding: 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: #fff;
  min-height: 60px;
  position: relative;
  overflow: hidden;
}
.lp-mp-lazada .lp-mp-head {
  background: #fff;
  border-bottom: 1px solid var(--lp-border);
  color: var(--lp-text);
  position: relative;
}
.lp-mp-lazada .lp-mp-head::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #0F146F 0%, #2196F3 30%, #FB8C00 65%, #F44336 100%);
}
.lp-mp-shopee .lp-mp-head {
  background: linear-gradient(135deg, #F53D2D 0%, #EE4D2D 100%);
}
.lp-mp-tiktok .lp-mp-head {
  background: #010101;
}
.lp-mp-tiktok .lp-mp-head::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 22% 35%, rgba(254, 44, 85, .35) 0%, transparent 35%),
    radial-gradient(circle at 78% 65%, rgba(37, 244, 238, .25) 0%, transparent 35%);
  pointer-events: none;
}

.lp-mp-logo {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  height: 30px;
  flex-shrink: 1;
  min-width: 0;
}
.lp-mp-logo-img {
  height: 28px;
  width: auto;
  max-width: 150px;
  display: block;
  object-fit: contain;
  /* default: force white silhouette for contrast on colored card header */
  filter: brightness(0) invert(1);
}
/* Lazada: keep original brand colors on white card */
.lp-mp-lazada .lp-mp-logo-img {
  filter: none;
  height: 30px;
  max-width: 130px;
}
.lp-mp-tiktok .lp-mp-logo-img { height: 26px; max-width: 130px; }
/* Shopee: keep white bag icon, add wordmark text */
.lp-mp-shopee .lp-mp-logo-img { height: 26px; max-width: 28px; }
.lp-mp-wordmark {
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  margin-left: 6px;
  line-height: 1;
}
.lp-mp-logo-fallback {
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -0.5px;
  color: #fff;
}
.lp-mp-lazada .lp-mp-logo-fallback { color: #0F146F; }

/* No rating/status badge on marketplace cards: the shop is not an official /
   mall store on any platform, so any such badge (and the old 5-star rating)
   would be a fabricated trust signal. Logo + store name + CTA stand on their
   own; real brand presence is the trust signal. See PRODUCT.md anti-references. */

.lp-mp-body {
  padding: 12px 14px 8px;
}
.lp-mp-store {
  font-weight: 700;
  font-size: 14px;
  color: var(--lp-text);
  margin-bottom: 2px;
}
.lp-mp-tagline {
  color: var(--lp-muted);
  font-size: 12px;
  line-height: 1.4;
}

.lp-mp-cta {
  padding: 10px 14px;
  background: #fafbfc;
  border-top: 1px solid var(--lp-border);
  font-weight: 600;
  font-size: 13px;
  color: var(--lp-primary);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.lp-mp-cta .bi { transition: transform 0.15s; }
.lp-marketplace:hover .lp-mp-cta .bi { transform: translateX(4px); }
.lp-marketplace:hover .lp-mp-cta { background: #E3F2FD; }

/* === Section === */
.lp-section { padding: 32px 0; }
.lp-section-title {
  font-weight: 700;
  font-size: 24px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.lp-section-title .lp-accent-bar {
  width: 4px; height: 24px;
  background: var(--lp-primary);
  border-radius: 2px;
}

/* === All categories grouped === */
.lp-cat-group {
  margin-bottom: 36px;
  scroll-margin-top: calc(var(--lp-sticky-top, 110px) + 12px);
}
.lp-cat-group:last-child { margin-bottom: 0; }
/* Sticky section header: stays pinned under the site header while scrolling its
   group, so you always know which main category you're looking at. */
.lp-cat-group-title {
  position: sticky;
  top: var(--lp-sticky-top, 110px);
  z-index: 5;
  background: var(--lp-bg);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  padding: 8px 0 10px;
  border-bottom: 2px solid var(--lp-border);
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.lp-cat-group-title a {
  color: inherit;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s;
}
.lp-cat-group-title a:hover { color: var(--lp-primary); }
.lp-cat-group-title a:hover .bi-arrow-right { transform: translateX(3px); }
.lp-cat-group-title .lp-cat-group-count {
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
}
.lp-cat-group-title .bi-arrow-right {
  font-size: 14px;
  color: var(--lp-muted);
  transition: transform 0.15s;
}

.lp-cat-tile-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, 1fr);
}
@media (max-width: 1199px) { .lp-cat-tile-grid { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 991px)  { .lp-cat-tile-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 767px)  { .lp-cat-tile-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 480px)  { .lp-cat-tile-grid { grid-template-columns: repeat(2, 1fr); } }

.lp-cat-tile {
  display: flex;
  flex-direction: column;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 10px;
  padding: 10px 8px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: all 0.15s;
}
.lp-cat-tile:hover {
  border-color: var(--lp-primary);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  color: inherit;
}
.lp-cat-tile .lp-thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 8px;
}
.lp-cat-tile .lp-thumb img {
  max-width: 90%; max-height: 90%; object-fit: contain;
}
.lp-cat-tile .lp-name {
  font-size: 12px;
  line-height: 1.3;
  font-weight: 500;
  min-height: 2.6em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 2px;
}
.lp-cat-tile .lp-count {
  font-size: 11px;
  color: var(--lp-muted);
}

/* === Catalog page === */
.lp-filter-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 18px;
  position: sticky;
  top: 180px;
  max-height: calc(100vh - 200px);
  overflow-y: auto;
}
.lp-filter-group { margin-bottom: 22px; }
.lp-filter-group:last-child { margin-bottom: 0; }
.lp-filter-group h6 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-text);
}
.lp-filter-group .form-check {
  margin-bottom: 6px;
  padding-left: 1.7em;
}
.lp-filter-group .form-check-label {
  font-size: 14px;
  cursor: pointer;
}
.lp-filter-group .form-check-input {
  margin-left: -1.7em;
  cursor: pointer;
}
.lp-filter-group .form-check-input:checked {
  background-color: var(--lp-primary);
  border-color: var(--lp-primary);
}
.lp-filter-main {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.lp-filter-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex: 0 0 22px;
  display: block;
}

.lp-size-search {
  position: relative;
  margin-bottom: 10px;
}
.lp-size-search .bi {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--lp-muted);
  font-size: 13px;
  pointer-events: none;
}
.lp-size-search input {
  padding-left: 30px;
}
.lp-size-search input:focus {
  border-color: var(--lp-primary);
  box-shadow: none;
}

.lp-size-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
}
.lp-size-chips-scroll {
  max-height: 184px;
  overflow-y: auto;
  padding: 2px 4px 2px 2px;
  margin: 0 -2px;
}

.lp-size-more {
  display: inline-flex;
  align-items: center;
  margin-top: 10px;
  padding: 0;
  border: none;
  background: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-primary);
  cursor: pointer;
}
.lp-size-more:hover { color: var(--lp-primary-dark); }
.lp-size-more .bi { font-size: 11px; }
.lp-size-chip {
  border: 1px solid var(--lp-border);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s;
}
.lp-size-chip:hover { border-color: var(--lp-primary); }
.lp-size-chip.active {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
  font-weight: 600;
}

/* === Product card === */
.lp-product-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, 1fr);
}
@media (max-width: 1199px) { .lp-product-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; } }
@media (max-width: 991px) { .lp-product-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } }
@media (max-width: 576px) {
  .lp-product-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .lp-product-card { border-radius: 8px; }
  .lp-product-card .lp-body { padding: 8px 6px; }
  .lp-product-card .lp-name { font-size: 12px; line-height: 1.3; min-height: 2.6em; margin-bottom: 4px; }
  .lp-product-card .lp-tags { gap: 3px; margin-bottom: 6px; }
  .lp-product-card .lp-tag { font-size: 10px; padding: 1px 5px; }
  .lp-product-card .lp-tag.muted { display: none; }
  .lp-product-card .lp-meta { font-size: 11px; margin-bottom: 6px; }
  .lp-product-card .lp-action .btn { font-size: 11px; padding: 4px 6px; }
  .lp-product-card .lp-action .btn i { display: none; }
}

.lp-product-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all 0.2s;
}
.lp-product-card:hover {
  border-color: var(--lp-primary);
  box-shadow: 0 6px 16px rgba(0,0,0,.06);
}
.lp-product-card .lp-thumb {
  position: relative;
  aspect-ratio: 1/1;
  background: #f8f9fa;
  display: flex; align-items: center; justify-content: center;
  border-bottom: 1px solid var(--lp-border);
}
.lp-thumb-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(21, 101, 192, 0.92);
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 8px;
  border-radius: 999px;
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.lp-thumb-badge .bi { font-size: 10px; }

/* material/finish indicator (top-right): colour swatch + short family label */
.lp-mat-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: calc(100% - 16px);
  background: rgba(255, 255, 255, 0.95);
  color: #0F1A2B;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  border: 1px solid rgba(0, 0, 0, 0.06);
  -webkit-backdrop-filter: blur(2px);
  backdrop-filter: blur(2px);
}
.lp-mat-badge > span:last-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Material swatch: a clean rounded-square finish chip (material/Apple style).
   Flat finish colour with a soft top-light and a crisp hairline frame for
   definition on any background. The sheen is an overlay on var(--mat) so it
   needs no color-mix (safe on older mobile browsers). */
.lp-mat-dot {
  width: 13px;
  height: 13px;
  border-radius: 3.5px;
  flex-shrink: 0;
  background-color: var(--mat, #9aa3ad);
  background-image: linear-gradient(160deg,
    rgba(255, 255, 255, 0.30) 0%,
    rgba(255, 255, 255, 0) 52%,
    rgba(0, 0, 0, 0.12) 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
  border: 0.5px solid rgba(0, 0, 0, 0.12);
}
.lp-product-card .lp-thumb img {
  max-width: 90%; max-height: 90%; object-fit: contain;
}
.lp-product-card .lp-body { padding: 14px; flex: 1; display: flex; flex-direction: column; }
.lp-product-card .lp-name {
  font-weight: 700;
  font-size: 15px;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: var(--lp-text);
  margin-bottom: 8px;
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.lp-product-card .lp-tags {
  display: flex; flex-wrap: wrap; gap: 4px;
  margin-bottom: 10px;
}
.lp-product-card .lp-tag {
  background: #E3F2FD;
  color: #0D47A1;
  border-radius: 4px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 500;
}
.lp-product-card .lp-tag.muted { background: #f1f3f5; color: var(--lp-muted); }
.lp-product-card .lp-tag-mat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #fff;
  color: var(--lp-text);
  border: 1px solid var(--lp-border);
  font-weight: 600;
}
.lp-product-card .lp-meta {
  font-size: 13px;
  color: var(--lp-muted);
  margin-bottom: 10px;
}
.lp-product-card .lp-action {
  margin-top: auto;
  display: flex;
  gap: 6px;
}
.lp-product-card .lp-action .btn {
  flex: 1 1 0;
  min-width: 0;
  min-height: 36px;
  font-size: 13px;
  font-weight: 600;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}
/* primary inquiry button → LINE-green family, darkened to clear WCAG AA
   (white-on-#098438 ≈ 4.8:1; pure #06C755 only hits ~2.3:1). LINE icon carries
   the brand recognition; the deeper green also reads more premium than neon. */
.lp-btn-line {
  background: #098438;
  border-color: #098438;
  color: #fff;
}
.lp-btn-line:hover,
.lp-btn-line:focus-visible {
  background: #07712f;
  border-color: #07712f;
  color: #fff;
}

/* expanded size table */
.lp-sizes-panel {
  background: #fafbfc;
  border: 1px solid var(--lp-border);
  border-top: none;
  padding: 12px 14px;
  max-height: 240px;
  overflow-y: auto;
}
.lp-sizes-panel table {
  width: 100%;
  font-size: 13px;
}
.lp-sizes-panel th {
  font-weight: 600;
  color: var(--lp-muted);
  padding: 4px 6px;
  border-bottom: 1px solid var(--lp-border);
  text-align: left;
  font-size: 11px;
  text-transform: uppercase;
}
.lp-sizes-panel td {
  padding: 4px 6px;
  border-bottom: 1px solid #f1f3f5;
}
.lp-sizes-panel tr:last-child td { border-bottom: none; }
.lp-sizes-panel .lp-size-pill {
  display: inline-block;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 6px;
  padding: 2px 8px;
  font-family: 'JetBrains Mono', 'Menlo', monospace;
  font-size: 12px;
  font-weight: 600;
}

/* === toolbar === */
.lp-toolbar {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 12px 16px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.lp-toolbar .lp-count { font-weight: 600; }
.lp-toolbar .lp-count strong { color: var(--lp-accent); }

/* === Active filter chips (removable, shown above results) === */
.lp-active-filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
}
.lp-active-filters-label {
  font-size: 13px;
  color: var(--lp-muted);
  margin-right: 2px;
}
.lp-chip-active {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #E3F2FD;
  color: #0D47A1;
  border: 1px solid #BBDEFB;
  border-radius: 999px;
  padding: 4px 10px 4px 12px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.lp-chip-active:hover,
.lp-chip-active:focus-visible {
  background: #BBDEFB;
  border-color: #90CAF9;
}
.lp-chip-active .bi { font-size: 11px; opacity: 0.75; }
.lp-chip-clear {
  background: none;
  border: none;
  padding: 4px 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-muted);
  cursor: pointer;
}
.lp-chip-clear:hover { color: var(--lp-primary); text-decoration: underline; }

.lp-empty {
  background: var(--lp-card);
  border: 1px dashed var(--lp-border);
  border-radius: 12px;
  padding: 60px 20px;
  text-align: center;
  color: var(--lp-muted);
}
.lp-empty i { font-size: 48px; opacity: 0.4; }

/* mobile filter toggle */
.lp-mobile-filter-btn {
  position: fixed;
  bottom: 20px; right: 20px;
  z-index: 1040;
  border-radius: 50px;
  box-shadow: 0 4px 12px rgba(0,0,0,.2);
  padding: 12px 22px;
  display: none;
}
@media (max-width: 991px) {
  .lp-mobile-filter-btn { display: inline-flex; }
  .lp-filter-card.lp-mobile-hidden { display: none; }
}

/* loading skeleton */
.lp-skeleton { opacity: 0.5; pointer-events: none; }

/* infinite-scroll load-more (replaces pagination) */
.lp-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 24px;
}
.lp-loadmore .btn {
  min-width: 220px;
  font-weight: 600;
}
.lp-loadmore-end {
  text-align: center;
  margin-top: 24px;
  color: var(--lp-muted);
  font-size: 14px;
}
.lp-loadmore-end strong { color: var(--lp-text); }

/* breadcrumbs */
.lp-crumbs {
  font-size: 13px;
  color: var(--lp-muted);
  margin-bottom: 16px;
}
.lp-crumbs a { color: var(--lp-muted); text-decoration: none; }
.lp-crumbs a:hover { color: var(--lp-accent); }

/* catalog page heading */
.lp-catalog-h1 {
  font-size: clamp(20px, 2.4vw, 26px);
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 16px;
  line-height: 1.3;
}

/* === Sidebar wrapper: stacks the TOC rail above the filters, one sticky column === */
.lp-side {
  position: sticky;
  top: calc(var(--lp-sticky-top, 110px) + 12px);
  max-height: calc(100vh - var(--lp-sticky-top, 110px) - 24px);
  overflow-y: auto;
  overscroll-behavior: contain;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-right: 2px;
}
/* The filter card no longer self-stickies — the wrapper handles it. */
.lp-side .lp-filter-card {
  position: static;
  top: auto;
  max-height: none;
  overflow: visible;
}
@media (max-width: 991px) {
  .lp-side {
    position: static;
    max-height: none;
    overflow: visible;
  }
  .lp-side.lp-mobile-hidden { display: none; }
}

/* === In-page table-of-contents (side rail) === */
.lp-toc-card {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 14px 12px;
}
.lp-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 0 0 8px;
  padding: 0 6px;
}
.lp-toc-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--lp-text);
  margin: 0;
}
.lp-toc-reset {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-primary);
  cursor: pointer;
  white-space: nowrap;
}
.lp-toc-reset:hover { text-decoration: underline; }
.lp-toc { list-style: none; margin: 0; padding: 0; }
.lp-toc-group { border-radius: 8px; }
.lp-toc-group.active { background: #F0F6FF; }
.lp-toc-grow { display: flex; align-items: stretch; }
.lp-toc-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  background: none;
  border: none;
  padding: 7px 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lp-text);
  cursor: pointer;
  border-radius: 6px;
  line-height: 1.3;
}
.lp-toc-group.active .lp-toc-main { color: var(--lp-primary-dark); }
.lp-toc-main:hover { color: var(--lp-primary); }
.lp-toc-toggle {
  background: none;
  border: none;
  color: var(--lp-muted);
  cursor: pointer;
  padding: 6px 9px;
  font-size: 11px;
  flex: 0 0 auto;
}
.lp-toc-toggle:hover { color: var(--lp-primary); }
.lp-toc-sub { list-style: none; margin: 0 0 6px; padding: 0 0 2px 6px; }
.lp-toc-cat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  background: none;
  border: none;
  border-left: 2px solid transparent;
  text-align: left;
  cursor: pointer;
  padding: 5px 8px;
  font-size: 12.5px;
  color: var(--lp-muted);
  border-radius: 0 6px 6px 0;
  transition: background 0.12s, color 0.12s, border-color 0.12s;
}
.lp-toc-cat:hover {
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  border-left-color: var(--lp-primary);
}
.lp-toc-cat.active {
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  border-left-color: var(--lp-primary);
  font-weight: 700;
}
.lp-toc-cat-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-toc-n { font-size: 11px; color: var(--lp-muted); flex: 0 0 auto; }
.lp-toc-title .bi { color: var(--lp-primary); }
.lp-toc-hint {
  font-size: 11px;
  color: var(--lp-muted);
  margin: 0 0 8px;
  padding: 0 6px;
  line-height: 1.4;
}
.lp-filter-card .lp-toc-head { margin-bottom: 4px; }

/* === Density toggle (toolbar) === */
.lp-density {
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  overflow: hidden;
}
.lp-density button {
  background: #fff;
  border: none;
  padding: 6px 10px;
  color: var(--lp-muted);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
}
.lp-density button + button { border-left: 1px solid var(--lp-border); }
.lp-density button.active { background: var(--lp-primary); color: #fff; }

/* === Material/finish swatches on the card === */
.lp-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 10px;
}
.lp-swatch {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 100%;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  padding: 3px 9px 3px 6px;
  font-size: 11px;
  font-weight: 600;
  color: var(--lp-text);
  cursor: pointer;
  line-height: 1;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
.lp-swatch:hover { border-color: var(--lp-primary); }
.lp-swatch.active {
  border-color: var(--lp-primary);
  background: #E3F2FD;
  box-shadow: 0 0 0 1px var(--lp-primary) inset;
}
.lp-swatch-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* scope note inside the open size panel (when a finish is selected) */
.lp-sizes-scope {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--lp-muted);
  padding-bottom: 8px;
  margin-bottom: 6px;
  border-bottom: 1px dashed var(--lp-border);
}
.lp-sizes-scope-clear {
  background: none;
  border: none;
  padding: 0;
  font-size: 12px;
  font-weight: 600;
  color: var(--lp-primary);
  cursor: pointer;
  flex: 0 0 auto;
}
.lp-sizes-scope-clear:hover { text-decoration: underline; }

/* === Dense (compact) grid: more cards per row, slimmer card chrome === */
.lp-product-grid.lp-dense { grid-template-columns: repeat(6, 1fr); gap: 10px; }
@media (max-width: 1199px) { .lp-product-grid.lp-dense { grid-template-columns: repeat(5, 1fr); } }
@media (max-width: 991px)  { .lp-product-grid.lp-dense { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 576px)  { .lp-product-grid.lp-dense { grid-template-columns: repeat(3, 1fr); } }
.lp-dense .lp-product-card .lp-body { padding: 8px 8px 10px; }
.lp-dense .lp-product-card .lp-name { font-size: 12.5px; min-height: 0; margin-bottom: 6px; }
.lp-dense .lp-swatches { gap: 3px; margin-bottom: 6px; }
.lp-dense .lp-swatch .lp-swatch-label { display: none; }
.lp-dense .lp-swatch { padding: 3px; }
.lp-dense .lp-product-card .lp-tags { display: none; }
.lp-dense .lp-product-card .lp-action .btn { font-size: 11px; padding: 5px 6px; min-height: 32px; }
.lp-dense .lp-product-card .lp-action .btn i { display: none; }

/* === Jump-to highlight pulse === */
.lp-product-card.lp-flash {
  animation: lp-flash 1.4s ease-out;
}
@keyframes lp-flash {
  0%   { box-shadow: 0 0 0 3px var(--lp-primary); border-color: var(--lp-primary); }
  100% { box-shadow: 0 0 0 0 rgba(21,101,192,0); }
}
@media (prefers-reduced-motion: reduce) {
  .lp-product-card.lp-flash { animation: none; box-shadow: 0 0 0 2px var(--lp-primary); }
}

/* card thumb + name are now links to the product detail page */
a.lp-thumb { text-decoration: none; }
a.lp-name {
  text-decoration: none;
  color: var(--lp-text);
  transition: color 0.12s;
}
a.lp-name:hover { color: var(--lp-primary); }

/* === Product detail page (/product/<id>) === */
.lp-pd-hero {
  display: grid;
  grid-template-columns: minmax(0, 360px) 1fr;
  gap: 28px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 22px;
  margin-bottom: 28px;
}
.lp-pd-hero-img {
  aspect-ratio: 1 / 1;
  background: #f8f9fa;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.lp-pd-hero-img img { max-width: 92%; max-height: 92%; object-fit: contain; }
.lp-pd-hero-info { display: flex; flex-direction: column; align-items: flex-start; }
.lp-pd-main-tag {
  display: inline-flex;
  align-items: center;
  background: #E3F2FD;
  color: #0D47A1;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.lp-pd-main-tag:hover { background: #BBDEFB; color: #0D47A1; }
.lp-pd-title {
  font-size: clamp(22px, 3vw, 30px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--lp-text);
  margin: 0 0 14px;
}
.lp-pd-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  font-size: 15px;
  color: var(--lp-muted);
  margin-bottom: 16px;
}
.lp-pd-meta strong { color: var(--lp-text); font-size: 17px; }
.lp-pd-finishes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.lp-pd-finishes-label { font-size: 13px; color: var(--lp-muted); }
.lp-pd-finish {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  padding: 4px 12px 4px 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--lp-text);
  text-decoration: none;
  transition: border-color 0.12s, background 0.12s;
}
.lp-pd-finish:hover { border-color: var(--lp-primary); background: #E3F2FD; color: var(--lp-primary-dark); }
.lp-pd-help { font-size: 13.5px; color: var(--lp-muted); margin: 0 0 16px; }
.lp-pd-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }
.lp-pd-cta .btn { font-weight: 600; padding: 10px 18px; }

/* Every material/grade of the part as a thumbnail under the big photo. The
   active thumb is the photo shown and the size tab open below. */
.lp-pd-hero-media { min-width: 0; }
.lp-pd-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.lp-pd-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--lp-muted);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  border-radius: 10px;
  padding: 4px 2px;
  transition: color 0.12s;
}
.lp-pd-thumb img,
.lp-pd-thumb-dot {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  background: #f8f9fa;
  border: 2px solid var(--lp-border);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.12s;
}
.lp-pd-thumb-dot .lp-mat-dot { width: 22px; height: 22px; }
.lp-pd-thumb:hover { color: var(--lp-text); }
.lp-pd-thumb:hover img,
.lp-pd-thumb:hover .lp-pd-thumb-dot { border-color: var(--lp-primary-light); }
.lp-pd-thumb.active { color: var(--lp-primary-dark); }
.lp-pd-thumb.active img,
.lp-pd-thumb.active .lp-pd-thumb-dot { border-color: var(--lp-primary); }
.lp-pd-thumb:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }
.lp-pd-thumb-label {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.lp-pd-section {
  scroll-margin-top: calc(var(--lp-sticky-top, 110px) + 12px);
  margin-bottom: 28px;
}
.lp-pd-section-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 17px;
  font-weight: 700;
  color: var(--lp-text);
  margin: 0 0 12px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--lp-border);
}
.lp-pd-section-title .lp-mat-dot { width: 16px; height: 16px; }
.lp-pd-rowcount {
  margin-left: auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--lp-muted);
}
.lp-pd-table-wrap {
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  overflow: hidden;
}
.lp-pd-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-pd-table thead th {
  background: #f6f8fb;
  text-align: left;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--lp-muted);
  padding: 10px 14px;
  border-bottom: 1px solid var(--lp-border);
}
.lp-pd-table tbody td { padding: 9px 14px; border-bottom: 1px solid #f1f3f5; }
.lp-pd-table tbody tr:last-child td { border-bottom: none; }
.lp-pd-table tbody tr:nth-child(even) { background: #fcfdfe; }
.lp-pd-sku { font-family: 'JetBrains Mono', 'Menlo', monospace; font-size: 12.5px; color: var(--lp-muted); }
.lp-pd-price-col { text-align: right; white-space: nowrap; }
.lp-pd-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  padding-top: 8px;
}

@media (max-width: 767px) {
  .lp-pd-hero { grid-template-columns: 1fr; gap: 18px; padding: 16px; }
  .lp-pd-hero-media { max-width: 300px; }
  .lp-pd-thumbs { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); gap: 6px; }
  .lp-pd-table thead th, .lp-pd-table tbody td { padding: 8px 10px; }
}

/* === Sizes by material/grade: one tab per variant, one row per thread ===
   Replaces the size × finish matrix. The buyer picks a variant first (tab),
   then scans one short row per thread whose chips carry only the piece that
   varies (length for bolts, pitch × wrench size for nuts, outer × thickness
   for washers). A tab lists only its own rows; nothing is copied across. */
.lp-fin-tabs {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  scrollbar-width: none;
  padding: 2px 0 10px;
  margin: 0;
  -webkit-overflow-scrolling: touch;
}
.lp-fin-tabs::-webkit-scrollbar { display: none; }
.lp-fin-tab {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 999px;
  padding: 7px 14px 7px 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--lp-text);
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 0.12s, background 0.12s, color 0.12s;
}
.lp-fin-tab:hover { border-color: var(--lp-primary); }
.lp-fin-tab:focus-visible { outline: 2px solid var(--lp-primary); outline-offset: 2px; }
.lp-fin-tab[aria-selected="true"] {
  background: var(--lp-primary);
  border-color: var(--lp-primary);
  color: #fff;
}
.lp-fin-tab .lp-mat-dot { width: 14px; height: 14px; }
.lp-fin-tab-n {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--lp-muted);
  background: #f1f3f5;
  border-radius: 999px;
  padding: 1px 7px;
  font-variant-numeric: tabular-nums;
}
.lp-fin-tab[aria-selected="true"] .lp-fin-tab-n { background: rgba(255, 255, 255, 0.22); color: #fff; }
.lp-fin-hint { font-size: 12.5px; color: var(--lp-muted); margin: 0 0 12px; }

.lp-fin-panel {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  overflow: hidden;
}
.lp-fin-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--lp-border);
  background: #f6f8fb;
  font-size: 14px;
}
.lp-fin-panel-head .lp-mat-dot { width: 15px; height: 15px; }
.lp-fin-panel-name { font-weight: 700; color: var(--lp-text); }
.lp-fin-panel-range {
  margin-left: auto;
  color: var(--lp-muted);
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-fin-empty { margin: 0; padding: 16px; color: var(--lp-muted); font-size: 14px; }

.lp-sz-head,
.lp-sz-row {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 12px;
  padding: 9px 16px;
}
.lp-sz-head {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--lp-muted);
  border-bottom: 1px solid #eef0f3;
  padding-top: 8px;
  padding-bottom: 8px;
}
.lp-sz-row { align-items: start; border-bottom: 1px solid #f1f3f5; }
.lp-sz-row:last-child { border-bottom: none; }
.lp-sz-row:nth-child(odd) { background: #fcfdfe; }
.lp-sz-thread {
  font-weight: 700;
  font-size: 14px;
  color: var(--lp-text);
  font-variant-numeric: tabular-nums;
  padding-top: 3px;
  white-space: nowrap;
}
.lp-sz-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.lp-sz-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-width: 38px;
  background: #fff;
  border: 1px solid var(--lp-border);
  border-radius: 6px;
  padding: 3px 9px;
  font-size: 13px;
  font-weight: 600;
  color: var(--lp-text);
  font-variant-numeric: tabular-nums;
  line-height: 1.5;
  white-space: nowrap;
}
.lp-sz-chip--ok { color: var(--lp-primary-dark); background: #E8F1FC; border-color: #cfe0f5; }
.lp-sz-chip .bi { font-size: 13px; }
.lp-sz-price { font-size: 11.5px; color: var(--lp-muted); font-weight: 600; }
/* a variant whose rows carry only the thread: one strip of thread chips */
.lp-sz-strip { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; }
.lp-sz-strip .lp-sz-chip { font-size: 14px; padding: 5px 12px; }

.lp-sz-notes {
  margin: 10px 2px 0;
  font-size: 12.5px;
  color: var(--lp-muted);
  display: flex;
  flex-direction: column;
  gap: 4px;
  line-height: 1.45;
}
.lp-sz-notes strong { color: var(--lp-text); font-variant-numeric: tabular-nums; }

@media (max-width: 575px) {
  .lp-sz-head, .lp-sz-row { grid-template-columns: 62px 1fr; gap: 8px; padding-left: 12px; padding-right: 12px; }
  .lp-sz-thread { font-size: 13.5px; }
  .lp-sz-chip { font-size: 12.5px; padding: 3px 8px; min-width: 34px; }
  .lp-fin-tab { font-size: 13px; padding: 6px 12px 6px 9px; }
  .lp-fin-panel-head { padding: 10px 12px; }
  .lp-fin-panel-range { margin-left: 0; flex-basis: 100%; }
  /* full-width, stacked CTAs: bigger tap targets, no clipped phone number */
  .lp-pd-cta { width: 100%; }
  .lp-pd-cta .btn { flex: 1 1 100%; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-fin-tab { transition: none; }
}

/* === Legal pages (privacy / cookies) === */
.lp-legal {
  max-width: 820px;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 14px;
  padding: 32px 36px;
  line-height: 1.7;
}
.lp-legal h1 {
  font-size: clamp(22px, 2.8vw, 30px);
  font-weight: 700;
  margin: 0 0 4px;
  color: var(--lp-text);
}
.lp-legal h2 {
  font-size: 18px;
  font-weight: 700;
  margin: 28px 0 10px;
  color: var(--lp-primary-dark);
  padding-bottom: 6px;
  border-bottom: 2px solid var(--lp-border);
}
.lp-legal h3 {
  font-size: 15px;
  font-weight: 700;
  margin: 18px 0 6px;
  color: var(--lp-text);
}
.lp-legal p { margin-bottom: 12px; color: #374151; }
.lp-legal ul { padding-left: 22px; margin-bottom: 14px; }
.lp-legal ul li { margin-bottom: 4px; }
.lp-legal a { color: var(--lp-primary); }
.lp-legal a:hover { color: var(--lp-primary-dark); text-decoration: underline; }
.lp-legal code {
  background: #f1f5f9;
  color: #0F146F;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.lp-legal-contact {
  background: #F0F4FF;
  border-left: 4px solid var(--lp-primary);
  padding: 14px 18px;
  border-radius: 8px;
  margin: 14px 0;
}
.lp-legal-cookietable table {
  font-size: 13px;
}
.lp-legal-cookietable table code { font-size: 11px; }
@media (max-width: 576px) {
  .lp-legal { padding: 20px 18px; }
}

/* === Cookie consent banner === */
.lp-cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 1050;
  padding: 12px;
  pointer-events: none;
}
.lp-cookie-card {
  background: rgba(15, 26, 43, .96);
  color: #fff;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 14px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  box-shadow: 0 -4px 20px rgba(0,0,0,.25);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}
.lp-cookie-text {
  font-size: 13px;
  line-height: 1.6;
  flex: 1;
  min-width: 0;
}
.lp-cookie-text strong { color: #FFD54F; margin-right: 6px; }
.lp-cookie-link {
  color: var(--lp-primary-light);
  text-decoration: underline;
}
.lp-cookie-link:hover { color: #FFD54F; }
.lp-cookie-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.lp-cookie-actions .btn { white-space: nowrap; }
@media (max-width: 767px) {
  .lp-cookie-card { flex-direction: column; align-items: stretch; gap: 10px; }
  .lp-cookie-actions { justify-content: stretch; }
  .lp-cookie-actions .btn { flex: 1; }
}

/* === Standard dimension sheet (/product/<id>, inc/specs.php) ===
   Drawing + reference table side by side. Hovering a column (or a legend chip)
   sets data-hot on both the drawing and the table, so the W / e / D callout and
   its column light up together — the drawing explains the number under the cursor. */
.lp-pd-meta-link {
  color: var(--lp-primary);
  font-weight: 600;
  text-decoration: none;
}
.lp-pd-meta-link:hover { color: var(--lp-primary-dark); text-decoration: underline; }
.lp-spec-body {
  display: grid;
  grid-template-columns: minmax(0, 340px) minmax(0, 1fr);
  gap: 18px 28px;
  align-items: start;
}
.lp-spec-fig {
  margin: 0;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 14px 14px 12px;
}
.lp-spec-fig-art { padding: 2px 4px 0; }
.lp-spec-svg { display: block; width: 100%; height: auto; }
.lp-spec-svg .lp-spec-lbl {
  font-family: 'Sarabun', system-ui, sans-serif;
  font-size: 23px;
  font-weight: 800;
}
.lp-spec-svg .lp-spec-dim { transition: opacity .15s ease-out; }
.lp-spec-fig-art[data-hot="w"] .lp-spec-dim:not([data-sym="w"]),
.lp-spec-fig-art[data-hot="s"] .lp-spec-dim:not([data-sym="s"]),
.lp-spec-fig-art[data-hot="e"] .lp-spec-dim:not([data-sym="e"]),
.lp-spec-fig-art[data-hot="d"] .lp-spec-dim:not([data-sym="d"]),
.lp-spec-fig-art[data-hot="id"] .lp-spec-dim:not([data-sym="id"]),
.lp-spec-fig-art[data-hot="od"] .lp-spec-dim:not([data-sym="od"]),
.lp-spec-fig-art[data-hot="t"] .lp-spec-dim:not([data-sym="t"]),
.lp-spec-fig-art[data-hot="a"] .lp-spec-dim:not([data-sym="a"]),
.lp-spec-fig-art[data-hot="b"] .lp-spec-dim:not([data-sym="b"]),
.lp-spec-fig-art[data-hot="c"] .lp-spec-dim:not([data-sym="c"]),
.lp-spec-fig-art[data-hot="l"] .lp-spec-dim:not([data-sym="l"]),
.lp-spec-fig-art[data-hot="m"] .lp-spec-dim:not([data-sym="m"]),
.lp-spec-fig-art[data-hot="pitch"] .lp-spec-dim { opacity: .28; }
.lp-spec-fig-art[data-hot="w"] .lp-spec-dim[data-sym="w"],
.lp-spec-fig-art[data-hot="s"] .lp-spec-dim[data-sym="s"],
.lp-spec-fig-art[data-hot="e"] .lp-spec-dim[data-sym="e"],
.lp-spec-fig-art[data-hot="d"] .lp-spec-dim[data-sym="d"],
.lp-spec-fig-art[data-hot="id"] .lp-spec-dim[data-sym="id"],
.lp-spec-fig-art[data-hot="od"] .lp-spec-dim[data-sym="od"],
.lp-spec-fig-art[data-hot="t"] .lp-spec-dim[data-sym="t"],
.lp-spec-fig-art[data-hot="a"] .lp-spec-dim[data-sym="a"],
.lp-spec-fig-art[data-hot="b"] .lp-spec-dim[data-sym="b"],
.lp-spec-fig-art[data-hot="c"] .lp-spec-dim[data-sym="c"],
.lp-spec-fig-art[data-hot="l"] .lp-spec-dim[data-sym="l"],
.lp-spec-fig-art[data-hot="m"] .lp-spec-dim[data-sym="m"] { stroke-width: 1.8; }
/* Thai words used as dimension labels (washer drawing) — smaller than a single letter */
.lp-spec-svg .lp-spec-lbl--th { font-size: 18px; font-weight: 700; }
.lp-spec-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 16px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f3f5;
  font-size: 12.5px;
  color: var(--lp-muted);
}
.lp-spec-legend span { cursor: default; white-space: nowrap; }
.lp-spec-sym {
  display: inline-block;
  min-width: 22px;
  padding: 0 6px;
  border-radius: 5px;
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  font-weight: 800;
  font-size: 12px;
  line-height: 20px;
  text-align: center;
  vertical-align: 1px;
}
.lp-spec-table-wrap {
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.lp-spec-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.lp-spec-table thead th {
  background: #f6f8fb;
  font-size: 12px;
  font-weight: 700;
  color: var(--lp-muted);
  padding: 10px 12px;
  border-bottom: 1px solid var(--lp-border);
  white-space: nowrap;
  text-align: center;
  vertical-align: bottom;
}
.lp-spec-table thead th.lp-spec-th-thread { text-align: left; }
.lp-spec-table thead th span { display: block; font-weight: 500; font-size: 10.5px; opacity: .75; margin-top: 2px; }
.lp-spec-table tbody td {
  padding: 9px 12px;
  border-bottom: 1px solid #f1f3f5;
  text-align: center;
  vertical-align: middle;
  color: var(--lp-text);
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.lp-spec-table tbody td.lp-spec-td-thread { text-align: left; }
.lp-spec-table tbody td.lp-spec-td-w { font-weight: 700; }
.lp-spec-table tbody tr:last-child td { border-bottom: none; }
.lp-spec-table tbody tr:hover td { background: #f5f9ff; }
.lp-spec-thread { font-weight: 700; font-size: 14.5px; }
.lp-spec-mm { margin-left: 7px; font-size: 12px; color: var(--lp-muted); }
/* reference row for a thread that isn't stocked right now */
.lp-spec-table tbody tr.lp-spec-row--na td,
.lp-spec-row--na .lp-spec-thread { color: var(--lp-muted); font-weight: 500; }
.lp-spec-na-tag {
  display: inline-block;
  margin-left: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f3f5;
  border: 1px solid var(--lp-border);
  color: #4b5563;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 17px;
  vertical-align: 1px;
  white-space: nowrap;
}
.lp-spec-table[data-hot="w"] [data-sym="w"],
.lp-spec-table[data-hot="s"] [data-sym="s"],
.lp-spec-table[data-hot="e"] [data-sym="e"],
.lp-spec-table[data-hot="d"] [data-sym="d"],
.lp-spec-table[data-hot="pitch"] [data-sym="pitch"],
.lp-spec-table[data-hot="a"] [data-sym="a"],
.lp-spec-table[data-hot="b"] [data-sym="b"],
.lp-spec-table[data-hot="c"] [data-sym="c"],
.lp-spec-table[data-hot="l"] [data-sym="l"] { background: #E3F2FD; }
.lp-spec-table[data-hot="w"] thead th[data-sym="w"],
.lp-spec-table[data-hot="s"] thead th[data-sym="s"],
.lp-spec-table[data-hot="e"] thead th[data-sym="e"],
.lp-spec-table[data-hot="d"] thead th[data-sym="d"],
.lp-spec-table[data-hot="pitch"] thead th[data-sym="pitch"],
.lp-spec-table[data-hot="a"] thead th[data-sym="a"],
.lp-spec-table[data-hot="b"] thead th[data-sym="b"],
.lp-spec-table[data-hot="c"] thead th[data-sym="c"],
.lp-spec-table[data-hot="l"] thead th[data-sym="l"] { color: var(--lp-primary-dark); }
.lp-spec-note { margin: 10px 2px 0; font-size: 12.5px; color: var(--lp-muted); }

/* "formula" sheet: how to read a designation (washers: รูใน × วงนอก × ความหนา).
   Each term, the matching digits of the worked example and the matching callout
   in the drawing share data-sym, so hovering any of them lights up all three. */
.lp-spec-formula {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 18px 20px;
}
.lp-spec-formula-lead { margin: 0 0 12px; font-size: 13.5px; color: var(--lp-muted); }
.lp-spec-terms { display: flex; align-items: stretch; gap: 8px; }
.lp-spec-term {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 10px;
  border-radius: 10px;
  background: #f6f8fb;
  border: 1px solid var(--lp-border);
  text-align: center;
  cursor: default;
  transition: background-color .15s ease-out, border-color .15s ease-out;
}
.lp-spec-term b { font-size: 18px; font-weight: 800; color: var(--lp-primary-dark); line-height: 1.25; }
.lp-spec-term small { font-size: 12px; color: var(--lp-muted); line-height: 1.35; }
.lp-spec-times { align-self: center; font-size: 20px; font-weight: 700; color: var(--lp-muted); }
.lp-spec-example {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #f1f3f5;
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
}
.lp-spec-example-label { width: 100%; font-size: 12.5px; font-weight: 700; color: var(--lp-muted); }
.lp-spec-example-code { font-size: 22px; font-weight: 800; color: var(--lp-text); font-variant-numeric: tabular-nums; }
.lp-spec-example-code span { border-radius: 4px; padding: 0 2px; cursor: default; transition: background-color .15s ease-out; }
.lp-spec-example-read { font-size: 14px; color: var(--lp-text); }
.lp-spec-formula-note { margin: 12px 0 0; font-size: 13px; color: var(--lp-muted); }
.lp-spec-formula[data-hot="id"] [data-sym="id"],
.lp-spec-formula[data-hot="od"] [data-sym="od"],
.lp-spec-formula[data-hot="t"] [data-sym="t"] { background: #E3F2FD; border-color: #90CAF9; }
@media (max-width: 767px) {
  .lp-spec-formula { padding: 14px; }
  .lp-spec-terms { gap: 5px; }
  .lp-spec-term { padding: 10px 6px; }
  .lp-spec-term b { font-size: 16px; }
  .lp-spec-term small { font-size: 11px; }
  .lp-spec-times { font-size: 16px; }
  .lp-spec-example-code { font-size: 20px; }
}
@media (max-width: 767px) {
  .lp-spec-body { grid-template-columns: 1fr; gap: 14px; }
  .lp-spec-fig { width: 100%; max-width: 360px; margin: 0 auto; }
  /* 5 columns must fit a 390px phone without scrolling: symbol stacks above its
     label and the sub-labels go (the drawing's legend carries their meaning). */
  .lp-spec-table thead th { padding: 8px 7px; }
  .lp-spec-table thead th span { display: none; }
  .lp-spec-table thead th .lp-spec-sym { display: block; width: max-content; margin: 0 auto 3px; }
  .lp-spec-table tbody td { padding: 8px 7px; }
  .lp-spec-mm { display: block; margin: 1px 0 0; line-height: 1.1; }
  /* sheets with 5+ value columns (flange nut: W, pitch, S, e, D) need a little less room per cell */
  .lp-spec-table--wide thead th { padding: 8px 5px; }
  .lp-spec-table--wide tbody td { padding: 8px 5px; font-size: 13px; }
  .lp-spec-table--wide .lp-spec-thread { font-size: 13.5px; }
}

/* === Accessibility: honor user's reduced-motion preference === */
@media (prefers-reduced-motion: reduce) {
  .lp-spec-dim { transition: none !important; }
  .lp-spec-term,
  .lp-spec-example-code span { transition: none !important; }
  .lp-slide-badge,
  .lp-banner-small-bg img { animation: none !important; }
  .lp-slide,
  .lp-banner-medium,
  .lp-banner-small,
  .lp-marketplace,
  .lp-product-card,
  .lp-cat-tile,
  .lp-maincat-tile,
  .lp-slider-nav,
  .lp-slider-dots button { transition: none !important; }
}

   /* above the cookie banner (1050): a buyer who taps sizes before consenting must still reach "ส่ง" */

@media (max-width: 991px) {          /* keep clear of the catalog's filter button (bottom-right) */
}



/* front-page tile: the materials / grades this code comes in */
.lp-cat-tile .lp-cat-mats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 3px 6px;
  margin: 0 0 4px;
}
.lp-cat-tile .lp-cat-mat {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.3;
  color: var(--lp-text);
  white-space: nowrap;
}
.lp-cat-tile .lp-cat-mat .lp-mat-dot { width: 9px; height: 9px; border-radius: 2.5px; }
.lp-cat-tile .lp-cat-mat--more { color: var(--lp-muted); }
@media (max-width: 480px) {
  .lp-cat-tile .lp-cat-mat { font-size: 10px; }
}


/* === Measuring guide (/measure — templates/measure.php, inc/guide.php) ===
   Long-form how-to. Hero with three part tiles, a sticky in-page TOC on wide
   screens (a chip row above the content below 1200px), then one white section
   per part type. Each part section pairs a technical drawing (same style and
   hover-highlight as the product spec sheets) with numbered steps: hovering a
   step lights up its callout on the drawing, and the drawing stays put while
   the steps scroll. */
.lp-g-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 400px);
  gap: 24px 40px;
  align-items: center;
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 30px 34px;
  margin-bottom: 22px;
}
.lp-g-h1 {
  font-size: clamp(23px, 2.8vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  margin: 0 0 12px;
  color: var(--lp-text);
  text-wrap: balance;
}
.lp-g-lead {
  font-size: 15.5px;
  line-height: 1.7;
  color: #374151;
  margin: 0 0 10px;
  max-width: 62ch;
  text-wrap: pretty;
}
.lp-g-hero-help { margin: 0; font-size: 13.5px; color: var(--lp-muted); }
.lp-g-hero-help a { color: var(--lp-primary); font-weight: 600; }
.lp-g-parts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.lp-g-part {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1px;
  padding: 12px 6px 11px;
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  text-decoration: none;
  color: var(--lp-text);
  background: #fff;
  transition: border-color .15s ease-out, transform .15s ease-out;
}
.lp-g-part:hover, .lp-g-part:focus-visible { border-color: var(--lp-primary); color: var(--lp-primary-dark); transform: translateY(-2px); }
.lp-g-part-img { width: 84px; height: 84px; display: grid; place-items: center; margin-bottom: 6px; }
.lp-g-part-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.lp-g-part-label { font-weight: 800; font-size: 16px; line-height: 1.2; }
.lp-g-part-sub { font-size: 11.5px; color: var(--lp-muted); line-height: 1.3; }

/* --- two columns: content + sticky TOC --- */
.lp-g-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 208px;
  gap: 22px;
  align-items: start;
}
.lp-g-main { min-width: 0; }
.lp-g-toc {
  min-width: 0;               /* the chip row below 1200px must not widen the column */
  order: 2;
  position: sticky;
  top: calc(var(--lp-sticky-top, 110px) + 12px);
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 12px;
  padding: 14px 14px 12px;
}
.lp-g-toc-title { font-size: 12px; font-weight: 700; color: var(--lp-muted); margin-bottom: 6px; }
.lp-g-toc-list { list-style: none; margin: 0; padding: 0; }
.lp-g-toc-list li { margin: 0; }
.lp-g-toc-list a {
  display: block;
  padding: 6px 8px 6px 20px;
  font-size: 13.5px;
  line-height: 1.35;
  color: #374151;
  text-decoration: none;
  border-radius: 7px;
  position: relative;
}
.lp-g-toc-list a::before {
  content: "";
  position: absolute;
  left: 8px; top: 50%;
  width: 6px; height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: var(--lp-border);
  transition: background .15s ease-out;
}
.lp-g-toc-list a:hover { background: #f6f8fb; color: var(--lp-primary-dark); }
.lp-g-toc-list a.is-current { color: var(--lp-primary-dark); font-weight: 700; background: #F0F4FF; }
.lp-g-toc-list a.is-current::before { background: var(--lp-primary); }
.lp-g-toc-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #098438;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.lp-g-toc-line:hover, .lp-g-toc-line:focus-visible { background: #076b2d; color: #fff; }

/* --- sections --- */
.lp-g-section {
  background: var(--lp-card);
  border: 1px solid var(--lp-border);
  border-radius: 16px;
  padding: 24px 28px 26px;
  margin-bottom: 18px;
  scroll-margin-top: calc(var(--lp-sticky-top, 110px) + 12px);
}
.lp-g-h2 {
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
  color: var(--lp-text);
  text-wrap: balance;
}
.lp-g-sechead {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--lp-border);
  margin-bottom: 18px;
}
.lp-g-sechead .lp-g-h2 { margin-bottom: 4px; }
.lp-g-secimg {
  width: 72px; height: 72px;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 10px;
  border: 1px solid var(--lp-border);
  background: #fff;
  padding: 4px;
}
.lp-g-secsub { margin: 0; color: #374151; font-size: 14px; line-height: 1.65; max-width: 80ch; }
.lp-g code {
  font-family: inherit;
  font-weight: 700;
  font-size: .95em;
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  padding: 1px 7px;
  border-radius: 5px;
  white-space: nowrap;
}

/* drawing + steps */
.lp-g-figrow {
  display: grid;
  grid-template-columns: minmax(0, 320px) minmax(0, 1fr);
  gap: 18px 30px;
  align-items: start;
}
.lp-g-fig { position: sticky; top: calc(var(--lp-sticky-top, 110px) + 12px); }
.lp-g-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; }
.lp-g-step { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.lp-g-step-n {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  font-weight: 800;
  font-size: 16px;
  display: grid;
  place-items: center;
  margin-top: 1px;
}
.lp-g-step-body { min-width: 0; }
.lp-g-h3 { font-size: 16.5px; font-weight: 700; margin: 7px 0 6px; color: var(--lp-text); line-height: 1.35; }
.lp-g-h3 .lp-spec-sym { font-size: 13px; vertical-align: 2px; }
.lp-g-step p { margin: 0 0 8px; color: #374151; line-height: 1.7; font-size: 14.5px; max-width: 70ch; text-wrap: pretty; }
.lp-g-step p a { color: var(--lp-primary); }
.lp-g-example {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 10px;
  background: #F0F4FF;
  border-radius: 10px;
  padding: 8px 14px;
  margin: 2px 0 12px;
  font-size: 14.5px;
  color: var(--lp-text);
}
.lp-g-example .bi { color: var(--lp-primary); font-size: 14px; align-self: center; }
.lp-g-example b { font-size: 19px; color: var(--lp-primary-dark); }
.lp-g-example small { color: var(--lp-muted); font-size: 12.5px; flex-basis: 100%; }
.lp-g-gridlabel { font-size: 12.5px !important; color: var(--lp-muted) !important; margin: 0 0 6px !important; font-weight: 600; }
.lp-g-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}
.lp-g-cell {
  border: 1px solid var(--lp-border);
  border-radius: 8px;
  padding: 6px 6px 5px;
  text-align: center;
  line-height: 1.3;
  background: #fff;
}
.lp-g-cell b { display: block; font-size: 14px; color: var(--lp-text); }
.lp-g-cell span { font-size: 12.5px; color: #374151; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-g-note {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  font-size: 13px !important;
  line-height: 1.6 !important;
  color: #374151 !important;
  background: #f6f8fb;
  border-radius: 8px;
  padding: 8px 12px;
  margin: 6px 0 0 !important;
  max-width: none !important;
}
.lp-g-note .bi { color: #B45309; flex-shrink: 0; margin-top: 3px; font-size: 13px; }
.lp-g-note .bi-info-circle-fill, .lp-g-note .bi-rulers { color: var(--lp-primary); }
.lp-g-note a { color: var(--lp-primary); font-weight: 600; }
.lp-g-rule2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 8px 0 12px; }
.lp-g-rule2 figure { margin: 0; border: 1px solid var(--lp-border); border-radius: 10px; padding: 8px 10px 6px; background: #fff; }
.lp-g-rule2 svg { display: block; width: 100%; height: auto; }
.lp-g-rule2 figcaption { font-size: 12.5px; color: #374151; text-align: center; margin-top: 4px; }
.lp-g-ways { padding-left: 18px; margin: 0 0 12px; max-width: 70ch; }
.lp-g-ways li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.65; color: #374151; }
.lp-g-ways li a { color: var(--lp-primary); white-space: nowrap; }
.lp-g-aside { margin-top: 20px; padding: 14px 18px; background: #f6f8fb; border-radius: 12px; }
.lp-g-aside .lp-g-h3 { margin-top: 0; font-size: 15px; }
.lp-g-aside p { margin: 0; font-size: 14px; line-height: 1.65; color: #374151; max-width: 80ch; }
.lp-g-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }

/* tools section */
.lp-g-tools {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 20px 30px;
  align-items: start;
}
.lp-g-photo { margin: 0; }
.lp-g-photo img { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--lp-border); }
.lp-g-photo figcaption { font-size: 12.5px; color: var(--lp-muted); margin-top: 8px; line-height: 1.5; }
.lp-g-tools-text > p { margin: 0 0 12px; color: #374151; font-size: 14.5px; line-height: 1.7; max-width: 70ch; }
.lp-g-tooldl { margin: 0 0 16px; }
.lp-g-tooldl > div {
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 10px;
  font-size: 14px;
  line-height: 1.55;
  padding: 9px 0;
  border-top: 1px solid #f1f3f5;
}
.lp-g-tooldl > div:last-child { border-bottom: 1px solid #f1f3f5; }
.lp-g-tooldl dt { font-weight: 700; color: var(--lp-text); }
.lp-g-tooldl dd { margin: 0; color: #374151; }
.lp-g-caliper { margin: 0; border: 1px solid var(--lp-border); border-radius: 12px; padding: 10px 12px 6px; background: #fff; }
.lp-g-caliper svg { display: block; width: 100%; height: auto; }
.lp-g-caliper figcaption { font-size: 12.5px; color: var(--lp-muted); text-align: center; margin-top: 4px; }

/* drawing callouts the bolt drawing adds (P = pitch, k = head height) */
.lp-spec-fig-art[data-hot="p"] .lp-spec-dim:not([data-sym="p"]),
.lp-spec-fig-art[data-hot="k"] .lp-spec-dim:not([data-sym="k"]) { opacity: .28; }
.lp-spec-fig-art[data-hot="p"] .lp-spec-dim[data-sym="p"],
.lp-spec-fig-art[data-hot="k"] .lp-spec-dim[data-sym="k"] { stroke-width: 1.8; }
.lp-g-step[data-sym] { border-radius: 10px; }

/* tables */
.lp-g-table .lp-spec-table thead th { line-height: 1.25; }
.lp-g-td-stock { font-weight: 500; }
.lp-g-table--sticky .lp-spec-table th:first-child,
.lp-g-table--sticky .lp-spec-table td:first-child {
  position: sticky;
  left: 0;
  background: #fff;
  z-index: 1;
  box-shadow: 1px 0 0 var(--lp-border);
}
.lp-g-table--sticky .lp-spec-table thead th:first-child { background: #f6f8fb; }
.lp-g-table--sticky .lp-spec-table tbody tr:hover td:first-child { background: #f5f9ff; }
.lp-g .lp-spec-note a { color: var(--lp-primary); }

/* dark contact band */
.lp-g-contact { background: var(--lp-dark); border-color: var(--lp-dark); color: #fff; }
.lp-g-contact .lp-g-h2 { color: #fff; }
.lp-g-phototips { color: rgba(255,255,255,.86); padding-left: 20px; margin: 0 0 18px; max-width: 70ch; }
.lp-g-phototips li { margin-bottom: 6px; line-height: 1.65; font-size: 14.5px; }
.lp-g-contact .lp-pd-cta { margin-top: 0; }
.lp-g-contact .btn-outline-light:hover { color: var(--lp-dark); }

/* FAQ: native disclosure, no JS */
.lp-g-faq details { border-top: 1px solid var(--lp-border); }
.lp-g-faq details:last-of-type { border-bottom: 1px solid var(--lp-border); }
.lp-g-faq summary {
  cursor: pointer;
  padding: 13px 4px;
  font-weight: 700;
  font-size: 15px;
  line-height: 1.4;
  color: var(--lp-text);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.lp-g-faq summary::-webkit-details-marker { display: none; }
.lp-g-faq summary::after {
  content: "+";
  flex-shrink: 0;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: #E3F2FD;
  color: var(--lp-primary-dark);
  font-size: 18px;
  line-height: 24px;
  text-align: center;
  transition: transform .2s ease-out;
}
.lp-g-faq details[open] summary::after { transform: rotate(45deg); }
.lp-g-faq summary:hover { color: var(--lp-primary-dark); }
.lp-g-faq-a { padding: 0 4px 16px; }
.lp-g-faq-a p { margin: 0 0 10px; font-size: 14.5px; line-height: 1.7; color: #374151; max-width: 72ch; text-wrap: pretty; }
.lp-g-faq-a .lp-g-table { max-width: 560px; }

/* header / footer entry points */
.lp-topbar-guide { color: var(--lp-primary-dark) !important; }
.lp-topbar-guide:hover { text-decoration: underline !important; }
.lp-footer-guide {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 6px 12px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}
.lp-footer-guide:hover { border-color: #fff; color: #FFD54F; }

@media (prefers-reduced-motion: no-preference) {
  html:has(.lp-g) { scroll-behavior: smooth; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-g-part, .lp-g-faq summary::after, .lp-g-toc-list a::before { transition: none; }
}

@media (max-width: 1199px) {
  .lp-g-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .lp-g-toc { order: 0; position: static; padding: 10px 12px; }
  .lp-g-toc-title { display: none; }
  .lp-g-toc-line { display: none; }
  .lp-g-toc-list { display: flex; gap: 6px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding-bottom: 2px; }
  .lp-g-toc-list::-webkit-scrollbar { display: none; }
  .lp-g-toc-list a { flex-shrink: 0; padding: 6px 12px; border: 1px solid var(--lp-border); border-radius: 999px; font-size: 13px; white-space: nowrap; }
  .lp-g-toc-list a::before { display: none; }
  .lp-g-toc-list a.is-current { border-color: var(--lp-primary); }
}
@media (max-width: 991px) {
  .lp-g-hero { grid-template-columns: 1fr; gap: 18px; }
  .lp-g-figrow, .lp-g-tools { grid-template-columns: 1fr; }
  .lp-g-fig { position: static; max-width: 420px; }
}
@media (max-width: 575px) {
  .lp-g-hero { padding: 20px 18px; border-radius: 12px; }
  .lp-g-section { padding: 18px 16px 20px; border-radius: 12px; }
  .lp-g-h2 { font-size: 19px; }
  .lp-g-sechead { gap: 12px; }
  .lp-g-secimg { width: 56px; height: 56px; }
  .lp-g-part { padding: 10px 4px 9px; }
  .lp-g-part-img { width: 60px; height: 60px; margin-bottom: 4px; }
  .lp-g-part-label { font-size: 15px; }
  .lp-g-step { grid-template-columns: 30px minmax(0, 1fr); gap: 10px; }
  .lp-g-step-n { width: 30px; height: 30px; font-size: 14px; }
  .lp-g-rule2 { grid-template-columns: 1fr; }
  .lp-g-tooldl > div { grid-template-columns: 1fr; gap: 2px; }
  .lp-g-grid { grid-template-columns: repeat(4, 1fr); gap: 5px; }
  .lp-g-cell { padding: 5px 2px 4px; }
  .lp-g-cell b { font-size: 13px; }
  .lp-g-cell span { font-size: 11.5px; }
  .lp-g-table .lp-spec-table { font-size: 13px; }
  .lp-g-table .lp-spec-table thead th { padding: 8px 8px; font-size: 11px; }
  .lp-g-table .lp-spec-table tbody td { padding: 7px 8px; }
  .lp-g-contact .lp-pd-cta .btn { flex: 1 1 100%; justify-content: center; }
}
