/* Urban Tactical Firearms - custom store CSS
   Loaded last, so rules here override the Covent Garden theme.
   Lives in WebDAV at content/css/custom.css so it survives theme updates.
   Created 14 August 2026. */

/* Placeholder - no rules yet. This file exists so the theme setting
   has something to load. Day 11 image and layout fixes go below. */

/* ============================================================
   BEGIN UTF-MEGAMENU v4  (2026-08-22)  — COMMITTED DESIGN
   Contained mega panels in the PSA pattern:
     • Guns / Ammo / Optics / Accessories  → category rail on the
       left, "Shop all" buttons, product image tiles, promo card
       on the right rail.
     • Training/Services & Support         → compact link panel
       with a promo card.
     • Blog                                → plain link.
   Panels shrink to fit their content and are centered under the
   nav. Desktop only (min-width 1025px) — mobile menu untouched.
   Pair with the "UTF Megamenu" script v4 (Script Manager).
   CSS is inert without the script — safe to paste on its own.
   Palette: black, white, army green only — no other accent colors.
     --utf-accent      #4B5320 army green (borders, hovers, chevrons)
     --utf-cta         army green → black gradient, sampled from the
                       theme's own Add to Cart buttons
   Rollback: delete everything between BEGIN and END markers.
   ============================================================ */
