/* Spartifexon — Apple buttons + Spart Data hero + Shopify commerce */
:root {
  --spart-ink: #1d1d1f;
  --spart-muted: #6e6e73;
  --spart-blue: #0071e3;
  --spart-blue-hover: #0077ed;
  --spart-line: #d2d2d7;
  --spart-bg: #fbfbfd;
  --spart-card: #fff;
  --apple-ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --apple-press: cubic-bezier(0.32, 0, 0.67, 0);
  --nav-h: 76px;
  --nav-h-mobile: 64px;
}

/* ── A. Apple button system ── */
.apple-btn,
.apple-press.button,
body.spartifexon-store .single_add_to_cart_button,
body.spartifexon-store .woocommerce button.button,
body.spartifexon-store .woocommerce a.button,
body.spartifexon-store .woocommerce #place_order,
body.spartifexon-store .woocommerce .checkout-button,
.spart-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 980px;
  border: none;
  font-family: inherit;
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.12s var(--apple-press), background 0.2s var(--apple-ease), opacity 0.2s var(--apple-ease);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.apple-btn--primary,
body.spartifexon-store .single_add_to_cart_button,
body.spartifexon-store .woocommerce button.button.alt,
body.spartifexon-store .woocommerce #place_order,
body.spartifexon-store .woocommerce .checkout-button {
  background: var(--spart-blue) !important;
  color: #fff !important;
}

.apple-btn--primary:hover,
body.spartifexon-store .single_add_to_cart_button:hover,
body.spartifexon-store .woocommerce #place_order:hover {
  background: var(--spart-blue-hover) !important;
}

.apple-btn--secondary {
  background: #f5f5f7;
  color: var(--spart-ink);
  border: 1px solid var(--spart-line);
}

.apple-btn:active,
.apple-press.is-pressed,
.apple-press:active,
body.spartifexon-store .single_add_to_cart_button:active,
body.spartifexon-store .woocommerce button.button:active {
  transform: scale(0.97);
}

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

body.spartifexon-store .woocommerce a.button,
body.spartifexon-store .woocommerce button.button:not(.alt) {
  background: #f5f5f7 !important;
  color: var(--spart-ink) !important;
  border: 1px solid var(--spart-line) !important;
}

body.spartifexon-store {
  background: var(--spart-bg);
  color: var(--spart-ink);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", Inter, ui-sans-serif, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

body.spart-commerce {
  background: #fafafa;
  color: #121212;
}

body.spart-commerce:not(.spart-home-platform) .site-content {
  padding-top: 0;
}

body.spart-commerce:not(.spart-home-platform) .site-content > .ast-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px clamp(16px, 4vw, 32px) 64px;
}

body.spartifexon-store .site-content {
  padding-top: 0;
}

/* Astra header — white Spart Data style */
body.spartifexon-store .site-header,
body.spartifexon-store .ast-primary-header-bar {
  background: rgba(255, 255, 255, 0.94) !important;
  border-bottom: 1px solid rgba(5, 7, 11, 0.08);
  backdrop-filter: blur(18px) saturate(140%);
}

body.spartifexon-store .main-header-menu .menu-link,
body.spartifexon-store .ast-header-account-wrap a {
  font-weight: 700;
  color: rgba(23, 27, 34, 0.78);
}

body.spartifexon-store .site-title a,
body.spartifexon-store .site-title {
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-size: 1.05rem;
}

html:has(body.spart-home-platform) {
  background: #fff;
}

/* Homepage — Spart Data platform (white topbar + DTC hero + discover) */
body.spart-home-platform {
  background: #fff;
  padding-top: 0 !important;
  overflow-x: hidden;
}

body.spart-home-platform #masthead,
body.spart-home-platform header.site-header {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.spart-home-platform #page {
  display: none !important;
}

body.spart-home-platform .site-content,
body.spart-home-platform .ast-container {
  max-width: none;
  padding: 0;
  margin: 0;
  overflow: visible;
}

body.spart-home-platform .woocommerce-products-header,
body.spart-home-platform .woocommerce-result-count,
body.spart-home-platform .woocommerce-ordering,
body.spart-home-platform ul.products,
body.spart-home-platform .woocommerce-pagination,
body.spart-home-platform .ast-woocommerce-container > .ast-article-single {
  display: none !important;
}

body.spart-home-platform .site-footer,
body.spart-home-platform .ast-footer-overlay {
  display: none !important;
}

body.spart-home-platform .spart-tesla-header,
body.spart-home-platform .spart-commerce-header {
  display: none !important;
}

body.spart-home-platform .spart-home-shell {
  background: #f5f6f8;
}

