/*
 * Atomic Signs — site header, top bar and mega menu.
 *
 * ─── WHY THIS IS ITS OWN FILE ────────────────────────────────────────────────
 *
 * These rules lived in atomic-banner-stand.css, which is enqueued ONLY on the
 * banner-stand route. That was right while the header existed on one page. It
 * is now the site header on every route, and a global header whose styles load
 * on one template renders as unstyled links everywhere else — the failure mode
 * would be silent, because the markup would be perfect.
 *
 * ─── THE LOGO IS CENTRED ─────────────────────────────────────────────────────
 *
 * On the page, absolutely, at every width — .as-header below says why that is
 * absolute rather than a balanced grid, and template-parts/header.php why the
 * nav labels are short. It sat on the left for a while; Dennis settled on the
 * centre, and the 2026-11-11 homepage and mega menu handoff draws it there.
 */

/* Atomic Signs redesign — header + banner-stand hero.
 *
 * Step 3 of the handoff's migration order: one vertical slice, which exercises
 * all four primitives. Everything here is composed from .as-* primitives and
 * tokens; nothing redefines a Bootstrap or WooCommerce class.
 *
 * Requires atomic-tokens.css and atomic-primitives.css.
 */

/* ============ TOP BAR ============ */
.as-topbar {
  background: var(--atomic-dark);
  color: var(--color-text-invert);
  font-size: var(--text-sm);
  font-weight: 500;
  /* 10px above and below a 14px line: the mega menu handoff's 40px strip. */
  line-height: var(--leading-snug);
  /*
   * The dark strip runs edge to edge; its WORDS line up with everything below
   * it. There is no inner wrapper in the markup, so the container is expressed
   * as padding: half the overflow past --page-max, plus the gutter. Below the
   * cap that goes negative and max() falls back to the gutter alone.
   */
  padding-block: var(--space-2-5);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter)));
  display: flex;
  justify-content: space-between;
  gap: var(--space-4);
  flex-wrap: wrap;
}
/* The closure, when one is due, is the second sentence — same strip, same
   type, an amber dot so it reads as news rather than a slogan. The dot is the
   mega menu handoff's: 7px, #E8A33D (6px on a phone, below). */
.as-topbar__closure { display: flex; align-items: center; gap: var(--space-2); font-weight: 600; }
.as-topbar__dot { width: 7px; height: 7px; border-radius: 50%; background: #e8a33d; flex: none; }
.as-topbar__why { font-weight: 400; opacity: .8; }

/* ============ HEADER ============ */
/*
 * The logo is centred against the ROW, not against the space left between the
 * nav and the actions — those two are different widths, and centring between
 * them puts the logo off-centre by half their difference.
 */
.as-header {
  /*
   * Centred logo — the variant every route D–F mock uses, and the one the
   * mega menu handoff draws: 46px tall, absolutely centred.
   *
   * Flex with the logo taken out of flow, not a 1fr auto 1fr grid. A grid
   * centres the logo only while the two side columns weigh the same, so the
   * logo drifted off-centre as soon as the nav or the actions changed width —
   * signing in adds a name, the cart pill grows a digit. Absolute centring is
   * centred on the page regardless of what sits either side of it.
   */
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  /*
   * ─── THE BAR IS FULL WIDTH, THE NAV IS NOT ───────────────────────────────
   *
   * The white ground and its bottom rule run edge to edge; the links, the logo
   * and the cart sit in the page container with everything below them. There
   * is no inner wrapper in the markup, so the container is expressed as
   * padding — half the overflow past --page-max, plus the gutter — and below
   * the cap max() falls back to the gutter alone.
   *
   * Same shape as .as-topbar above. Both are strips whose background has to
   * reach the window and whose content has to not.
   */
  padding-block: var(--space-5);
  padding-inline: max(var(--gutter), calc((100% - var(--page-max)) / 2 + var(--gutter)));
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-surface);
}
.as-header__nav {
  display: flex;
  align-items: center;
  gap: var(--space-7);
}
/*
 * Plain words with an underline, not pills: the mega menu handoff marks the
 * open item blue with a 2px rule under it. The rule is an inset shadow so it
 * takes no height and the row does not move when it appears.
 */
