/* ═══════════════════════════════════════════════════════════
   187 DARK KNIGHTS — THE STORE LAYOUT (armory.css)
   Jessie Lynn, 2026-11-24. Plan: G:\(IA) Family\Jessie Lynn\Plans\
   STORE_REDESIGN_PLAN.md. A FiveM-store layout in our HUD look:
   shelf menu left, store front (featured + rows) or a shelf grid right.

   ⚠️ LOAD ORDER: pages/store.php loads this AFTER deck.css. Everything
   here uses its own arm- classes under body[data-store], so it never has
   to out-rank mecha-hud.css's !important card rules (.crypt-card,
   .plate) - those don't match anything this file draws.
   ⚠️ NO .plate ON ANYTHING POSITIONED: mecha-hud's .plate forces
   position:relative (it already broke the chat panel and the cart).
   Uses the brand vars from style.css (--blood, --blood2, --maroon,
   --ink*, --metal-*) and the HUD vars from mecha-hud.css (--hud-cyan,
   --readout, --cut).
   ═══════════════════════════════════════════════════════════ */

/* ── Hero: shorter, so products show above the fold ── */
body[data-store] .store-hero.arm-hero{ min-height:auto; padding:132px 0 56px; }
body[data-store] .store-hero.arm-hero .lp-mech{ height:min(56vh, 480px); }
body[data-store] .store-hero.arm-hero .lp-lede{ max-width:620px; }

/* ── The section: overflow-x:clip, not hidden - hidden would make it a
   scroll container and the sticky shelf menu would stop sticking. ── */
body[data-store] .arm-section{ padding:34px 0 90px; overflow:visible; overflow-x:clip; }
body[data-store] .arm-wrap{ max-width:1400px; }
body[data-store] .arm-layout{ display:grid; grid-template-columns:260px minmax(0,1fr); gap:28px; align-items:start; }