/* ── B. Spart Data topbar (homepage) ── */
.spart-data-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  min-height: var(--nav-h);
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(200px, 1fr);
  align-items: center;
  gap: clamp(18px, 3vw, 34px);
  padding: 0 clamp(22px, 5vw, 96px);
  color: #171b22;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(5, 7, 11, 0.08);
  backdrop-filter: blur(22px) saturate(150%);
}

.spart-data-topbar__wordmark {
  justify-self: start;
  font-size: clamp(17px, 2vw, 24px);
  line-height: 1;
  font-weight: 950;
  letter-spacing: 0.06em;
  color: #1b1f27;
  text-decoration: none;
  white-space: nowrap;
}

.spart-data-topbar__wordmark span {
  display: inline-block;
  transform: scaleX(1.04);
}

.spart-data-topbar__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(18px, 3vw, 28px);
  font-size: 0.95rem;
  font-weight: 850;
  color: rgba(23, 27, 34, 0.72);
  white-space: nowrap;
}

.spart-data-topbar__nav a {
  color: inherit;
  text-decoration: none;
  min-height: var(--nav-h);
  display: inline-flex;
  align-items: center;
}

.spart-data-topbar__nav a:hover {
  color: #000;
}

.spart-data-topbar__account {
  justify-self: end;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.spart-pill {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid rgba(5, 7, 11, 0.08);
  background: #f5f5f7;
  color: #1d1d1f;
  font-size: 0.9rem;
  font-weight: 850;
  text-decoration: none;
}

.spart-pill--blue {
  min-height: 46px;
  padding: 0 22px;
  border-color: var(--spart-blue);
  background: var(--spart-blue);
  color: #fff;
}

body.spart-home-platform > .spart-dtc-hero {
  display: block;
}

.spart-dtc-hero {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: calc(var(--nav-h) + clamp(24px, 5vw, 48px)) clamp(20px, 5vw, 48px) clamp(32px, 5vw, 56px);
  background: #fff;
  border-bottom: 1px solid var(--spart-line);
}

.spart-dtc-hero__inner {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
}

.spart-dtc-hero__eyebrow {
  margin: 0 0 12px;
  color: var(--spart-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.spart-dtc-hero__headline {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--spart-ink);
}

.spart-dtc-hero__lead {
  margin: 18px auto 0;
  max-width: 52ch;
  font-size: clamp(1rem, 1.6vw, 1.12rem);
  line-height: 1.55;
  font-weight: 500;
  color: #5e6673;
}

.spart-dtc-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.spart-dtc-hero__bullets {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 0.88rem;
  font-weight: 650;
  color: #4b5563;
}

.spart-dtc-hero__bullets li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.spart-dtc-hero__bullets li::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--spart-blue);
}

.spart-trust-bar {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(12px, 3vw, 28px);
  padding: 14px clamp(16px, 4vw, 32px);
  background: #fff;
  border-bottom: 1px solid var(--spart-line);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--spart-muted);
  margin: 0 calc(50% - 50vw) 0;
  width: 100vw;
}

body.spart-home-platform .spart-trust-bar,
body.spart-home-platform > .spart-trust-bar {
  position: relative;
  z-index: 2;
  width: 100%;
  margin: 0;
}

.spart-home-discover {
  position: relative;
  z-index: 2;
  max-width: 1280px;
  margin: 0 auto;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px);
  background: #fff;
  margin-left: auto;
  margin-right: auto;
}

body.spart-home-platform .spart-home-discover {
  width: 100%;
  margin: 0;
  background: #f7f8fa;
  padding: clamp(32px, 5vw, 56px) clamp(16px, 4vw, 48px);
}

.spart-home-discover__inner {
  max-width: 1280px;
  margin: 0 auto;
}

.spart-home-discover__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.spart-home-discover__head h2 {
  margin: 0;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #171b22;
}

.spart-home-discover__head p {
  margin: 6px 0 0;
  color: #5e6673;
  font-size: 0.95rem;
}

.spart-home-discover__link {
  color: var(--spart-blue);
  font-weight: 800;
  font-size: 0.9rem;
  text-decoration: none;
}

.spart-home-waterfall {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.spart-cinema-btn--on-dark {
  background: rgba(0, 0, 0, 0.28) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: blur(12px);
}

.spart-home-tile {
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e7e9ee;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.08);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.spart-home-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.12);
}

.spart-home-tile--wide {
  grid-column: span 2;
}

.spart-home-tile__media {
  display: block;
}

.spart-home-tile__body {
  padding: 14px 16px 16px;
}

.spart-home-tile__body h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.25;
}