.as-header__navlink {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
  padding: var(--space-1-5) 0;
  white-space: nowrap;
  transition: color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.as-header__navlink:hover { color: var(--atomic-blue); }
/*
 * Open (its panel is showing) and active (the page is in that section) look
 * the same. While a panel is open only its item is marked: two underlines
 * would point at two different places.
 */
.as-header__navlink.is-open,
.as-header__navlink.is-active {
  color: var(--atomic-blue);
  box-shadow: inset 0 -2px 0 var(--atomic-blue);
}
.as-header.is-mega-open .as-header__navlink.is-active:not(.is-open) {
  color: var(--color-text);
  box-shadow: none;
}

/*
 * Out of flow so the two sides can each take half the bar. pointer-events are
 * left alone: the logo is a link and should stay clickable, and it only covers
 * its own box in the middle, where neither the nav nor the actions reach.
 */
.as-header__logo {
  display: block; line-height: 0;
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
}
.as-header__logo img { height: 46px; width: auto; display: block; }

/*
 * The sides size to their content; the actions are pushed right with auto
 * margin. The logo is centred on the header, not on the gap between them, so
 * the two sides do not need to weigh the same and there is nothing to balance.
 *
 * The mock gives both sides `flex:1 1 0` to split the bar in half. Copied
 * literally that made the burger a ~600px-wide BUTTON stretching under the
 * logo: its ink sits at the far left, but the click target ran to the middle of
 * the header, so clicking empty space beside the logo opened the mega menu.
 * Measured, not guessed — burger box right edge 790px against ink ending at
 * 121px. Sizing to content keeps the same layout and gives the button back its
 * own size.
 */
.as-header__nav { flex: 0 1 auto; min-width: 0; }
.as-header__burger { flex: 0 0 auto; }
.as-header__actions { flex: 0 0 auto; margin-left: auto; }

.as-header__actions {
  display: flex;
  min-width: 0;
  justify-content: flex-end;
  align-items: center;
  gap: var(--space-4-5);
  white-space: nowrap;
}
.as-header__action {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--color-text);
}
.as-header__action:hover { color: var(--atomic-blue); }
/* The cart is a text link like Sign in and Get a Quote — .as-header__action —
   not the handoff's dark pill (Dennis, 2026-11-12). */

/* Burger: hidden until the nav collapses. "≡ Menu", or "✕ Close" while open. */
.as-header__burger {
  display: none;
  align-items: center;
  gap: var(--space-2);
  background: none;
  border: none;
  padding: 0;
  min-height: var(--tap-min);
  cursor: pointer;
  color: var(--atomic-dark);
  font-family: var(--font-sans);
}
.as-header__burger-icon { display: flex; }
.as-header__burger-icon--close,
.as-header__burger[aria-expanded="true"] .as-header__burger-icon--menu { display: none; }
.as-header__burger[aria-expanded="true"] .as-header__burger-icon--close { display: flex; }
.as-header__burger-label { font-size: var(--text-sm); font-weight: 700; }

/* ============ MEGA MENU (option 1b, Promos as a tab) ============ */
/*
 * A panel under the header, over the page rather than pushing it down: it
 * opens on hover, and a page that jumped every time the pointer crossed the
 * nav would be unusable. `top` is left at auto, so the panel sits exactly
 * where it would in flow — under the header, whatever is above it (the top
 * bar, the admin bar) — and left/right 0 take it across the window.
 *
 * The rail's grey reaches the window's left edge, as in the mock at 1280. Past
 * --page-max the panel's content stops widening and the grey continues to the
 * edge, which is what --as-mega-side is for: the same "half the overflow"
 * the header's padding uses, without the gutter, because the mock's rail sits
 * flush with the edge rather than with the logo.
 */
.as-mega {
  --as-mega-rail: 280px;
  --as-mega-side: max(0px, (100% - var(--page-max)) / 2);
  position: absolute;
  left: 0;
  right: 0;
  z-index: 50;
  padding-inline: var(--as-mega-side);
  background: linear-gradient(90deg,
    var(--color-surface-alt) calc(var(--as-mega-side) + var(--as-mega-rail)),
    var(--color-surface) 0);
  border-bottom: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-md);
}
.as-mega[hidden] { display: none; }

.as-mega__inner {
  display: grid;
  grid-template-columns: var(--as-mega-rail) minmax(0, 1fr);
  min-height: 400px;
}
/* The phone menu's own pieces. */
.as-mega__search,
.as-mega__pills,
.as-mega__back { display: none; }

