/*
Theme Name: Feintworks
Theme URI: https://feintworks.com/
Author: Feintworks
Description: A motorsport electronics block theme for Feintworks with WooCommerce support.
Version: 0.3.0
Requires at least: 6.6
Requires PHP: 8.1
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: feintworks
*/

:root {
  --fw-black: #0a0a0a;
  --fw-ink: #101315;
  --fw-gunmetal: #1b1f23;
  --fw-graphite: #23272b;
  --fw-rail: rgba(255, 255, 255, 0.14);
  --fw-rail-strong: rgba(1, 172, 190, 0.42);
  --fw-teal: #01ACBE;
  --fw-teal-deep: #018a99;
  --fw-white: #ffffff;
  --fw-mist: #dce9ea;
  --fw-muted: #9ca8aa;
  --fw-amber: #f2c14e;
  --fw-redline: #f0544f;
  --fw-panel: linear-gradient(145deg, rgba(35, 39, 43, 0.94), rgba(13, 15, 16, 0.98));
  --fw-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--fw-black);
}

body {
  min-width: 320px;
  max-width: 100%;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    radial-gradient(circle at 12% 8%, rgba(1, 172, 190, 0.16), transparent 28rem),
    radial-gradient(circle at 84% 18%, rgba(242, 193, 78, 0.08), transparent 24rem),
    var(--fw-black);
  background-size: 44px 44px, 44px 44px, auto, auto, auto;
  color: var(--fw-white);
  font-family: "Inter", system-ui, sans-serif;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-underline-offset: 0.18em;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

a:hover {
  color: var(--fw-teal);
}

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

.alignwide {
  max-width: min(1240px, calc(100vw - 2.5rem));
}

.wp-block-columns,
.wp-block-column {
  min-width: 0;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  letter-spacing: 0;
  text-transform: uppercase;
}

h1 {
  max-width: 12ch;
}

::selection {
  background: var(--fw-teal);
  color: var(--fw-black);
}

.wp-site-blocks {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.wp-site-blocks > main {
  flex: 1;
}

.fw-site-header,
.fw-site-footer {
  position: relative;
  z-index: 10;
  border-color: var(--fw-rail);
  background: var(--fw-black);
}

.fw-site-header {
  position: sticky;
  top: 0;
  border-bottom: 1px solid var(--fw-rail);
  background: #000000;
}

.fw-header-inner,
.fw-footer-inner,
.fw-footer-grid {
  width: min(100%, 1240px);
  margin-inline: auto;
}

.fw-header-inner {
  min-height: 138px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding-block: 1rem;
}

.fw-primary-logo-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: min(460px, 86vw);
  line-height: 0;
}

.fw-primary-logo {
  display: block;
  width: clamp(240px, 34vw, 460px);
  height: auto;
}

.fw-logo {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  gap: 0.08em;
  color: var(--fw-white);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: 2rem;
  font-style: italic;
  font-weight: 700;
  line-height: 0.86;
  text-decoration: none;
  text-transform: uppercase;
  transform: skewX(-10deg);
}

.fw-logo::after {
  content: "";
  position: absolute;
  right: 0.1em;
  bottom: -0.34rem;
  width: 66%;
  height: 4px;
  background: linear-gradient(90deg, rgba(1, 172, 190, 0), var(--fw-teal));
  box-shadow: 0 0 22px rgba(1, 172, 190, 0.7);
}

.fw-logo span:last-child {
  color: var(--fw-teal);
}

.fw-header-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.15rem;
}

