/*
Theme Name: Matt's Sports & Ammo
Theme URI: https://www.mattsammo.com
Description: Custom child theme for Matt's Sports & Ammo. "Reloading-bench heritage" design on Blocksy - navy + machined brass on bone paper, condensed stamped display type. Paper-first per the 7/8 client decision: beige homepage + header, navy anchors the trust bar and footer. Ammunition & reloading components only, no firearms.
Author: Hidden Technology LLC
Template: blocksy
Version: 0.7.1
Text Domain: matts-ammo
*/

/* ============================================================
   DESIGN TOKENS
   ============================================================ */
:root {
  --ma-navy:      #14283d;
  --ma-navy-900:  #0d1b2a;
  --ma-navy-700:  #1d3856;
  --ma-brass:     #c4a050;
  --ma-brass-300: #e6cd8c;
  --ma-brass-700: #9a7728;
  --ma-paper:     #f3efe6;
  --ma-paper-2:   #ece5d6;
  --ma-card:      #fbf9f4;
  --ma-ink:       #1c2733;
  --ma-ink-soft:  #56616e;
  --ma-steel:     #353b43;
  --ma-red:       #9e2b25;
  --ma-green:     #2f6b46;
  --ma-line:      rgba(20,40,61,.14);
  --ma-line-2:    rgba(20,40,61,.28);

  --ma-display: "Saira Condensed", "Arial Narrow", system-ui, sans-serif;
  --ma-body:    "Libre Franklin", system-ui, -apple-system, sans-serif;

  --ma-shadow:   0 1px 2px rgba(13,27,42,.06), 0 8px 24px -12px rgba(13,27,42,.22);
  --ma-shadow-lg:0 18px 50px -22px rgba(13,27,42,.5);
  --ma-radius:   4px;

  /* Recolor Blocksy's palette so its components inherit the brand. */
  --theme-palette-color-1: #c4a050; /* brand / accent */
  --theme-palette-color-2: #9a7728; /* accent hover */
  --theme-palette-color-3: #1c2733; /* body text */
  --theme-palette-color-4: #14283d; /* headings */
  --theme-palette-color-5: rgba(20,40,61,.14);
  --theme-palette-color-6: #ece5d6;
  --theme-palette-color-7: #f3efe6;
  --theme-palette-color-8: #ffffff;
  --theme-link-initial-color: #14283d;
  --theme-link-hover-color: #9a7728;
  --theme-text-color: #1c2733;
  --theme-headings-color: #14283d;
  --theme-button-background-initial-color: #14283d;
  --theme-button-background-hover-color: #9a7728;
  --theme-content-vertical-spacing: 0px;
}

/* ============================================================
   BASE
   ============================================================ */