/* ── The rail ── */
.as-mega__rail {
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
  padding: var(--space-6) var(--space-4);
}
.as-mega__row {
  display: flex;
  text-decoration: none;
  align-items: center;
  gap: var(--space-3);
  width: 100%;
  padding: var(--space-3) var(--space-3-5);
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  font-family: var(--font-sans);
  font-size: var(--text-body);
  font-weight: 700;
  line-height: 1.5;
  color: var(--atomic-dark);
  text-align: left;
  cursor: pointer;
}
.as-mega__row:hover { color: var(--atomic-blue); }
/* The row whose products are showing: white, blue, a 3px bar on its left edge. */
.as-mega__row.is-active {
  background: var(--color-surface);
  color: var(--atomic-blue);
  box-shadow: inset 3px 0 0 var(--atomic-blue);
}
.as-mega__rowicon,
.as-mega__chev { display: flex; flex: none; }
.as-mega__rowname { flex: 1; min-width: 0; }
.as-mega__rule {
  display: block;
  height: 1px;
  margin: var(--space-2-5) var(--space-3);
  background: var(--color-border-soft);
}
.as-mega__all {
  padding: var(--space-2-5) var(--space-3-5);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--atomic-dark);
}
.as-mega__all:hover { color: var(--atomic-blue); }

/* ── One category's products ── */
.as-mega__panes { padding: var(--space-6) var(--space-8) var(--space-7); }
.as-mega__pane { display: flex; flex-direction: column; gap: var(--space-4-5); }
.as-mega__pane[hidden] { display: none; }
.as-mega__head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-1) var(--space-4);
}
.as-mega__title {
  margin: 0;
  font-size: var(--text-h3);
  font-weight: 800;
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--atomic-dark);
}
.as-mega__shopall {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--atomic-blue);
  white-space: nowrap;
}
.as-mega__shopall:hover { color: var(--atomic-dark); }
.as-mega__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--space-4);
}

/*
 * ─── THE PRODUCT CARD, MENU LAYOUT ───────────────────────────────────────────
 *
 * as_product_card() with 'layout' => 'menu'. The same card and the same data
 * as every grid on the site; the menu lays it out as the handoff draws it — a
 * square photograph, cropped to fill, with the product's name under it. No
 * surface, no lift, no price pill: the panel is for choosing a product, and
 * the price is one click away on the page it opens.
 *
 * The photograph is covered, not contained as on the category grids: these
 * are the products' featured photographs, not cut-outs on white, and the mock
 * crops them square.
 */
.as-cat-card--menu {
  align-items: stretch;
  color: var(--atomic-dark);
  gap: var(--space-2);
  text-align: left;
  background: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  padding-bottom: 0;
  transition: color var(--dur) var(--ease);
}
.as-cat-card--menu:hover {
  transform: none;
  box-shadow: none;
  color: var(--atomic-blue);
}
.as-cat-card--menu .as-cat-card__shot { padding: 0; background: none; }
.as-cat-card--menu .as-cat-card__shot .as-slot { border-radius: var(--radius-md); }
.as-cat-card--menu .as-cat-card__shot img { object-fit: cover; }
.as-cat-card--menu .as-cat-card__body { align-items: flex-start; padding: 0; }
.as-cat-card--menu .as-cat-card__name { margin: 0; font-size: var(--text-sm); }
.as-cat-card--menu .as-cat-card__foot { display: none; }

/* ============ BREADCRUMB ============ */
.as-crumb { padding: var(--space-4) var(--space-14) 0; font-size: var(--text-sm); color: var(--color-text-muted); }
.as-crumb a { color: var(--color-text-muted); }
.as-crumb__here { color: var(--color-text); font-weight: 600; }

/* ============ RESPONSIVE ============ */

/*
 * The nav collapses to the burger here. The arithmetic is the one recorded in
 * template-parts/header.php: the logo is centred on the row, so the row needs
 * 2 x nav + logo + padding before the nav clears it. Measured with the five
 * items and the 46px logo: 14px of clearance at 1201, and the nav under the
 * logo by 36px at 1101 — which is where it used to collapse.
 */
@media (max-width: 1200px) {
  .as-header__nav { display: none; }
  .as-header__burger { display: inline-flex; }
}

