/*
Theme Name: Natural 20 Retrowave
Theme URI: https://www.natural20armory.com
Author: Natural 20 Armory
Description: A lightweight retro-futurist WordPress block theme for Natural 20 Armory's 3D printing, engineering, reloading bench, chamber flag, ammo holder, and surplus storefront.
Version: 1.0.7
Requires at least: 6.3
Tested up to: 6.6
Requires PHP: 7.4
License: GPL-2.0-or-later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: natural20-retrowave
Tags: full-site-editing, block-patterns, e-commerce, custom-colors, custom-logo, grid-layout
*/

:root {
  --n20-bg: #05020a;
  --n20-bg-2: #0b0614;
  --n20-panel: rgba(11, 6, 20, 0.82);
  --n20-panel-solid: #10081d;
  --n20-cyan: #21f7ff;
  --n20-cyan-soft: rgba(33, 247, 255, 0.22);
  --n20-magenta: #ff3df2;
  --n20-magenta-soft: rgba(255, 61, 242, 0.22);
  --n20-purple: #9b5cff;
  --n20-purple-soft: rgba(155, 92, 255, 0.22);
  --n20-white: #f7fbff;
  --n20-muted: #b9c3d6;
  --n20-border: rgba(33, 247, 255, 0.45);
  --n20-max: 1180px;
  --n20-radius: 18px;
  --n20-shadow-cyan: 0 0 18px rgba(33, 247, 255, 0.58), 0 0 42px rgba(33, 247, 255, 0.22);
  --n20-shadow-magenta: 0 0 18px rgba(255, 61, 242, 0.58), 0 0 42px rgba(255, 61, 242, 0.22);
  --n20-font-display: "Trebuchet MS", "Arial Black", system-ui, sans-serif;
  --n20-font-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  background:
    radial-gradient(circle at top left, rgba(255, 61, 242, 0.16), transparent 34rem),
    radial-gradient(circle at 82% 12%, rgba(33, 247, 255, 0.18), transparent 28rem),
    linear-gradient(180deg, #030107 0%, var(--n20-bg) 46%, #090315 100%);
  color: var(--n20-white);
  font-family: var(--n20-font-body);
  line-height: 1.6;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(33, 247, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 61, 242, 0.05) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, transparent 0%, rgba(0,0,0,0.25) 35%, rgba(0,0,0,0.9) 100%);
}

body::after {
  content: "";
  position: fixed;
  left: -10vw;
  right: -10vw;
  bottom: -13rem;
  height: 28rem;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 61, 242, 0.38) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 247, 255, 0.32) 1px, transparent 1px);
  background-size: 56px 38px;
  transform: perspective(420px) rotateX(58deg);
  transform-origin: top center;
  opacity: 0.45;
  filter: drop-shadow(0 0 9px rgba(255, 61, 242, 0.6));
}

a {
  color: var(--n20-cyan);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.2em;
}

a:hover,
a:focus-visible {
  color: var(--n20-magenta);
}

img {
  max-width: 100%;
  height: auto;
}

.wp-site-blocks {
  min-height: 100vh;
}

.n20-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(5, 2, 10, 0.86);
  border-bottom: 1px solid rgba(33, 247, 255, 0.22);
  backdrop-filter: blur(14px);
  box-shadow: 0 0 28px rgba(33, 247, 255, 0.08);
}

.n20-header-inner {
  max-width: var(--n20-max);
  margin: 0 auto;
  padding: 0.85rem 1.2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
}

.n20-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: max-content;
}

.n20-brand-mark {
  width: 44px;
  height: 44px;
  border: 2px solid var(--n20-cyan);
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: var(--n20-magenta);
  font-family: var(--n20-font-display);
  font-weight: 900;
  letter-spacing: -0.04em;
  box-shadow: var(--n20-shadow-cyan);
}

