/* ============================================================================
   SM KICKZ — tokens, reset, type, buttons, forms
   Hand-written. No preprocessor, no build step: this is the shipped file.
   ========================================================================== */

:root {
  /* surfaces */
  --smk-bg: #0a0a0b;
  --smk-surface: #121215;
  --smk-surface-2: #1a1a1f;
  --smk-surface-3: #232329;
  --smk-line: rgba(255, 255, 255, 0.11);
  --smk-line-strong: rgba(255, 255, 255, 0.22);

  /* ink */
  --smk-ink: #f3f3f0;
  --smk-ink-dim: #a6a6ae;
  --smk-ink-faint: #6e6e78;

  /* accents */
  --smk-acid: #c6f24e;
  --smk-acid-ink: #0a0a0b;
  --smk-blaze: #ff5a36;
  --smk-ok: #3dd68c;
  --smk-warn: #ffc53d;

  /* type */
  --smk-font-display: 'Archivo Black', 'Archivo', system-ui, sans-serif;
  --smk-font-ui: 'Archivo', 'Inter', system-ui, sans-serif;
  --smk-font-body: 'Inter', system-ui, -apple-system, sans-serif;
  --smk-font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', monospace;

  /* geometry */
  --smk-r-xs: 2px;
  --smk-r-sm: 4px;
  --smk-r-md: 10px;
  --smk-r-lg: 16px;
  --smk-r-pill: 999px;

  /* rhythm — full-bleed shell, gutter only */
  --smk-gut: clamp(16px, 3.2vw, 56px);
  --smk-header-h: 68px;
  --smk-bar-h: 34px;
  --smk-adminbar: 0px;

  --smk-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* ── reset ────────────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body.smk {
  margin: 0;
  background: var(--smk-bg);
  color: var(--smk-ink);
  font-family: var(--smk-font-body);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.smk-locked {
  overflow: hidden;
}

/*
 * All the bare-element defaults below are wrapped in :where() so they carry no
 * specificity. Scoped as `.smk h1` etc. they scored (0,1,1) and quietly beat every
 * single-class component that tried to restyle a heading, paragraph, link or list.
 */
:where(.smk) :where(h1, h2, h3, h4) {
  font-family: var(--smk-font-display);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.04;
  margin: 0;
  text-transform: uppercase;
}

:where(.smk) :where(p) {
  margin: 0 0 1em;
}

:where(.smk) :where(a) {
  color: inherit;
  text-decoration: none;
}

/*
 * :where() again — as a plain `.smk img` this scored (0,1,1) and beat every component
 * that sizes an image. On a replaced element `height: auto` means "use the intrinsic
 * height", not "stretch", so the hero rendered as a 165px band inside a 460px hero on
 * a phone, and the tile, split-card, search-result and cart-line thumbnails were all
 * the wrong height too. It stays a sensible default for content images; it just no
 * longer outranks the components.
 */
:where(.smk) :where(img, video) {
  display: block;
  max-width: 100%;
  height: auto;
}

/*
 * Wrapped in :where() so the reset carries no specificity at all. As a plain
 * `.smk button` it scored (0,1,1) and beat every single-class component — .smk-btn,
 * .smk-acc__top and the variation swatches all lost their background, border and
 * padding to it, which is why the primary CTAs rendered as bare text.
 */
:where(.smk) :where(button, input, select, textarea) {
  font: inherit;
  color: inherit;
}

:where(.smk) :where(button) {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 0;
}

:where(.smk) :where(ul, ol) {
  margin: 0;
  padding: 0;
  list-style: none;
}

.smk :focus-visible {
  outline: 2px solid var(--smk-acid);
  outline-offset: 2px;
}

.smk ::selection {
  background: var(--smk-acid);
  color: var(--smk-acid-ink);
}

.smk *::-webkit-scrollbar {
  height: 6px;
  width: 6px;
}
.smk *::-webkit-scrollbar-thumb {
  background: var(--smk-surface-3);
  border-radius: var(--smk-r-pill);
}

.smk-icon {
  flex-shrink: 0;
}

.smk-flip {
  transform: rotate(180deg);
}
.smk-rot90 {
  transform: rotate(90deg);
}
.smk-rot-90 {
  transform: rotate(-90deg);
}

/* ── a11y helpers ─────────────────────────────────────────────────────────── */
.smk-visually-hidden,
.smk .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.smk-skip {
  position: absolute;
  left: -9999px;
  z-index: 999;
  padding: 10px 16px;
  background: var(--smk-acid);
  color: var(--smk-acid-ink);
  font-weight: 700;
}

.smk-skip:focus {
  left: 12px;
  top: 12px;
}

/*
 * `hidden` must always win. A component that sets `display: flex` (or grid, or block)
 * silently defeats the browser's own `[hidden] { display: none }`, because the class
 * rule is more specific than the UA sheet. That has bitten twice — the card size tray
 * covering the whole card, and the discount code showing before the email was given.
 * There is no case in this theme where an element marked hidden should be painted.
 */
.smk [hidden] {
  display: none !important;
}

/* ── buttons ──────────────────────────────────────────────────────────────── */
.smk-btn,
.smk .button,
.smk button.button,
.smk a.button,
.smk input[type='submit'] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding-inline: 22px;
  border: 0;
  border-radius: var(--smk-r-sm);
  background: var(--smk-ink);
  color: var(--smk-bg);
  font-family: var(--smk-font-ui);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition:
    background 0.18s var(--smk-ease),
    color 0.18s var(--smk-ease),
    border-color 0.18s var(--smk-ease),
    transform 0.18s var(--smk-ease);
}

.smk-btn:active,
.smk .button:active {
  transform: translateY(1px);
}

.smk-btn--acid,
.smk .button.alt,
.smk .checkout-button,
.smk button[name='woocommerce_checkout_place_order'] {
  background: var(--smk-acid);
  color: var(--smk-acid-ink);
}

.smk-btn--acid:hover,
.smk .button.alt:hover,
.smk .checkout-button:hover {
  background: #d7ff6b;
  color: var(--smk-acid-ink);
}

.smk-btn--ghost {
  background: transparent;
  border: 1px solid var(--smk-line-strong);
  color: var(--smk-ink);
}

.smk-btn--ghost:hover {
  border-color: var(--smk-acid);
  color: var(--smk-acid);
  background: transparent;
}

.smk-btn--block {
  width: 100%;
}

.smk-btn--sm {
  height: 38px;
  padding-inline: 16px;
  font-size: 11px;
}

.smk-btn:disabled,
.smk .button:disabled,
.smk .button.disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* ── forms ────────────────────────────────────────────────────────────────── */
.smk-input,
.smk input[type='text'],
.smk input[type='email'],
.smk input[type='tel'],
.smk input[type='number'],
.smk input[type='password'],
.smk input[type='search'],
.smk input[type='url'],
.smk select,
.smk textarea,
.smk .select2-container .select2-selection--single {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  background: var(--smk-surface);
  border: 1px solid var(--smk-line);
  border-radius: var(--smk-r-sm);
  color: var(--smk-ink);
  font-size: 14px;
  transition: border-color 0.18s var(--smk-ease);
}

.smk textarea {
  height: auto;
  min-height: 96px;
  padding: 12px 14px;
  resize: vertical;
}

.smk input::placeholder,
.smk textarea::placeholder {
  color: var(--smk-ink-faint);
}

.smk input:focus,
.smk select:focus,
.smk textarea:focus {
  border-color: var(--smk-acid);
  outline: none;
}

.smk select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, var(--smk-ink-dim) 50%),
    linear-gradient(135deg, var(--smk-ink-dim) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 20px,
    calc(100% - 13px) 20px;
  background-size:
    5px 5px,
    5px 5px;
  background-repeat: no-repeat;
  padding-right: 34px;
}