.fw-nav {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fw-nav a,
.fw-cart-link,
.fw-link-arrow {
  text-decoration: none;
}

.fw-nav a {
  color: var(--fw-mist);
  padding: 0.35rem 0;
}

.fw-cart-link {
  display: inline-flex;
  align-items: center;
  min-height: 2.55rem;
  padding: 0 1rem;
  border: 1px solid var(--fw-teal);
  border-radius: 2px;
  color: var(--fw-black);
  background: var(--fw-teal);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.fw-cart-link:hover,
.wp-element-button:hover,
.wp-block-button__link:hover,
.wc-block-components-button:hover,
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover,
.woocommerce #respond input#submit:hover {
  color: var(--fw-white);
  background: var(--fw-teal-deep);
  border-color: var(--fw-teal);
  transform: translateY(-1px);
}

.fw-main {
  position: relative;
}

.fw-section {
  padding-block: 5rem;
}

.fw-section-tight {
  padding-block: 3.5rem;
}

.fw-hero {
  position: relative;
  padding-block: 5.5rem 4rem;
}

.fw-hero::before,
.fw-panel::before,
.fw-product-card::before,
.fw-article-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(135deg, var(--fw-teal) 0 2px, transparent 2px calc(100% - 2px), var(--fw-teal) calc(100% - 2px) 100%);
  opacity: 0.58;
}

.fw-hero-grid {
  align-items: center !important;
  gap: 2.5rem !important;
}

.fw-kicker,
.fw-chip,
.fw-stat-label,
.fw-meta,
.fw-footer-label,
.taxonomy-category,
.wp-block-post-date,
.wp-block-post-terms {
  color: var(--fw-teal);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
}

.fw-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 1rem;
}

.fw-kicker::before {
  content: "";
  width: 2.2rem;
  height: 2px;
  background: var(--fw-teal);
  box-shadow: 0 0 12px rgba(1, 172, 190, 0.8);
}

.fw-hero-title {
  margin: 0;
  max-width: 10ch;
  font-size: 4.75rem;
}

.fw-hero-copy {
  max-width: 42rem;
  color: var(--fw-mist);
  font-size: 1.18rem;
  overflow-wrap: break-word;
}

.fw-action-row,
.fw-stat-row,
.fw-split-row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.fw-stat-row {
  margin-top: 2rem;
}

.fw-stat {
  min-width: 9rem;
  padding: 1rem;
  border: 1px solid var(--fw-rail);
  background: rgba(27, 31, 35, 0.74);
}

.fw-stat strong {
  display: block;
  color: var(--fw-white);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: 2.15rem;
  font-style: italic;
  line-height: 1;
}

.fw-visual-panel,
.fw-panel,
.fw-product-card,
.fw-article-card,
.fw-page-surface,
.fw-product-summary,
.woocommerce div.product .summary,
.woocommerce-cart .wp-block-post-content,
.woocommerce-checkout .wp-block-post-content {
  position: relative;
  border: 1px solid var(--fw-rail);
  border-radius: 4px;
  background: var(--fw-panel);
  box-shadow: var(--fw-shadow);
}

.fw-visual-panel {
  padding: 0.85rem;
  overflow: hidden;
  max-width: 100%;
}

.fw-cluster-hero-card {
  position: relative;
  min-height: 25rem;
  display: grid;
  place-items: center;
  perspective: 1100px;
}

.fw-cluster-device {
  --cluster-rx: 10deg;
  --cluster-ry: -14deg;
  --cluster-rz: -3deg;
  --cluster-x: 0%;
  --cluster-y: 0%;
  --cluster-scroll-x: 0px;
  --cluster-scroll-y: 0px;
  position: relative;
  width: min(100%, 37rem);
  aspect-ratio: 1.86;
  padding: 1.8rem;
  border: 1px solid rgba(1, 172, 190, 0.42);
  border-radius: 22px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.08), transparent 18%),
    linear-gradient(135deg, #111518, #050606 62%, #171b1f);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.08),
    0 42px 90px rgba(0, 0, 0, 0.5);
  transform:
    translate3d(
      calc(var(--cluster-x) + var(--cluster-scroll-x)),
      calc(var(--cluster-y) + var(--cluster-scroll-y)),
      0
    )
    rotateX(var(--cluster-rx))
    rotateY(var(--cluster-ry))
    rotateZ(var(--cluster-rz));
  transform-style: preserve-3d;
  transition: transform 520ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.fw-cluster-device::before {
  content: "";
  position: absolute;
  inset: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  clip-path: polygon(7% 0, 93% 0, 100% 20%, 100% 80%, 93% 100%, 7% 100%, 0 80%, 0 20%);
  pointer-events: none;
}

.fw-cluster-device::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: -1rem;
  height: 1.25rem;
  border-radius: 50%;
  background: rgba(1, 172, 190, 0.2);
  filter: blur(22px);
  transform: translateZ(-4rem);
}