.wp-block-site-title,
.wp-block-site-title a {
  color: var(--n20-white);
  font-family: var(--n20-font-display);
  font-size: clamp(1.1rem, 2vw, 1.55rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  text-shadow: 0 0 14px rgba(33, 247, 255, 0.75);
}

.wp-block-navigation a,
.n20-nav a {
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.n20-main {
  max-width: var(--n20-max);
  margin: 0 auto;
  padding: 2rem 1.2rem 4rem;
}

.n20-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(33, 247, 255, 0.52);
  border-radius: clamp(18px, 3vw, 32px);
  padding: clamp(2rem, 6vw, 5rem);
  background:
    radial-gradient(circle at 18% 10%, rgba(33, 247, 255, 0.24), transparent 24rem),
    radial-gradient(circle at 78% 18%, rgba(255, 61, 242, 0.27), transparent 22rem),
    linear-gradient(135deg, rgba(8, 4, 18, 0.94), rgba(21, 8, 36, 0.88));
  box-shadow: var(--n20-shadow-cyan), inset 0 0 36px rgba(255, 61, 242, 0.09);
}

.n20-hero::before {
  content: "";
  position: absolute;
  inset: 1rem;
  z-index: 0;
  border: 1px solid rgba(255, 61, 242, 0.34);
  border-radius: calc(clamp(18px, 3vw, 32px) - 0.25rem);
  pointer-events: none;
}

.n20-hero::after {
  content: "";
  position: absolute;
  right: -10%;
  bottom: -4rem;
  z-index: 0;
  width: 55%;
  height: 45%;
  background:
    linear-gradient(rgba(255, 61, 242, 0.44) 1px, transparent 1px),
    linear-gradient(90deg, rgba(33, 247, 255, 0.35) 1px, transparent 1px);
  background-size: 48px 26px;
  transform: perspective(420px) rotateX(58deg) rotateZ(-3deg);
  opacity: 0.52;
  filter: blur(0.1px) drop-shadow(0 0 10px rgba(255, 61, 242, 0.55));
  pointer-events: none;
}

.n20-hero > * {
  position: relative;
  z-index: 1;
}

.n20-kicker {
  color: var(--n20-cyan);
  font-family: var(--n20-font-display);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(33, 247, 255, 0.65);
  margin: 0 0 0.85rem;
}

.n20-hero h1,
.n20-section h1,
.n20-section h2,
.n20-page-title {
  font-family: var(--n20-font-display);
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.02;
  text-transform: uppercase;
  color: var(--n20-white);
  text-shadow: 0 0 18px rgba(33, 247, 255, 0.72), 0 0 32px rgba(255, 61, 242, 0.38);
}

.n20-hero h1 {
  max-width: 970px;
  font-size: clamp(2.3rem, 7vw, 5.8rem);
  margin: 0;
}

.n20-hero p {
  max-width: 760px;
  color: var(--n20-muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.n20-buttons,
.wp-block-buttons.n20-buttons {
  position: relative;
  z-index: 2;
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 1.4rem;
}

.wp-block-button__link,
.n20-button,
button.single_add_to_cart_button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button {
  border: 1px solid var(--n20-cyan) !important;
  border-radius: 999px !important;
  background: linear-gradient(90deg, rgba(33, 247, 255, 0.13), rgba(255, 61, 242, 0.13)) !important;
  color: var(--n20-white) !important;
  font-family: var(--n20-font-display);
  font-size: 0.88rem !important;
  font-weight: 900 !important;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(33, 247, 255, 0.24), inset 0 0 18px rgba(255, 61, 242, 0.09);
  padding: 0.82rem 1.15rem !important;
}

.wp-block-button__link:hover,
.n20-button:hover,
button.single_add_to_cart_button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
  border-color: var(--n20-magenta) !important;
  color: var(--n20-white) !important;
  box-shadow: var(--n20-shadow-magenta);
  transform: translateY(-1px);
}

.n20-button-secondary .wp-block-button__link,
.n20-button-secondary {
  border-color: var(--n20-magenta) !important;
}

.n20-section {
  margin-top: clamp(2.2rem, 5vw, 4.2rem);
}

.n20-section h2 {
  font-size: clamp(1.8rem, 4vw, 3.2rem);
  margin-bottom: 0.7rem;
}

.n20-section-intro {
  max-width: 760px;
  color: var(--n20-muted);
  margin-bottom: 1.4rem;
}

.n20-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.1rem;
}

.n20-card-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.n20-card,
.n20-panel,
.woocommerce ul.products li.product,
.wp-block-post-template li {
  position: relative;
  border: 1px solid rgba(33, 247, 255, 0.34);
  border-radius: var(--n20-radius);
  background:
    linear-gradient(145deg, rgba(11, 6, 20, 0.91), rgba(16, 8, 29, 0.78)),
    radial-gradient(circle at top left, rgba(33, 247, 255, 0.13), transparent 16rem);
  box-shadow: 0 0 18px rgba(33, 247, 255, 0.08), inset 0 0 22px rgba(255, 61, 242, 0.04);
  padding: clamp(1.15rem, 3vw, 1.55rem);
}

.n20-card::before,
.n20-panel::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: var(--n20-radius);
  pointer-events: none;
  background: linear-gradient(135deg, rgba(33, 247, 255, 0.42), transparent 35%, rgba(255, 61, 242, 0.38));
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  padding: 1px;
}