.spart-home-tile__body h3 a {
  color: inherit;
  text-decoration: none;
}

.spart-home-tile__body p {
  margin: 0;
  font-size: 0.82rem;
  color: #5e6673;
  line-height: 1.45;
}

.spart-home-tile__price {
  margin-top: 10px !important;
  font-size: 1rem !important;
  font-weight: 900 !important;
  color: #171b22 !important;
}

.spart-home-tile__actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.spart-home-tile__actions .spart-cinema-btn {
  min-height: 38px;
  font-size: 0.82rem;
  padding: 0 14px;
}

.spart-home-tile__actions .spart-cinema-btn--primary {
  background: var(--spart-blue);
  color: #fff;
  border: none;
}

.spart-home-tile__actions .spart-cinema-btn--ghost {
  background: #f5f5f7;
  color: #171b22;
  border: 1px solid #e7e9ee;
}

.spart-platform-footer {
  position: relative;
  z-index: 2;
  background: #05070b;
  color: rgba(255, 255, 255, 0.58);
  padding: 28px clamp(20px, 5vw, 78px);
  font-size: 13px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  flex-wrap: wrap;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

.spart-platform-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

.spart-platform-footer a {
  color: inherit;
  text-decoration: none;
}

.spart-platform-footer a:hover {
  color: #fff;
}

.spart-home-sticky-buy {
  position: fixed;
  left: 50%;
  bottom: 16px;
  z-index: 45;
  transform: translate(-50%, 120%);
  opacity: 0;
  transition: transform 0.26s ease, opacity 0.26s ease;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 10px 10px 18px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
  max-width: min(520px, calc(100vw - 24px));
  pointer-events: none;
}

.spart-home-sticky-buy.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.spart-home-sticky-buy p {
  margin: 0;
  font-size: 0.86rem;
  font-weight: 800;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #171b22;
}

.spart-trust-bar strong {
  color: var(--spart-ink);
  font-weight: 700;
}

/* Shop grid — waterfall feel (shop / category pages, not homepage) */
body.spartifexon-store.woocommerce ul.products,
body.spartifexon-store .woocommerce-page ul.products {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 18px;
  margin-top: 8px;
}

body.spartifexon-store.woocommerce ul.products li.product,
body.spartifexon-store .woocommerce-page ul.products li.product {
  margin: 0 !important;
  width: 100% !important;
  background: #fff;
  border: 1px solid var(--spart-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.spartifexon-store.woocommerce ul.products li.product:hover,
body.spartifexon-store .woocommerce-page ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.1);
}

body.spartifexon-store.woocommerce ul.products li.product:first-child,
body.spartifexon-store .woocommerce-page ul.products li.product:first-child {
  grid-column: span 2;
}

@media (max-width: 768px) {
  body.spartifexon-store.woocommerce ul.products li.product:first-child,
  body.spartifexon-store .woocommerce-page ul.products li.product:first-child {
    grid-column: span 1;
  }

  .spart-dtc-hero__headline {
    font-size: clamp(1.75rem, 6vw, 2.5rem);
  }
}

body.spartifexon-store img:not(.spart-product-photo),
body.spartifexon-store .wc-block-grid__product-image,
body.spartifexon-store .wc-block-components-order-summary-item__image {
  display: none !important;
}

body.spartifexon-store .wc-block-grid__product-link {
  display: grid;
  gap: 8px;
  text-decoration: none;
}

body.spartifexon-store .wc-block-grid__product-title {
  font-weight: 700;
  color: var(--spart-ink);
}

body.spartifexon-store .woocommerce ul.products li.product .button {
  background: var(--spart-blue);
  border-radius: 999px;
  font-weight: 800;
}

body.spartifexon-store .woocommerce span.onsale {
  background: var(--spart-blue);
}

body.spart-commerce .site-footer,
body.spart-commerce .ast-footer-overlay {
  display: none !important;
}

/* ── Shopify commerce header (non-home) ── */
body.spartifexon-store #masthead,
body.spartifexon-store #ast-desktop-header,
body.spartifexon-store #ast-mobile-header {
  display: none !important;
}

.spart-shopify-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  background: #fff;
  border-bottom: 1px solid rgba(18, 18, 18, 0.08);
}

.spart-commerce-header--open .spart-shopify-header__bar {
  border-bottom-color: transparent;
}

.spart-commerce-header .spart-tesla-mega {
  top: 100%;
}

.spart-shopify-header__bar {
  min-height: var(--nav-h);
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 32px);
  display: flex;
  align-items: center;
  gap: 16px;
}

