/*
 * Foilside storefront — the look every shop shares.
 *
 * This file names no colour, typeface, corner radius or shadow of its own.
 * Every one of them is a `--fs-*` custom property, and a theme (includes/
 * class-themes.php) is nothing but one set of those printed into `:root` by
 * Frontend::print_tokens(). That is why ten looks need one stylesheet.
 *
 * What the rules themselves do is turn a stock Blocksy + WooCommerce shop into
 * a card shop: card-slab product tiles, portrait card art that is never
 * cropped, a two-up grid on phones, touch targets that are actually 44px, and
 * a dozen fixes for Blocksy surfaces that paint their own background (the
 * offcanvas drawer, the search modal, submenu panels, the My Account nav)
 * where a background-only override lands white-on-white. Each comment names
 * the thing that was wrong, not the thing the rule does.
 *
 * ⚠️ Two traps, both learned live:
 *   1. A WooCommerce body class (`.woocommerce`, `.woocommerce-account`) used
 *      as a selector ANCESTOR matches nothing on Blocksy — it has killed 28
 *      rules in one pass and 6 more later. Scope to the element, not the body.
 *   2. A forced `background` MUST carry a forced `color`. Blocksy paints the
 *      drawer and search modal near-black and their text white; a
 *      background-only rule then produces white-on-white.
 *
 * The values below are the fallback set (Counter Slate), so the storefront is
 * still coherent if the token block is ever missing.
 */

:root {
  --fs-bg: #f3f4f6;
  --fs-bg2: #f3f4f6;
  --fs-surface: #ffffff;
  --fs-field: #f7f8fa;
  --fs-ink: #343a43;
  --fs-head: #15191e;
  --fs-muted: #6a7280;
  --fs-border: #dde1e7;
  --fs-border-soft: #eceff3;
  --fs-primary: #262b31;
  --fs-on-primary: #ffffff;
  --fs-accent: #e2622a;
  --fs-on-accent: #1a0c03;
  --fs-accent-ink: #b5471a;
  --fs-sale-to: #f0855a;
  --fs-deep: #1b1f24;
  --fs-on-deep: #b9c0ca;
  --fs-link: #262b31;
  --fs-link-hover: #b5471a;
  --fs-price: #15191e;
  --fs-badge: #e2622a;
  --fs-badge-ink: #1a0c03;
  --fs-ring: #e2622a;
  --fs-foot-link: #e2622a;
  --fs-primary-rgb: 38, 43, 49;
  --fs-accent-rgb: 226, 98, 42;
  --fs-deep-rgb: 27, 31, 36;
  --fs-head-rgb: 21, 25, 30;
  --fs-surface-rgb: 255, 255, 255;
  --fs-radius: 10px;
  --fs-radius-sm: 8px;
  --fs-btn-radius: 8px;
  --fs-pill: 999px;
  --fs-border-w: 1px;
  --fs-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.06);
  --fs-shadow-lift: 0 12px 28px rgba(var(--fs-deep-rgb), 0.12);
  --fs-font-head: Rubik, system-ui, -apple-system, sans-serif;
  --fs-font-body: 'Nunito Sans', system-ui, -apple-system, sans-serif;
  --fs-head-weight: 600;
  --fs-head-transform: none;
  --fs-head-spacing: -0.01em;
  --fs-label-transform: none;
  --fs-label-spacing: 0.02em;
}

/* Longhands, and forced. Blocksy paints the page from its own
   `--theme-content-background`, and a `background` SHORTHAND carrying a
   `var()` loses to it however late this file is enqueued -- measured: the
   `fixed` attachment landed and the gradient did not. */
body {
  background-color: var(--fs-bg) !important;
  background-image: linear-gradient(180deg, var(--fs-bg) 0%, var(--fs-bg2) 100%) !important;
  background-attachment: fixed;
  font-family: var(--fs-font-body);
  color: var(--fs-ink);
}

h1, h2, h3, h4, h5, h6,
.site-title, .ct-site-title,
.woocommerce-products-header__title,
.product_title {
  font-family: var(--fs-font-head);
  font-weight: var(--fs-head-weight);
  text-transform: var(--fs-head-transform);
  letter-spacing: var(--fs-head-spacing);
  color: var(--fs-head);
}

/* Header: clean, with a thin gold rule under it for "premium" feel.
   Blocksy generates per-row dynamic CSS that overrides a single
   header-level background rule, so each row is targeted individually
   and the wrapper background is set with extra specificity. */
header#header.ct-header,
header[data-id],
.ct-header,
header.site-header {
  background: var(--fs-surface) !important;
  border-bottom: 3px solid var(--fs-accent);
  box-shadow: 0 1px 0 rgba(var(--fs-deep-rgb), 0.04);
}
/* Middle + bottom rows host the logo and nav — keep them white. */
#header [data-row="middle"],
#header [data-row="bottom"],
.ct-header [data-row="middle"],
.ct-header [data-row="bottom"] {
  background: var(--fs-surface) !important;
  background-color: var(--fs-surface) !important;
  color: var(--fs-link) !important;
}
/* Logo + nav links on the white rows. */
#header [data-row="middle"] .ct-site-title a,
#header [data-row="middle"] .site-title a,
.ct-header [data-row="middle"] .ct-site-title a {
  color: var(--fs-link) !important;
  font-weight: 800;
}
#header [data-row="middle"] a,
#header [data-row="middle"] .menu-item a,
#header [data-row="bottom"] a,
.ct-header [data-row="middle"] .menu-item a {
  color: var(--fs-link) !important;
}
#header [data-row="middle"] a:hover,
#header [data-row="middle"] .menu-item a:hover,
#header [data-row="bottom"] a:hover {
  color: var(--fs-accent-ink) !important;
}
.site-title a, .ct-site-title a {
  color: var(--fs-link) !important;
  font-weight: 800;
}