.smk select option {
  background: var(--smk-surface-2);
  color: var(--smk-ink);
}

/* ── price + badges ───────────────────────────────────────────────────────── */
.smk .smk-price,
.smk .price,
.smk .woocommerce-Price-amount {
  font-family: var(--smk-font-mono);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: -0.01em;
  color: var(--smk-ink);
}

.smk del,
.smk del .woocommerce-Price-amount {
  font-weight: 500;
  font-size: 12px;
  color: var(--smk-ink-faint);
  text-decoration: line-through;
}

.smk ins {
  text-decoration: none;
  background: transparent;
}

.smk-price--off {
  font-family: var(--smk-font-mono);
  font-weight: 700;
  font-size: 12px;
  color: var(--smk-blaze);
}

.smk-badge {
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding-inline: 7px;
  border-radius: var(--smk-r-xs);
  font-family: var(--smk-font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.smk-badge--acid {
  background: var(--smk-acid);
  color: var(--smk-acid-ink);
}
.smk-badge--blaze {
  background: var(--smk-blaze);
  color: #fff;
}
.smk-badge--line {
  border: 1px solid var(--smk-line-strong);
  color: var(--smk-ink-dim);
}

.smk-star {
  color: var(--smk-acid);
}

.smk-eyebrow {
  font-family: var(--smk-font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smk-acid);
}

.smk-label {
  font-family: var(--smk-font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--smk-ink-faint);
  margin-bottom: 12px;
}

/* ── prose ────────────────────────────────────────────────────────────────── */
.smk-prose {
  color: var(--smk-ink-dim);
  font-size: 15px;
  line-height: 1.75;
  max-width: 74ch;
}

.smk-prose h2 {
  color: var(--smk-ink);
  font-size: 22px;
  margin: 32px 0 12px;
}

.smk-prose h3 {
  color: var(--smk-ink);
  font-size: 16px;
  margin: 24px 0 8px;
}

.smk-prose a {
  color: var(--smk-acid);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.smk-prose ul li {
  margin-bottom: 8px;
  padding-left: 18px;
  position: relative;
}

.smk-prose ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  background: var(--smk-acid);
}

.smk-prose img {
  border-radius: var(--smk-r-md);
}

@media (prefers-reduced-motion: reduce) {
  .smk *,
  .smk *::before,
  .smk *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


/* ── select2, as WooCommerce checkout uses it ──────────────────────── */

/*
 * select2 ships a light skin: the chosen value is #444 on our #121215 field, and the
 * dropdown is a white panel with a WordPress-blue highlight.
 */
.smk .select2-container--default .select2-selection--single .select2-selection__rendered {
  color: var(--smk-ink);
  line-height: 44px;
}

.smk .select2-container--default .select2-selection--single .select2-selection__placeholder {
  color: var(--smk-ink-faint);
}

.smk .select2-container--default .select2-selection--single .select2-selection__arrow {
  height: 44px;
}

.select2-dropdown {
  background: var(--smk-surface-2);
  border: 1px solid var(--smk-line-strong);
  border-radius: var(--smk-r-sm);
  overflow: hidden;
}

.select2-container--default .select2-results__option {
  padding: 10px 14px;
  background: transparent;
  color: var(--smk-ink-dim);
  font-size: 14px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected],
.select2-container--default .select2-results__option--selected {
  background: var(--smk-acid);
  color: var(--smk-acid-ink);
}

.select2-container--default .select2-search--dropdown .select2-search__field {
  background: var(--smk-surface);
  border: 1px solid var(--smk-line);
  border-radius: var(--smk-r-sm);
  color: var(--smk-ink);
  padding: 8px 10px;
}