/* ── Shelf menu ── */
body[data-store] .arm-side{ position:sticky; top:calc(var(--topnav-h, 72px) + 16px); }
body[data-store] .arm-browse{
  border:1px solid var(--hud-cyan);
  background:linear-gradient(160deg, rgba(14,21,32,.92), rgba(6,9,14,.96));
  clip-path:polygon(0 0, calc(100% - var(--cut,12px)) 0, 100% var(--cut,12px), 100% 100%, var(--cut,12px) 100%, 0 calc(100% - var(--cut,12px)));
}
body[data-store] .arm-browse-sum{
  list-style:none; cursor:pointer; padding:14px 16px;
  font-family:'Share Tech Mono', monospace; font-size:11px; letter-spacing:.22em;
  text-transform:uppercase; color:var(--readout);
  border-bottom:1px solid var(--hud-cyan);
}
body[data-store] .arm-browse-sum::-webkit-details-marker{ display:none; }
body[data-store] .arm-shelves{ padding:8px 0 10px; max-height:calc(100vh - var(--topnav-h, 72px) - 110px); overflow:auto; }
body[data-store] .arm-dep{ padding:6px 0; border-top:1px solid rgba(92,192,240,.08); }
body[data-store] .arm-shelf{
  display:flex; align-items:center; justify-content:space-between; gap:10px;
  padding:7px 16px; text-decoration:none; color:var(--ink2);
  font-family:'Rajdhani', sans-serif; font-weight:600; font-size:14px; letter-spacing:.02em;
  border-left:2px solid transparent; transition:color .15s, background .15s, border-color .15s;
}
body[data-store] .arm-shelf b{
  font-family:'Share Tech Mono', monospace; font-weight:400; font-size:10px;
  color:var(--ink3); min-width:22px; text-align:right;
}
body[data-store] .arm-shelf.d0{
  font-family:'Oswald', sans-serif; font-weight:600; font-size:13px; letter-spacing:.16em;
  text-transform:uppercase; color:var(--ink);
}
body[data-store] .arm-shelf.d1{ padding-left:26px; }
body[data-store] .arm-shelf.d2{ padding-left:40px; font-size:13px; }
body[data-store] .arm-shelf:hover{ color:#F2F4F5; background:rgba(0,118,182,.10); }
body[data-store] .arm-shelf.active{
  color:#F2F4F5; border-left-color:var(--readout);
  background:linear-gradient(90deg, rgba(0,118,182,.28), rgba(0,54,90,0));
}
body[data-store] .arm-shelf.active b{ color:var(--readout); }
body[data-store] .arm-shelf.is-empty:not(.active){ opacity:.5; }
body[data-store] .arm-shelf-home{ margin-bottom:4px; }
body[data-store] .arm-shelf-out{ margin-top:6px; border-top:1px solid rgba(92,192,240,.08); padding-top:12px; }

/* ── Bar: breadcrumb + search/sort ── */
body[data-store] .arm-bar{
  display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:12px 18px;
  margin-bottom:22px; padding-bottom:14px; border-bottom:1px solid var(--hud-cyan);
}
body[data-store] .arm-crumbs{ font-family:'Share Tech Mono', monospace; font-size:11px; letter-spacing:.14em; text-transform:uppercase; }
body[data-store] .arm-crumbs a{ color:var(--ink2); text-decoration:none; }
body[data-store] .arm-crumbs a:last-child{ color:var(--readout); }
body[data-store] .arm-crumbs a:hover{ color:#F2F4F5; }
body[data-store] .arm-crumbs i{ font-style:normal; color:var(--ink3); margin:0 8px; }
body[data-store] .arm-tools{ display:flex; gap:10px; flex:1 1 320px; justify-content:flex-end; min-width:0; }
body[data-store] .arm-search{ flex:1 1 220px; max-width:360px; }
body[data-store] .arm-sort{ flex:0 1 auto; width:auto; min-width:0; }
/* .admin-input carries its own width/min-width - the store bar sizes these itself */
body[data-store] .arm-search{ min-width:0; width:auto; }

/* ── Featured banner ── */
body[data-store] .arm-feature{
  display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); margin-bottom:34px;
  border:1px solid var(--hud-cyan);
  background:linear-gradient(160deg, rgba(14,21,32,.94), rgba(6,9,14,.97));
  clip-path:polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 18px 100%, 0 calc(100% - 18px));
  position:relative;
}
body[data-store] .arm-feature::before{
  content:''; position:absolute; left:0; right:18px; top:0; height:2px; z-index:2;
  background:linear-gradient(90deg, var(--blood), var(--readout) 70%, transparent);
}
body[data-store] .arm-feature-img{
  display:block; min-height:280px; background-size:cover; background-position:center;
  background-color:#070b11; border-right:1px solid var(--hud-cyan);
}
body[data-store] .arm-feature-body{ padding:30px 30px 26px; display:flex; flex-direction:column; gap:8px; }
body[data-store] .arm-feature-k{ font-family:'Share Tech Mono', monospace; font-size:11px; letter-spacing:.3em; text-transform:uppercase; color:var(--readout); }
body[data-store] .arm-feature-name{ font-family:'Oswald', sans-serif; font-weight:700; font-size:clamp(26px, 3vw, 38px); line-height:1.05; text-decoration:none; letter-spacing:.02em; }
body[data-store] .arm-feature-body p{ color:var(--ink2); font-size:15px; line-height:1.6; margin:4px 0 10px; }
body[data-store] .arm-feature-foot{ margin-top:auto; display:flex; flex-wrap:wrap; align-items:center; gap:12px; }
body[data-store] .arm-feature-foot .arm-price{ font-size:26px; margin-right:auto; }