.n20-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 24px rgba(33, 247, 255, 0.18), 0 0 28px rgba(255, 61, 242, 0.12);
}

.n20-card h3 {
  margin-top: 0;
  color: var(--n20-white);
  font-family: var(--n20-font-display);
  font-size: 1.25rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.n20-card p,
.n20-panel p,
.n20-card li,
.n20-panel li {
  color: var(--n20-muted);
}

.n20-tagline-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1rem;
}

.n20-pill {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(33, 247, 255, 0.38);
  border-radius: 999px;
  padding: 0.35rem 0.7rem;
  color: var(--n20-cyan);
  background: rgba(33, 247, 255, 0.06);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.n20-split {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 1.25rem;
  align-items: center;
}

.n20-media-box {
  border: 1px solid rgba(255, 61, 242, 0.48);
  border-radius: var(--n20-radius);
  background:
    radial-gradient(circle at center, rgba(255, 61, 242, 0.18), transparent 18rem),
    linear-gradient(135deg, rgba(10, 5, 22, 0.92), rgba(5, 2, 10, 0.94));
  min-height: 260px;
  padding: 1.2rem;
  display: grid;
  place-items: center;
  text-align: center;
  box-shadow: var(--n20-shadow-magenta);
}

.n20-media-box strong {
  font-family: var(--n20-font-display);
  font-size: clamp(2rem, 5vw, 4rem);
  color: var(--n20-cyan);
  text-shadow: var(--n20-shadow-cyan);
}

.n20-spec-list {
  list-style: none;
  padding-left: 0;
}

.n20-spec-list li {
  border-top: 1px solid rgba(33, 247, 255, 0.16);
  padding: 0.65rem 0;
}

.n20-spec-list li::before {
  content: "▸";
  color: var(--n20-magenta);
  margin-right: 0.5rem;
}

.n20-callout {
  border: 1px solid rgba(255, 61, 242, 0.42);
  border-radius: var(--n20-radius);
  background: linear-gradient(135deg, rgba(255, 61, 242, 0.12), rgba(33, 247, 255, 0.08));
  padding: clamp(1.1rem, 3vw, 1.65rem);
}

.n20-warning-lite {
  border-left: 4px solid var(--n20-magenta);
  background: rgba(255, 61, 242, 0.08);
  padding: 1rem;
  color: var(--n20-muted);
}

.n20-site-footer {
  border-top: 1px solid rgba(255, 61, 242, 0.27);
  background: rgba(5, 2, 10, 0.9);
  margin-top: 3rem;
}

.n20-footer-inner {
  max-width: var(--n20-max);
  margin: 0 auto;
  padding: 2rem 1.2rem;
  display: grid;
  grid-template-columns: 1.3fr 0.7fr;
  gap: 1rem;
}

.n20-footer-small {
  color: var(--n20-muted);
  font-size: 0.9rem;
}

/* WooCommerce cleanup */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering {
  color: var(--n20-muted);
}

.woocommerce ul.products li.product .woocommerce-loop-product__title,
.woocommerce div.product .product_title {
  color: var(--n20-white);
  font-family: var(--n20-font-display);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.woocommerce ul.products li.product .price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: var(--n20-cyan);
  font-weight: 800;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li,
.woocommerce div.product .woocommerce-tabs .panel,
.woocommerce-cart table.cart,
.woocommerce-checkout .col2-set,
.woocommerce form.checkout {
  background: var(--n20-panel);
  color: var(--n20-white);
  border-color: rgba(33, 247, 255, 0.24);
}

input,
textarea,
select,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea {
  background: #10081d;
  color: var(--n20-white);
  border: 1px solid rgba(33, 247, 255, 0.32);
  border-radius: 10px;
  padding: 0.75rem;
}

input:focus,
textarea:focus,
select:focus {
  outline: 2px solid rgba(255, 61, 242, 0.48);
  outline-offset: 2px;
}

@media (max-width: 900px) {
  .n20-card-grid,
  .n20-card-grid.two,
  .n20-split,
  .n20-footer-inner {
    grid-template-columns: 1fr;
  }

  .n20-header-inner {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .n20-main {
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .n20-hero {
    padding: 1.5rem;
  }

  .n20-card,
  .n20-panel {
    padding: 1rem;
  }
}


.n20-brand .wp-block-site-logo,
.n20-site-logo {
  margin: 0;
  line-height: 0;
}

.n20-brand .custom-logo-link,
.n20-site-logo .custom-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.n20-brand .custom-logo,
.n20-site-logo .custom-logo {
  width: min(360px, 62vw);
  height: auto;
  max-height: 78px;
  object-fit: contain;
  filter: drop-shadow(0 0 18px rgba(33, 247, 255, 0.28)) drop-shadow(0 0 16px rgba(255, 61, 242, 0.22));
}

.n20-footer-logo .custom-logo {
  width: min(280px, 52vw);
  max-height: 64px;
}

.n20-footer-branding {
  align-items: flex-start;
}

.n20-footer-links h4 {
  margin: 0 0 0.5rem;
  font-family: var(--n20-font-display);
  text-transform: uppercase;
  letter-spacing: 0.07em;
}

@media (max-width: 900px) {
  .n20-header-inner {
    align-items: flex-start;
  }

  .n20-brand .custom-logo,
  .n20-site-logo .custom-logo {
    width: min(300px, 72vw);
    max-height: 66px;
  }

  .n20-footer-inner,
  .n20-split,
  .n20-card-grid,
  .n20-card-grid.two {
    grid-template-columns: 1fr;
  }
}


/* Natural 20 Retrowave v1.0.3 form-field visibility fix
   Makes all fillable fields visibly interactive before click, then shifts to magenta focus. */

:root {
  --n20-field-bg: rgba(8, 4, 18, 0.92);
  --n20-field-bg-focus: rgba(17, 7, 31, 0.98);
  --n20-field-border: rgba(33, 247, 255, 0.78);
  --n20-field-border-hover: rgba(33, 247, 255, 1);
  --n20-field-border-focus: rgba(255, 61, 242, 1);
  --n20-field-glow: 0 0 0 1px rgba(33, 247, 255, 0.28), 0 0 18px rgba(33, 247, 255, 0.16), inset 0 0 18px rgba(33, 247, 255, 0.05);
  --n20-field-glow-focus: 0 0 0 1px rgba(255, 61, 242, 0.42), 0 0 22px rgba(255, 61, 242, 0.34), inset 0 0 18px rgba(255, 61, 242, 0.08);
}

/* Give form blocks themselves a readable backing panel when WordPress or a form plugin places them on dark/glass sections. */
.n20-section form,
.n20-panel form,
.wp-block-post-comments-form,
.wp-block-search,
.wpcf7 form,
.wpforms-form,
.gform_wrapper,
.nf-form-cont,
.frm_forms,
.woocommerce form,
.woocommerce-checkout form.checkout,
.woocommerce-account form,
.woocommerce-cart form {
  background: linear-gradient(145deg, rgba(7, 3, 15, 0.74), rgba(16, 8, 29, 0.64));
  border: 1px solid rgba(33, 247, 255, 0.18);
  border-radius: 16px;
  padding: clamp(1rem, 2.5vw, 1.35rem);
}

/* Broad coverage: native WP fields, WooCommerce, search, comments, and common form plugins. */
input[type="text"],
input[type="email"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="password"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
input[type="month"],
input[type="time"],
input[type="week"],
textarea,
select,
.wp-block-search__input,
.wp-block-post-comments-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wp-block-post-comments-form textarea,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.woocommerce input.input-text,
.woocommerce textarea.input-text,
.wpcf7 input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wpcf7 textarea,
.wpcf7 select,
.wpforms-form input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.wpforms-form textarea,
.wpforms-form select,
.gform_wrapper input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.gform_wrapper textarea,
.gform_wrapper select,
.nf-form-cont input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.nf-form-cont textarea,
.nf-form-cont select,
.frm_forms input:not([type="submit"]):not([type="button"]):not([type="checkbox"]):not([type="radio"]),
.frm_forms textarea,
.frm_forms select {
  box-sizing: border-box;
  width: 100%;
  min-height: 46px;
  background: var(--n20-field-bg) !important;
  color: var(--n20-white) !important;
  border: 1.5px solid var(--n20-field-border) !important;
  border-radius: 12px !important;
  box-shadow: var(--n20-field-glow) !important;
  caret-color: var(--n20-magenta);
  padding: 0.78rem 0.9rem !important;
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease, transform 160ms ease;
}

textarea,
.wpcf7 textarea,
.wpforms-form textarea,
.gform_wrapper textarea,
.nf-form-cont textarea,
.frm_forms textarea,
.woocommerce form .form-row textarea {
  min-height: 150px;
  resize: vertical;
}

select,
.woocommerce form .form-row select,
.wpcf7 select,
.wpforms-form select,
.gform_wrapper select,
.nf-form-cont select,
.frm_forms select {
  appearance: auto;
  cursor: pointer;
}

input:hover,
textarea:hover,
select:hover,
.wp-block-search__input:hover,
.woocommerce form .form-row input.input-text:hover,
.woocommerce form .form-row textarea:hover,
.woocommerce form .form-row select:hover,
.wpcf7 input:hover,
.wpcf7 textarea:hover,
.wpcf7 select:hover,
.wpforms-form input:hover,
.wpforms-form textarea:hover,
.wpforms-form select:hover,
.gform_wrapper input:hover,
.gform_wrapper textarea:hover,
.gform_wrapper select:hover,
.nf-form-cont input:hover,
.nf-form-cont textarea:hover,
.nf-form-cont select:hover,
.frm_forms input:hover,
.frm_forms textarea:hover,
.frm_forms select:hover {
  border-color: var(--n20-field-border-hover) !important;
  box-shadow: 0 0 0 1px rgba(33, 247, 255, 0.38), 0 0 24px rgba(33, 247, 255, 0.24), inset 0 0 18px rgba(33, 247, 255, 0.07) !important;
}

input:focus,
textarea:focus,
select:focus,
.wp-block-search__input:focus,
.woocommerce form .form-row input.input-text:focus,
.woocommerce form .form-row textarea:focus,
.woocommerce form .form-row select:focus,
.wpcf7 input:focus,
.wpcf7 textarea:focus,
.wpcf7 select:focus,
.wpforms-form input:focus,
.wpforms-form textarea:focus,
.wpforms-form select:focus,
.gform_wrapper input:focus,
.gform_wrapper textarea:focus,
.gform_wrapper select:focus,
.nf-form-cont input:focus,
.nf-form-cont textarea:focus,
.nf-form-cont select:focus,
.frm_forms input:focus,
.frm_forms textarea:focus,
.frm_forms select:focus {
  background: var(--n20-field-bg-focus) !important;
  border-color: var(--n20-field-border-focus) !important;
  box-shadow: var(--n20-field-glow-focus) !important;
  outline: 2px solid rgba(255, 61, 242, 0.38) !important;
  outline-offset: 2px;
}

input::placeholder,
textarea::placeholder,
.wp-block-search__input::placeholder,
.woocommerce input::placeholder,
.woocommerce textarea::placeholder,
.wpcf7 input::placeholder,
.wpcf7 textarea::placeholder,
.wpforms-form input::placeholder,
.wpforms-form textarea::placeholder,
.gform_wrapper input::placeholder,
.gform_wrapper textarea::placeholder,
.nf-form-cont input::placeholder,
.nf-form-cont textarea::placeholder,
.frm_forms input::placeholder,
.frm_forms textarea::placeholder {
  color: rgba(185, 195, 214, 0.72) !important;
  opacity: 1 !important;
}

label,
.wpforms-field-label,
.gfield_label,
.nf-field-label label,
.frm_primary_label,
.woocommerce form .form-row label,
.wpcf7 label {
  color: var(--n20-cyan) !important;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-shadow: 0 0 9px rgba(33, 247, 255, 0.32);
}

/* Preserve checkbox/radio usability without turning them into oversized text fields. */
input[type="checkbox"],
input[type="radio"] {
  accent-color: var(--n20-magenta);
  width: auto;
  min-height: auto;
  box-shadow: none !important;
}

/* Chrome autofill otherwise paints light boxes that break the theme. */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
textarea:-webkit-autofill,
textarea:-webkit-autofill:hover,
textarea:-webkit-autofill:focus,
select:-webkit-autofill,
select:-webkit-autofill:hover,
select:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--n20-white) !important;
  -webkit-box-shadow: 0 0 0 1000px #10081d inset, var(--n20-field-glow-focus) !important;
  caret-color: var(--n20-magenta);
  border-color: var(--n20-magenta) !important;
}



/* Natural 20 Retrowave v1.0.4 desktop ergonomics pass */
@media (min-width: 1024px) {
  :root {
    --n20-max: 1280px;
  }

  body {
    font-size: 16px;
  }

  .n20-site-header {
    position: sticky;
  }

  .n20-header-inner {
    padding: 0.58rem 1.4rem;
    align-items: center;
    gap: 1rem;
  }

  .n20-brand .custom-logo,
  .n20-site-logo .custom-logo {
    width: min(310px, 32vw);
    max-height: 64px;
  }

  .n20-nav a,
  .wp-block-navigation a {
    font-size: 0.76rem;
    letter-spacing: 0.05em;
  }

  .n20-main {
    padding: 1.35rem 1.4rem 3rem;
  }

  .n20-hero {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.8fr);
    grid-template-rows: auto;
    align-items: center;
    column-gap: clamp(1.4rem, 3vw, 3rem);
    min-height: 0;
    padding: clamp(2rem, 3.8vw, 3.35rem);
  }

  .n20-hero > * {
    grid-column: 1;
  }

  .n20-hero::after {
    right: 1.5%;
    bottom: -2.5rem;
    width: 46%;
    height: 54%;
    background-size: 42px 24px;
    opacity: 0.46;
  }

  .n20-kicker {
    margin-bottom: 0.55rem;
    font-size: 0.82rem;
    letter-spacing: 0.16em;
  }

  .n20-hero h1 {
    max-width: 810px;
    font-size: clamp(2.35rem, 4vw, 4.35rem);
    line-height: 0.98;
    letter-spacing: 0.018em;
  }

  .n20-hero p {
    max-width: 710px;
    font-size: 1.04rem;
    line-height: 1.48;
    margin-top: 0.9rem;
    margin-bottom: 0.85rem;
  }

  .n20-tagline-row {
    max-width: 780px;
    gap: 0.48rem;
    margin-top: 0.8rem;
  }

  .n20-pill {
    padding: 0.27rem 0.58rem;
    font-size: 0.72rem;
    letter-spacing: 0.045em;
  }

  .n20-buttons,
  .wp-block-buttons.n20-buttons {
    gap: 0.65rem;
    margin-top: 1rem;
  }

  .wp-block-button__link,
  .n20-button,
  button.single_add_to_cart_button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button {
    font-size: 0.76rem !important;
    letter-spacing: 0.095em;
    padding: 0.66rem 0.98rem !important;
  }

  .n20-section {
    margin-top: 2.35rem;
  }

  .n20-section h1,
  .n20-section h2,
  .n20-page-title {
    max-width: 920px;
    font-size: clamp(1.65rem, 2.35vw, 2.65rem);
    line-height: 1.04;
    margin-top: 0;
    margin-bottom: 0.55rem;
  }

  .n20-section-intro {
    max-width: 920px;
    font-size: 1rem;
    line-height: 1.55;
    margin-bottom: 1rem;
  }

  .n20-card-grid {
    gap: 0.95rem;
  }

  .n20-card-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .n20-card,
  .n20-panel,
  .woocommerce ul.products li.product,
  .wp-block-post-template li {
    padding: 1.05rem;
  }

  .n20-card h3 {
    font-size: 1.06rem;
    margin-bottom: 0.35rem;
  }

  .n20-card p,
  .n20-panel p,
  .n20-card li,
  .n20-panel li {
    font-size: 0.96rem;
    line-height: 1.5;
  }

  .n20-card p:last-child,
  .n20-panel p:last-child {
    margin-bottom: 0;
  }

  .n20-split {
    grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
    gap: 1.05rem;
  }

  .n20-media-box {
    min-height: 215px;
    padding: 1rem;
  }

  .n20-media-box strong {
    font-size: clamp(1.8rem, 3.2vw, 3.2rem);
  }

  .n20-section > ul.n20-spec-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 1.2rem;
    row-gap: 0;
  }

  .n20-spec-list li {
    padding: 0.48rem 0;
  }

  .n20-callout {
    padding: 1.15rem;
  }

  .n20-warning-lite {
    margin-top: 1rem;
    padding: 0.85rem 1rem;
  }

  .n20-footer-inner {
    padding: 1.35rem 1.4rem;
    grid-template-columns: 1.2fr 0.8fr;
  }

  .n20-footer-small {
    font-size: 0.86rem;
    max-width: 760px;
  }

  .woocommerce ul.products {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
  }

  .woocommerce ul.products.columns-2,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .woocommerce ul.products li.product,
  .woocommerce-page ul.products li.product {
    width: auto !important;
    float: none !important;
    margin: 0 !important;
  }

  .woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 1rem;
    line-height: 1.2;
  }

  .woocommerce ul.products li.product .price {
    font-size: 0.95rem;
  }
}