@media (max-width: 1100px) {
  /*
   * Sign in becomes the icon alone. The word is the widest part of an action
   * that everyone recognises by its glyph, and dropping it buys ~50px without
   * removing the route to the account. Here rather than at 900: with the
   * handoff's sizes the full actions reach the centred logo below ~1004px.
   */
  .as-header__action-label { display: none; }
  .as-header__action { gap: 0; }

  /*
   * The cart keeps its count — that is the part carrying information — and
   * loses the word, matching Sign in; the gap stays so the count does not
   * touch the icon.
   */
  .as-header__cart { gap: var(--space-1-5); }
}

/* The panel's four cards stay four across until 900px, then two by two
   (below). A three-across step left the fourth card alone on a second row. */

@media (max-width: 900px) {
  /*
   * One line only. Two wrap to two rows on a phone and push the header — and
   * with it the whole page — down before anything has been read. The pickup
   * line is the one that stays: it is the local detail people are looking for,
   * and "free proof on every order" is repeated on the product page anyway.
   */
  /*
   * 13px wraps "Next-day rush available · Local pickup at 44 W 6th Ave" onto
   * two lines at 430px, which doubles the strip for a sentence nobody is
   * reading at that moment. At 12px it fits on one.
   */
  .as-topbar { justify-content: center; text-align: center; font-size: var(--text-xs); }
  .as-topbar > div:last-child { display: none; }
  /* A closure outranks the pickup line: it becomes the one sentence. Same
     specificity as the two rules above, so it has to come after them. */
  .as-topbar--closure > div:first-child { display: none; }
  .as-topbar--closure > div:last-child { display: flex; justify-content: center; }
  /* Vertical only — the gutter narrows with the token. */
  .as-header { padding-block: var(--space-4); }

  .as-mega__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  /*
   * ─── THE LOGO STAYS CENTRED ON THE PAGE ──────────────────────────────
   *
   * This used to put the mark back in flow here, because out of flow it
   * cannot push anything aside and the actions ran underneath it — measured
   * at the time as 286px of actions against a 165px logo, which collided
   * below 785px and had "Get a Quote" sitting on the mark at 700.
   *
   * In flow it is centred BETWEEN the two sides rather than on the page, and
   * the two sides never weigh the same, so the mark sat off centre on every
   * phone. The words "Sign in" and "Cart" drop out below 1100 and "Get a
   * Quote" below 720, which is what lets the mark stay centred on the page
   * at every width.
   */
  .as-header__logo {
    order: 0;
  }

  /*
   * The logo is the FIRST child in the markup, which does not matter while it
   * is out of flow — but `order` is kept so the burger leads if it ever is.
   *
   * `margin-left: auto` STAYS on the actions. It was zeroed here while the
   * logo was in flow, because a third auto margin competed with the logo's own
   * pair for the free space and pulled the mark off centre. With the logo
   * absolute again there is no competition — and without it the actions sat
   * against the burger on the left, with the centred logo landing on top of
   * them.
   */
  .as-header__burger  { order: -1; }
  /* 12px between the actions, not 18: at 721 Get a Quote is still in the row
     and the wider gap left it 6px from the logo. */
  .as-header__actions { order: 1; margin-left: auto; gap: var(--space-3); }
}