/* Logo: keep within viewport on phones.
   Blocksy fixes .site-logo-container to a 50px height and forces the image
   to width:auto / max-width:initial / height:inherit, so the wordmark sizes
   by height (~458px wide for our 1274x139 logo) and overruns the screen on
   narrow viewports. Under 782px, swap to a width-bound layout: the container
   shrinks to fit, the image scales proportionally, and the 50px ceiling is
   enforced as a max-height instead of a fixed height. */
@media (max-width: 782px) {
  .site-logo-container {
    height: auto !important;
    max-width: 100%;
  }
  .site-logo-container img,
  .site-logo-container svg,
  .site-logo-container picture {
    max-width: 100% !important;
    max-height: 50px;
    width: auto !important;
    height: auto !important;
  }
}

/* === Product tiles: card-slab look ===================================== */
ul.products li.product,
.products .product,
.wc-block-grid__product,
.wp-block-woocommerce-product-template > li {
  background: var(--fs-surface);
  border: var(--fs-border-w) solid var(--fs-border);
  border-radius:var(--fs-radius);
  padding: 16px !important;
  box-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.06);
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
ul.products li.product:hover,
.products .product:hover,
.wc-block-grid__product:hover {
  transform: translateY(-3px);
  border-color: var(--fs-accent);
  box-shadow:
    0 12px 28px rgba(var(--fs-deep-rgb), 0.12),
    0 0 0 1px rgba(var(--fs-accent-rgb), 0.45);
}

/* === Archive entry-cards (search results, blog, taxonomy archives) =====
   Blocksy's archive layout (used by search.php and any non-WooCommerce
   archive) renders each result as `article.entry-card` inside
   `.entries[data-cards="boxed"]`, which inherits the navy palette as its
   background. That leaves navy titles / navy meta on a navy panel — text
   is effectively invisible. Re-skin to match the white card-slab look
   used for product tiles, and force readable text colors on the
   title, meta, excerpt, and links. */
.entries[data-cards="boxed"] article.entry-card,
.entries article.entry-card.card-content {
  background: var(--fs-surface) !important;
  border: var(--fs-border-w) solid var(--fs-border) !important;
  border-radius:var(--fs-radius) !important;
  padding: 16px !important;
  box-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.06) !important;
  color: var(--fs-ink) !important;
  transition: transform 200ms ease, box-shadow 200ms ease, border-color 200ms ease;
}
.entries[data-cards="boxed"] article.entry-card:hover,
.entries article.entry-card.card-content:hover {
  transform: translateY(-3px);
  border-color: var(--fs-accent) !important;
  box-shadow:
    0 12px 28px rgba(var(--fs-deep-rgb), 0.12),
    0 0 0 1px rgba(var(--fs-accent-rgb), 0.45) !important;
}
.entries article.entry-card .entry-title,
.entries article.entry-card .entry-title a {
  color: var(--fs-head) !important;
  text-decoration: none !important;
}
.entries article.entry-card .entry-title a:hover {
  color: var(--fs-accent-ink) !important;
}
.entries article.entry-card .entry-excerpt,
.entries article.entry-card .entry-excerpt p {
  color: var(--fs-ink) !important;
}
.entries article.entry-card .entry-meta,
.entries article.entry-card .entry-meta li,
.entries article.entry-card .entry-meta time {
  color: var(--fs-muted) !important;
}
.entries article.entry-card .entry-meta a {
  color: var(--fs-link) !important;
}
.entries article.entry-card .entry-meta a:hover {
  color: var(--fs-accent-ink) !important;
}
/* Cap image height inside archive cards the same way we cap product tiles. */
.entries article.entry-card .ct-media-container img,
.entries article.entry-card img.wp-post-image {
  max-height: 240px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto 12px !important;
  display: block;
}

/* "On Sale" / "New" / featured badges — graded-slab gold gradient. */
.onsale, span.onsale, .wc-block-components-product-sale-badge {
  background-color: var(--fs-accent) !important;
  background-image: linear-gradient(135deg, var(--fs-accent) 0%, var(--fs-sale-to) 100%) !important;
  color: var(--fs-on-accent) !important;
  border: none !important;
  border-radius:var(--fs-radius-sm) !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 4px 10px !important;
  box-shadow: 0 2px 4px rgba(var(--fs-accent-rgb), 0.4);
}

/* === Buttons: navy primary, gold secondary ============================= */
.button, button.button, a.button,
.wp-block-button__link,
.ct-button, .ct-button-primary,
button[type="submit"],
.woocommerce #respond input#submit,
.woocommerce a.button.alt,
.woocommerce button.button.alt {
  background: var(--fs-primary) !important;
  color: var(--fs-on-primary) !important;
  border: none !important;
  border-radius:var(--fs-btn-radius) !important;
  padding: 12px 24px !important;
  font-weight: 600 !important;
  letter-spacing: 0.02em !important;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}
.button:hover, button.button:hover, a.button:hover,
.wp-block-button__link:hover, .ct-button:hover,
.woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover {
  background: var(--fs-accent) !important;
  color: var(--fs-on-accent) !important;
  transform: translateY(-1px);
}

/* "Add to cart" on shop loop: gold for visual emphasis. */
.woocommerce ul.products li.product .button.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.wc-block-grid__product .wp-block-button__link {
  background: var(--fs-accent) !important;
  color: var(--fs-on-accent) !important;
  font-weight: 700 !important;
}
.woocommerce ul.products li.product .button.add_to_cart_button:hover {
  background: var(--fs-primary) !important;
  color: var(--fs-on-primary) !important;
}