@media (min-width: 1024px) and (max-width: 1180px) {
  .n20-hero {
    grid-template-columns: minmax(0, 1fr) minmax(250px, 0.55fr);
  }

  .n20-hero h1 {
    font-size: clamp(2.15rem, 3.65vw, 3.55rem);
  }

  .n20-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .woocommerce ul.products,
  .woocommerce ul.products.columns-2,
  .woocommerce ul.products.columns-3,
  .woocommerce ul.products.columns-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1400px) {
  .n20-main {
    padding-top: 1.6rem;
  }

  .n20-hero h1 {
    font-size: 4.15rem;
  }

  .n20-section {
    margin-top: 2.6rem;
  }
}


/* v1.0.5: sales-page/product importer layout helpers */
.n20-sales-page .n20-panel {
  overflow-wrap: anywhere;
}

.n20-sales-page .n20-tagline-row {
  margin-bottom: 1rem;
}

.n20-sales-page .n20-section-intro {
  margin-top: 0.65rem;
}

.n20-sales-page .n20-media-box {
  min-height: 220px;
}

.n20-sales-index-list,
.n20-sales-page-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  list-style: none;
  padding-left: 0;
}

.n20-sales-index-list li,
.n20-sales-page-list li {
  border: 1px solid rgba(33, 247, 255, 0.28);
  border-radius: 14px;
  background: rgba(11, 6, 20, 0.62);
  padding: 0.85rem;
}