@media (max-width: 720px) {
  /*
   * Get a Quote leaves the row. It is not lost: the phone menu carries it as
   * the first of its pills (.as-mega__pills).
   */
  .as-header__action--quote { display: none; }

  /*
   * ─── THE PHONE MENU ──────────────────────────────────────────────────────
   *
   * Full screen under the header (js/header.js sets --as-mega-top to the
   * header's bottom edge, and holds the page still while it is open), and
   * the panel's own parts rearranged: a search field, the rail as a big-type
   * list, then pill links. Tapping a row drills into the same pane the
   * desktop panel shows, two across, with a way back.
   */
  .as-mega {
    position: fixed;
    /* Over the chat bubble (desk-widget.css, 9000): this is a full-screen
       overlay, the range that widget stays under on purpose. */
    z-index: 10000;
    top: var(--as-mega-top, 0px);
    bottom: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-inline: 0;
    background: var(--color-surface);
    border-bottom: 0;
    box-shadow: none;
  }
  .as-mega__inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-3-5);
    min-height: 0;
    padding: var(--space-3-5) var(--gutter) var(--space-8);
  }

  /*
   * 16px in the field, not the mock's 14: iOS zooms the page in on any input
   * set smaller than 16px when it takes focus, and does not zoom back out.
   */
  /* The pill and the field are the shared search recipe (primitives.css). */
  .as-mega__search {
    display: flex;
    padding: var(--space-2-5) var(--space-4);
    color: var(--color-placeholder);
  }
  .as-mega__search svg { flex: none; }
  .as-mega__search input[type="search"] {
    padding: 0;
    font-size: var(--text-body);
    line-height: var(--leading-snug);
  }

  .as-mega__rail { gap: 0; padding: 0; }
  .as-mega__row,
  .as-mega__row:hover,
  .as-mega__row.is-active {
    padding: var(--space-2-5) 0;
    border-radius: 0;
    background: none;
    box-shadow: none;
    color: var(--atomic-dark);
    font-size: var(--text-h3);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
  }
  .as-mega__rowicon,
  .as-mega__rule,
  .as-mega__all,
  .as-mega__panes { display: none; }
  .as-mega__chev { color: var(--atomic-blue); }

  .as-mega__pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    padding-top: var(--space-1);
  }
  /* The chip's shape; the height is the handoff's, which is also a thumb's. */
  .as-mega__pills .as-chip { padding-block: var(--space-2-5); line-height: 1.5; }

  /* Drilled into one category: only its pane, with the way back on top. */
  .as-mega.is-drilled .as-mega__search,
  .as-mega.is-drilled .as-mega__rail,
  .as-mega.is-drilled .as-mega__pills { display: none; }
  .as-mega.is-drilled .as-mega__panes { display: block; padding: 0; }
  /* Typing in the search field: its live results take the category list's
     place, in the search overlay's own rows (js/search-overlay.js). The menu
     already has the gutter, so the rows drop theirs. */
  .as-mega.is-searching .as-mega__rail,
  .as-mega.is-searching .as-mega__pills { display: none; }
  .as-mega__results .as-search-hit { padding-inline: 0; }
  .as-mega__pane { gap: var(--space-3-5); }
  .as-mega__back {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1-5);
    align-self: flex-start;
    min-height: var(--tap-min);
    padding: 0;
    border: 0;
    background: none;
    font-family: var(--font-sans);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--atomic-dark);
    cursor: pointer;
  }
  .as-mega__grid { gap: var(--space-4) var(--space-3); }
}

/* While the phone menu is open the page under it holds still. */
html.as-mega-locked { overflow: hidden; }

@media (max-width: 560px) {
  /*
   * ─── THE BAR, ON A PHONE ────────────────────────────────────────────────
   *
   * The handoff's phone header: "≡ Menu", the logo at 32px, then the account
   * icon and a navy cart pill with its count. 12px above and below the 44px
   * controls, and 14px at the sides rather than the page's 24 — at 24 the
   * account icon reaches the logo on a 375px phone.
   *
   * Search is in the phone menu (.as-mega__search), so the magnifier goes.
   */
  .as-header {
    padding-block: var(--space-3);
    padding-inline: var(--space-3-5);
  }
  /*
   * 32px (120 wide) while it fits between the two sides, and smaller only
   * when it does not: centred on the page, it has 100vw less twice the wider
   * side (14px padding + 101px of account icon and cart + an 8px gap; the
   * cart was a 40px-tall pill until 2026-11-12 and is narrower now, so this
   * errs towards a smaller mark, never an overlap).
   * That is the full 32px from 366 up (393, the handoff's, included), 30px
   * at 360; at 320 the account icon used to overlap the mark by 15px.
   */
  .as-header__logo img { height: min(32px, calc((100vw - 246px) / 3.75)); }
  .as-header .as-header__searchbtn { display: none; }
  .as-header__actions { gap: var(--space-1); }
  .as-header__account {
    justify-content: center;
    width: 36px;
    color: var(--atomic-dark);
    height: var(--tap-min);
  }
  .as-header__cart {
    height: var(--tap-min);
    padding: 0 var(--space-1-5);
    color: var(--atomic-dark);
  }
  .as-topbar__dot { width: 6px; height: 6px; }
}

/* ============ RECLAIMING THE OLD NAVBAR'S SPACE ============ */

/*
 * The previous header was `navbar fixed-top`, so custom.css reserved room for
 * it with body { padding-top } at four Bootstrap breakpoints — 96/96/120/100px.
 *
 * This header is in normal flow and reserves its own space, so that padding is
 * now a band of empty white above the top bar on every page. Overridden here
 * rather than edited out of custom.css: that file is 1,400 lines of route
 * styling whose other rules may still want the old numbers, and this is the
 * file that knows why the reservation is no longer needed.
 *
 * The four per-breakpoint copies this once carried were byte-identical to the
 * unconditional rule, so they were no-ops at every width. They were also this
 * codebase's last Bootstrap fingerprint — 576/992/1200 are Bootstrap's sm/lg/xl
 * tiers, and nothing else in the theme uses them.
 */