/* === Prices ============================================================ */
.price, .price ins, .woocommerce-Price-amount, .wc-block-components-product-price {
  color: var(--fs-link);
  font-weight: 700;
}
.price del, .price del .woocommerce-Price-amount {
  color: var(--fs-muted);
  font-weight: 400;
  opacity: 0.65;
}

/* === Category tiles =================================================== */
.product-category .woocommerce-loop-category__title,
.wc-block-product-categories-list-item a {
  color: var(--fs-link);
  font-weight: 700;
  letter-spacing: 0.02em;
}
.product-category img {
  border-radius:var(--fs-radius);
  border: var(--fs-border-w) solid var(--fs-border);
}

/* === Footer: deep navy with gold links ================================ */
footer, .ct-footer, .site-footer {
  background: var(--fs-deep) !important;
  color: var(--fs-on-deep) !important;
}
footer *, .ct-footer * { color: inherit; }
footer a, .ct-footer a { color: var(--fs-foot-link) !important; }
/* Hover changes the underline, not the colour: there is no second colour that
   is readable on every theme's footer ground. */
footer a:hover, .ct-footer a:hover { text-decoration: underline !important; }

/* === Forms ============================================================ */
/* A forced background MUST carry a forced colour. Blocksy renders the
   offcanvas menu and the search modal as near-black panels and paints their
   contents white; a background-only rule then produced white-on-white. The
   dark-panel exceptions live in the mobile section at the end of this file. */
input[type="text"], input[type="email"], input[type="tel"],
input[type="number"], input[type="password"], input[type="search"],
textarea, select {
  border: var(--fs-border-w) solid var(--fs-border) !important;
  border-radius:var(--fs-radius-sm) !important;
  padding: 10px 14px !important;
  background: var(--fs-surface) !important;
  color: var(--fs-ink) !important;
  font-family: inherit !important;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--fs-accent) !important;
  outline: 2px solid rgba(var(--fs-accent-rgb), 0.25) !important;
  outline-offset: 1px !important;
}

/* Cart-count bubble in the header. */
.ct-header-cart-inner-count, .cart-contents-count {
  background: var(--fs-accent) !important;
  color: var(--fs-on-accent) !important;
  font-weight: 700;
  border-radius:var(--fs-pill);
}

/* Top promotional bar (Blocksy "Top Row"). */
.ct-top-bar, .ct-header-row[data-row="top"] {
  background: var(--fs-primary) !important;
  color: var(--fs-on-primary) !important;
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ct-top-bar a, .ct-header-row[data-row="top"] a { color: var(--fs-accent-ink) !important; }

/* Single product page tweaks. */
.single-product div.product .product_title {
  font-size: clamp(1.8rem, 2.4vw, 2.6rem);
  line-height: 1.15;
}
.single-product div.product .price { font-size: 1.6rem; }
.woocommerce-tabs .panel {
  background: var(--fs-surface);
  border: var(--fs-border-w) solid var(--fs-border);
  border-radius:var(--fs-radius);
  padding: 24px;
}

/* === Trading-card image sizing ========================================
   Cards are tall portraits (~2.5:3.5). Default WooCommerce sizing makes
   them dominate both the shop loop and the single product page, and any
   forced-square cropping chops card art. Constrain the rendered size and
   force letterboxing so nothing is ever cropped. */

/* Single product gallery: cap the IMAGE only (not the gallery column).
   Capping the gallery container collapses the left column and lets the
   summary (title + form) shift left, breaking the side-by-side layout.
   Constraining the image within its column keeps the original split. */
.single-product div.product .woocommerce-product-gallery img,
.single-product div.product .images img,
.single-product div.product .woocommerce-product-gallery__image img,
.single-product div.product .woocommerce-product-gallery__wrapper img {
  max-width: 340px;
  max-height: 480px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}

/* Shop loop / catalog tiles: cap thumbnail height and never crop. */
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img,
.woocommerce ul.products li.product .wp-post-image,
.wc-block-grid__product-image img,
.wp-block-woocommerce-product-image img,
.product-category img {
  max-height: 240px;
  width: auto !important;
  height: auto !important;
  object-fit: contain;
  margin: 0 auto 12px !important;
  display: block;
}

/* Related / upsell / cross-sell rows on the single product page. */
.related.products img,
.upsells.products img,
.cross-sells img {
  max-height: 200px;
  width: auto !important;
  object-fit: contain;
  margin: 0 auto 12px !important;
  display: block;
}

/* Subtle pattern behind the hero on the home page. */
.home .ct-hero, .home .entry-content > .wp-block-cover:first-child {
  background-image:
    radial-gradient(circle at 20% 20%, rgba(var(--fs-accent-rgb), 0.08), transparent 40%),
    radial-gradient(circle at 80% 30%, rgba(var(--fs-primary-rgb), 0.08), transparent 40%);
}

/* "Sale", "New", attribute pills on archives — readable and on-brand. */
.product-attribute-pill, .ct-product-card-attribute {
  background: var(--fs-primary);
  color: var(--fs-on-primary);
  padding: 3px 10px;
  border-radius:var(--fs-pill);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* === Page sections (hero, steps, schedule, info cards) ================ */
/* ⚠️ Text on `--fs-primary` is `--fs-on-primary`, never `--fs-accent`. The
   accent is picked to work on the PAGE, not on the primary: Newsprint Pop's
   blue on its red put the events table's headings at 1.32:1 and the brand
   tiles with them. The gold-on-navy of the original theme is the one look
   where accent-on-primary happened to read. */
/* Gradients below always state a background-COLOUR as well: a gradient is an
   image, and anything that does not paint it -- a blocked stylesheet, a
   contrast audit walking ancestors for a colour -- otherwise sees the page
   ground behind light text. */


/* Hero block */
.gd-hero {
  background-color: var(--fs-deep);   /* under the gradient: see the note above */
  background-image: linear-gradient(135deg, var(--fs-deep) 0%, var(--fs-primary) 60%, var(--fs-primary) 100%);
  color: var(--fs-on-primary);
  padding: 80px 32px;
  border-radius:var(--fs-radius);
  text-align: center;
  margin: 24px 0 48px;
  position: relative;
  overflow: hidden;
}
.gd-hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 20% 30%, rgba(var(--fs-accent-rgb), 0.15), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(var(--fs-accent-rgb), 0.10), transparent 50%);
  pointer-events: none;
}
.gd-hero h1, .gd-hero h2 {
  color: var(--fs-on-primary) !important;
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  margin: 0 0 16px;
  position: relative;
}
.gd-hero p {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.2rem;
  max-width: 720px;
  margin: 0 auto 24px;
  position: relative;
}
.gd-hero .gd-cta {
  position: relative;
  display: inline-block;
  background: var(--fs-accent);
  color: var(--fs-on-accent) !important;
  padding: 14px 32px;
  border-radius:var(--fs-btn-radius);
  font-weight: 700;
  text-decoration: none !important;
  letter-spacing: 0.04em;
  transition: transform 180ms ease, background 180ms ease;
}
.gd-hero .gd-cta:hover {
  background: var(--fs-sale-to);
  color: var(--fs-on-accent) !important;
  transform: translateY(-2px);
}