body.ct-loading,
body {
  font-family: var(--ma-body);
  color: var(--ma-ink);
  background-color: var(--ma-paper);
  background-image:
    radial-gradient(circle at 18% 12%, rgba(196,160,80,.05), transparent 38%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.035'/%3E%3C/svg%3E");
  -webkit-font-smoothing: antialiased;
  letter-spacing: .002em;
}

h1, h2, h3, h4, h5,
.entry-title, .ct-block-template-title,
.woocommerce-loop-product__title,
.product_title {
  font-family: var(--ma-display) !important;
  color: var(--ma-navy);
  font-weight: 700;
  letter-spacing: .005em;
  line-height: 1.04;
}

a { text-decoration: none; }

/* interaction polish: explicit focus-visible rings + touch handling.
   05e #10/#11: the ring is NAVY on the site's light surfaces (brass-on-beige was
   2.16:1, invisible); dark sections override back to brass below. Form fields and
   the FiboSearch input (whose stylesheet removes outlines) are included. */
a, button { touch-action: manipulation; -webkit-tap-highlight-color: rgba(196,160,80,.25); }
a:focus-visible, button:focus-visible,
input:focus-visible, select:focus-visible, textarea:focus-visible,
.dgwt-wcas-search-input:focus, .ma-instock-toggle a:focus-visible,
.ma-cat:focus-visible, .ma-stamp:focus-visible, .ma-cal-chip:focus-visible,
.ma-calbar a:focus-visible, #header .ct-menu-link:focus-visible,
ul.products li.product a:focus-visible {
  outline: 3px solid var(--ma-navy) !important; outline-offset: 2px; border-radius: 2px;
}
.ma-footband a:focus-visible, .ma-trust a:focus-visible, .ma-story a:focus-visible,
.ma-footband button:focus-visible {
  outline: 3px solid var(--ma-brass) !important; outline-offset: 2px; border-radius: 2px;
}
/* themed form controls (05e #27): radios/checkboxes and the review submit were default blue */
input[type="radio"], input[type="checkbox"] { accent-color: var(--ma-navy); }
.woocommerce-privacy-policy-text a, .woocommerce-info a { color: var(--ma-navy); font-weight: 600; }
h1, h2, h3 { text-wrap: balance; }
.ma-hero p.lede, .ma-story p, .ma-footband p, .ma-compliance p { text-wrap: pretty; }

.ma-eyebrow {
  font-family: var(--ma-display);
  text-transform: uppercase;
  letter-spacing: .22em;
  font-weight: 600;
  font-size: .85rem; /* 05e #12: was .74rem; "big letters" audience */
  color: var(--ma-brass-700);
}

.ma-rule {
  height: 3px; width: 64px;
  background: linear-gradient(90deg, var(--ma-brass), var(--ma-brass-300));
  border: 0;
}

/* tabular numerals everywhere a price/number appears */
.price, .amount, .woocommerce-Price-amount, .ma-ppr, .ma-stat, .ma-cal-chip {
  font-variant-numeric: tabular-nums;
}

/* one breadcrumb trail only: ma-navigation's styled crumb replaces Blocksy's on Woo pages */
.woocommerce .ct-breadcrumbs, .woocommerce-page .ct-breadcrumbs { display: none; }

/* ============================================================
   HEADER (Blocksy) restyle + caliber mega-menu
   ============================================================ */
/* Beige header (7/8 client decision: "make everything beige on the top") */
#header.ct-header { background-color: var(--ma-paper) !important; border-bottom: 3px solid var(--ma-brass); }
#header.ct-header > div,
#header.ct-header > div > div,
#header.ct-header [data-row],
#header.ct-header [class*="ct-header-"] { background-color: transparent !important; }

/* logo / site title */
#header .site-title, #header .site-title a,
#header .ct-logo-container a, #header [class*="logo"] a,
#header [class*="logo"] .ct-logo-text {
  color: var(--ma-navy) !important;
  font-family: var(--ma-display) !important;
  text-transform: uppercase; letter-spacing: .06em; font-weight: 700;
}
/* badge-style custom logo (blue tile): keep it compact, softly rounded */
#header .custom-logo, #header .ct-logo-container img {
  max-height: 48px; width: auto; border-radius: 6px;
}

/* primary menu (Blocksy uses .ct-menu-link) */
#header .ct-menu-link,
#menu-primary > li > a, #header-menu-1 .menu-item > a {
  font-family: var(--ma-display) !important;
  text-transform: uppercase; letter-spacing: .12em;
  font-weight: 600; font-size: 1rem; color: var(--ma-navy) !important;
}
#header .ct-menu-link:hover,
#header .current-menu-item > .ct-menu-link { color: var(--ma-brass-700) !important; }

/* header icons (search / cart / account) */
#header .ct-header-account, #header .ct-icon, #header [class*="ct-toggle"] svg,
#header .ct-header-cart svg, #header a svg { color: var(--ma-navy) !important; }
#header .ct-cart-count { background: var(--ma-brass) !important; color: var(--ma-navy-900) !important; }
/* one search only (7/9): hide Blocksy's plain-WP search toggle - the Find-it-fast bar
   below the header is the real product search (live suggestions) */
#header .ct-header-search { display: none !important; }

/* Blocksy dropdowns -> stamped heritage panels */
#header .sub-menu, .menu-item .sub-menu {
  background: var(--ma-card) !important;
  border-top: 3px solid var(--ma-brass) !important;
  box-shadow: var(--ma-shadow-lg) !important;
  padding: 6px !important;
}
#header .sub-menu .ct-menu-link, .menu-item .sub-menu .menu-item > a {
  color: var(--ma-ink) !important;
  text-transform: none !important; letter-spacing: 0 !important;
  font-family: var(--ma-body) !important; font-weight: 500; font-size: .92rem !important;
}
#header .sub-menu .ct-menu-link:hover, .menu-item .sub-menu .menu-item > a:hover { color: var(--ma-brass-700) !important; }

/* Attach first-level dropdowns to the nav text (Matt, 7/9): the menu items stretch the
   full 120px header, so panels opened at the header's bottom edge - 48px of dead beige
   under the label. Pull them up to ~12px below the text. First level + desktop ONLY:
   nested flyouts open sideways and the mobile offcanvas lays sub-menus out statically. */
@media (min-width: 1000px) {
  #header nav > ul > li > .sub-menu { margin-top: -36px; }
}

