:root {
  --bg: #020305;
  --bg-soft: #07090d;
  --surface: #131820;
  --surface-strong: #191f28;
  --surface-glass: rgba(10, 14, 20, 0.74);
  --line: rgba(128, 145, 170, 0.16);
  --line-strong: rgba(110, 138, 176, 0.3);
  --text: #f1f5fa;
  --muted: #9aa7bc;
  --accent: #4ec7ff;
  --accent-strong: #168de4;
  --success: #2ed86a;
  --warning: #ffb75a;
  --danger: #ff7568;
  --title-font: "Bahnschrift", "Aptos Display", "Segoe UI", sans-serif;
  --body-font: "Aptos", "Segoe UI", "Helvetica Neue", sans-serif;
  --radius-sm: 14px;
  --radius-md: 22px;
  --radius-lg: 28px;
  --shadow: 0 26px 48px rgba(0, 0, 0, 0.3);
  --site-width: min(1200px, calc(100vw - 2rem));
}

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

html {
  scroll-behavior: smooth;
}

body.kfdroid-storefront {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top, rgba(78, 199, 255, 0.08), transparent 22%),
    linear-gradient(180deg, rgba(6, 9, 13, 0.94), rgba(2, 3, 5, 0.98)),
    var(--bg);
  color: var(--text);
  font-family: var(--body-font);
}

.site-shell {
  min-height: 100vh;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(10px) saturate(120%);
  background: linear-gradient(180deg, rgba(9, 13, 19, 0.74), rgba(6, 10, 15, 0.86));
  border-top: 1px solid rgba(162, 176, 196, 0.14);
  border-bottom: 1px solid rgba(63, 91, 126, 0.48);
  box-shadow:
    inset 0 1px 0 rgba(170, 184, 204, 0.08),
    inset 0 -1px 0 rgba(70, 103, 145, 0.24),
    0 10px 28px rgba(0, 0, 0, 0.2);
}

.nav-shell,
.footer-shell,
.section-shell {
  width: var(--site-width);
  margin: 0 auto;
}

.nav-shell {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.brand-mark {
  display: block;
  width: min(280px, 52vw);
  max-width: 100%;
  height: auto;
}

.nav-toggle {
  display: none;
  margin-left: auto;
  padding: 0.8rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 18px;
  background: rgba(13, 17, 24, 0.84);
  color: var(--text);
  font: inherit;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-left: auto;
}

.site-nav a,
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 160ms ease, border-color 160ms ease, background-color 160ms ease;
}

.site-nav a:hover,
.footer-links a:hover {
  color: var(--text);
}

.site-nav__button,
.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.wc-block-components-button,
.added_to_cart {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 3rem;
  padding: 0.82rem 1.25rem;
  border-radius: 18px;
  border: 1px solid var(--line-strong);
  background: rgba(13, 17, 24, 0.84);
  color: var(--text) !important;
  font-family: var(--title-font);
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-decoration: none;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.site-nav__button,
.button-primary,
.woocommerce a.button.button-primary,
.woocommerce button.button.button-primary {
  border-color: rgba(46, 216, 106, 0.52);
  background:
    linear-gradient(180deg, rgba(25, 39, 31, 0.84), rgba(14, 24, 20, 0.98)),
    var(--surface);
}

.button-secondary,
.woocommerce a.button.button-secondary {
  border-color: rgba(78, 199, 255, 0.32);
}

.button:hover,
.site-nav__button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.added_to_cart:hover {
  transform: translateY(-1px);
  color: var(--text) !important;
}

.content-page {
  padding: 2rem 0 3rem;
}

.page-stack {
  display: grid;
  gap: 1.5rem;
}

.hero,
.surface-panel,
.notice-panel,
.store-content-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background:
    linear-gradient(180deg, rgba(28, 34, 43, 0.92), rgba(12, 16, 23, 0.98)),
    var(--surface);
  box-shadow: var(--shadow);
}