/* 3-column value-prop grid */
.gd-cols {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin: 48px 0;
}
.gd-cols .gd-col {
  background: var(--fs-surface);
  border: var(--fs-border-w) solid var(--fs-border);
  border-radius:var(--fs-radius);
  padding: 28px 24px;
  box-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.05);
}
.gd-cols .gd-col h3 {
  color: var(--fs-link);
  margin-top: 0;
  font-size: 1.3rem;
}
.gd-cols .gd-col p {
  color: var(--fs-ink);
  margin-bottom: 0;
}

/* Brand strip — replace inner text with <img> once logos are uploaded. */
.gd-brand-strip {
  background-color: var(--fs-bg);
  background-image: linear-gradient(180deg, var(--fs-surface) 0%, var(--fs-bg) 100%);
  border-top: 2px solid var(--fs-accent);
  border-bottom: 2px solid var(--fs-accent);
  padding: 32px 16px;
  margin: 48px 0;
}
.gd-brand-strip h3 {
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.85rem;
  color: var(--fs-link);
  margin: 0 0 24px;
}
.gd-brands {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 18px;
}
.gd-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 72px;
  min-width: 200px;
  padding: 12px 24px;
  background-color: var(--fs-primary);
  background-image: linear-gradient(135deg, var(--fs-primary) 0%, var(--fs-deep) 100%);
  border: 2px solid var(--fs-accent);
  border-radius:var(--fs-radius);
  color: var(--fs-on-primary) !important;
  font-family: var(--fs-font-head);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  font-size: 1.05rem;
  text-decoration: none !important;
  box-shadow: inset 0 0 24px rgba(var(--fs-accent-rgb), 0.08),
              0 2px 6px rgba(var(--fs-deep-rgb), 0.12);
  transition: transform 180ms ease, box-shadow 180ms ease;
}
.gd-brand:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 0 28px rgba(var(--fs-accent-rgb), 0.16),
              0 8px 18px rgba(var(--fs-deep-rgb), 0.18);
}
.gd-brand img {
  max-height: 52px;
  width: auto;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Featured-categories grid */
.gd-feature-cats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.gd-feature-cats a {
  display: block;
  padding: 36px 22px;
  background: var(--fs-surface);
  border: var(--fs-border-w) solid var(--fs-border);
  border-radius:var(--fs-radius);
  text-align: center;
  text-decoration: none;
  color: var(--fs-link);
  font-weight: 700;
  font-size: 1.1rem;
  transition: all 180ms ease;
  position: relative;
}
.gd-feature-cats a::before {
  content: "→";
  display: block;
  font-size: 1.6rem;
  color: var(--fs-accent-ink);
  margin-bottom: 10px;
  transition: transform 180ms ease;
}
.gd-feature-cats a:hover {
  background: var(--fs-primary);
  color: var(--fs-on-primary);
  border-color: var(--fs-primary);
  transform: translateY(-2px);
  box-shadow: 0 8px 16px rgba(var(--fs-deep-rgb), 0.15);
}
.gd-feature-cats a:hover::before {
  transform: translateX(4px);
  color: var(--fs-on-primary);
}
.gd-feature-cats .gd-sub {
  display: block;
  margin-top: 6px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--fs-muted);
  letter-spacing: 0.02em;
}
.gd-feature-cats a:hover .gd-sub { color: var(--fs-on-deep); }