/* Caliber strip (custom, injected on shop pages + home) - paper-2 band under the beige header */
.ma-calbar {
  background: var(--ma-paper-2);
  border-bottom: 1px solid var(--ma-line);
  overflow-x: auto;
  position: relative;
}
/* 05e #13: a right-edge fade cues that the strip scrolls (mobile clips mid-label) */
@media (max-width: 700px) {
  .ma-calbar { -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
}
.ma-calbar__inner {
  display: flex; gap: 4px; align-items: stretch;
  max-width: 1240px; margin: 0 auto; padding: 0 16px;
  white-space: nowrap;
}
/* Desktop never scrolls sideways: compact labels fit one row; if the lineup ever
   outgrows it (new long caliber names), chips wrap to a second row instead. */
@media (min-width: 701px) {
  .ma-calbar__inner { flex-wrap: wrap; }
}
.ma-calbar a {
  font-family: var(--ma-display);
  text-transform: uppercase; letter-spacing: .1em;
  font-size: .9rem; font-weight: 600; /* 05e #13: was .8rem */
  color: var(--ma-ink-soft);
  padding: 13px 14px; border-bottom: 2px solid transparent; /* ~44px tall targets */
}
.ma-calbar a:hover { color: var(--ma-navy); border-bottom-color: var(--ma-brass); }
.ma-calbar .is-label {
  font-family: var(--ma-display); text-transform: uppercase; font-weight: 600; font-size: .8rem;
  color: var(--ma-brass-700); letter-spacing: .18em; pointer-events: none; padding: 11px 14px 11px 0;
}

/* ============================================================
   BUTTONS
   ============================================================ */
.ma-btn, .button, .wp-block-button__link,
.woocommerce a.button, .woocommerce button.button,
.woocommerce #respond input#submit, .woocommerce #respond button#submit, .added_to_cart {
  font-family: var(--ma-display) !important;
  text-transform: uppercase; letter-spacing: .1em; font-weight: 600 !important;
  background: var(--ma-navy) !important; color: #fff !important;
  border: 1px solid var(--ma-navy) !important; border-radius: var(--ma-radius) !important;
  padding: .72em 1.3em !important; line-height: 1.1 !important;
  transition: background-color .18s ease, color .18s ease, transform .12s ease, box-shadow .18s ease;
  box-shadow: var(--ma-shadow);
}
.ma-btn:hover, .button:hover, .wp-block-button__link:hover,
.woocommerce a.button:hover, .woocommerce button.button:hover,
.woocommerce a.button.alt:hover {
  background: var(--ma-brass-700) !important; color: #fff !important;
  border-color: var(--ma-brass-700) !important; transform: translateY(-1px);
}
/* 05e #15: include button.button.alt so ADD TO CART / PLACE ORDER (the two
   highest-stakes taps) actually render brass, not navy (specificity loss). */
.ma-btn--brass, .woocommerce a.button.alt, .woocommerce button.button.alt,
.woocommerce .single_add_to_cart_button, .single_add_to_cart_button {
  background: var(--ma-brass) !important; color: var(--ma-navy-900) !important;
  border-color: var(--ma-brass) !important;
}
.ma-btn--ghost {
  background: transparent !important; color: var(--ma-navy) !important;
  border: 1px solid var(--ma-line-2) !important; box-shadow: none;
}
.ma-btn--ghost:hover { background: rgba(20,40,61,.06) !important; border-color: var(--ma-brass-700) !important; color: var(--ma-navy) !important; }
.ma-btn:focus-visible, .button:focus-visible {
  outline: 3px solid var(--ma-brass); outline-offset: 2px;
}

/* ============================================================
   PRODUCT CARDS / LOOP
   ============================================================ */
ul.products li.product, .wc-block-grid__product {
  background: var(--ma-card);
  border: 1px solid var(--ma-line);
  border-radius: var(--ma-radius);
  padding: 12px !important;
  box-shadow: var(--ma-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
  display: flex; flex-direction: column;
}
ul.products li.product:hover {
  transform: translateY(-3px);
  box-shadow: var(--ma-shadow-lg);
  border-color: var(--ma-brass);
}
.ma-thumb {
  position: relative; aspect-ratio: 1/1; overflow: hidden;
  background: var(--ma-paper-2); border-radius: 3px; margin-bottom: 10px;
  display: flex; align-items: center; justify-content: center;
}
.ma-thumb img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; padding: 8px; }
.ma-thumb--ph { background: var(--ma-navy); }
.ma-thumb--ph svg { width: 46%; height: 46%; opacity: .9; }

