/* ============================================================
   PS TACTICAL GEAR — blog (/blog, /blog/<slug>)
   Same palette and type as styles.css; standalone so article pages
   don't pull in the whole storefront stylesheet.
   ============================================================ */
:root {
  /* dark (default) — same palette as the storefront (shop.css) */
  --bg: #0B0B0C; --surf-1: #111214; --surf-2: #141518; --surf-3: #17181B;
  --line-1: #1C1E22; --line-2: #23252A; --line-3: #2A2C31;
  --text: #F2F2F0; --text-2: #C9CBD0; --muted: #8E9098;
  --gold: #FF5C00; --gold-hi: #FF7A2E; --neon: #EEFF00; --green: #7FA650; --red: #C2452D;
  --head: Kanit, "Noto Sans Thai", system-ui, sans-serif;
  --body: "IBM Plex Sans Thai", "Noto Sans Thai", system-ui, sans-serif;
  color-scheme: dark;
}
/* light — follows the visitor's choice on the shop ('ps-theme'), else the system */
:root[data-theme="light"] {
  --bg: #F4F4F2; --surf-1: #FFFFFF; --surf-2: #ECECE8; --surf-3: #E4E4E0;
  --line-1: #E6E6E1; --line-2: #DEDED9; --line-3: #CFCFC9;
  --text: #141518; --text-2: #3A3C42; --muted: #62656C;
  color-scheme: light;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #F4F4F2; --surf-1: #FFFFFF; --surf-2: #ECECE8; --surf-3: #E4E4E0;
    --line-1: #E6E6E1; --line-2: #DEDED9; --line-3: #CFCFC9;
    --text: #141518; --text-2: #3A3C42; --muted: #62656C;
    color-scheme: light;
  }
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.7 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img { display: block; max-width: 100%; }

.bwrap { max-width: 960px; margin: 0 auto; padding: 0 16px; }