.spart-shopify-header__logo {
  font-size: 0.95rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #121212;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}

.spart-shopify-header__nav {
  display: flex;
  justify-content: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.spart-shopify-header__trigger {
  min-height: 40px;
  padding: 0 14px;
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: #121212;
  cursor: pointer;
  border-radius: 8px;
}

.spart-shopify-header__trigger:hover,
.spart-shopify-header__item.is-active .spart-shopify-header__trigger {
  background: #f3f3f3;
}

.spart-shopify-header__util {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-self: end;
}

.spart-shopify-header__link,
.spart-shopify-header__cart {
  font-size: 0.88rem;
  font-weight: 600;
  color: #121212;
  text-decoration: none;
}

.spart-shopify-header__menu {
  display: none;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}

.spart-shopify-header__menu span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 4px auto;
  background: #121212;
}

body.spart-commerce:not(.spart-home-platform) {
  padding-top: var(--nav-h);
}

@media (min-width: 922px) {
  body.spartifexon-store.admin-bar .spart-tesla-header {
    top: 32px;
  }
}

.spart-commerce-header .spart-tesla-header__bar,
.spart-commerce-header .spart-shopify-header__bar {
  min-height: var(--nav-h);
  padding: 0 clamp(20px, 4vw, 48px);
}

.spart-tesla-util__cart {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 980px;
  background: #f5f5f7;
  color: var(--spart-ink);
  font-size: 0.82rem;
  font-weight: 600;
  text-decoration: none;
}

.spart-cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--spart-blue);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
}

.spart-tesla-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 9999;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.spart-tesla-header__bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 56px;
  padding: 0 clamp(16px, 3vw, 40px);
  background: rgba(255, 255, 255, 0.97);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(16px) saturate(140%);
}

.spart-tesla-logo {
  justify-self: start;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #171b22;
  text-decoration: none;
  white-space: nowrap;
}

.spart-tesla-nav__list {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.spart-tesla-nav__trigger {
  appearance: none;
  border: 0;
  background: transparent;
  min-height: 36px;
  padding: 0 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: #393c41;
  cursor: pointer;
  transition: background 0.08s ease, color 0.08s ease;
}

.spart-tesla-nav__item.is-active .spart-tesla-nav__trigger,
.spart-tesla-nav__trigger:hover,
.spart-tesla-nav__trigger:focus-visible {
  background: #f4f4f4;
  color: #171b22;
  outline: none;
}

.spart-tesla-util {
  justify-self: end;
  display: flex;
  align-items: center;
  gap: 8px;
}

.spart-tesla-util__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: #393c41;
  text-decoration: none;
  font-weight: 700;
  font-size: 1rem;
}

.spart-tesla-util__btn:hover {
  background: #f4f4f4;
}

.spart-tesla-header__menu-toggle {
  display: none;
}

.spart-tesla-mega-wrap {
  position: relative;
}

.spart-tesla-header--open .spart-tesla-header__bar {
  border-bottom-color: transparent;
}

.spart-tesla-mega {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  background: #fff;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.spart-tesla-mega.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transition: none;
}

.spart-tesla-mega__inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  padding: 28px clamp(20px, 4vw, 48px) 32px;
}

.spart-tesla-mega--links-only .spart-tesla-mega__inner {
  grid-template-columns: 1fr;
  max-width: 420px;
  margin-left: auto;
  margin-right: clamp(20px, 4vw, 48px);
}

.spart-mega-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 4px 12px;
  align-content: start;
}