/* Gold CTA banner */
.gd-cta-banner {
  background-color: var(--fs-accent);
  background-image: linear-gradient(135deg, var(--fs-accent) 0%, var(--fs-accent-ink) 100%);
  color: var(--fs-on-accent);
  padding: 48px 32px;
  border-radius:var(--fs-radius);
  text-align: center;
  margin: 48px 0;
}
.gd-cta-banner h2 {
  color: var(--fs-on-accent) !important;
  font-size: 2rem;
  margin: 0 0 12px;
}
.gd-cta-banner p {
  font-size: 1.1rem;
  margin: 0 0 20px;
  color: var(--fs-on-accent);
  opacity: 0.85;
}
.gd-cta-banner a.gd-cta {
  display: inline-block;
  background: var(--fs-deep);
  color: var(--fs-on-primary) !important;
  padding: 12px 28px;
  border-radius:var(--fs-btn-radius);
  font-weight: 700;
  text-decoration: none !important;
  transition: transform 180ms ease, background 180ms ease;
}
.gd-cta-banner a.gd-cta:hover {
  background: var(--fs-surface);
  color: var(--fs-head) !important;
  transform: translateY(-2px);
}

/* Numbered "how it works" step list */
.gd-steps {
  counter-reset: gd-step;
  list-style: none !important;
  padding: 0 !important;
  margin: 32px 0;
}
.gd-steps li {
  counter-increment: gd-step;
  position: relative;
  padding: 22px 24px 22px 84px;
  background: var(--fs-surface);
  border: var(--fs-border-w) solid var(--fs-border);
  border-radius:var(--fs-radius);
  margin-bottom: 12px;
  list-style: none;
}
.gd-steps li::before {
  content: counter(gd-step);
  position: absolute;
  left: 22px;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: var(--fs-primary);
  color: var(--fs-on-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.4rem;
  font-family: var(--fs-font-head);
}
.gd-steps li strong {
  display: block;
  color: var(--fs-link);
  margin-bottom: 4px;
  font-size: 1.1rem;
}
.gd-steps li p { margin: 0; color: var(--fs-ink); }

/* Schedule table */
.gd-schedule {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  background: var(--fs-surface);
  border-radius:var(--fs-radius);
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.06);
}
.gd-schedule th, .gd-schedule td {
  padding: 14px 18px;
  text-align: left;
  border-bottom: var(--fs-border-w) solid var(--fs-border-soft);
}
.gd-schedule th {
  background: var(--fs-primary);
  color: var(--fs-on-primary);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.85rem;
}
.gd-schedule tr:last-child td { border-bottom: none; }
.gd-schedule tr:nth-child(even) td { background: var(--fs-bg); }
.gd-schedule td:first-child {
  font-weight: 700;
  color: var(--fs-link);
  white-space: nowrap;
}