/* header — same as the storefront: always dark, white PS logo */
.bhdr { background: #0B0B0C; color: #F2F2F0; border-bottom: 1px solid #23252A; position: sticky; top: 0; z-index: 5; }
.bhdr__in { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; max-width: 1360px; }
.bbrand { display: flex; align-items: center; text-decoration: none; flex-shrink: 0; }
.bbrand__logo { height: 52px; width: auto; }
.bnav { display: flex; gap: 22px; font: 500 15px var(--head); }
.bnav a { text-decoration: none; color: #C9CBD0; padding: 8px 0; white-space: nowrap; border-bottom: 2px solid transparent; }
.bnav a:hover, .bnav a.is-on { color: var(--gold); border-bottom-color: var(--gold); }
.bacts { display: flex; align-items: center; gap: 8px; }
.btheme { width: 42px; height: 42px; border-radius: 50%; border: 1px solid transparent; background: none; color: #F2F2F0; display: grid; place-items: center; cursor: pointer; }
.btheme:hover { border-color: #23252A; color: var(--gold); }
.btheme .i-sun { display: none; }
:root[data-theme="dark"] .btheme .i-sun { display: block; } :root[data-theme="dark"] .btheme .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btheme .i-sun { display: block; } :root:not([data-theme="light"]) .btheme .i-moon { display: none; } }
.btalk { text-decoration: none; background: var(--gold); color: #0B0B0C; font: 600 14px var(--head); padding: 10px 16px; border-radius: 8px; white-space: nowrap; }
.btalk:hover { background: var(--gold-hi); }
@media (max-width: 640px) {
  .bhdr__in { flex-wrap: wrap; row-gap: 0; min-height: 0; padding-top: 8px; }
  .bbrand__logo { height: 44px; }
  .bnav { order: 3; flex-basis: 100%; gap: 18px; overflow-x: auto; }
  .btalk { padding: 8px 12px; font-size: 13px; }
}

/* article */
.bart, .bindex { padding-top: 28px; padding-bottom: 56px; }
.bcrumb { font-size: 13px; color: var(--muted); }
.bcrumb a { text-decoration: none; }
.bcrumb a:hover { color: var(--gold); }
.btag { display: inline-block; margin: 18px 0 0; padding: 2px 10px; border: 1px solid var(--gold); color: var(--gold); font: 500 12px var(--head); letter-spacing: .04em; border-radius: 2px; }
.bart__h { font: 600 clamp(26px, 4.4vw, 38px)/1.3 var(--head); margin: 12px 0 6px; text-wrap: balance; }
.bmeta { color: var(--muted); font-size: 13px; margin: 0; }
.bprose { color: var(--text-2); max-width: 70ch; }
.bprose p { margin: 0 0 14px; }
.bsec { font: 600 22px/1.35 var(--head); margin: 44px 0 16px; padding-left: 12px; border-left: 3px solid var(--gold); }

/* product cards */
.bcards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 32px; }
.bcard { display: flex; flex-direction: column; background: var(--surf-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; text-decoration: none; transition: border-color .15s; }
.bcard:hover { border-color: var(--gold); }
.bcard__img { aspect-ratio: 1; background: #fff; }
.bcard__img img { width: 100%; height: 100%; object-fit: contain; }
.bcard__body { display: flex; flex-direction: column; gap: 4px; padding: 14px; flex: 1; }
.bcard__brand { font-size: 12px; color: var(--muted); letter-spacing: .04em; }
.bcard__name { font: 500 15px/1.4 var(--head); }
.bcard__stock { font-size: 12px; color: var(--green); }
.bcard__stock.is-out { color: var(--red); }
.bcard__cta { margin-top: auto; padding-top: 8px; color: var(--gold); font: 500 14px var(--head); }
.bcard--missing { padding: 20px; color: var(--muted); }

/* compare table */
.btable-wrap { border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; }
.btable { width: 100%; border-collapse: collapse; font-size: 15px; }
.btable th, .btable td { padding: 14px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line-1); }
.btable tbody tr:last-child > * { border-bottom: 0; }
.btable thead th { background: var(--surf-3); font: 600 14px var(--head); color: var(--gold); }
.btable thead th:first-child { color: var(--muted); }
.btable tbody th { font: 500 15px var(--head); width: 24%; color: var(--text); }
.btable td { color: var(--text-2); width: 38%; }
.btable tbody tr:nth-child(even) { background: var(--surf-1); }
.btable ul { margin: 0; padding-left: 18px; }

/* verdict */
.bverdict { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.bverdict__col { background: var(--surf-2); border: 1px solid var(--line-2); border-top: 3px solid var(--gold); border-radius: 6px; padding: 18px 20px; }
.bverdict__col h3 { font: 600 17px var(--head); margin: 0 0 10px; }
.bverdict__col ul { margin: 0; padding-left: 20px; color: var(--text-2); }
.bverdict__col li + li { margin-top: 6px; }

/* call to action */
.bcta { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 40px; padding: 22px 24px; background: var(--surf-3); border: 1px solid var(--line-3); border-radius: 6px; }
.bcta__h { font: 600 18px var(--head); margin: 0; }
.bcta__sub { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.bbtn { flex: none; display: inline-block; padding: 12px 22px; background: #06C755; color: #fff; font: 600 15px var(--head); text-decoration: none; border-radius: 4px; }
.bbtn:hover { filter: brightness(1.1); }

/* index */
.bindex__lead { margin: 0 0 28px; }
.blist { display: grid; gap: 16px; }
.bpost { display: grid; grid-template-columns: 240px 1fr; background: var(--surf-2); border: 1px solid var(--line-2); border-radius: 6px; overflow: hidden; text-decoration: none; }
.bpost:hover { border-color: var(--gold); }
.bpost__img { background: #fff; }
.bpost__img img { width: 100%; height: 100%; object-fit: contain; }
.bpost__body { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; }
.bpost__body .btag { margin: 0; align-self: flex-start; }
.bpost__h { font: 600 19px/1.4 var(--head); }
.bpost__d { color: var(--text-2); font-size: 14px; }


/* phone: table becomes one block per row, each cell labelled */
@media (max-width: 640px) {
  .bbrand__sub { display: none; }
  .bcards { gap: 10px; }
  .bcard__body { padding: 10px; }
  .bcard__name { font-size: 13px; }
  .btable thead { display: none; }
  .btable, .btable tbody, .btable tr, .btable th, .btable td { display: block; width: 100%; }
  .btable tbody tr { padding: 12px 14px; border-bottom: 1px solid var(--line-2); }
  .btable tbody th, .btable td { padding: 0; border: 0; }
  .btable tbody th { margin-bottom: 8px; color: var(--gold); }
  .btable td + td { margin-top: 8px; }
  .btable td::before { content: attr(data-col); display: block; font: 500 12px var(--head); color: var(--muted); }
  .bverdict { grid-template-columns: 1fr; }
  .bcta { flex-direction: column; align-items: stretch; text-align: center; }
  .bpost { grid-template-columns: 1fr; }
  .bpost__img { aspect-ratio: 3 / 2; }
}

/* ============================================================
   Article v2 — parallax hero, viewers, wipe, photo bands, trust
   ============================================================ */
.bprog { position: fixed; inset: 0 0 auto; height: 3px; z-index: 20; pointer-events: none; }
.bprog i { display: block; height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-hi)); transform-origin: 0 50%; transform: scaleX(0); }

/* reveal — only hidden once JS has said it will reveal them */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d, 0ms); }
.js .rv--l { transform: translateX(-40px); }
.js .rv--r { transform: translateX(40px); }
.js .rv.in { opacity: 1; transform: none; }

/* hero */
.phero { --bg: #0B0B0C; --surf-1: #111214; --surf-2: #141518; --line-1: #1C1E22; --line-2: #23252A; --text: #F2F2F0; --text-2: #C9CBD0; --muted: #8E9098; color: var(--text); position: relative; min-height: min(92vh, 820px); overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; background: radial-gradient(120% 80% at 50% 10%, #1a1b1f 0%, var(--bg) 60%); border-bottom: 1px solid var(--line-2); }
.phero__grid { position: absolute; inset: -20% 0; background-image: linear-gradient(var(--line-1) 1px, transparent 1px), linear-gradient(90deg, var(--line-1) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(70% 60% at 50% 40%, #000 30%, transparent 75%); opacity: .7; }
.phero__glow { position: absolute; left: 50%; top: 18%; width: 60vmin; height: 60vmin; margin-left: -30vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255,92,0,.22), transparent 65%); filter: blur(10px); }
.phero__stage { position: absolute; inset: 0 0 34%; display: flex; align-items: center; justify-content: center; gap: clamp(12px, 6vw, 90px); perspective: 1200px; }
.phero__vest { margin: 0; width: clamp(150px, 30vw, 360px); text-align: center; }
.phero__card { background: #fff; border-radius: 10px; padding: 6%; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.phero__vest--l .phero__card { transform: rotateY(8deg) rotate(-2deg); }
.phero__vest--r .phero__card { transform: rotateY(-8deg) rotate(2deg); }
.phero__card img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.phero__vest figcaption { margin-top: 14px; font: 700 clamp(14px, 2vw, 20px) var(--head); letter-spacing: .1em; color: var(--text-2); }
.phero__vest--r figcaption { color: var(--gold); }
.phero__vs { position: absolute; left: 50%; top: 50%; translate: -50% -50%; font: 800 clamp(44px, 9vw, 110px)/1 var(--head); color: transparent; -webkit-text-stroke: 2px var(--gold); text-shadow: 0 0 40px rgba(255,92,0,.35); pointer-events: none; }
.phero__txt { position: relative; z-index: 2; padding-bottom: 44px; padding-top: 24px; background: linear-gradient(transparent, var(--bg) 40%); max-width: 960px; width: 100%; }
.phero__txt .bart__h { font-size: clamp(28px, 5vw, 48px); }
.phero__down { position: absolute; right: 24px; bottom: 28px; z-index: 3; width: 44px; height: 44px; display: grid; place-items: center; border: 1px solid var(--line-3); border-radius: 50%; text-decoration: none; color: var(--gold); animation: bob 2s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(6px); } }

.bhint { color: var(--muted); font-size: 14px; margin: -6px 0 16px; }

/* angle viewer */
.bviews { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.bview { margin: 0; background: var(--surf-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.bview__stage { position: relative; aspect-ratio: 1; background: #fff; cursor: grab; touch-action: pan-y; user-select: none; outline: none; }
.bview__stage:focus-visible { box-shadow: inset 0 0 0 3px var(--gold); }
.bview__stage.is-drag { cursor: grabbing; }
.bview__stage img { width: 100%; height: 100%; object-fit: contain; }
.bview__badge { position: absolute; left: 50%; bottom: 14px; translate: -50% 0; padding: 6px 12px; background: rgba(11,11,12,.82); color: var(--gold); font: 500 13px var(--head); border-radius: 20px; animation: nudge 1.8s ease-in-out infinite; transition: opacity .3s; pointer-events: none; }
.was-used .bview__badge { opacity: 0; }
@keyframes nudge { 0%,100% { transform: translateX(-8px); } 50% { transform: translateX(8px); } }
.bview__count { position: absolute; top: 10px; right: 10px; padding: 2px 8px; background: rgba(11,11,12,.75); color: #fff; font-size: 12px; border-radius: 10px; pointer-events: none; }
.bview__dots { display: flex; gap: 4px; padding: 10px 14px 0; }
.bview__dots i { flex: 1; height: 3px; background: var(--line-3); border-radius: 2px; transition: background .2s; }
.bview__dots i.on { background: var(--gold); }
.bview figcaption { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 14px; font: 500 15px var(--head); }
.bswatches { display: flex; align-items: center; gap: 6px; }
.bswatches button { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #3A3C42; background: var(--c); cursor: pointer; padding: 0; transition: transform .15s; }
.bswatches button:hover { transform: scale(1.15); }
.bswatches button.on { border-color: var(--gold); box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--gold); }
.bswatches small { color: var(--muted); font: 400 12px var(--body); margin-left: 4px; }

/* feature spotlights — one photo per difference, alternating sides */
.bfeat { position: relative; overflow: hidden; padding: 64px 0; border-top: 1px solid var(--line-1); }
.bfeat:nth-of-type(even) { background: var(--surf-1); }
.bfeat__num { position: absolute; right: -1vw; top: 0; font: 800 clamp(120px, 22vw, 260px)/1 var(--head); color: transparent; -webkit-text-stroke: 1px var(--line-3); pointer-events: none; }
.bfeat--flip .bfeat__num { right: auto; left: -1vw; }
.bfeat__in { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
.bfeat--flip .bfeat__img { order: 2; }
.bfeat__img { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 10px; background: #fff; cursor: zoom-in; box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.bfeat__img > div { height: 116%; margin-top: -8%; }
.bfeat__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.bfeat__img:hover > div img { transform: scale(1.05); }
.bfeat__img { position: relative; }
/* whole-vest photos: show all of it instead of cropping to fill */
.bfeat__img--contain > div { height: 100%; margin-top: 0; padding: 4%; }
.bfeat__img--contain > div img { object-fit: contain; }
.bfeat__inset { position: absolute; right: 12px; bottom: 12px; width: 34%; background: #fff; border: 2px solid var(--bg); border-radius: 6px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.45); }
.bfeat__inset img { display: block; aspect-ratio: 4 / 3; height: auto; }
.bfeat__inset small { display: block; padding: 3px 6px; background: var(--surf-3); color: var(--text-2); font: 500 11px var(--head); text-align: center; }
.bfeat__tag { display: inline-block; padding: 3px 10px; background: var(--gold); color: #0B0B0C; font: 600 12px var(--head); letter-spacing: .06em; border-radius: 2px; }
.bfeat__tag--alt { background: var(--text-2); }
.bfeat__txt h3 { font: 700 clamp(22px, 3.2vw, 30px)/1.3 var(--head); margin: 14px 0 10px; }
.bfeat__txt p { margin: 0; color: var(--text-2); font-size: 16px; }

/* single-product reviews and guides */
.bviews--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.btable--one td, .btable--plain td { width: auto; }
.btable--plain tbody th { width: 46%; }
.blist-dots { margin: 0 0 8px; padding-left: 22px; color: var(--text-2); max-width: 70ch; }
.blist-dots li { margin-bottom: 8px; }
.blist-dots li::marker { color: var(--gold); }

.bverdict__go { display: inline-block; margin-top: 14px; color: var(--gold); font: 500 14px var(--head); text-decoration: none; }
.bverdict__go:hover { text-decoration: underline; }

/* trust */
.btrust__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.btrust__item { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 20px 18px; background: var(--surf-2); border: 1px solid var(--line-2); border-radius: 8px; overflow: hidden; }
.btrust__item b { font: 600 17px var(--head); }
.btrust__item span:last-child { color: var(--text-2); font-size: 14px; }
.btrust__n { font: 700 13px var(--head); color: var(--gold); }
.btrust__item::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--gold); transition: width .8s ease .2s; }
.btrust__item.in::after, html:not(.js) .btrust__item::after { width: 100%; }

/* lightbox */
.blight { position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.92); display: grid; place-items: center; padding: 16px; cursor: zoom-out; }
.blight[hidden] { display: none; }
.blight img { max-width: 100%; max-height: 90vh; object-fit: contain; background: #fff; border-radius: 6px; }
.blight button { position: absolute; top: 12px; right: 12px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: var(--surf-3); color: #fff; font-size: 26px; cursor: pointer; }

/* floating LINE */
.bfab { position: fixed; right: 16px; bottom: 16px; z-index: 15; padding: 12px 18px; background: #06C755; color: #fff; font: 600 14px var(--head); text-decoration: none; border-radius: 30px; box-shadow: 0 8px 24px rgba(0,0,0,.45); }

@media (max-width: 640px) {
  .phero { min-height: 640px; }
  .phero__stage { inset: 0 0 42%; gap: 10px; }
  .phero__vest { width: 42vw; }
  /* no pointer to tilt toward on a phone — keep the cards flat (2D) */
  .phero__vest--l .phero__card { transform: rotate(-3deg); }
  .phero__vest--r .phero__card { transform: rotate(3deg); }
  .phero__down { display: none; }
  .bviews, .bfeat__in, .btrust__grid { grid-template-columns: 1fr; }
  .bfeat { padding: 40px 0; }
  .bfeat--flip .bfeat__img { order: 0; }
  .bfoot { padding-bottom: 76px; }
}
@media (min-width: 641px) and (max-width: 900px) { .btrust__grid { grid-template-columns: 1fr 1fr; } }
@media (prefers-reduced-motion: reduce) {
  .phero__down, .bview__badge { animation: none; }
  .bfeat__img img, .phero__card { transition: none; }
}

/* footer — same as the storefront */
.bfoot { background: #0B0B0C; color: #B4B6BC; padding: 44px 0 22px; font-size: 14px; margin-top: 40px; }
.bfoot .bwrap { max-width: 1360px; }
.bfoot__cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; }
.bfoot__logo { height: 64px; width: auto; margin-bottom: 10px; }
.bfoot h4 { color: #F2F2F0; font: 600 15px var(--head); margin: 0 0 10px; }
.bfoot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.bfoot a { color: #B4B6BC; text-decoration: none; }
.bfoot a:hover { color: var(--gold); }
.bfoot__bottom { border-top: 1px solid #23252A; margin-top: 28px; padding-top: 16px; font-size: 12px; color: #6E7076; }
@media (max-width: 900px) { .bfoot__cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .bfoot__cols { grid-template-columns: 1fr; } }