/* frame loop/archive product images even when not wrapped in .ma-thumb (shop, categories) */
ul.products li.product > a img.ma-img,
ul.products li.product img.ma-img,
ul.products li.product .ma-img-ph {
  width: 100%; aspect-ratio: 1/1; object-fit: contain;
  background: var(--ma-paper-2); border-radius: 3px; padding: 10px;
  margin-bottom: 10px; mix-blend-mode: multiply;
}
/* Standardized card frame (7/9): when Blocksy wraps the thumb in a <figure>, the frame
   lives on the FIGURE and the img stays transparent - a background painted on the img
   itself blocks the multiply blend, which is why white product photos showed as hard
   white rectangles inside the beige frame. */
ul.products li.product figure {
  background: var(--ma-paper-2); border-radius: 3px; aspect-ratio: 1/1;
  display: flex; align-items: center; justify-content: center;
  margin: 0 0 10px; overflow: hidden; position: relative;
}
ul.products li.product figure img.ma-img {
  background: transparent; width: 100%; height: 100%; padding: 10px; margin-bottom: 0;
}
ul.products li.product figure .ma-img-ph { width: 100%; height: 100%; margin-bottom: 0; }
ul.products li.product .ma-img-ph {
  display: flex; align-items: center; justify-content: center; mix-blend-mode: normal;
  background: var(--ma-navy);
}
/* whole card is clickable (JS in functions.php) - signal it */
ul.products li.product { cursor: pointer; }
ul.products li.product .ma-img-ph svg { width: 42%; height: 42%; }
.ma-img-ph { display: flex; align-items: center; justify-content: center; }
ul.products li.product .woocommerce-loop-product__title {
  font-size: 1.02rem !important; color: var(--ma-navy);
  padding: 0 !important; margin: 2px 0 6px !important; line-height: 1.08;
}
ul.products li.product .price {
  color: var(--ma-navy) !important; font-weight: 600; margin-top: auto;
  font-size: 1.06rem;
}
ul.products li.product .price del { color: var(--ma-ink-soft) !important; font-weight: 400; }
ul.products li.product .price ins { text-decoration: none; }

/* 05e #12: the per-round number is the bargain-math signal this audience relies on -
   it was the hardest text to read (brass at 3.6:1, ~13px). Navy + bigger. */
.ma-ppr { font-size: .95rem; color: var(--ma-ink-soft); margin-top: 1px; }
.ma-ppr b { color: var(--ma-navy); font-weight: 700; }