/* Info-card grid (used on Contact and About) */
.gd-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
  margin: 32px 0;
}
.gd-info-card {
  background: var(--fs-surface);
  border: var(--fs-border-w) solid var(--fs-border);
  border-radius:var(--fs-radius);
  padding: 24px;
}
.gd-info-card h3 {
  color: var(--fs-link);
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gd-info-card p { margin: 0 0 6px; }

/* Trademark / legal small print */
.gd-trademarks {
  background: var(--fs-bg);
  border-left: 4px solid var(--fs-accent);
  padding: 20px 24px;
  margin: 32px 0;
  font-size: 0.92rem;
  color: var(--fs-muted);
}
.gd-trademarks h3 {
  color: var(--fs-link);
  margin: 0 0 12px;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.gd-trademarks p { margin: 0 0 10px; }
.gd-trademarks p:last-child { margin-bottom: 0; }

/* Editor note (visual marker for "replace this with real form / address") */
.gd-editor-note {
  background: rgba(var(--fs-accent-rgb), 0.12);
  border: 1px dashed var(--fs-accent);
  border-radius:var(--fs-radius-sm);
  padding: 12px 16px;
  margin: 16px 0;
  color: var(--fs-accent-ink);
  font-size: 0.92rem;
  font-style: italic;
}

/* === WooCommerce: My Account left navigation ==========================
   Without these rules the nav inherits Blocksy's dark sidebar background
   plus the default link color, leaving dark-blue text on a dark-blue
   panel that's effectively unreadable. Re-skin to match the card-slab
   look used elsewhere: white panel, navy links, gold hover, navy/gold
   active state. Targets both the classic shortcode markup and the
   block-based "Customer Account" block. */
.woocommerce-account .woocommerce-MyAccount-navigation,
.wc-block-customer-account .wc-block-customer-account__navigation {
	background: var(--fs-surface) !important;
	border: var(--fs-border-w) solid var(--fs-border) !important;
	border-radius:var(--fs-radius) !important;
	padding: 6px !important;
	box-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.06) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul,
.wc-block-customer-account .wc-block-customer-account__navigation ul {
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	background: transparent !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li,
.wc-block-customer-account .wc-block-customer-account__navigation ul li {
	background: transparent !important;
	border: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a,
.wc-block-customer-account .wc-block-customer-account__navigation ul li a {
	display: block !important;
	padding: 10px 14px !important;
	color: var(--fs-link) !important;
	background: transparent !important;
	border-radius:var(--fs-radius-sm) !important;
	font-weight: 600 !important;
	text-decoration: none !important;
	letter-spacing: 0.01em !important;
	transition: background 160ms ease, color 160ms ease, transform 160ms ease !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li a:hover,
.wc-block-customer-account .wc-block-customer-account__navigation ul li a:hover {
	background: var(--fs-bg) !important;
	color: var(--fs-accent-ink) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a,
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active > a,
.wc-block-customer-account .wc-block-customer-account__navigation ul li.is-active a {
	background: var(--fs-primary) !important;
	color: var(--fs-on-primary) !important;
}
.woocommerce-account .woocommerce-MyAccount-navigation ul li.is-active a:hover,
.wc-block-customer-account .wc-block-customer-account__navigation ul li.is-active a:hover {
	background: var(--fs-deep) !important;
	color: var(--fs-on-primary) !important;
}

/* Content panel next to the nav: matching white card. */
.woocommerce-account .woocommerce-MyAccount-content,
.wc-block-customer-account .wc-block-customer-account__content {
	background: var(--fs-surface);
	border: var(--fs-border-w) solid var(--fs-border);
	border-radius:var(--fs-radius);
	padding: 24px;
	box-shadow: 0 2px 8px rgba(var(--fs-deep-rgb), 0.06);
}

/* === Header dropdowns ==================================================
   Blocksy's submenu panel defaults to a dark background, while this theme
   paints header links deep navy (--theme-palette-color-1) — so the new
   Trading Cards / Collectibles dropdowns rendered navy-on-navy and were
   effectively invisible. Same white-panel / navy-link / gold-hover treatment
   used for the My Account nav above, and the same reason: a Blocksy default
   background meeting a navy palette. */
#header .sub-menu,
.ct-header:not(#offcanvas) .sub-menu,
#header [data-row] ul.sub-menu {
	background-color: var(--fs-surface) !important;
	border: var(--fs-border-w) solid var(--fs-border) !important;
	border-radius:var(--fs-radius);
	box-shadow: 0 8px 24px rgba(var(--fs-deep-rgb), 0.14) !important;
	padding: 6px 0 !important;
	min-width: 15em;
}

#header .sub-menu > li > a,
#header .sub-menu > li > .ct-sub-menu-parent > a,
.ct-header:not(#offcanvas) .sub-menu > li > a,
.ct-header:not(#offcanvas) .sub-menu > li > .ct-sub-menu-parent > a,
#header [data-row] ul.sub-menu > li > a {
	color: var(--fs-link) !important;
	background: transparent !important;
	padding: 9px 18px !important;
	font-size: 15px;
	line-height: 1.35;
	white-space: nowrap;
}

#header .sub-menu > li > a:hover,
#header .sub-menu > li > a:focus,
#header .sub-menu > li > .ct-sub-menu-parent > a:hover,
#header .sub-menu > li.current-menu-item > a,
.ct-header:not(#offcanvas) .sub-menu > li > a:hover {
	color: var(--fs-accent) !important;
	background: var(--fs-bg) !important;
}

/* Hairlines between entries, but not above the first one. */
#header .sub-menu > li + li,
.ct-header:not(#offcanvas) .sub-menu > li + li {
	border-top: var(--fs-border-w) solid var(--fs-border-soft);
}

/* Pull the first-level dropdown up under the nav row.
   Blocksy positions a panel at `top: 100%` of its menu item, and the item is as
   tall as the whole header row — so the panel lands below the row's padding and
   the gold strip, reading as detached from the link that opened it. Blocksy's
   own knob for this is --dropdown-top-offset; this is the negative of it.
   ONE NUMBER TO TUNE: make it more negative to tuck the panel higher.
   Desktop only — the mobile menu is an accordion, where an offset makes no
   sense, and it renders outside #header anyway. */
@media (min-width: 1000px) {
	#header ul[id^="menu-"] > li > ul.sub-menu {
		margin-top: -18px !important;
	}
}

/* ======================================================================
   MOBILE
   ======================================================================
   Everything above this line was written for desktop and leans on blanket
   `!important` declarations. Blocksy renders two surfaces as near-black
   panels on phones -- the offcanvas menu (`#offcanvas`) and the search modal
   (`#search-modal`, both `rgba(18,21,25,.98)`) -- and paints their contents
   white. A rule that forces a white *background* without forcing a *colour*
   therefore lands white-on-white inside them. That is one bug class, and it
   is fixed at the source (the Forms block now sets both) plus the two
   dark-panel exceptions below.

   Breakpoints match Blocksy's own so we never disagree with it:
     <= 689.98px  Blocksy's "sm" -- collapsed sort control, stacked listing
     <= 999.98px  the offcanvas menu replaces the desktop nav
   ====================================================================== */

/* --- 1. The offcanvas menu is a DARK panel, not a floating white card ---
   `#offcanvas` carries the class `ct-header`, so every `.ct-header .sub-menu`
   rule above used to apply to it: the expanded "Shop" submenu rendered as a
   white slab inside the black drawer. Worse, those rules colour the links
   with `> li > a`, but Blocksy wraps any item that HAS children in
   `<span class="ct-sub-menu-parent">` -- so "Trading Cards" and "Collectibles"
   never matched, kept Blocksy's white link colour, and were invisible on the
   white slab. `:not(#offcanvas)` now keeps the desktop treatment off the
   drawer; the drawer gets a treatment built for a dark panel instead. */
#offcanvas .sub-menu {
	background: transparent !important;
	background-color: transparent !important;
	border: 0 !important;
	border-radius: 0 !important;
	box-shadow: none !important;
	min-width: 0 !important;
	padding: 0 0 4px !important;
	margin: 0 !important;
}
#offcanvas .sub-menu > li + li {
	border-top: 0 !important;
}
/* Nested levels step in, with a gold rule carrying the eye down the branch. */
#offcanvas .sub-menu > li {
	padding-inline-start: 14px;
	border-inline-start: 2px solid rgba(var(--fs-accent-rgb), 0.35);
	margin-inline-start: 2px;
}
/* Match BOTH shapes: a plain leaf `li > a`, and a parent's `li > span > a`. */
#offcanvas .sub-menu > li > a,
#offcanvas .sub-menu > li > .ct-sub-menu-parent > a,
#offcanvas .sub-menu a.ct-menu-link {
	color: rgba(255, 255, 255, 0.82) !important;
	background: transparent !important;
	font-size: 15px !important;
	font-weight: 500 !important;
	line-height: 1.35 !important;
	/* The desktop panel sizes itself to its content, so it can afford
	   `nowrap`. A 351px drawer cannot -- "Magic: The Gathering" has to wrap. */
	white-space: normal !important;
	padding: 11px 0 !important;
}
#offcanvas .sub-menu a.ct-menu-link:hover,
#offcanvas .sub-menu a.ct-menu-link:focus,
#offcanvas .sub-menu > li.current-menu-item > a,
#offcanvas .sub-menu > li.current-menu-item > .ct-sub-menu-parent > a {
	color: var(--fs-accent) !important;
}
/* Top level stays white and heavier, so the hierarchy reads at a glance. */
#offcanvas .mobile-menu > ul > li > a.ct-menu-link,
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > a.ct-menu-link {
	color: var(--fs-on-primary) !important;
	font-weight: 700 !important;
}
#offcanvas .mobile-menu > ul > li > .ct-sub-menu-parent > a.ct-menu-link:hover,
#offcanvas .mobile-menu > ul > li.current-menu-item > a.ct-menu-link {
	color: var(--fs-accent) !important;
}
/* Hairline between top-level entries only -- the drawer needs the rhythm, the
   nested lists do not (they already have the gold rule). */