body { padding-top: 0; }


/* ============ FALLBACK + FOOTER ============ */

/*
 * Styling for index.php, which is the site for every route not yet rebuilt.
 * Plain, legible, in the system. Not decorated — a fallback that looks
 * designed invites leaving it alone.
 */
.as-main { max-width: 860px; margin: 0 auto; padding: var(--space-10, 40px) var(--space-6, 24px) var(--space-14, 56px); }

/*
 * Routes that open on a full-bleed hero start at the header.
 *
 * .as-main carries 40px of top padding for ordinary pages, and the category
 * routes only ever overrode padding-inline — so every hero band sat 40px below
 * the header on a white strip. The band is the top of the page on these routes,
 * so there is nothing for that padding to separate.
 */
.as-main.as-route-cat-page,
.as-main.as-route-home,
.as-main.as-route-contact,
.as-main.as-route-promos { padding-block-start: 0; }

/*
 * These three joined the rule on 2026-09-20, and the test for joining it is
 * whether the first band PAINTS something: contact opens on #F5F8FA and
 * promos on a background image, so on both the 40px read as a white stripe
 * wedged between the nav and a full-bleed band, which is the same complaint
 * the paragraph above records for the category routes.
 *
 * The homepage no longer passes that test — since 2026-11-11 its hero is a
 * centred heading on white — and stays for a different reason: the hero
 * carries its own top padding (route-home.css), measured from the header to
 * match the handoff, so the 40px would double it.
 *
 * Deliberately NOT /get-a-quote/, /faq/ or /local-pickup/. Their heroes are
 * transparent headings on the page's own white, so there is no stripe to
 * remove — only ordinary breathing room under the nav, and taking it away
 * would crowd the heading rather than fix anything.
 */
.as-fallback__head { margin-bottom: var(--space-8, 32px); }
.as-fallback__title { font-size: var(--text-h1, 44px); letter-spacing: -0.02em; }
.as-fallback__content > * + * { margin-top: 1em; }
.as-fallback__content img { border-radius: var(--radius-md); }
.as-fallback__list { list-style: none; margin: 0; padding: 0; }
.as-fallback__item { padding: var(--space-4, 16px) 0; border-bottom: 1px solid var(--color-border-soft, rgba(45,56,75,.12)); }
.as-fallback__item a { font-weight: 600; font-size: var(--text-body-lg); }
.as-fallback__links { display: flex; flex-wrap: wrap; gap: var(--space-2-5); margin-top: var(--space-5, 20px); }
.as-fallback__pagination { margin-top: var(--space-8, 32px); display: flex; gap: var(--space-2-5); }

/* ── Footer ───────────────────────────────────────────────────────────────
   Navy, per the design. The first build of this was light because it was
   assembled from the mock's text rather than from the mock rendered — the
   words were right and the surface was wrong. */