.n20-sales-index-list span,
.n20-sales-page-list span {
  color: var(--n20-muted);
  font-size: 0.9rem;
}

@media (min-width: 1024px) {
  .n20-sales-page.n20-split {
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.65fr);
  }

  .n20-sales-page h2 {
    font-size: clamp(1.7rem, 2.3vw, 2.7rem);
  }
}

@media (max-width: 760px) {
  .n20-sales-index-list,
  .n20-sales-page-list {
    grid-template-columns: 1fr;
  }
}


/* v1.0.6: Bugout Browser navigation and information-page helpers */
.n20-bugout-nav-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.35rem;
  padding: 0.55rem 0.85rem;
  border: 1px solid rgba(155, 92, 255, 0.62);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(33, 247, 255, 0.10), rgba(155, 92, 255, 0.16));
  color: var(--n20-white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: 0 0 16px rgba(155, 92, 255, 0.16);
}

.n20-bugout-nav-link:hover,
.n20-bugout-nav-link:focus-visible {
  color: var(--n20-white);
  border-color: var(--n20-cyan);
  box-shadow: var(--n20-shadow-cyan);
}

.n20-bugout-page .n20-bugout-poster {
  display: block;
  width: 100%;
  border: 1px solid rgba(33, 247, 255, 0.42);
  border-radius: var(--n20-radius);
  box-shadow: 0 0 24px rgba(33, 247, 255, 0.14), 0 0 32px rgba(255, 61, 242, 0.10);
}

.n20-bugout-page .n20-step-number {
  display: inline-grid;
  width: 2rem;
  height: 2rem;
  margin-right: 0.55rem;
  place-items: center;
  border: 1px solid var(--n20-cyan);
  border-radius: 50%;
  color: var(--n20-cyan);
  font-weight: 900;
  box-shadow: 0 0 12px rgba(33, 247, 255, 0.25);
}

.n20-bugout-page .n20-compact-list {
  margin: 0;
  padding-left: 1.15rem;
}

.n20-bugout-page .n20-compact-list li + li {
  margin-top: 0.45rem;
}

.n20-bugout-page code {
  padding: 0.12em 0.38em;
  border: 1px solid rgba(33, 247, 255, 0.25);
  border-radius: 6px;
  background: rgba(33, 247, 255, 0.07);
  color: var(--n20-cyan);
}

@media (max-width: 780px) {
  .n20-header-inner {
    align-items: flex-start;
  }

  .n20-bugout-nav-link {
    order: 3;
    width: 100%;
  }
}