.fw-cluster-device--hero {
  --cluster-rx: 13deg;
  --cluster-ry: -18deg;
  --cluster-rz: -4deg;
}

.fw-cluster-screen {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(5rem, 0.9fr) minmax(0, 1fr);
  grid-template-rows: auto 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 1.2rem;
  border: 1px solid rgba(1, 172, 190, 0.5);
  border-radius: 12px;
  background:
    linear-gradient(rgba(1, 172, 190, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(1, 172, 190, 0.08) 1px, transparent 1px),
    #080f10;
  background-size: 24px 24px;
  box-shadow: inset 0 0 42px rgba(1, 172, 190, 0.12);
}

.fw-cluster-row {
  display: grid;
  gap: 0.2rem;
  color: var(--fw-mist);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.fw-cluster-row span,
.fw-cluster-bottom {
  color: var(--fw-teal);
  font-size: 0.88rem;
}

.fw-cluster-row strong {
  color: var(--fw-white);
  font-size: clamp(1.5rem, 3vw, 2.7rem);
  font-style: italic;
  line-height: 1;
}

.fw-cluster-main {
  grid-column: 2;
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  color: var(--fw-white);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: clamp(5rem, 12vw, 9rem);
  font-style: italic;
  font-weight: 700;
  line-height: 0.8;
  text-shadow: 0 0 26px rgba(255, 255, 255, 0.16);
}

.fw-cluster-bottom {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.55rem;
  padding-top: 0.7rem;
  border-top: 1px solid rgba(1, 172, 190, 0.35);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.fw-cluster-bolt {
  position: absolute;
  width: 0.75rem;
  height: 0.75rem;
  border: 1px solid var(--fw-teal);
  border-radius: 50%;
  background: #050606;
  box-shadow: 0 0 12px rgba(1, 172, 190, 0.42);
}

.fw-cluster-bolt--tl {
  top: 0.85rem;
  left: 0.85rem;
}

.fw-cluster-bolt--tr {
  top: 0.85rem;
  right: 0.85rem;
}

.fw-cluster-bolt--bl {
  bottom: 0.85rem;
  left: 0.85rem;
}

.fw-cluster-bolt--br {
  right: 0.85rem;
  bottom: 0.85rem;
}

.fw-cluster-leds {
  position: absolute;
  top: 0.65rem;
  left: 50%;
  display: flex;
  gap: 0.35rem;
  transform: translateX(-50%);
}

.fw-cluster-leds span {
  width: 0.7rem;
  height: 0.18rem;
  background: var(--fw-teal);
  box-shadow: 0 0 12px rgba(1, 172, 190, 0.72);
}

.fw-cluster-story {
  position: relative;
  padding-block: 2rem 5rem;
}

.fw-cluster-story-inner {
  width: min(1240px, calc(100vw - 2.5rem));
  margin-inline: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(22rem, 0.9fr);
  gap: 3rem;
  align-items: start;
}

.fw-cluster-sticky {
  position: sticky;
  top: 8rem;
  min-height: clamp(32rem, 72vh, 44rem);
  display: grid;
  place-items: center;
  perspective: 1200px;
}

.fw-cluster-stage {
  width: min(100%, 42rem);
  min-height: clamp(30rem, 66vh, 42rem);
  display: grid;
  place-items: center;
  overflow: visible;
}

.fw-cluster-copy {
  display: grid;
  gap: 8rem;
  padding-block: 4rem 12rem;
}

.fw-cluster-step {
  min-height: 56vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem;
  border-left: 2px solid rgba(255, 255, 255, 0.14);
  opacity: 0.42;
  transition: opacity 260ms ease, border-color 260ms ease, transform 260ms ease;
}

.fw-cluster-step.is-active {
  border-color: var(--fw-teal);
  opacity: 1;
  transform: translateX(0.35rem);
}

.fw-cluster-step h2 {
  margin: 0;
  max-width: 12ch;
  font-size: clamp(2.6rem, 5vw, 4.4rem);
}

.fw-cluster-step p:not(.fw-kicker) {
  max-width: 34rem;
  color: var(--fw-mist);
  font-size: 1.08rem;
}

.fw-brand-board img {
  display: block;
  width: 100%;
  border-radius: 3px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.fw-panel {
  padding: 1.4rem;
}

.fw-panel p:last-child {
  margin-bottom: 0;
}

.fw-panel-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.fw-panel-title {
  margin-top: 0;
  font-size: 1.65rem;
}

.fw-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.fw-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2.2rem;
  padding: 0 0.78rem;
  border: 1px solid var(--fw-rail-strong);
  border-radius: 2px;
  color: var(--fw-mist);
  background: rgba(1, 172, 190, 0.08);
}

.fw-product-grid,
.fw-article-grid {
  gap: 1.2rem !important;
}

.fw-product-card,
.fw-article-card {
  height: 100%;
  padding: 1rem;
  overflow: hidden;
}

.fw-product-card .wp-block-post-featured-image,
.fw-article-card .wp-block-post-featured-image {
  margin: -1rem -1rem 1rem;
}

.fw-product-card .wp-block-post-featured-image img,
.fw-article-card .wp-block-post-featured-image img {
  width: 100%;
  transition: transform 220ms ease, filter 220ms ease;
}

.fw-product-card:hover .wp-block-post-featured-image img,
.fw-article-card:hover .wp-block-post-featured-image img {
  filter: saturate(1.08) contrast(1.08);
  transform: scale(1.025);
}

.fw-product-card .wp-block-post-title,
.fw-article-card .wp-block-post-title {
  margin-bottom: 0.4rem;
  font-size: 1.5rem;
}

.fw-product-card .wp-block-post-title a,
.fw-article-card .wp-block-post-title a {
  text-decoration: none;
}

.fw-product-card .wp-block-post-excerpt,
.fw-article-card .wp-block-post-excerpt {
  color: var(--fw-muted);
  font-size: 0.94rem;
}

.fw-link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--fw-teal);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.fw-link-arrow::after {
  content: ">";
  transition: transform 180ms ease;
}

.fw-link-arrow:hover::after {
  transform: translateX(0.25rem);
}

.wp-block-button__link,
.wp-element-button,
.wc-block-components-button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.single_add_to_cart_button {
  min-height: 2.9rem;
  padding: 0.82rem 1.1rem;
  border: 1px solid var(--fw-teal);
  border-radius: 2px;
  color: var(--fw-black);
  background: var(--fw-teal);
  box-shadow: 0 0 28px rgba(1, 172, 190, 0.16);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
  text-transform: uppercase;
}

.is-style-outline > .wp-block-button__link,
.wp-block-button.is-style-outline .wp-block-button__link {
  color: var(--fw-teal);
  background: transparent;
}

.fw-page-hero,
.fw-shop-hero,
.fw-blog-hero {
  padding-block: 4.5rem 2.5rem;
}

.fw-page-hero h1,
.fw-shop-hero h1,
.fw-blog-hero h1,
.fw-product-summary h1,
.wp-block-post-title {
  margin-top: 0;
}

.fw-page-surface {
  padding: 2rem;
}

.fw-page-surface :where(p, li) {
  color: var(--fw-mist);
}

.fw-post-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  color: var(--fw-muted);
}

.fw-feature-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.fw-feature-list > * {
  margin: 0;
}

.fw-site-footer {
  margin-top: 5rem;
  border-top: 1px solid var(--fw-rail);
}

.fw-footer-grid {
  display: grid;
  grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  padding-block: 3rem;
}

.fw-footer-grid p {
  color: var(--fw-muted);
}

.fw-footer-list {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.fw-footer-list a {
  color: var(--fw-mist);
  text-decoration: none;
}

.fw-footer-bottom {
  border-top: 1px solid var(--fw-rail);
  color: var(--fw-muted);
}

.fw-footer-bottom-inner {
  width: min(100%, 1240px);
  margin-inline: auto;
  padding-block: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
}

.woocommerce .quantity .qty {
  min-height: 2.75rem;
  border: 1px solid var(--fw-rail);
  border-radius: 2px;
  color: var(--fw-white);
  background: var(--fw-graphite);
}

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

.fw-product-summary,
.woocommerce div.product .summary {
  padding: 2rem;
}

.woocommerce div.product .woocommerce-product-gallery,
.wp-block-woocommerce-product-image-gallery {
  overflow: hidden;
  border: 1px solid var(--fw-rail);
  border-radius: 4px;
  background: var(--fw-gunmetal);
}

.woocommerce-product-details__short-description,
.woocommerce div.product .woocommerce-tabs,
.woocommerce div.product .product_meta,
.woocommerce div.product .related {
  color: var(--fw-mist);
}

.woocommerce div.product .woocommerce-tabs ul.tabs {
  padding: 0;
  margin: 0 0 1.5rem;
  border-bottom: 1px solid var(--fw-rail);
}

.woocommerce div.product .woocommerce-tabs ul.tabs::before {
  border-bottom-color: var(--fw-rail);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li {
  border: 1px solid var(--fw-rail);
  border-radius: 2px 2px 0 0;
  background: var(--fw-gunmetal);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li::before,
.woocommerce div.product .woocommerce-tabs ul.tabs li::after {
  display: none;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li a {
  color: var(--fw-mist);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active {
  border-color: var(--fw-teal);
  background: var(--fw-teal);
}

.woocommerce div.product .woocommerce-tabs ul.tabs li.active a {
  color: var(--fw-black);
}

.woocommerce div.product .woocommerce-tabs .panel {
  padding-top: 0.5rem;
}

.woocommerce span.onsale,
.wc-block-grid__product-onsale {
  min-height: 0;
  border: 1px solid var(--fw-amber);
  border-radius: 2px;
  color: var(--fw-black);
  background: var(--fw-amber);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  line-height: 1.4;
  text-transform: uppercase;
}

.woocommerce-message,
.woocommerce-info,
.woocommerce-error {
  border-top-color: var(--fw-teal);
  color: var(--fw-white);
  background: var(--fw-gunmetal);
}

.woocommerce-message::before,
.woocommerce-info::before {
  color: var(--fw-teal);
}

.wc-block-cart,
.wc-block-checkout,
.wc-block-components-sidebar,
.wc-block-components-main {
  color: var(--fw-white);
}

.wc-block-components-sidebar,
.wc-block-cart-items,
.wc-block-components-panel,
.wc-block-components-totals-wrapper,
.wc-block-components-order-summary,
.wc-block-components-checkout-step,
.wc-block-components-text-input input,
.wc-block-components-combobox .wc-block-components-combobox-control input.components-combobox-control__input,
.wc-block-components-form .wc-block-components-text-input input[type="email"],
.wc-block-components-form .wc-block-components-text-input input[type="number"],
.wc-block-components-form .wc-block-components-text-input input[type="tel"],
.wc-block-components-form .wc-block-components-text-input input[type="text"],
.wc-block-components-form .wc-block-components-text-input input[type="url"] {
  border-color: var(--fw-rail);
  color: var(--fw-white);
  background: rgba(27, 31, 35, 0.88);
}

.wc-block-components-text-input label,
.wc-block-components-checkbox label,
.wc-block-components-radio-control__label,
.wc-block-components-totals-item__label,
.wc-block-components-product-name {
  color: var(--fw-mist);
}

.wp-block-query-pagination {
  margin-top: 2rem;
  color: var(--fw-teal);
  font-family: "Rajdhani", "Inter", system-ui, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
}

@media (max-width: 980px) {
  .fw-header-inner {
    min-height: 0;
    align-items: center;
    padding-block: 1rem;
  }

  .fw-header-actions,
  .fw-nav {
    width: 100%;
    justify-content: center;
  }

  .fw-nav {
    overflow-x: auto;
    padding-bottom: 0.25rem;
  }

  .fw-hero-title {
    font-size: 3.35rem;
  }

  .fw-panel-grid,
  .fw-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .fw-cluster-story-inner {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .fw-cluster-sticky {
    top: 7.5rem;
    min-height: clamp(22rem, 58vh, 32rem);
    z-index: 1;
  }

  .fw-cluster-stage {
    width: min(100%, 38rem);
    min-height: clamp(22rem, 54vh, 30rem);
  }

  .fw-cluster-copy {
    gap: 4rem;
    padding-block: 2rem 4rem;
  }

  .fw-cluster-step {
    min-height: 64vh;
  }
}

@media (max-width: 680px) {
  .fw-main .alignwide,
  .fw-main .wp-block-query.alignwide,
  .fw-main .wp-block-columns.alignwide,
  .fw-main .wp-block-group.alignwide,
  .fw-header-inner,
  .fw-footer-grid,
  .fw-footer-bottom-inner {
    width: calc(100vw - 40px) !important;
    max-width: calc(100vw - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .fw-section,
  .fw-hero,
  .fw-page-hero,
  .fw-shop-hero,
  .fw-blog-hero {
    padding-block: 3rem;
  }

  .fw-logo {
    font-size: 1.55rem;
  }

  .fw-primary-logo {
    width: min(310px, 78vw);
  }

  .fw-header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .fw-nav {
    gap: 0.72rem;
    justify-content: flex-start;
  }

  .fw-cart-link {
    justify-content: center;
  }

  .fw-hero-title {
    font-size: 2.55rem;
  }

  .fw-hero-grid,
  .fw-product-detail,
  .fw-split-row,
  .wp-block-columns {
    display: block !important;
  }

  .wp-block-column {
    width: 100% !important;
    max-width: 100% !important;
    flex-basis: 100% !important;
  }

  .wp-block-column + .wp-block-column {
    margin-top: 1.5rem;
  }

  .fw-hero-copy,
  .fw-visual-panel,
  .fw-brand-board {
    width: 100%;
    max-width: 100%;
  }

  .fw-cluster-hero-card {
    min-height: 18rem;
  }

  .fw-cluster-device {
    padding: 1rem;
    border-radius: 14px;
  }

  .fw-cluster-screen {
    gap: 0.45rem;
    padding: 0.8rem;
  }

  .fw-cluster-bottom {
    font-size: 0.72rem;
  }

  .fw-cluster-story {
    padding-block: 3rem;
  }

  .fw-cluster-story-inner {
    width: calc(100vw - 40px);
    max-width: calc(100vw - 40px);
  }

  .fw-cluster-sticky {
    top: 14rem;
    min-height: 16rem;
  }

  .fw-cluster-stage {
    display: grid;
    place-items: center;
    min-height: 16rem;
    overflow: visible;
  }

  .fw-cluster-device--scroll {
    width: min(72vw, 18rem);
  }

  .fw-cluster-step {
    min-height: 56vh;
    padding: 1.25rem 0 1.25rem 1rem;
  }

  .fw-cluster-step h2 {
    font-size: 2.35rem;
  }

  .fw-stat-row {
    width: 100%;
    max-width: 100%;
  }

  .fw-stat {
    min-width: 0;
    flex: 1 1 calc(50% - 0.5rem);
  }

  .fw-panel-grid,
  .fw-feature-list,
  .fw-footer-grid {
    grid-template-columns: 1fr;
  }

  .fw-footer-bottom-inner {
    flex-direction: column;
  }

  .fw-page-surface,
  .fw-product-summary,
  .woocommerce div.product .summary {
    padding: 1.25rem;
  }
}

@media (max-width: 520px) {
  .fw-main .alignwide,
  .fw-main .wp-block-query.alignwide,
  .fw-main .wp-block-columns.alignwide,
  .fw-main .wp-block-group.alignwide,
  .fw-header-inner,
  .fw-footer-grid,
  .fw-footer-bottom-inner {
    width: min(350px, calc(100vw - 40px)) !important;
    max-width: min(350px, calc(100vw - 40px)) !important;
    margin-left: 20px !important;
    margin-right: 20px !important;
  }
}
