/* XL Arms — SEO-first redesign (2026-10-25).
   Identity kept from the old site: black header/hero, bright red accent,
   white/light-gray content bands, photo category tiles.
   Fixes vs old site: real H1, readable body text (not all-dark), photo hero
   (not flat black), full footer with contact + FFL info, mobile-first grid.
   Product photos are placeholders until Wasabi/Bunny sync; category tiles
   use images/categories/<name>.jpg when present, otherwise a dark gradient
   so the tile still looks finished. */
* { box-sizing: border-box; }
body { font-family: 'Barlow', system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif; margin: 0; background: #0d0d0d; color: #e8e8e8; line-height: 1.55; } /* Jonathan: black/dark pages look more tactical */
a { color: #ff7a70; } /* visible on the dark theme */
.topbar { background: #000; color: #d8d2c4; font-size: 13px; }
.topbar .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 6px 20px; }
.topbar a { color: #d8d2c4; text-decoration: none; margin-left: 14px; }
header { background: #111; color: #fff; padding: 14px 20px 0; }
header .wrap, main.wrap, footer .wrap { max-width: 1140px; margin: 0 auto; }
.headrow { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.logo img { height: 190px; width: auto; border-radius: 50%; } /* Jonathan, 2026-11-03: much larger so EST. 2022 is readable (was 110px, before that 52px) */
.logo .wordmark { font-weight: 900; line-height: 1; letter-spacing: .5px; }
.logo .wordmark .xl { color: #e2231a; font-size: 28px; display: block; }
.logo .wordmark .arms { color: #fff; font-size: 28px; display: block; }
.headcontact { margin-left: auto; text-align: right; font-size: 14px; color: #d8d2c4; }
.headcontact a { color: #fff; font-weight: 700; text-decoration: none; }
header nav { display: flex; gap: 18px; flex-wrap: wrap; border-top: 1px solid #333; padding: 10px 0; }
header nav a { color: #eee; text-decoration: none; font-weight: 700; text-transform: uppercase; font-size: 14px; }
header nav a.deals { color: #ff4d42; }
.hero { background: #111; color: #fff; border-radius: 12px; padding: 36px 28px; margin: 18px 0; background-image: linear-gradient(90deg, rgba(0,0,0,.92), rgba(0,0,0,.65)); /* photo hero later: add a real product photo here after image sync, never the previous designer's photos */ background-size: cover; background-position: center; }
.hero h1 { margin: 0 0 8px; font-size: 38px; line-height: 1.1; max-width: 720px; }
.hero p { color: #d8d2c4; max-width: 680px; margin: 0 0 14px; font-size: 17px; }
.hero .searchbar { max-width: 680px; }
.searchbar { display: flex; gap: 8px; margin: 16px 0; }
.searchbar input { flex: 1; padding: 12px; font-size: 16px; border: 1px solid #bbb; border-radius: 8px; }
.searchbar button, .btn { background: #d8232a; color: #fff; border: 0; padding: 12px 18px; border-radius: 8px; font-size: 16px; cursor: pointer; text-decoration: none; display: inline-block; font-weight: 700; }
.btn-outline { background: transparent; color: #fff; border: 2px solid #fff; }
.badges { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.badges span { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.35); padding: 5px 10px; border-radius: 20px; font-size: 13px; }
.banner { background: #2a2410; border: 1px solid #e6c87a; color: #ffe9a8; padding: 10px 14px; margin: 16px 0; border-radius: 8px; }
.catgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 14px 0 24px; }
.tile { display: block; position: relative; border-radius: 12px; overflow: hidden; min-height: 190px; background: #222; color: #fff; text-decoration: none; background-size: cover; background-position: center; }
.tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.82), rgba(0,0,0,.15) 60%); }
.tile .t { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.tile h3 { margin: 0; font-size: 22px; text-transform: uppercase; }
.tile p { margin: 2px 0 0; color: #ddd; font-size: 14px; }
.layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 18px; align-items: start; }
.filters { background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 14px; position: static; width: 230px; max-width: 100%; overflow: hidden; color: #e8e8e8; }
.filters h3 { margin: 0 0 8px; font-size: 15px; }
.filters label { display: block; margin: 6px 0; font-size: 14px; overflow: hidden; }
.filters select { display: block; width: 100%; max-width: 100%; margin: 4px 0; padding: 6px; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: #222; color: #eee; border: 1px solid #444; }
.filters input[type=checkbox] { margin-right: 6px; }
.filters details { border-top: 1px solid #333; padding: 8px 0; }
.filters details:first-of-type { border-top: 0; }
.filters summary { cursor: pointer; font-weight: 700; font-size: 14px; padding: 2px 0; }
.filters .facet-list { max-height: 220px; overflow-y: auto; margin-top: 6px; padding-right: 4px; }
.filters .facet-list label { font-weight: 400; }
.filters .price-row { display: flex; gap: 6px; margin-top: 6px; }
.filters .price-row input { flex: 1; min-width: 0; background: #222; color: #eee; border: 1px solid #444; padding: 6px; border-radius: 6px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.card { background: #1e1e1e; border: 1px solid #333; border-radius: 10px; padding: 14px; color: #e8e8e8; }
.card img { width: 100%; height: 150px; object-fit: contain; background: #f5f2ea; border-radius: 6px; }
.card h3 { font-size: 16px; margin: 10px 0 4px; }
.card h3 a { text-decoration: none; color: #fff; }
.price { font-size: 19px; font-weight: 700; margin: 6px 0; color: #b81e24; }
.instock { color: #1f6b2e; font-weight: 700; }
.outstock { color: #9a2b2b; font-weight: 700; }
.meta { color: #aaa; font-size: 13px; }
.specs { width: 100%; border-collapse: collapse; background: #1e1e1e; color: #e8e8e8; }
.specs th, .specs td { text-align: left; padding: 9px 10px; border-bottom: 1px solid #333; }
.specs th { width: 180px; color: #aaa; }
.ffl { background: #eef4ee; border: 1px solid #b7d0b7; padding: 12px 14px; border-radius: 8px; margin: 14px 0; color: #1e3a1e; } /* dark text: the old rule set no color, so it inherited near-white body text and was unreadable on the pale green */
/* Product page card is white on a dark-themed site, so its inherited text must
   be dark too — otherwise the description and headings render near-white on
   white and are barely visible (reported 2026-10-26). */
#product { color: #1f1a14; }
#product a { color: #b81e24; }
/* Back-in-stock notify form (out-of-stock cards + product page). Light input
   works on both the dark shop cards and the white product card. */
.notifyform { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.notifyform input[type=email] { width: 100%; box-sizing: border-box; padding: 10px 12px; border: 1px solid #999; border-radius: 8px; background: #fff; color: #111; font-size: 14px; }
.notifyform button { background: #d8232a; color: #fff; border: 0; padding: 11px 12px; border-radius: 8px; font-weight: 700; cursor: pointer; font-size: 15px; }
/* Back-in-stock success message: pale green + dark text, readable on both the
   dark shop cards and the white product card. */
.notifyok { background: #eef4ee; border: 1px solid #b7d0b7; color: #1e3a1e; padding: 10px 12px; border-radius: 8px; margin: 8px 0; }
.seo { background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 18px 20px; margin: 24px 0; color: #e8e8e8; }
.seo h2 { margin-top: 0; }
footer { background: #111; color: #d8d2c4; padding: 28px 20px; font-size: 14px; margin-top: 24px; }
footer .cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
footer h4 { color: #fff; margin: 0 0 8px; text-transform: uppercase; font-size: 14px; }
footer a { color: #d8d2c4; text-decoration: none; display: block; margin: 4px 0; }
footer .fine { border-top: 1px solid #333; margin-top: 18px; padding-top: 12px; font-size: 13px; }
/* Age gate: JS-only overlay. Content underneath stays in the HTML (so it is
   indexable), the modal just blocks interaction until confirmed. Choice is
   remembered in localStorage for 30 days. */
.agegate { position: fixed; inset: 0; background: rgba(0,0,0,.88); z-index: 999; display: flex; align-items: center; justify-content: center; padding: 20px; }
.agegate.hidden { display: none; }
.agebox { background: #222; color: #fff; border-radius: 14px; padding: 32px 28px; max-width: 440px; text-align: center; }
.agebox .shield { font-size: 44px; color: #e2231a; }
.agebox h2 { margin: 8px 0; }
.agebox p { color: #ccc; }
.agebox .btn { width: 100%; margin-top: 10px; }
.agebox .btn-dark { background: #333; color: #fff; border: 1px solid #555; }
@media (max-width: 900px) {
  .catgrid { grid-template-columns: repeat(2, 1fr); }
  footer .cols { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 30px; }
}
/* Mobile filter toggle (2026-11-03): on a phone the filter sidebar stacks
   ABOVE the results, so a long open filter list pushed product photos to
   the bottom of the page and looked like no results. Filters are collapsed
   behind a button on mobile only; desktop is unchanged. */
.filter-toggle { display: none; }
@media (max-width: 760px) {
  .layout { grid-template-columns: 1fr; }
  .filters { width: 100%; }
  .filter-toggle { display: block; width: 100%; background: #d8232a; color: #fff; border: 0; padding: 12px; border-radius: 8px; font-weight: 700; font-size: 16px; cursor: pointer; }
  aside.filters:not(.filters-open) > :not(.filter-toggle) { display: none; }
  .catgrid { grid-template-columns: 1fr; }
  .headcontact { text-align: left; margin-left: 0; }
  .searchbar { flex-direction: column; }
}

/* PSA-style layout (2026-10-25): header search, category mosaic, trending
   chips, deal tiles. Structure inspired by PSA; all content/branding is XL Arms. */
.headsearch { flex: 1; max-width: 640px; display: flex; }
.headsearch input { flex: 1; padding: 12px; font-size: 16px; border: 0; border-radius: 8px 0 0 8px; }
.headsearch button { background: #d8232a; color: #fff; border: 0; padding: 12px 18px; border-radius: 0 8px 8px 0; font-size: 16px; cursor: pointer; font-weight: 700; }
header nav a.deals { background: #d8232a; color: #fff; padding: 4px 14px; border-radius: 20px; }
.mosaic { display: grid; grid-template-columns: 1.5fr 1fr; gap: 14px; margin: 18px 0 0; }
.mosaic .big { min-height: 360px; }
.mosaic-stack { display: grid; gap: 14px; }
.mosaic-stack .tile { min-height: 173px; }
.mosaic-bottom { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.trend { background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 12px 16px; margin: 16px 0 8px; display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.trend a { color: #fff; background: #2a2a2a; border: 1px solid #444; padding: 5px 12px; border-radius: 20px; text-decoration: none; font-size: 14px; }
.dealsrow { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 24px 0; }
.dealtile { background: #1a1a1a; border: 1px solid #333; border-left: 4px solid #d8232a; border-radius: 10px; padding: 18px; color: #e8e8e8; text-decoration: none; }
.dealtile h3 { margin: 0 0 6px; color: #fff; text-transform: uppercase; font-size: 17px; }
.dealtile p { margin: 0; color: #bbb; }
.card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.5); border-color: #555; }
@media (max-width: 760px) {
  .headsearch { order: 3; max-width: 100%; }
  .mosaic { grid-template-columns: 1fr; }
  .mosaic .big { min-height: 220px; }
  .mosaic-bottom, .dealsrow { grid-template-columns: 1fr; }
}

/* Cart / Help / Contact (2026-10-25): header cart icon, help cards,
   trust band, payment badges, cart page rows. */
.cartlink { color: #fff; text-decoration: none; font-weight: 700; white-space: nowrap; }
.cartcount { background: #d8232a; color: #fff; border-radius: 20px; padding: 2px 9px; font-size: 13px; margin-left: 4px; }
.btn-cart { width: 100%; margin-top: 10px; }
.helpgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 14px 0 24px; }
.helpcard { background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 18px; color: #e8e8e8; text-decoration: none; }
.helpcard h3 { margin: 0 0 6px; color: #fff; }
.helpcard p { margin: 0; color: #bbb; }
.trustband { background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 16px 20px; margin: 24px 0; display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.paybadges { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.paybadges span { background: #fff; color: #111; font-size: 11px; font-weight: 800; padding: 4px 8px; border-radius: 4px; letter-spacing: .5px; }
.cartitem { display: flex; gap: 14px; align-items: center; background: #1a1a1a; border: 1px solid #333; border-radius: 10px; padding: 12px; margin: 10px 0; }
.cartitem img { width: 80px; height: 80px; object-fit: contain; background: #f5f2ea; border-radius: 6px; }
.cartitem button { background: #333; color: #fff; border: 1px solid #555; border-radius: 6px; padding: 3px 9px; cursor: pointer; }
@media (max-width: 760px) {
  .helpgrid { grid-template-columns: 1fr; }
  .cartlink { margin-left: 0; }
}

/* Fonts (2026-10-25): PSA-style — tall condensed bold uppercase headings
   (Oswald) over a clean regular sans body (Barlow). System/Arial Narrow
   fallbacks keep the condensed look if Google Fonts is blocked. */
h1, h2, h3, h4, header nav a, .btn, .headsearch button, .tile h3,
.dealtile h3, .helpcard h3, footer h4, .price {
  font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
  letter-spacing: .4px;
}
h1, h2, h3, header nav a, .tile h3, .dealtile h3, .helpcard h3, footer h4 {
  text-transform: uppercase;
}
.card h3 { text-transform: none; }

/* Homepage white theme (2026-10-25): homepage only is white; every other
   page keeps the black tactical background. Header, nav and footer stay dark. */
body.home { background: #ffffff; color: #1f1a14; }
body.home a { color: #c8232a; }
body.home .trend, body.home .seo, body.home .dealtile, body.home .helpcard,
body.home .trustband { background: #f6f5f2; border-color: #dddddd; color: #1f1a14; }
body.home .trend a { background: #ffffff; border-color: #cccccc; color: #1f1a14; }
body.home .dealtile h3, body.home .helpcard h3 { color: #111111; }
body.home .dealtile p, body.home .helpcard p { color: #555555; }
body.home .badges span { background: #f0ede6; border-color: #cccccc; color: #222222; }
body.home .card { background: #ffffff; border-color: #dddddd; color: #1f1a14; }
body.home .card h3 a { color: #111111; }
body.home .card .meta { color: #666666; }
/* Payment logos + footer credits link */
.paybadges img { height: 26px; width: auto; background: #ffffff; border-radius: 4px; padding: 2px; }
footer .fine a { display: inline; text-decoration: underline; }
/* Homepage white theme: keep header, nav, footer and photo tiles dark/white
   — the red link colour must not leak into them. */
body.home header nav a { color: #eeeeee; }
body.home header nav a.deals { color: #ffffff; }
body.home footer a { color: #d8d2c4; }
/* Button text must stay white (2026-11-03): the homepage link colour
   (body.home a) and the product-page link colour (#product a) were both
   beating .btn, so red <a class="btn"> buttons rendered dark-red text on
   a red background — e.g. "Shop all 26,000+ products" looked faint, while
   <button> Add to Cart buttons (white text) looked fine. This rule beats
   both link-colour rules, on every page. */
body.home a.btn, #product a.btn, a.btn { color: #ffffff; }
body.home .topbar a { color: #d8d2c4; }
body.home .headcontact a, body.home .cartlink { color: #ffffff; }
body.home .tile, body.home .tile h3 { color: #ffffff; }
body.home .tile p { color: #dddddd; }

/* Product gallery: thumbnails + lightbox zoom (2026-10-26) */
.pg-main.zoomable { cursor: zoom-in; }
.pthumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.pthumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; cursor: pointer; border: 2px solid transparent; background: #f0ede6; }
.pthumbs img.active { border-color: #b81e24; }
.plightbox { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.92); display: none; align-items: center; justify-content: center; flex-direction: column; z-index: 9999; }
.plightbox.open { display: flex; }
.plightbox img { max-width: 96vw; max-height: 80vh; border-radius: 8px; background: #111; object-fit: contain; }
/* Bottom control bar (2026-11-03, v2): controls sit BELOW the photo in normal flow, never overlaid on it — a white product photo can no longer hide them. */
.plb-bar { display: flex; align-items: center; gap: 16px; margin-top: 14px; z-index: 2; }
.plb-bar .plb-btn { position: static; transform: none; width: auto; height: 44px; padding: 0 18px; border-radius: 22px; font-size: 18px; background: #b81e24; border-color: #ffffff; }
.plb-btn { position: absolute; z-index: 2; background: rgba(0, 0, 0, 0.65); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); border-radius: 50%; cursor: pointer; line-height: 1; }
.plb-btn:hover { background: rgba(0, 0, 0, 0.85); }
.plb-close { top: 16px; right: 20px; width: 44px; height: 44px; font-size: 28px; }
.plb-prev, .plb-next { top: 50%; transform: translateY(-50%); width: 48px; height: 48px; font-size: 34px; }
.plb-prev { left: 16px; }
.plb-next { right: 16px; }
.plb-count { position: static; transform: none; z-index: 2; color: #fff; background: rgba(0, 0, 0, 0.65); border: 1px solid rgba(255, 255, 255, 0.4); border-radius: 20px; padding: 6px 14px; font-size: 14px; }

/* Compare similar (2026-11-03): differing cells highlighted, table scrolls on mobile */
table.cmp { min-width: 560px; }
table.cmp td.cmp-diff { background: #fff3cd; color: #111111; font-weight: 600; }
table.cmp td.cmp-diff a { color: #8a1216; }

/* Sticky mobile Call button (2026-11-08, call-first): fixed bottom bar on
   phones only (<=760px, the site's existing mobile breakpoint). Desktop is
   unchanged. Body bottom padding keeps the bar from covering footer content;
   the mobile filter button is in-flow, not fixed, so there is no overlap. */
.callbar { display: none; }
.callhero { font-size: 19px; }
@media (max-width: 760px) {
  body { padding-bottom: 64px; }
  .callbar {
    display: flex; align-items: center; justify-content: center;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
    height: 56px; background: #d8232a;
    box-shadow: 0 -2px 10px rgba(0,0,0,.4);
  }
  .callbar a {
    display: block; width: 100%; text-align: center;
    color: #fff; text-decoration: none; font-weight: 700; font-size: 18px;
    font-family: 'Oswald', 'Arial Narrow', Arial, sans-serif;
    letter-spacing: .4px; padding: 16px 0;
  }
}