.hero::before,
.surface-panel::before,
.notice-panel::before,
.store-content-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(78, 199, 255, 0.08), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), transparent 24%);
  pointer-events: none;
}

.hero,
.surface-panel,
.store-content-panel {
  padding: clamp(1.7rem, 3.6vw, 2.6rem);
}

.store-content-panel > * {
  position: relative;
  z-index: 1;
}

.store-hero {
  text-align: center;
}

.store-hero--compact {
  max-width: 840px;
  margin: 0 auto;
}

.page-eyebrow,
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--accent);
  font-size: 0.82rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.page-eyebrow::before,
.section-eyebrow::before {
  content: "";
  width: 2.25rem;
  height: 1px;
  background: currentColor;
  opacity: 0.6;
}

h1,
h2,
h3,
h4,
h5,
h6,
.woocommerce-products-header__title {
  margin: 0;
  color: var(--text);
  font-family: var(--title-font);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero h1,
.woocommerce-products-header__title {
  margin-top: 0.6rem;
  font-size: clamp(2.4rem, 6vw, 4.6rem);
  line-height: 0.98;
}

.section-intro,
.hero p {
  max-width: 68ch;
  margin: 0.9rem auto 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.68;
}

.chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.35rem;
  padding: 0.35rem 0.92rem;
  border: 1px solid rgba(78, 199, 255, 0.18);
  border-radius: 999px;
  background: rgba(10, 16, 24, 0.78);
  color: var(--muted);
  font-size: 0.84rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.store-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
}

.store-product-card {
  display: grid;
  gap: 1rem;
  align-content: start;
}

.store-product-card__media {
  overflow: hidden;
  border: 1px solid rgba(128, 145, 170, 0.16);
  border-radius: 22px;
  background: rgba(8, 12, 18, 0.72);
}

.store-product-card__media img {
  display: block;
  width: 100%;
  height: auto;
}

.store-product-card__title a {
  color: inherit;
  text-decoration: none;
}

.store-product-card__price,
.woocommerce div.product p.price,
.woocommerce div.product span.price {
  color: #ffd6a6;
  font-family: var(--title-font);
  font-size: 1.65rem;
  letter-spacing: 0.04em;
}

.store-product-card__summary,
.woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-product-details__short-description p {
  color: var(--muted);
  line-height: 1.72;
}

.store-download-card {
  display: grid;
  gap: 0.65rem;
  padding: 1rem 1.1rem;
  border: 1px solid rgba(128, 145, 170, 0.16);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.72);
}

.store-download-card__eyebrow {
  color: var(--warning);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.store-download-card__list,
.woocommerce ul.woocommerce-error,
.woocommerce ul.woocommerce-info,
.woocommerce ul.woocommerce-message {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
}

.button-row,
.store-product-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}

.store-empty-state {
  text-align: center;
}

.woocommerce-breadcrumb,
.related.products,
.upsells.products,
.woocommerce-product-rating,
.woocommerce-review-link,
.woocommerce-result-count,
.woocommerce-ordering,
#reviews,
.woocommerce-tabs .reviews_tab,
#secondary {
  display: none !important;
}

.woocommerce .quantity .qty,
.woocommerce-cart table.cart td.actions .coupon .input-text,
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select,
.select2-container--default .select2-selection--single {
  min-height: 3rem;
  border: 1px solid rgba(128, 145, 170, 0.22);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.72);
  color: var(--text);
}

.woocommerce form .form-row label,
.woocommerce-checkout #payment ul.payment_methods li label,
.woocommerce table.shop_table th,
.woocommerce table.shop_table td,
.woocommerce-account .woocommerce-MyAccount-navigation-link a {
  color: var(--text);
}

.woocommerce form .form-row .optional,
.woocommerce .woocommerce-form__label-for-checkbox,
.woocommerce-account .woocommerce-MyAccount-navigation-link a,
.woocommerce-checkout #payment div.payment_box {
  color: var(--muted);
}