.as-footer {
  margin-top: var(--space-14, 56px);
  background: var(--atomic-dark, #2D3445);
  color: var(--color-text-invert, #FFFFFF);
}

.as-footer__inner {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr 1.25fr;
  gap: var(--space-8, 32px);
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-12, 48px) var(--gutter) var(--space-8, 32px);
  font-size: var(--text-sm);
}

/* The wordmark is dark-on-light artwork, so it is inverted rather than
   swapped for a second file that would then need keeping in step. */
/*
 * Two selectors deep, and width pinned as well as height.
 *
 * The bare `.as-footer__logo` lost to a global `img { height: auto }` further
 * down the cascade, so the mark sized itself from the column width instead:
 * measured 280x75 against the 30px asked for here. Constraining width is what
 * actually holds it, since height:auto derives from width.
 */
.as-footer .as-footer__logo,
.as-footer__brand .as-footer__logo {
	display: block;
	height: 30px; width: auto; max-width: 150px;
	filter: brightness(0) invert(1);
}
.as-footer__tag  { margin: 14px 0 0; }
.as-footer__made { margin: 4px 0 0; }
.as-footer__tag, .as-footer__made { font-size: var(--text-sm); opacity: .78; }

.as-footer__head {
  margin: 0 0 14px;
  color: var(--color-text-invert, #FFFFFF);
}

.as-footer__col ul { margin: 0; padding: 0; list-style: none; }
.as-footer__col li + li { margin-top: 9px; }
.as-footer__col a { color: var(--color-text-invert, #FFFFFF); font-weight: 500; }
.as-footer__col a:hover { color: var(--atomic-blue, #1AB0E0); }
.as-footer__col p { margin: 0 0 8px; line-height: 1.55; opacity: .85; }

/* Phone and email are the two things anyone comes here for, and the design
   picks them out in blue rather than leaving them as body text. */
.as-footer__contact { opacity: 1; }
.as-footer__contact a { color: var(--atomic-blue, #1AB0E0); font-weight: 700; }
.as-footer__contact a:hover { color: var(--color-text-invert, #FFFFFF); }

.as-footer__legal {
  display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap;
  max-width: var(--page-max);
  margin-inline: auto;
  padding: var(--space-5, 20px) var(--gutter) var(--space-8, 32px);
  border-top: 1px solid rgba(255,255,255,.14);
  font-size: var(--text-sm);
  opacity: .8;
}
.as-footer__legal a { color: inherit; }
.as-footer__legal a:hover { color: var(--atomic-blue, #1AB0E0); }

@media (max-width: 1000px) { .as-footer__inner { grid-template-columns: 1fr 1fr; } }
/* A phone keeps Products and Help side by side, with the logo and Find us
   across the width — the homepage handoff's phone footer (version e); 167px
   shorter than one stacked column on an iPhone (Dennis, 2026-11-11). */
@media (max-width: 560px)  {
  .as-footer__inner { grid-template-columns: 1fr 1fr; gap: var(--space-6, 24px); }
  .as-footer__brand,
  .as-footer__find { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  /* Gutter comes from the token — see tokens.css. */
}

/* ── Add-to-cart notice on product pages ───────────────────────────────────
 * The same tinted strip route-checkout.css draws on cart and checkout, which
 * were the only routes it was scoped to — so a product page still showed Woo's
 * default: a green rule, a grey fill and an unstyled button.
 *
 * Lives here rather than in route-product.css because the notice appears on
 * BOTH product routes, and that sheet only loads on the sticker one.
 *
 * The button stays, unlike on the cart page where the design drops it: from a
 * product page "View cart" goes somewhere the customer is not already standing.
 * ────────────────────────────────────────────────────────────────────────── */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
	display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap;
	margin: 0 0 22px; padding: 14px 20px;
	border: 0; box-shadow: none; border-radius: var(--radius-md);
	background: var(--color-surface-tint); color: var(--color-text);
	font-size: var(--text-sm); line-height: 1.5;
	list-style: none;
}

.single-product .woocommerce-error { background: var(--color-surface-alt); }

/*
 * Woo positions its own icon with an absolutely-placed ::before and reserves
 * room for it with a large padding-left. Both fight a flex row: the glyph
 * landed on top of the first word and clipped it. The strip carries its meaning
 * in the text, so the glyph goes.
 */
.single-product .woocommerce-message::before,
.single-product .woocommerce-info::before,
.single-product .woocommerce-error::before { content: none; }

/*
 * Sit in the content column, not across the viewport. The notice is printed
 * outside the theme's wrapper on this route, so it needs the measurement
 * itself — 1160px is the width every other band on these pages uses.
 */
.single-product .woocommerce-message,
.single-product .woocommerce-info,
.single-product .woocommerce-error {
	max-width: var(--page-max);
	margin-inline: auto;
	margin-top: 18px;
}

/* Woo prints the button before the text; the strip reads better the other way. */
.single-product .woocommerce-message .button {
	order: 2;
	margin-left: auto;
	background: var(--atomic-blue);
	color: var(--color-text-invert);
	line-height: 1;
	border: 0;
}
.single-product .woocommerce-message .button:hover {
	background: var(--atomic-dark); color: var(--color-text-invert);
}

.single-product .woocommerce-message a:not(.button),
.single-product .woocommerce-info a:not(.button) { font-weight: 700; }

@media (max-width: 560px) {
	.single-product .woocommerce-message .button { margin-left: 0; width: 100%; text-align: center; }
}

/* ── Search overlay ────────────────────────────────────────────────────────
 * The design opens a full-width bar where the logo and nav are, with a Close
 * pill on the right, and drops live product suggestions beneath it. So this is
 * an overlay over the header row, not a field inside it — an inline box beside
 * the cart is a different control with different affordances.
 * ────────────────────────────────────────────────────────────────────────── */
.as-header__searchbtn {
	background: none; border: 0; padding: var(--space-1); cursor: pointer;
	color: inherit; line-height: 0;
}
.as-header__searchbtn:hover { color: var(--atomic-blue); }

.as-search-overlay {
	position: absolute; inset-inline: 0; z-index: 60;
	background: var(--color-surface);
	border-bottom: 1px solid var(--color-border-soft);
}
.as-search-overlay__form {
	position: relative;
	display: flex; align-items: center; gap: var(--space-3-5);
	max-width: var(--page-max); margin: 0 auto;
	padding: var(--space-4-5) var(--space-8);
}
/* No focus ring on the bar: it opens with the cursor already in the field,
   and the caret says where you are typing. A page-wide outline box and then
   a blue underline were both tried and dropped (Dennis, 2026-11-14). The
   Close button keeps its own ring. */
.as-search-overlay__icon { display: flex; flex: none; color: var(--atomic-blue); }
.as-search-overlay__form input[type="search"] {
	flex: 1; min-width: 0;
	border: 0; background: none; outline: none;
	font: inherit; font-size: clamp(18px, 2.2vw, 24px); font-weight: 500;
	color: var(--color-text);
	-webkit-appearance: none; appearance: none;
}
.as-search-overlay__form input[type="search"]::placeholder { color: var(--color-placeholder); }
.as-search-overlay__close {
	flex: none;
	border: 0;
	background: var(--color-surface-alt);
	color: var(--color-text);
}
.as-search-overlay__close:hover { background: var(--color-surface-tint); }

/* ── Suggestions ──────────────────────────────────────────────────────────── */
.as-search-overlay__results {
	border-top: 1px solid var(--color-border-soft);
	max-height: min(60vh, 460px); overflow-y: auto;
}
.as-search-hit {
	display: flex; align-items: baseline; gap: var(--space-3-5);
	max-width: var(--page-max); margin: 0 auto;
	padding: var(--space-4) var(--space-8);
	border-bottom: 1px solid var(--color-border-soft);
	color: inherit; text-decoration: none;
}
.as-search-hit:last-child { border-bottom: 0; }
.as-search-hit:hover { background: var(--color-surface-alt); }
.as-search-hit__shot {
	flex: none; width: 46px; height: 46px;
	border: 1px solid var(--color-border-soft); border-radius: var(--radius-xs);
	overflow: hidden; background: var(--color-surface-alt);
	align-self: center;
}
.as-search-hit__shot img { width: 100%; height: 100%; object-fit: cover; display: block; }
.as-search-hit__name  { font-size: var(--text-body); font-weight: 800; }
.as-search-hit__cat   { font-size: var(--text-sm); color: var(--color-text-muted); }
.as-search-hit__price { margin-left: auto; font-size: var(--text-sm); font-weight: 800; color: var(--atomic-blue); white-space: nowrap; }

/* The header row is hidden behind the overlay while it is open. */
body.as-search-open .as-header > *:not(.as-search-overlay) { visibility: hidden; }

@media (max-width: 900px) {
	.as-search-overlay__form,
	.as-search-hit { padding-inline: var(--space-6); }
	.as-search-overlay__close { padding: var(--space-2) var(--space-3-5); font-size: var(--text-sm); }
}

/* A phone's row (the phone menu's live results): the picture, the name across
   the width, then the type and the price under it. In one line the name had
   about 120px and wrapped four deep. */
@media (max-width: 560px) {
	.as-search-hit {
		display: grid;
		grid-template-columns: 46px minmax(0, 1fr) auto;
		grid-template-areas: "shot name name" "shot cat price";
		column-gap: var(--space-3);
		row-gap: var(--space-0-5);
		align-items: baseline;
	}
	.as-search-hit__shot  { grid-area: shot; }
	.as-search-hit__name  { grid-area: name; }
	.as-search-hit__cat   { grid-area: cat; }
	.as-search-hit__price { grid-area: price; margin-left: 0; }
}

/* Under this the two halves of the announcement wrap; the pickup address is
   the half the phone can spare. */
@media (max-width: 420px) {
  .as-topbar__also { display: none; }
}