/* in-stock badge */
.ma-instock-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .1em;
  font-size: .92rem; font-weight: 600; color: var(--ma-green); /* 05e #6: was .72rem; #1 purchase signal */
}
.ma-instock-badge::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ma-green); box-shadow: 0 0 0 3px rgba(47,107,70,.16);
}
.ma-card-badge {
  position: absolute; top: 8px; left: 8px; z-index: 2;
  background: var(--ma-navy); color: var(--ma-brass-300);
  font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .08em;
  font-size: .78rem; font-weight: 600; padding: 4px 8px; border-radius: 2px; /* 05e #6: was .62rem */
}
/* out-of-stock: listed but clearly labeled, muted (not alarming) */
.ma-instock-badge--out { color: var(--ma-ink-soft); }
.ma-instock-badge--out::before { background: var(--ma-ink-soft); box-shadow: 0 0 0 3px rgba(86,97,110,.16); }
.ma-card-badge--out { background: var(--ma-steel); color: #fff; }
/* one consistent status label across the card: hide Blocksy's separate "SOLD OUT" ribbon */
.out-of-stock-badge { display: none !important; }

/* ============================================================
   SINGLE PRODUCT
   ============================================================ */
.single-product .product_title { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-bottom: .35rem; }
.single-product .ma-single-meta { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; margin-bottom: .6rem; }
.single-product p.price, .single-product .price {
  color: var(--ma-navy) !important; font-weight: 600;
  font-size: 1.9rem !important; font-family: var(--ma-display);
}
/* STANDARD IMAGE STAGE (05e follow-up 7/9): Blocksy's flex wrapper let the stage size
   itself from each photo's natural pixels (a 260px photo collapsed it, a 2000px photo
   blew it up). Every product now gets the SAME square stage; photos scale to fill it. */
.single-product .product-entry-wrapper { gap: 40px; align-items: flex-start; flex-wrap: wrap; }
.single-product .summary.entry-summary { flex: 1 1 480px; min-width: 0; }
.single-product .ma-image-main {
  background: var(--ma-paper-2); border: 1px solid var(--ma-line); border-radius: var(--ma-radius);
  flex: 0 1 460px; width: 460px; max-width: 100%; aspect-ratio: 1/1; align-self: flex-start;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
  box-shadow: var(--ma-shadow);
}
.single-product .ma-image-main img {
  width: 100%; height: 100%; object-fit: contain; padding: 7%; mix-blend-mode: multiply;
}
@media (max-width: 700px) {
  .single-product .ma-image-main { flex-basis: 100%; width: 100%; }
}
.single-product .ma-image-main--ph { background: var(--ma-navy); }
.single-product .ma-image-main .ma-img-ph svg { width: 38%; height: 38%; }

.ma-specs {
  border: 1px solid var(--ma-line); border-radius: var(--ma-radius);
  background: var(--ma-card); margin: 14px 0; overflow: hidden;
}
.ma-specs h3 {
  font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .14em;
  font-size: .82rem; color: #fff; background: var(--ma-navy);
  margin: 0; padding: 9px 14px;
}
.ma-specs dl { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin: 0; }
.ma-specs div { display: flex; justify-content: space-between; gap: 10px; padding: 9px 14px; border-top: 1px solid var(--ma-line); }
.ma-specs dt { color: var(--ma-ink-soft); font-size: .86rem; }
.ma-specs dd { margin: 0; font-weight: 600; color: var(--ma-navy); font-size: .9rem; font-variant-numeric: tabular-nums; }

.ma-bulk {
  border: 1px dashed var(--ma-brass); border-radius: var(--ma-radius);
  background: rgba(196,160,80,.08); padding: 10px 14px; margin: 12px 0; font-size: .9rem;
}
.ma-bulk b { font-family: var(--ma-display); letter-spacing: .04em; color: var(--ma-brass-700); }

.ma-no-firearms {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .82rem; color: var(--ma-navy); font-weight: 600;
  border-left: 3px solid var(--ma-brass); padding-left: .6rem; margin-top: .8rem;
}

/* ============================================================
   HOMEPAGE
   ============================================================ */
.ma-home { margin: 0 auto; }
.ma-wrap { max-width: 1240px; margin: 0 auto; padding: 0 16px; }
.ma-section { padding: 64px 0; }
.ma-section--tight { padding: 40px 0; }
.ma-sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 26px; flex-wrap: wrap; }
.ma-sechead h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); text-transform: uppercase; }
.ma-sechead .ma-rule { margin-top: 8px; }
.ma-seclink { font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--ma-brass-700); font-weight: 600; }
.ma-seclink:hover { color: var(--ma-navy); }