#offcanvas .mobile-menu > ul > li + li {
	border-top: 1px solid rgba(255, 255, 255, 0.09);
}

/* --- 2. Search modal: white text needs a dark field, not a white one ---
   `input[type="search"]` was being forced to `background:#fff` by the Forms
   block while Blocksy painted the text white -- you could not see what you
   typed. Give it a translucent field on the dark panel. */
#search-modal input[type="search"],
#search-modal input[type="text"],
#offcanvas input[type="search"],
#offcanvas input[type="text"] {
	background: rgba(255, 255, 255, 0.07) !important;
	color: var(--fs-on-primary) !important;
	border: 1px solid rgba(255, 255, 255, 0.22) !important;
	-webkit-text-fill-color: var(--fs-surface);
}
#search-modal input::placeholder,
#offcanvas input::placeholder {
	color: rgba(255, 255, 255, 0.55) !important;
	opacity: 1;
}
#search-modal input[type="search"]:focus,
#offcanvas input[type="search"]:focus {
	border-color: var(--fs-accent) !important;
	background: rgba(255, 255, 255, 0.12) !important;
}

/* --- 3. Touch targets ---------------------------------------------------
   Measured in the drawer before this: close button 32px, the submenu
   expand/collapse chevrons 25px. Those chevrons are the primary navigation
   affordance on a phone and were the smallest thing in it. 44px is the
   Apple HIG / WCAG 2.5.5 floor. */
@media (max-width: 999.98px) {
	#offcanvas .ct-toggle-dropdown-mobile {
		min-width: 44px !important;
		min-height: 44px !important;
		display: inline-flex !important;
		align-items: center;
		justify-content: center;
		color: rgba(255, 255, 255, 0.7) !important;
	}
	#offcanvas .ct-toggle-dropdown-mobile:hover,
	#offcanvas .ct-toggle-dropdown-mobile[aria-expanded="true"] {
		color: var(--fs-accent) !important;
	}
	#offcanvas .ct-toggle-close {
		min-width: 44px !important;
		min-height: 44px !important;
	}
	/* The whole row is the target, not just the glyph. */
	#offcanvas .ct-sub-menu-parent {
		display: flex !important;
		align-items: center;
		justify-content: space-between;
		gap: 8px;
	}
	#offcanvas .ct-sub-menu-parent > a {
		flex: 1 1 auto;
	}
}

/* --- 4. iOS zoom-on-focus ----------------------------------------------
   Safari zooms the viewport whenever a focused control's font-size is under
   16px, and then does not zoom back out. The quantity input was 14.4px. */
@media (max-width: 999.98px) {
	input[type="text"], input[type="email"], input[type="tel"],
	input[type="number"], input[type="password"], input[type="search"],
	input[type="url"], textarea, select {
		font-size: 16px !important;
	}
}

/* --- 5. The shop sort control ------------------------------------------
   Under 690px Blocksy collapses the orderby <select> to a 34px square, sets
   `color: rgba(0,0,0,0)` and overlays `.ct-sort-icon` -- the text is meant to
   be invisible. The Forms block above then forced a white background, a
   border and 10px/14px of padding back onto it, which turned a deliberate
   icon overlay into a visible empty white box with an invisible label: the
   second white-on-white. Make it an intentional icon button at a real
   touch size instead. */
@media (max-width: 689.98px) {
	.woo-listing-top .woocommerce-ordering {
		position: relative;
	}
	.woo-listing-top .woocommerce-ordering select.orderby {
		width: 44px !important;
		height: 44px !important;
		padding: 0 !important;
		border: var(--fs-border-w) solid var(--fs-border) !important;
		border-radius:var(--fs-radius) !important;
		background: var(--fs-surface) !important;
		box-shadow: 0 1px 2px rgba(var(--fs-deep-rgb), 0.05);
		/* keep Blocksy's transparent label -- the icon is the label */
		color: rgba(0, 0, 0, 0) !important;
	}
	.woo-listing-top .woocommerce-ordering select.orderby:focus {
		border-color: var(--fs-accent) !important;
	}
	.woo-listing-top .woocommerce-ordering .ct-sort-icon {
		color: var(--fs-link);
	}
}

/* --- 6. Product grid: two up ------------------------------------------
   One 343x500 tile per screen meant 143 singles took 143 screens to scan.
   Two up halves that and still leaves ~165px of card art, which is legible
   for portrait card faces. Tile chrome shrinks to match. */