@media (min-width: 1025px) {

  :root {
    --utf-accent: #4B5320;
    --utf-cta: linear-gradient(to right, rgb(75, 83, 32), rgb(0, 0, 0));
    --utf-cta-solid: rgb(75, 83, 32);
  }

  .navPages-container { position: relative; }

  /* ---------- shared panel shell ---------- */
  .utfPanel {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    border: 1px solid #e2e2e2;
    border-top: 5px solid var(--utf-accent);   /* thicker than the red
                              version was — green sits closer to black
                              in value, so it needs weight to register */
    box-shadow: 0 16px 34px rgba(0, 0, 0, .22);
    z-index: 900;
    display: none;
  }
  .utfPanel.on { display: flex; }

  /* ---------- mega panel (category menus) ---------- */
  .utfMega {
    width: auto;
    min-width: 960px;
    max-width: 1120px;
    align-items: stretch;
  }

  .utfRail {
    flex: 0 0 215px;
    background: #fafaf8;   /* lighter than before, so the selected
                              green row separates from the rail */
    padding: 16px 0;
    border-right: 1px solid #e6e6e6;
    max-height: 74vh;      /* long category lists scroll rather than
                              pushing the panel off screen */
    overflow-y: auto;
  }
  .utfRail button {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    border-left: 4px solid transparent;   /* marker slot, filled when
                                             selected — shape carries
                                             the state, not just hue */
    padding: 14px 22px 14px 18px;
    font: 700 12.5px/1.2 Montserrat, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
    cursor: pointer;
  }
  .utfRail button:hover { background: #f0f0ec; }
  .utfRail button.sel {
    background-image: var(--utf-cta);
    border-left-color: #000;
    color: #fff;
  }

  .utfPane {
    flex: 1 1 auto;
    position: relative;
    padding: 24px 28px 26px;
    min-width: 560px;   /* guarantees the 3-column tile grid below;
                           without it the panel shrink-wraps to 2
                           columns and 6 tiles spill to a 3rd row */
    min-height: 0;
    max-height: 74vh;
    overflow-y: auto;
  }

  /* subcategories past TILE_LIMIT — kept reachable, never hidden */
  .utfMore {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid #ededed;
  }
  .utfMore h6 {
    margin: 0 0 12px;
    font: 700 12px Montserrat, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .06em;
    color: #1a1a1a;
  }
  .utfMore ul {
    list-style: none;
    margin: 0;
    padding: 0;
    columns: 3;
    column-gap: 24px;
  }
  .utfMore li { break-inside: avoid; margin: 0 0 9px; }
  .utfMore a {
    font: 400 12.5px Montserrat, Arial, sans-serif;
    color: #2b2b2b;
    text-decoration: none;
  }
  .utfMore a:hover { color: var(--utf-accent); text-decoration: underline; }

  /* terminal "See all X" link, when SHOW_SEE_ALL is on */
  .utfSeeAll {
    display: inline-block;
    margin-top: 14px;
    font: 700 12.5px Montserrat, Arial, sans-serif;
    color: var(--utf-accent);
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: .04em;
  }
  .utfSeeAll:hover { text-decoration: underline; }

  .utfBtns { display: flex; gap: 14px; margin-bottom: 22px; }
  .utfBtns a {
    flex: 1;
    min-width: 200px;
    white-space: nowrap;
    text-align: center;
    padding: 11px 14px;
    border: 1px solid #e0e0e0;
    background: #fafafa;
    font: 600 12.5px Montserrat, Arial, sans-serif;
    color: #1a1a1a;
    text-decoration: none;
  }
  .utfBtns a:hover {
    border-color: var(--utf-cta-solid);
    color: var(--utf-cta-solid);
  }

  .utfTiles {
    display: grid;
    grid-template-columns: repeat(3, 1fr);  /* explicit, not auto-fit:
                              auto-fit silently dropped to 2 columns
                              when the pane was a few px short */
    gap: 22px;
  }
  .utfTile { display: block; text-align: center; text-decoration: none; }
  .utfTile span {
    height: 94px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
  }
  .utfTile img { max-width: 100%; max-height: 92px; object-fit: contain; }
  .utfTile em {
    display: block;
    font: 400 12.5px Montserrat, Arial, sans-serif;
    font-style: normal;
    color: #2b2b2b;
    margin-top: 10px;
  }
  .utfTile:hover em { color: var(--utf-accent); text-decoration: underline; }

  /* ---------- compact panel (Training / Support) ---------- */
  .utfSimple {
    display: none;
    width: 770px;
    padding: 24px 300px 26px 28px;
    min-height: 372px; /* must clear the absolutely positioned card */
  }
  .utfSimple.on { display: block; }
  .utfSimple a.utfLnk {
    display: block;
    font: 700 12.5px Montserrat, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: #1a1a1a;
    text-decoration: none;
    margin-bottom: 16px;
  }
  .utfSimple a.utfLnk:hover { color: var(--utf-accent); }
  .utfSimple a.utfLnk:after { content: " \203A"; color: var(--utf-accent); }

  /* ---------- promo card (both panel types) ----------
     On mega panels the card is a flex column, so the panel always
     grows to contain it (a short pane can't push it past the border).
     On the compact panel it stays absolutely positioned, with
     .utfSimple's min-height guaranteeing it fits. */
  .utfPromo {
    position: absolute;
    top: 24px;
    right: 26px;
    width: 262px;
    border: 1px solid #e6e6e6;
    background: #fff;
  }
  .utfMega .utfPromo {
    position: static;
    flex: 0 0 262px;
    align-self: flex-start;
    margin: 24px 26px 24px 0;
  }
  .utfPromo a { display: block; text-decoration: none; }
  .utfPromo img { width: 100%; height: 142px; object-fit: cover; display: block; }
  .utfPromo .utfPh {
    height: 142px;
    background: #20241a;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #cfd3c4;
    font: 700 11px Montserrat, Arial, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    text-align: center;
    padding: 0 14px;
  }
  .utfPromo b {
    display: block;
    font: 800 14px Montserrat, Arial, sans-serif;
    color: #1a1a1a;
    padding: 12px 16px 0;
  }
  .utfPromo i {
    display: block;
    font-style: normal;
    font: 400 12px Montserrat, Arial, sans-serif;
    color: #5c5c5c;
    padding: 4px 16px 0;
    line-height: 1.5;
  }
  .utfCta {
    display: inline-block;
    margin: 12px 16px 16px;
    padding: 11px 18px;
    background-image: var(--utf-cta);
    color: #fff;
    font: 700 12.5px Montserrat, Arial, sans-serif;
    text-transform: uppercase;
    letter-spacing: .03em;
    border: 0;
  }
  .utfPromo a:hover .utfCta { opacity: .9; }

  /* hide the theme's own dropdown on menus we've replaced */
  .navPages-item.utf-replaced > .navPage-subMenu { display: none !important; }

}
/* ===== END UTF-MEGAMENU v4 ===== */


/* ============================================================
   BEGIN UTF-MEGAMENU v4 — SMALL LAPTOP
   1025–1279px (13"/14" laptops). Same panel, tightened.
   Desktop only — contains no mobile rules.
   ============================================================ */

/* ---------- 1. small laptops (13" / 14") ---------- */
@media (min-width: 1025px) and (max-width: 1279px) {
  .utfMega {
    min-width: 0;
    width: auto;
    max-width: calc(100vw - 32px);
  }
  .utfRail { flex: 0 0 180px; padding: 10px 0; max-height: 70vh; }
  .utfRail button { padding: 11px 16px 11px 12px; font-size: 11.5px; }
  .utfPane { padding: 18px 20px 20px; min-width: 452px; max-height: 70vh; }
  .utfBtns { gap: 10px; margin-bottom: 16px; }
  .utfBtns a { min-width: 0; padding: 9px 10px; font-size: 11.5px; }
  .utfTiles { gap: 16px; grid-template-columns: repeat(3, 1fr); }
  .utfTile span { height: 76px; }
  .utfTile img { max-height: 74px; }
  .utfTile em { font-size: 11.5px; margin-top: 7px; }
  .utfMega .utfPromo { flex: 0 0 216px; margin: 18px 18px 18px 0; }
  .utfPromo img, .utfPromo .utfPh { height: 118px; }
  .utfPromo b { font-size: 13px; padding: 10px 14px 0; }
  .utfPromo i { font-size: 11.5px; padding: 4px 14px 0; }
  .utfCta { margin: 10px 14px 14px; padding: 9px 14px; font-size: 11.5px; }
  .utfSimple { width: auto; max-width: calc(100vw - 32px); padding: 20px 250px 22px 22px; min-height: 320px; }
  .utfSimple .utfPromo { width: 216px; top: 18px; right: 18px; }
  .utfMore ul { columns: 2; }
}
/* ===== END UTF-MEGAMENU v4 — SMALL LAPTOP ===== */