/* HERO - paper-first per the 7/8 client decision (navy was "drowning everything out") */
.ma-hero { position: relative; background: var(--ma-paper); color: var(--ma-ink); overflow: hidden; border-bottom: 1px solid var(--ma-line); }
.ma-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(120% 90% at 85% -10%, rgba(196,160,80,.18), transparent 55%),
    linear-gradient(180deg, var(--ma-card), var(--ma-paper));
  z-index: 0;
}
.ma-hero::after {
  content: ""; position: absolute; inset: 0; opacity: .04; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ma-hero__grid {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center;
  padding: 76px 16px 84px; /* side padding restated: this shorthand overrides .ma-wrap's on the same element */
}
.ma-hero h1 {
  color: var(--ma-navy); font-size: clamp(2.6rem, 6vw, 5rem); text-transform: uppercase;
  line-height: .95; margin: 14px 0 18px;
}
.ma-hero h1 .brass { color: var(--ma-brass-700); }
.ma-hero p.lede { font-size: 1.12rem; color: var(--ma-ink-soft); max-width: 30em; margin: 0 0 26px; }
.ma-hero .ma-eyebrow { color: var(--ma-brass-700); }
.ma-hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

/* caliber index card (card-on-paper, was dark glass) */
.ma-index {
  background: var(--ma-card);
  border: 1px solid var(--ma-line-2); border-top: 3px solid var(--ma-brass); border-radius: 6px; padding: 20px;
  box-shadow: var(--ma-shadow-lg);
}
.ma-index__label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ma-index__label span { font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .2em; font-size: .72rem; color: var(--ma-brass-700); }
.ma-index__label svg { width: 22px; height: 22px; color: var(--ma-brass-700); }
.ma-index__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ma-cal-chip {
  display: flex; flex-direction: column; gap: 2px;
  background: var(--ma-paper-2); border: 1px solid var(--ma-line);
  border-radius: 3px; padding: 12px 10px; transition: border-color .15s ease, background-color .15s ease, transform .12s ease;
}
.ma-cal-chip:hover { border-color: var(--ma-brass); background: rgba(196,160,80,.14); transform: translateY(-2px); }
.ma-cal-chip b { font-family: var(--ma-display); font-size: 1.18rem; color: var(--ma-navy); letter-spacing: .02em; }
.ma-cal-chip small { font-size: .68rem; color: var(--ma-ink-soft); text-transform: uppercase; letter-spacing: .08em; }

/* TRUST BAR */
.ma-trust { background: var(--ma-navy); color: var(--ma-paper); border-top: 3px solid var(--ma-brass); }
.ma-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.ma-trust__item { display: flex; gap: 12px; align-items: center; padding: 22px 24px; border-right: 1px solid rgba(243,239,230,.12); }
.ma-trust__item:last-child { border-right: 0; }
.ma-trust__item svg { width: 30px; height: 30px; color: var(--ma-brass-300); flex: 0 0 auto; }
.ma-trust__item b { display: block; font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .06em; font-size: .95rem; color: #fff; }
.ma-trust__item span { font-size: .82rem; color: rgba(243,239,230,.72); }

/* CATEGORY GRID */
.ma-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ma-cat {
  position: relative; display: flex; flex-direction: column; gap: 6px;
  background: var(--ma-card); border: 1px solid var(--ma-line); border-radius: var(--ma-radius);
  padding: 22px; min-height: 150px; box-shadow: var(--ma-shadow);
  transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease;
}
.ma-cat:hover { transform: translateY(-3px); box-shadow: var(--ma-shadow-lg); border-color: var(--ma-brass); }
.ma-cat svg { width: 34px; height: 34px; color: var(--ma-brass-700); }
.ma-cat h3 { font-size: 1.3rem; text-transform: uppercase; margin: 8px 0 0; }
.ma-cat span { font-size: .82rem; color: var(--ma-ink-soft); font-variant-numeric: tabular-nums; }
.ma-cat .ma-cat__go { margin-top: auto; font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .1em; font-size: .76rem; color: var(--ma-brass-700); }

/* CALIBER STAMP GRID */
.ma-stamps { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.ma-stamp {
  text-align: center; background: var(--ma-card); border: 1px solid var(--ma-line-2);
  border-radius: var(--ma-radius); padding: 16px 8px; box-shadow: var(--ma-shadow);
  transition: transform .14s ease, border-color .14s ease, background-color .14s ease;
}
.ma-stamp:hover { transform: translateY(-2px); border-color: var(--ma-brass); background: #fff; }
.ma-stamp b { display: block; font-family: var(--ma-display); font-size: 1.5rem; color: var(--ma-navy); letter-spacing: .01em; }
.ma-stamp small { font-size: .66rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ma-ink-soft); }

/* STORY */
.ma-story { background: var(--ma-navy); color: var(--ma-paper); position: relative; overflow: hidden; }
.ma-story::after {
  content: ""; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
.ma-story__grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.ma-story h2 { color: #fff; font-size: clamp(1.9rem, 3.4vw, 2.8rem); text-transform: uppercase; }
.ma-story h2 .brass { color: var(--ma-brass-300); }
.ma-story p { color: rgba(243,239,230,.82); font-size: 1.04rem; }
.ma-story__stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 22px; }
.ma-story__stats div { border: 1px solid rgba(196,160,80,.35); border-radius: 4px; padding: 16px; text-align: center; }
.ma-stat { display: block; font-family: var(--ma-display); font-size: 2rem; color: var(--ma-brass-300); }
.ma-story__stats span small { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: rgba(243,239,230,.7); }

/* PRODUCT ROW */
.ma-prow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }

/* COMPLIANCE STRIP + HOME FOOTER */
.ma-compliance { background: var(--ma-paper-2); border-top: 1px solid var(--ma-line); }
.ma-compliance__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; padding: 36px 16px; }
.ma-compliance h4 { font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .08em; font-size: .92rem; color: var(--ma-navy); margin: 0 0 6px; }
.ma-compliance p { font-size: .84rem; color: var(--ma-ink-soft); margin: 0; }

/* ============================================================
   SITE-WIDE FOOTER BAND
   ============================================================ */
.ma-footband { background: var(--ma-navy-900); color: rgba(243,239,230,.82); border-top: 3px solid var(--ma-brass); padding: 50px 0 30px; }
.ma-footband__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 34px; }
.ma-footband__logoimg { display: block; width: 56px; height: 56px; border-radius: 8px; margin-bottom: 12px; border: 1px solid rgba(243,239,230,.18); }
.ma-footband__logo { font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .06em; font-size: 1.45rem; color: var(--ma-paper); font-weight: 700; margin-bottom: 10px; }
.ma-footband p { font-size: .88rem; line-height: 1.55; margin: 0 0 10px; }
.ma-footband__shield { display: inline-flex; align-items: center; gap: .45rem; color: var(--ma-brass-300); font-weight: 600; }
.ma-footband__shield svg { width: 20px; height: 20px; flex: 0 0 auto; }
.ma-footband__col h4 { font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .12em; font-size: .82rem; color: var(--ma-brass-300); margin: 0 0 13px; }
.ma-footband__col ul { list-style: none; margin: 0; padding: 0; }
.ma-footband__col li { margin-bottom: 9px; }
.ma-footband a { color: rgba(243,239,230,.82); font-size: .9rem; }
.ma-footband a:hover { color: var(--ma-brass-300); }
.ma-footband__contact { font-size: .9rem; line-height: 1.7; }
.ma-footband__law { margin-top: 32px; padding-top: 18px; border-top: 1px solid rgba(243,239,230,.12); font-size: .78rem; color: rgba(243,239,230,.6); }
.ma-footband__copy { margin-top: 10px; font-size: .82rem; color: rgba(243,239,230,.75); }
/* 05e #28: our band carries the real copyright; hide Blocksy's default developer credit */
footer.ct-footer [data-row] .ct-footer-copyright, .ct-footer-copyright { display: none !important; }
@media (max-width: 1000px) { .ma-footband__grid { grid-template-columns: 1fr 1fr; gap: 26px; } }
@media (max-width: 600px) { .ma-footband__grid { grid-template-columns: 1fr; } }

/* ============================================================
   AGE GATE
   ============================================================ */
.ma-agegate {
  position: fixed; inset: 0; z-index: 99999; display: none;
  align-items: center; justify-content: center; padding: 20px;
  background: rgba(8,16,26,.86); backdrop-filter: blur(4px);
  overscroll-behavior: contain;
}
.ma-agegate.is-open { display: flex; }
.ma-agegate__card {
  background: var(--ma-paper); border-top: 5px solid var(--ma-brass);
  border-radius: 6px; max-width: 440px; width: 100%; padding: 34px 30px; text-align: center;
  box-shadow: var(--ma-shadow-lg);
}
.ma-agegate__card .ma-eyebrow { display: block; margin-bottom: 8px; }
.ma-agegate__card h2 { font-size: 2rem; text-transform: uppercase; margin: 0 0 8px; }
.ma-agegate__card p { color: var(--ma-ink-soft); font-size: .92rem; margin: 0 0 22px; }
.ma-agegate__btns { display: flex; gap: 10px; }
.ma-agegate__btns .ma-btn { flex: 1; justify-content: center; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1000px) {
  .ma-hero__grid, .ma-story__grid { grid-template-columns: 1fr; gap: 30px; }
  .ma-trust__grid { grid-template-columns: repeat(2,1fr); }
  .ma-trust__item:nth-child(2) { border-right: 0; }
  .ma-cats { grid-template-columns: repeat(2,1fr); }
  .ma-prow, .ma-stamps { grid-template-columns: repeat(3,1fr); }
  .ma-compliance__grid { grid-template-columns: 1fr; gap: 16px; }
}
@media (max-width: 600px) {
  .ma-section { padding: 44px 0; }
  .ma-cats, .ma-prow { grid-template-columns: repeat(2,1fr); }
  .ma-stamps { grid-template-columns: repeat(3,1fr); }
  .ma-index__grid { grid-template-columns: repeat(2,1fr); }
  .ma-trust__grid { grid-template-columns: 1fr; }
  .ma-trust__item { border-right: 0; border-bottom: 1px solid rgba(243,239,230,.12); }
}

/* ============================================================
   05e UX-AUDIT FIXES (2026-07-08) - ease-of-use only, no restyle
   ============================================================ */

/* pickup-only notice on cart/checkout (self-styled; Blocksy's woocommerce-info flex
   layout shredded the sentence into columns) */
.ma-ship-notice {
  background: var(--ma-paper-2); border: 1px solid var(--ma-line); border-left: 4px solid var(--ma-brass);
  border-radius: var(--ma-radius); padding: 16px 20px; margin: 0 0 20px; color: var(--ma-navy);
}
.ma-ship-notice p { margin: 0; font-size: 1.02rem; line-height: 1.6; }
.ma-ship-notice p + p { margin-top: 8px; }
.ma-ship-notice strong { color: var(--ma-brass-700); }
/* pickup-only carts: no shipping-destination chrome (body class set by ma-shipping-rules) */
.ma-pickup-only .woocommerce-shipping-destination,
.ma-pickup-only .woocommerce-shipping-calculator { display: none !important; }

/* #18 pickup-only note under Add to Cart; #20 OOS next-step line */
.ma-pickup-note {
  display: flex; align-items: center; gap: .5rem;
  font-size: .95rem; font-weight: 600; color: var(--ma-navy);
  border-left: 3px solid var(--ma-brass); padding-left: .6rem; margin: 10px 0 0;
}
.ma-pickup-note svg { width: 20px; height: 20px; flex: 0 0 auto; color: var(--ma-brass-700); }
.ma-oos-help { font-size: .98rem; color: var(--ma-ink); margin: 10px 0 0; }
.ma-oos-help a { color: var(--ma-navy); font-weight: 700; text-decoration: underline; }

/* ============================================================
   RELOADING RESOURCES (v0.6.0): panel on reloading category
   pages + footer "Reloading Data" sub-list. External links get
   a new-tab affordance (.ma-ext).
   ============================================================ */
.ma-resources { margin: 28px 0 8px; padding: 18px 20px; background: var(--ma-paper-2); border: 1px solid var(--ma-line); border-radius: var(--ma-radius); }
.ma-resources h3 { font-family: var(--ma-display); text-transform: uppercase; letter-spacing: .04em; font-size: 1.1rem; color: var(--ma-navy); margin: 0 0 6px; }
.ma-resources p { margin: 0 0 12px; color: var(--ma-ink-soft); font-size: .95rem; max-width: 52em; }
.ma-resources ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.ma-resources a { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 10px 16px; border: 1px solid var(--ma-line-2); border-radius: var(--ma-radius); background: var(--ma-card); color: var(--ma-navy); font-weight: 600; font-size: .95rem; text-decoration: none; transition: border-color .15s ease; }
.ma-resources a:hover { border-color: var(--ma-navy); }
.ma-resources a:focus-visible { outline: 3px solid var(--ma-navy); outline-offset: 2px; }
.ma-ext { font-size: .75em; line-height: 1; }
.ma-footband__subhead { margin-top: 18px !important; }

/* #21 zero-results helper */
.ma-noresults { padding: 28px 0 8px; }
.ma-noresults h2 { text-transform: uppercase; }
.ma-noresults p { font-size: 1.05rem; color: var(--ma-ink-soft); max-width: 44em; }
.ma-noresults p a { color: var(--ma-navy); font-weight: 700; }
.ma-noresults__depts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }

/* #19 checkout age attestation */
.ma-age-attest { margin: 0 0 14px; }
.ma-age-attest label { font-size: .95rem; font-weight: 600; color: var(--ma-navy); }

/* #25 cart coupon collapse */
.ma-coupon-toggle {
  background: none; border: none; padding: 6px 0; cursor: pointer;
  font: 600 .95rem var(--ma-body); color: var(--ma-navy); text-decoration: underline;
}

/* #14 mobile orientation aids: result count, page numbers, and a usable sort control
   were hidden/shrunk on small screens (86 pages behind a lone "Next") */
@media (max-width: 999.98px) {
  .woocommerce-result-count.ct-hidden-sm { display: block !important; font-size: .95rem; }
  .woocommerce-pagination .page-numbers { display: inline-flex !important; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; }
  select.orderby { min-height: 44px; font-size: 16px; }
}

/* #16 phones get 2-up product cards and category tiles instead of 1-per-row */
@media (max-width: 689.98px) {
  .woocommerce ul.products, ul.products {
    display: grid !important; grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important;
  }
  ul.products li.product, ul.products li.product-category { width: auto !important; margin: 0 !important; }
}

/* #13 utility chrome sizing at mobile: 44px in-stock toggle */
@media (max-width: 689.98px) {
  .ma-instock-toggle a { min-height: 44px !important; font-size: 15px !important; }
}

/* #29 quantity + remove controls: bigger targets (real-button rework tracked separately) */
.woocommerce .quantity input.qty { min-height: 44px; min-width: 44px; font-size: 16px; }
.woocommerce-cart .product-remove a.remove {
  font-size: 22px !important; width: 40px !important; height: 40px !important;
  line-height: 40px !important; display: inline-flex; align-items: center; justify-content: center;
}

/* honor reduced motion */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