@media (max-width: 689.98px) {
	.woocommerce ul.products,
	ul.products[class*="columns-"] {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
		gap: 14px !important;
	}
	ul.products li.product {
		padding: 10px !important;
	}
	ul.products li.product .woocommerce-loop-product__title,
	ul.products li.product .ct-product-title {
		font-size: 14px !important;
		line-height: 1.25 !important;
	}
	ul.products li.product .price {
		font-size: 15px !important;
	}
	/* "MAGIC: THE GATHERING, SINGLES, TRADING CARD GAMES" under every tile
	   is three lines of uppercase that repeat down the whole grid and tell a
	   shopper nothing they did not already filter for. */
	ul.products li.product .ct-product-categories,
	ul.products li.product .posted_in {
		display: none !important;
	}
	ul.products li.product .button,
	ul.products li.product .add_to_cart_button {
		width: 100% !important;
		font-size: 13px !important;
		padding: 11px 8px !important;
		min-height: 44px;
		display: flex;
		align-items: center;
		justify-content: center;
		text-align: center;
	}
}

/* --- 7. Single product page -------------------------------------------
   Variation dropdowns are the one place a shopper MUST hit the right row
   (condition / foil / language decide the price), so give them full-width
   rows at a real touch height, and stop the 24px panel padding eating the
   description column. */
@media (max-width: 689.98px) {
	.single-product .variations select {
		min-height: 48px !important;
		width: 100% !important;
	}
	.single-product .variations th,
	.single-product .variations td {
		display: block !important;
		width: 100% !important;
		text-align: start !important;
		padding-inline: 0 !important;
	}
	.single-product .variations th label {
		margin-bottom: 4px;
		font-weight: 600;
	}
	.single-product form.cart .single_add_to_cart_button {
		width: 100% !important;
		min-height: 50px;
	}
	.single-product form.cart .quantity input.qty {
		min-height: 48px !important;
	}
	.woocommerce-tabs .panel {
		padding: 20px 14px !important;
	}
	.single-product div.product .price {
		font-size: 1.4rem;
	}
}

/* --- 8. Page-level breathing room --------------------------------------
   Stop long unbroken strings (SKUs, set codes, card names) from forcing a
   horizontal scroll, and let wide Woo tables scroll inside themselves
   rather than widening the page. */
@media (max-width: 689.98px) {
	h1, h2, h3, .product_title, .woocommerce-loop-product__title {
		overflow-wrap: break-word;
		word-break: break-word;
	}
	table.shop_table, .woocommerce-tabs table {
		display: block;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
	}
}
/* The search box's submit icon was squeezed to 5px wide (flex shrink): keep it a real icon. */
.ct-search-form button[type="submit"] .ct-search-button-content { width: 18px; min-width: 18px; height: 18px; flex-shrink: 0; }
/* Header cart: icon and count only, at every width. The subtotal pushed Contact and
   My Account into a "More" menu on desktop. */
.ct-header [data-id="cart"] .ct-label { display: none; }
/* Desktops under 1400px: a slightly smaller logo and tighter menu links, so the
   whole menu still fits beside the search and cart icons (otherwise Blocksy folds
   Contact and My Account into a "More" menu). */
@media (min-width: 1000px) and (max-width: 1399.98px) {
  .ct-header:not(#offcanvas) .site-logo-container { height: 40px; }
  .ct-header:not(#offcanvas) [data-id="menu"] > ul > li > a,
  .ct-header:not(#offcanvas) [data-id="menu"] > ul > li > .ct-sub-menu-parent > a { padding-left: 9px; padding-right: 9px; }
}

/* ======================================================================
   UI pass -- 2026-11-23, "the shop looks far too WordPress".
   Every rule below was photographed on the live site first. The comment
   names the thing that was wrong, not the thing the rule does.
   ====================================================================== */

/* --- 1. The featured-categories grid was not a stagger, it was <br> -----
   The home page copy puts each tile on its own line, so wpautop leaves a
   <br> between them -- and a <br> is a GRID ITEM. The five-column grid held
   nine children, the cards landed in cells 1,3,5 then 2,4, and the result
   reads as a broken layout rather than as stray markup. Fixed here as well
   as in the page copy, because the next person to edit that page in the
   visual editor will put the <br>s straight back. */
.gd-feature-cats > br,
.gd-cols > br,
.gd-brands > br { display: none; }

/* --- 2. Dropdowns clipped their own text --------------------------------
   Blocksy fixes a select at 40px, the Forms block above adds 10px of padding
   top and bottom, and the inherited line-height is 26.4px: 46.4px of content
   in a 40px box. "Choose an option" lost its descenders on every variable
   product, which is most of the catalogue.
   `.orderby` is excluded on purpose -- under 690px it is deliberately a
   transparent-text icon overlay (section 5 of the mobile block above). */
select:not(.orderby) {
	line-height: 1.2 !important;
	height: auto !important;
	min-height: 44px;
}

/* --- 3. The same three words on every tile ------------------------------
   Blocksy's card meta row printed the product's category list, which is
   "MAGIC: THE GATHERING, SINGLES, TRADING CARD GAMES" on roughly nine tiles
   in ten: the largest block of text on the card, identical across the page,
   and never a reason to click one card over another. The art already says
   which game it is, and the facets already say which type. */
ul.products li.product .entry-meta { display: none; }

/* --- 4. "Home" shouting over the home page's own hero --------------------
   Blocksy prints the page title above the content on every page, so a shop
   whose front page is a storefront hero opens with the word "Home" in 30px
   type above it. The hero is the title on that one page. */
body.home.page .hero-section { display: none; }