.spart-tesla-mega[data-panel="shop"] .spart-mega-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.spart-tesla-mega[data-panel="aic"] .spart-mega-grid {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.spart-mega-card {
  text-align: center;
}

.spart-mega-card__media {
  display: block;
  padding: 8px 12px 0;
}

.spart-mega-card__price {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 800;
  color: #171b22;
}

.spart-mega-card__title {
  margin: 10px 0 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.spart-mega-card__title a {
  color: #171b22;
  text-decoration: none;
}

.spart-mega-card__links {
  display: flex;
  justify-content: center;
  gap: 14px;
  font-size: 0.82rem;
  font-weight: 600;
}

.spart-mega-card__links a {
  color: #393c41;
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.spart-mega-card__links a:hover {
  border-bottom-color: currentColor;
}

.spart-mega-sidebar {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 200px;
  padding-left: 28px;
  border-left: 1px solid #e7e9ee;
}

.spart-mega-sidebar a {
  color: #393c41;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
}

.spart-mega-sidebar a:hover {
  color: #171b22;
}

.spart-tesla-drawer {
  display: none;
}

@media (max-width: 1100px) {
  .spart-mega-grid {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 921px) {
  body.spartifexon-store:not(.spart-home-platform) {
    padding-top: 52px;
  }

  .spart-shopify-header__menu {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    flex-shrink: 0;
  }

  .spart-shopify-header__nav,
  .spart-tesla-mega-wrap {
    display: none;
  }

  .spart-shopify-header__logo {
    flex: 1;
    text-align: center;
  }

  .spart-tesla-header__bar {
    grid-template-columns: 1fr auto;
    min-height: 52px;
  }

  .spart-tesla-nav {
    display: none;
  }

  .spart-tesla-mega-wrap {
    display: none;
  }

  .spart-tesla-header__menu-toggle {
    display: inline-flex;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    width: 40px;
    height: 40px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    cursor: pointer;
  }

  .spart-tesla-header__menu-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0 auto;
    background: #171b22;
  }

  .spart-tesla-drawer {
    display: none;
    background: #fff;
    border-bottom: 1px solid #e7e9ee;
    padding: 8px 16px 16px;
  }

  .spart-tesla-drawer.is-open {
    display: block;
  }

  .spart-tesla-drawer__section summary {
    cursor: pointer;
    font-weight: 700;
    padding: 12px 0;
    list-style: none;
  }

  .spart-tesla-drawer__links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 0 0 12px 8px;
  }

  .spart-tesla-drawer__links a {
    color: #393c41;
    text-decoration: none;
    font-size: 0.92rem;
  }
}

/* ── Live chat widget ── */
.spart-chat {
  position: fixed;
  right: clamp(16px, 3vw, 28px);
  bottom: clamp(16px, 3vw, 28px);
  z-index: 10000;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

.spart-chat__launcher {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  min-width: 148px;
  padding: 0 20px;
  border: 0;
  border-radius: 999px;
  background: #1b2029;
  color: #fff;
  font-weight: 700;
  font-size: 0.88rem;
  letter-spacing: -0.01em;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
  transition: transform 0.12s var(--apple-press), box-shadow 0.2s var(--apple-ease);
}

.spart-chat__launcher:hover {
  box-shadow: 0 20px 44px rgba(15, 23, 42, 0.28);
}

.spart-chat__launcher-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #30d158;
  box-shadow: 0 0 0 3px rgba(48, 209, 88, 0.25);
  flex-shrink: 0;
}

body.spart-chat--home .spart-chat__launcher {
  background: #1b2029;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.22);
}

body.spart-home-platform.spart-chat-visible-sticky .spart-chat {
  bottom: 88px;
}

body.spart-commerce:not(.spart-home-platform) .spart-chat__launcher {
  background: var(--spart-blue);
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.28);
  min-width: auto;
  padding: 0 18px;
}

.spart-chat__panel {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  width: min(380px, calc(100vw - 32px));
  max-height: min(560px, calc(100svh - 120px));
  background: #fff;
  border: 1px solid #e7e9ee;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.spart-chat__panel[hidden] {
  display: none !important;
}

.spart-chat__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 16px 12px;
  border-bottom: 1px solid #eef0f4;
  background: #fafbfc;
}

.spart-chat__head strong {
  display: block;
  font-size: 1rem;
  color: #171b22;
}

.spart-chat__status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #5e6673;
}

.spart-chat__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.2);
}

.spart-chat__close {
  appearance: none;
  border: 0;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  color: #5e6673;
  cursor: pointer;
  padding: 0 4px;
}