/* ── Rows on the store front ── */
body[data-store] .arm-row{ margin-bottom:34px; }
body[data-store] .arm-row-head, body[data-store] .arm-grid-head{
  display:flex; align-items:baseline; justify-content:space-between; gap:12px; margin-bottom:14px;
}
body[data-store] .arm-row-head h2, body[data-store] .arm-grid-head h2{
  margin:0; font-family:'Oswald', sans-serif; font-weight:600; font-size:20px;
  letter-spacing:.18em; text-transform:uppercase;
  background:var(--metal-silver); -webkit-background-clip:text; background-clip:text; color:transparent;
}
body[data-store] .arm-row-head a{ font-family:'Share Tech Mono', monospace; font-size:11px; letter-spacing:.16em; text-transform:uppercase; color:var(--readout); text-decoration:none; }
body[data-store] .arm-grid-head span{ font-family:'Share Tech Mono', monospace; font-size:11px; color:var(--ink3); letter-spacing:.14em; text-transform:uppercase; }
/* a rail scrolls sideways on phones, wraps into a grid on wide screens */
body[data-store] .arm-rail, body[data-store] .arm-cards{
  display:grid; grid-template-columns:repeat(auto-fill, minmax(250px, 1fr)); gap:18px;
}

/* ── Product card ── */
body[data-store] .arm-card{
  position:relative; display:flex; flex-direction:column; min-width:0;
  border:1px solid var(--hud-cyan);
  background:linear-gradient(160deg, rgba(14,21,32,.92), rgba(6,9,14,.96));
  clip-path:polygon(0 0, calc(100% - var(--cut,12px)) 0, 100% var(--cut,12px), 100% 100%, var(--cut,12px) 100%, 0 calc(100% - var(--cut,12px)));
  transition:transform .2s cubic-bezier(.22,1,.36,1), border-color .2s, box-shadow .2s;
}
body[data-store] .arm-card:hover{ transform:translateY(-4px); border-color:var(--readout); box-shadow:0 0 26px rgba(92,192,240,.14); }
body[data-store] .arm-card.is-beta{ border-color:rgba(79,179,232,.5); }
body[data-store] .arm-card-img{
  position:relative; display:block; aspect-ratio:16 / 9;
  background-size:cover; background-position:center; background-color:#070b11;
  border-bottom:1px solid var(--hud-cyan); text-decoration:none;
}
body[data-store] .arm-card-img-empty{
  display:flex; align-items:center; justify-content:center;
  background:radial-gradient(ellipse at 50% 50%, rgba(0,118,182,.18), #070b11 70%);
}
/* .arm-skull, not 'span': the tag chips inside the same box are spans too */
body[data-store] .arm-card-img-empty .arm-skull{ font-size:42px; color:rgba(79,179,232,.5); }
body[data-store] .arm-tags{ position:absolute; top:10px; left:10px; display:flex; flex-wrap:wrap; gap:6px; }
body[data-store] .arm-tag{
  font-family:'Share Tech Mono', monospace; font-size:9px; letter-spacing:.16em; text-transform:uppercase;
  padding:4px 9px; color:var(--readout); background:rgba(4,10,16,.82);
  border:1px solid var(--hud-cyan); clip-path:polygon(5px 0, 100% 0, calc(100% - 5px) 100%, 0 100%);
}
body[data-store] .arm-tag-beta{ color:#F2F4F5; background:var(--metal-blue); border-color:transparent; }
body[data-store] .arm-tag-soon{ color:var(--ink); }
body[data-store] .arm-fws{ position:absolute; left:10px; bottom:10px; display:flex; gap:6px; }
body[data-store] .arm-fw{
  font-family:'Share Tech Mono', monospace; font-size:9px; letter-spacing:.14em; text-transform:uppercase;
  padding:3px 8px; color:#F2F4F5; background:rgba(0,54,90,.9); border:1px solid rgba(79,179,232,.55);
}
body[data-store] .arm-card-body{ padding:14px 16px 16px; display:flex; flex-direction:column; gap:6px; flex:1; }
body[data-store] .arm-card-path{ font-family:'Share Tech Mono', monospace; font-size:9.5px; letter-spacing:.14em; text-transform:uppercase; color:var(--readout); opacity:.85; }
body[data-store] .arm-card-name{ font-family:'Oswald', sans-serif; font-weight:600; font-size:17px; letter-spacing:.02em; color:#F2F4F5; text-decoration:none; }
body[data-store] .arm-card-name:hover{ color:var(--blood2); }
body[data-store] .arm-card-desc{
  margin:0 0 8px; color:var(--ink2); font-size:13.5px; line-height:1.55;
  display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden;
}
body[data-store] .arm-card-foot{ margin-top:auto; display:flex; align-items:center; justify-content:space-between; gap:10px; }
body[data-store] .arm-price{ font-family:'Oswald', sans-serif; font-weight:600; font-size:21px; color:var(--blood2); }
body[data-store] .arm-buy{ padding:8px 14px; font-size:12px; white-space:nowrap; text-decoration:none; }
body[data-store] .arm-card .beta-try{ margin-top:6px; }

/* ── "Being forged" (an empty shelf) ── */
body[data-store] .arm-forging{
  grid-column:1 / -1; padding:26px 22px; text-align:center;
  border:1px dashed rgba(92,192,240,.22); color:var(--ink2);
  font-family:'Rajdhani', sans-serif; font-size:15px; font-weight:500;
}
body[data-store] .arm-forging b{ color:#F2F4F5; font-family:'Oswald', sans-serif; letter-spacing:.06em; }
body[data-store] .arm-forging span{ display:block; margin-top:4px; font-family:'Share Tech Mono', monospace; font-size:11px; letter-spacing:.12em; color:var(--ink3); text-transform:uppercase; }

body[data-store] .arm-main .store-merch{ margin-top:10px; }
/* store.js hides it off the store front with [hidden]; its own display rule would win otherwise */
body[data-store] .store-merch[hidden], body[data-store] .arm-home[hidden], body[data-store] .arm-grid[hidden]{ display:none !important; }

/* ── Laptops: slimmer menu ── */
@media (max-width:1180px){
  body[data-store] .arm-layout{ grid-template-columns:220px minmax(0,1fr); gap:22px; }
}
/* ── Phones + tablets: menu becomes a drawer above the results ── */
@media (max-width:959px){
  body[data-store] .store-hero.arm-hero{ padding:112px 0 40px; }
  body[data-store] .arm-layout{ grid-template-columns:minmax(0,1fr); gap:16px; }
  body[data-store] .arm-side{ position:static; }
  body[data-store] .arm-browse:not([open]) .arm-browse-sum{ border-bottom:0; }
  body[data-store] .arm-shelves{ max-height:none; }
  body[data-store] .arm-feature{ grid-template-columns:minmax(0,1fr); }
  body[data-store] .arm-feature-img{ min-height:0; aspect-ratio:16 / 9; border-right:0; border-bottom:1px solid var(--hud-cyan); }
  body[data-store] .arm-feature-body{ padding:20px; }
  body[data-store] .arm-tools{ flex-basis:100%; justify-content:stretch; }
  /* flex-basis 0 + min-width 0: with the desktop 220px basis the search
     and sort pushed ~20px past the right edge on a 375px phone */
  body[data-store] .arm-search{ max-width:none; flex:1 1 0; min-width:0; }
  body[data-store] .arm-sort{ max-width:46%; }
  /* rows become sideways rails so the store front stays short */
  body[data-store] .arm-rail{
    grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(240px, 78%);
    overflow-x:auto; scroll-snap-type:x mandatory; padding-bottom:6px;
  }
  body[data-store] .arm-rail > *{ scroll-snap-align:start; }
}
@media (max-width:520px){
  body[data-store] .arm-cards{ grid-template-columns:minmax(0,1fr); }
}

@media (prefers-reduced-motion:reduce){
  body[data-store] .arm-card, body[data-store] .arm-shelf{ transition:none; }
  body[data-store] .arm-card:hover{ transform:none; }
}
body[data-store] .arm-card-titan .arm-card-img{ background-position:center 30%; }

/* ── Logos fit, wide art fills (Knox, 2026-11-25: Cortex logo too big) ──
   store.js adds .arm-img-fit when a product picture is clearly narrower
   than the 16:9 frame (a square logo). Wide card art keeps 'cover'. */
body[data-store] .arm-card-img.arm-img-fit,
body[data-store] .arm-feature-img.arm-img-fit{
  background-size:contain; background-repeat:no-repeat; background-origin:content-box;
  padding:14px 18px;
}
body[data-store] .arm-feature-img.arm-img-fit{ padding:26px 30px; }