.woocommerce-notices-wrapper .woocommerce-message,
.woocommerce-notices-wrapper .woocommerce-info,
.woocommerce-notices-wrapper .woocommerce-error,
.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border: 1px solid rgba(78, 199, 255, 0.18);
  border-radius: 18px;
  background: rgba(9, 14, 20, 0.84);
  color: var(--text);
}

.woocommerce div.product {
  display: grid;
  gap: 1.6rem;
}

.woocommerce div.product .product_title {
  font-size: clamp(2rem, 4vw, 3rem);
}

.woocommerce div.product div.images,
.woocommerce div.product div.summary {
  width: 100%;
  float: none;
  margin: 0;
}

.woocommerce div.product div.images {
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 18, 0.72);
}

.woocommerce div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  align-items: center;
}

.woocommerce .cart,
.woocommerce-checkout #customer_details,
.woocommerce-checkout #order_review,
.woocommerce-cart .cart-collaterals .cart_totals,
.woocommerce-account .woocommerce-MyAccount-navigation,
.woocommerce-account .woocommerce-MyAccount-content,
.woocommerce-order,
.woocommerce-order-downloads,
.woocommerce-order-details {
  padding: 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: rgba(8, 12, 18, 0.72);
}

.woocommerce-checkout .col2-set {
  display: grid;
  gap: 1.25rem;
}

.woocommerce-checkout #order_review_heading {
  margin-top: 1.6rem;
}

.woocommerce table.shop_table {
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 12, 18, 0.72);
}

.woocommerce table.shop_table th {
  color: var(--muted);
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.woocommerce table.shop_table td,
.woocommerce table.shop_table th {
  border-color: rgba(128, 145, 170, 0.16);
}

.woocommerce-checkout #payment,
.woocommerce-checkout #payment div.payment_box {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(8, 12, 18, 0.72);
}

.woocommerce-checkout #payment ul.payment_methods {
  border-bottom-color: rgba(128, 145, 170, 0.16);
}

.woocommerce-checkout #payment div.payment_box::before {
  border-bottom-color: rgba(8, 12, 18, 0.72);
}

.woocommerce-MyAccount-navigation ul {
  display: grid;
  gap: 0.5rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.woocommerce-MyAccount-navigation-link a {
  display: inline-flex;
  align-items: center;
  min-height: 2.8rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(8, 12, 18, 0.72);
  text-decoration: none;
}

.woocommerce-MyAccount-navigation-link.is-active a,
.woocommerce-MyAccount-navigation-link a:hover {
  border-color: rgba(78, 199, 255, 0.28);
  color: var(--text);
}

.select2-dropdown,
.select2-container--default .select2-results__option[aria-selected="true"] {
  background: #10161d;
  color: var(--text);
}

.select2-container--default .select2-selection--single .select2-selection__rendered,
.select2-container--default .select2-selection--single .select2-selection__arrow b {
  color: var(--text);
}

.site-footer {
  border-top: 1px solid rgba(122, 140, 164, 0.16);
  background: rgba(4, 7, 12, 0.72);
}

.footer-panel {
  display: grid;
  justify-items: center;
  gap: 1rem;
  padding: 1.2rem 0 1.6rem;
  text-align: center;
}

.footer-copy p {
  margin: 0;
}

.footer-copy .small {
  color: var(--muted);
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem 1.1rem;
}

.footer-links a {
  color: var(--muted);
}

@media (max-width: 960px) {
  .nav-toggle {
    display: inline-flex;
  }

  .site-nav {
    position: absolute;
    top: calc(100% + 0.8rem);
    right: 1rem;
    left: 1rem;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: rgba(6, 10, 15, 0.96);
    box-shadow: var(--shadow);
  }

  .site-nav.is-open {
    display: flex;
  }

  .site-nav__button,
  .button,
  .woocommerce a.button,
  .woocommerce button.button,
  .woocommerce input.button,
  .wc-block-components-button,
  .added_to_cart {
    width: 100%;
  }

  .store-product-grid {
    grid-template-columns: 1fr;
  }
}