.spart-chat__body {
  padding: 14px 16px 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.spart-chat__greeting {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #393c41;
}

.spart-chat__prompts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.spart-chat__chip {
  appearance: none;
  border: 1px solid #e7e9ee;
  background: #f5f6f8;
  color: #171b22;
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
}

.spart-chat__chip:hover {
  border-color: #0071e3;
  background: #eef6ff;
}

.spart-chat__thread {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 160px;
  overflow: auto;
}

.spart-chat__bubble {
  max-width: 92%;
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.4;
}

.spart-chat__bubble--visitor {
  align-self: flex-end;
  background: #0071e3;
  color: #fff;
}

.spart-chat__bubble--agent,
.spart-chat__bubble--system {
  align-self: flex-start;
  background: #f0f2f5;
  color: #171b22;
}

.spart-chat__form {
  display: grid;
  gap: 8px;
}

.spart-chat__form--inline {
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 8px;
}

.spart-chat__form input,
.spart-chat__form textarea {
  width: 100%;
  border: 1px solid #e7e9ee;
  border-radius: 10px;
  padding: 10px 12px;
  font: inherit;
  font-size: 0.88rem;
  resize: none;
}

.spart-chat__form input:focus,
.spart-chat__form textarea:focus {
  outline: 2px solid rgba(0, 113, 227, 0.25);
  border-color: #0071e3;
}

.spart-chat__send {
  min-height: 42px;
  min-width: 42px;
  border: 0;
  border-radius: 999px;
  background: #171b22;
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
}

.spart-chat--assist .spart-chat__launcher {
  background: #0071e3;
  box-shadow: 0 12px 32px rgba(0, 113, 227, 0.35);
}

.spart-chat__powered {
  margin: 4px 0 0;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #8b93a1;
  letter-spacing: 0.01em;
}

.spart-chat__typing {
  align-self: flex-start;
  padding: 8px 12px;
  border-radius: 14px;
  background: #f0f2f5;
  color: #5e6673;
  font-size: 0.82rem;
  font-style: italic;
}

.spart-chat__send:disabled {
  opacity: 0.6;
  cursor: wait;
}

@media (max-width: 480px) {
  .spart-chat__launcher-text {
    display: none;
  }

  .spart-chat__launcher {
    width: 52px;
    height: 52px;
    padding: 0;
    justify-content: center;
  }

  .spart-chat__panel {
    right: -8px;
    width: calc(100vw - 24px);
  }
}

/* ── C. Shopify-style product page ── */
body.spart-commerce.single-product .site-content > .ast-container {
  max-width: 1200px;
  padding: 24px clamp(16px, 4vw, 32px) 80px;
}

body.spart-commerce.single-product div.product {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
}

body.spart-commerce.single-product .woocommerce-product-gallery {
  background: #f5f5f7;
  border-radius: 20px;
  overflow: hidden;
  padding: 12px;
}

body.spart-commerce.single-product .summary.entry-summary {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
  padding: 8px 0;
}

body.spart-commerce.single-product .product_title {
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  margin-bottom: 8px;
}

body.spart-commerce.single-product .woocommerce-product-details__short-description {
  font-size: 1rem;
  line-height: 1.55;
  color: var(--spart-muted);
  margin-bottom: 20px;
}

body.spart-commerce.single-product p.price {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--spart-ink);
  margin-bottom: 20px;
}

body.spart-commerce.single-product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-bottom: 20px;
}

body.spart-commerce.single-product .single_add_to_cart_button {
  flex: 1;
  min-width: 200px;
  min-height: 48px !important;
  font-size: 1rem !important;
}

body.spart-commerce.single-product .product_meta {
  font-size: 0.82rem;
  color: var(--spart-muted);
  padding-top: 16px;
  border-top: 1px solid var(--spart-line);
}

body.spart-commerce.single-product .woocommerce-tabs {
  grid-column: 1 / -1;
  margin-top: 32px;
  border-top: 1px solid var(--spart-line);
  padding-top: 24px;
}

.spart-sticky-buy {
  display: none;
}

@media (max-width: 921px) {
  body.spartifexon-store:not(.spart-home-platform) {
    padding-top: var(--nav-h-mobile);
  }

  body.spart-home-platform .spart-dtc-hero {
    padding-top: calc(var(--nav-h-mobile) + 20px);
  }

  .spart-data-topbar {
    grid-template-columns: 1fr auto;
    min-height: var(--nav-h-mobile);
    padding-inline: 18px;
  }

  .spart-data-topbar__nav {
    display: none;
  }

  .spart-data-topbar__wordmark {
    font-size: 16px;
  }

  .spart-pill--blue {
    padding-inline: 16px;
    min-height: 42px;
    font-size: 0.88rem;
  }

  .spart-dtc-hero__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .spart-dtc-hero__actions .apple-btn {
    width: 100%;
  }

  .spart-home-waterfall {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spart-home-tile--wide {
    grid-column: span 2;
  }

  .spart-home-sticky-buy {
    bottom: 14px;
    max-width: calc(100vw - 24px);
  }

  body.spart-commerce.single-product div.product {
    grid-template-columns: 1fr;
  }

  body.spart-commerce.single-product .summary.entry-summary {
    position: static;
  }

  .spart-sticky-buy {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9998;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.96);
    border-top: 1px solid var(--spart-line);
    backdrop-filter: blur(16px);
  }

  .spart-sticky-buy__meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
  }

  .spart-sticky-buy__meta strong {
    font-size: 0.82rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .spart-sticky-buy__meta span {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--spart-blue);
  }

  .spart-sticky-buy__btn {
    flex-shrink: 0;
    min-height: 42px !important;
    padding-inline: 18px !important;
  }

  body.spart-commerce.single-product {
    padding-bottom: 72px;
  }
}

/* ── D. Shopify-style shop / cart / checkout ── */
body.spart-commerce.woocommerce-shop .site-content > .ast-container,
body.spart-commerce.woocommerce-cart .site-content > .ast-container,
body.spart-commerce.woocommerce-checkout .site-content > .ast-container {
  max-width: 1100px;
  padding: 28px clamp(16px, 4vw, 32px) 64px;
}

body.spart-commerce .woocommerce-products-header__title,
body.spart-commerce .entry-title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
}

body.spart-commerce.woocommerce ul.products li.product {
  border-radius: 18px;
  border-color: #e8e8ed;
  box-shadow: none;
  transition: transform 0.15s var(--apple-ease), box-shadow 0.15s var(--apple-ease);
}

body.spart-commerce.woocommerce ul.products li.product:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
}

body.spart-commerce.woocommerce-cart table.shop_table,
body.spart-commerce.woocommerce-checkout .woocommerce-checkout {
  background: var(--spart-card);
  border: 1px solid var(--spart-line);
  border-radius: 18px;
  overflow: hidden;
}

body.spart-commerce.woocommerce-cart table.shop_table th,
body.spart-commerce.woocommerce-cart table.shop_table td {
  padding: 16px;
}

body.spart-commerce.woocommerce-checkout #customer_details,
body.spart-commerce.woocommerce-checkout #order_review {
  background: #fff;
  border: 1px solid var(--spart-line);
  border-radius: 18px;
  padding: 24px;
}

body.spart-commerce.woocommerce-checkout h3 {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

body.spart-commerce.woocommerce-checkout .col2-set {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

body.spart-commerce.woocommerce-checkout input.input-text,
body.spart-commerce.woocommerce-checkout select,
body.spart-commerce.woocommerce-cart .input-text {
  border-radius: 12px;
  border-color: var(--spart-line);
  min-height: 44px;
}

body.spart-commerce.woocommerce-checkout #place_order {
  width: 100%;
  min-height: 50px !important;
  font-size: 1.05rem !important;
  margin-top: 12px;
}

body.spart-commerce.woocommerce-cart .wc-proceed-to-checkout a.checkout-button {
  width: 100%;
  min-height: 50px !important;
  font-size: 1rem !important;
}

@media (max-width: 768px) {
  body.spart-commerce.woocommerce-checkout .col2-set {
    grid-template-columns: 1fr;
  }

  .spart-home-waterfall {
    grid-template-columns: 1fr;
  }

  .spart-home-tile--wide {
    grid-column: span 1;
  }
}

/* ── E. Shopify Dawn (commerce) + Apple buttons sitewide ── */
body.spart-commerce:not(.spart-home-platform) .woocommerce-products-header {
  margin-bottom: 20px;
  padding-bottom: 0;
  border: 0;
}

body.spart-commerce.woocommerce ul.products {
  gap: 20px;
}

body.spart-commerce.woocommerce ul.products li.product {
  background: #fff;
  border: 1px solid rgba(18, 18, 18, 0.08);
  border-radius: 12px;
  padding-bottom: 16px;
  text-align: left;
}

body.spart-commerce.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding: 12px 16px 0;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
}

body.spart-commerce.woocommerce ul.products li.product .price {
  padding: 4px 16px 0;
  color: #121212;
  font-weight: 700;
  font-size: 0.95rem;
}

body.spart-commerce.woocommerce ul.products li.product .button,
body.spart-commerce.woocommerce ul.products li.product a.add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: calc(100% - 32px) !important;
  margin: 12px 16px 0 !important;
  min-height: 44px !important;
  border-radius: 980px !important;
  background: var(--spart-blue) !important;
  color: #fff !important;
  border: none !important;
  font-weight: 600 !important;
  font-size: 0.9rem !important;
  transition: transform 0.12s var(--apple-press), background 0.2s var(--apple-ease) !important;
}

body.spart-commerce.woocommerce ul.products li.product .button:active,
body.spart-commerce.woocommerce ul.products li.product a.add_to_cart_button:active {
  transform: scale(0.97);
}

body.spart-commerce.woocommerce ul.products li.product img,
body.spart-commerce .woocommerce-product-gallery,
body.spart-commerce .woocommerce-product-gallery__image,
body.spart-commerce .flex-control-thumbs {
  display: none !important;
}

body.spart-commerce.single-product div.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: start;
  max-width: 1100px;
  margin: 0 auto;
}

body.spart-commerce.single-product .spart-pdp-media {
  position: sticky;
  top: calc(var(--nav-h) + 16px);
}

body.spart-commerce.single-product .summary.entry-summary {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(18, 18, 18, 0.08);
  padding: clamp(20px, 3vw, 28px);
}

body.spart-commerce a.button,
body.spart-commerce button.button,
body.spart-commerce input.button,
body.spart-commerce .checkout-button,
body.spart-commerce #place_order,
body.spart-commerce .single_add_to_cart_button {
  border-radius: 980px !important;
  min-height: 44px !important;
  font-weight: 600 !important;
  transition: transform 0.12s var(--apple-press), background 0.2s var(--apple-ease), opacity 0.2s var(--apple-ease) !important;
}

body.spart-commerce a.button.alt,
body.spart-commerce button.button.alt,
body.spart-commerce #place_order,
body.spart-commerce .single_add_to_cart_button,
body.spart-commerce .checkout-button {
  background: var(--spart-blue) !important;
  color: #fff !important;
  border: none !important;
}

body.spart-commerce a.button:active,
body.spart-commerce button.button:active,
body.spart-commerce .single_add_to_cart_button:active,
body.spart-commerce .checkout-button:active,
body.spart-commerce #place_order:active {
  transform: scale(0.97);
}

/* Astra WooCommerce grid → Shopify cards */
body.spart-commerce.woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.spart-commerce.woocommerce ul.products::before,
body.spart-commerce.woocommerce ul.products::after {
  display: none !important;
}

body.spart-commerce.woocommerce ul.products li.product {
  width: 100% !important;
  margin: 0 !important;
  float: none !important;
  clear: none !important;
}

body.spart-commerce.woocommerce ul.products li.product.ast-grid-common-col {
  padding: 0 !important;
}

body.spart-commerce .ast-on-card-button {
  display: none !important;
}

body.spart-commerce.woocommerce .woocommerce-products-header__title {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  text-align: center;
  margin-bottom: 28px;
}

@media (max-width: 1024px) {
  body.spart-commerce.woocommerce ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 560px) {
  body.spart-commerce.woocommerce ul.products {
    grid-template-columns: 1fr !important;
  }
}

/* ── Polish: top-tier finish ── */
body.spartifexon-store :focus-visible {
  outline: 2px solid rgba(0, 113, 227, 0.45);
  outline-offset: 2px;
}

body.spart-commerce .ast-breadcrumbs-wrapper,
body.spart-commerce .woocommerce-breadcrumb {
  display: none !important;
}

body.spart-commerce .site-footer {
  display: none !important;
}

body.spart-commerce .spart-platform-footer {
  margin-top: 48px;
}

body.spart-commerce.single-product .quantity .qty {
  min-height: 44px;
  width: 64px;
  border-radius: 12px;
  border: 1px solid var(--spart-line);
  font-weight: 600;
}

body.spart-commerce .woocommerce-message,
body.spart-commerce .woocommerce-info {
  border-radius: 14px;
  border-top: none;
  background: #f5f5f7;
  color: var(--spart-ink);
}

.spart-mega-card__links a {
  transition: color 0.15s var(--apple-ease), border-color 0.15s var(--apple-ease);
}

.spart-chat__panel {
  border-radius: 20px;
}

.spart-chat__send {
  min-width: 44px !important;
  padding: 0 !important;
}

/* Empty media slots — upload photos in WP product admin later */
.spart-media-slot {
  display: block;
  width: 100%;
  background: #f5f5f7;
  border: 1px dashed #d2d2d7;
  border-radius: 12px;
}

.spart-media-slot--card {
  aspect-ratio: 4 / 3;
}

.spart-home-tile--wide .spart-media-slot--card {
  aspect-ratio: 16 / 9;
}

.spart-media-slot--thumb {
  aspect-ratio: 4 / 3;
  max-height: 100px;
}

.spart-media-slot--pdp {
  aspect-ratio: 1;
  min-height: 320px;
}

.spart-product-photo {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
  object-fit: cover;
}

body.spart-commerce.woocommerce-cart .product-thumbnail,
body.spart-commerce.woocommerce-cart td.product-thumbnail {
  display: none !important;
}

body.spart-commerce.woocommerce-cart table.shop_table .product-name {
  width: 55%;
}

body.spart-commerce.woocommerce ul.products li.product {
  padding-top: 16px;
}

body.spart-commerce.woocommerce ul.products li.product .woocommerce-loop-product__title {
  padding-top: 0;
}

@media (max-width: 900px) {
  body.spart-commerce.single-product div.product {
    grid-template-columns: 1fr;
  }

  body.spart-commerce.single-product .spart-pdp-media {
    position: static;
  }
}

@media (prefers-reduced-motion: reduce) {
  .apple-btn,
  .spart-chat__launcher {
    transition: none !important;
  }
}
