/* ==========================================================================
   FABRITOR SOURCING LIMITED (FSL)
   Master Design System & Architectural Editorial Stylesheet
   Milanese Quiet Luxury, Cohesive Surface Hierarchy, Mega Menus & Tactile Cards
   ========================================================================== */
@import url('./header-design-system.css');

:root {
  --bg-primary: #faf9f6;
  --bg-secondary: #f1f0ea;
  --bg-surface: #ffffff;
  --bg-surface-elevated: #efeee8;
  --bg-card: #ffffff;
  --bg-dark-section: #141714;
  --bg-dark-card: #1c211c;

  --text-primary: #171a1d;
  --text-secondary: #585b57;
  --text-muted: #676b64;
  --text-on-dark: #faf9f6;
  --text-on-dark-muted: #c0c6ba;

  --copper-dot: #b94a0b;
  --copper-light: #d65a14;
  --copper-hover: #9d3c07;
  --copper-dim: rgba(185, 74, 11, 0.08);
  --copper-glow: rgba(185, 74, 11, 0.16);
  --gold-primary: #b94a0b;
  --gold-light: #d65a14;
  --gold-dim: rgba(185, 74, 11, 0.08);
  --cyan-accent: #b94a0b;

  --font-heading: var(--font-sans);
  --font-body: var(--font-sans);
  --font-mono: 'SF Mono', 'JetBrains Mono', ui-monospace, Menlo, monospace;
  --font-serif: var(--font-sans);

  --radius-sm: 6px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-full: 999px;
  --container-max: 1512px;
  --ease-out-expo: var(--ease-soft);

  --border-subtle: rgba(23, 26, 29, 0.09);
  --border-strong: rgba(23, 26, 29, 0.18);
  --shadow-sm: 0 2px 10px rgba(23, 26, 29, 0.04);
  --shadow-md: 0 12px 32px rgba(23, 26, 29, 0.07);
  --shadow-lg: 0 24px 64px rgba(23, 26, 29, 0.13);

  --control-height: 52px;
  --control-small: 40px;
  --section-space: 88px;
}

[data-theme="dark"] {
  --bg-primary: #121512;
  --bg-secondary: #191d19;
  --bg-surface: #1f241f;
  --bg-surface-elevated: #282f28;
  --bg-card: #1f241f;
  --bg-dark-section: #0d0f0d;
  --bg-dark-card: #191d19;

  --text-primary: #faf9f6;
  --text-secondary: #c2c8bc;
  --text-muted: #9aa294;
  --text-on-dark: #faf9f6;
  --text-on-dark-muted: #c2c8bc;

  --border-subtle: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.22);
  --copper-dot: #ef9a62;
  --copper-light: #ffb07c;
  --copper-hover: #ffc296;
  --copper-dim: rgba(239, 154, 98, 0.12);
  --gold-primary: #ef9a62;
  --gold-light: #ef9a62;
  --cyan-accent: #ef9a62;

  --paper: #121512;
  --ink: #faf9f6;
  --muted: #c2c8bc;
  --surface: #282f28;
  --surface-hover: #343c34;
  --orange: #ef9a62;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
}

body.fsl-site {
  margin: 0;
  padding-top: 0;
  overflow-x: clip;
  background: var(--bg-primary);
  font-family: var(--font-sans);
  color: var(--text-primary);
  cursor: auto !important;
}

body.fsl-site * {
  cursor: inherit;
}

body.fsl-site a,
body.fsl-site button,
body.fsl-site label,
body.fsl-site select {
  cursor: pointer;
}

body.fsl-site input,
body.fsl-site textarea {
  cursor: text;
}

body.fsl-site h1,
body.fsl-site h2,
body.fsl-site h3 {
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: -0.045em;
  color: var(--text-primary);
  max-width: none;
}

body.fsl-site h1 {
  font-size: clamp(42px, 5vw, 74px);
  line-height: 1.05;
  letter-spacing: -0.055em;
}

body.fsl-site h2 {
  font-size: clamp(28px, 3.2vw, 46px);
  line-height: 1.12;
}

body.fsl-site h3 {
  font-size: 22px;
  line-height: 1.24;
  letter-spacing: -0.025em;
}

body.fsl-site p {
  color: var(--text-secondary);
  line-height: 1.72;
}

img {
  max-width: 100%;
}

.container {
  width: min(100%, 1512px);
  padding-inline: 56px;
}

.content-section {
  padding-block: var(--section-space) !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-bottom: 0 !important;
}

.section-intro {
  text-align: left !important;
  max-width: 680px;
  margin: 0 0 44px !important;
}

/* Cohesive Architectural Cards & Panels */
.surface-panel {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-subtle) !important;
  border-radius: var(--radius-lg) !important;
  box-shadow: var(--shadow-sm) !important;
  transition: transform 350ms var(--ease-soft), border-color 350ms var(--ease-soft), box-shadow 350ms var(--ease-soft) !important;
  position: relative;
}

.surface-panel:hover {
  border-color: var(--border-strong) !important;
  box-shadow: var(--shadow-md) !important;
}

a.surface-panel:hover,
.surface-panel.is-interactive:hover {
  transform: translateY(-4px);
  border-color: var(--copper-dot) !important;
}

.skip-link {
  position: fixed;
  top: 8px;
  left: 16px;
  z-index: 3000;
  transform: translateY(-160%);
  background: var(--text-primary);
  color: var(--bg-primary);
  padding: 12px 20px;
  border-radius: 5px;
}
.skip-link:focus {
  transform: translateY(0);
}

/* ==========================================================================
   Header, Navigation & Architectural Mega Menu
   ========================================================================== */
.site-header,
.site-header.header-scrolled,
[data-theme="dark"] .site-header {
  position: sticky;
  top: 0;
  height: 80px;
  background: color-mix(in srgb, var(--bg-primary) 92%, transparent);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-subtle);
  box-shadow: none;
  z-index: 200;
}

.site-header.header-scrolled {
  box-shadow: var(--shadow-sm);
}

.header-inner {
  gap: 32px;
  position: relative;
}

.brand-logo-img {
  width: 157px;
  height: 50px;
}

.main-nav {
  gap: 8px;
  margin-left: auto;
  margin-right: auto;
  align-items: center;
}

.nav-link {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  text-transform: none;
  padding: 10px 16px;
  border-radius: 6px;
  color: var(--text-secondary);
  transition: color 200ms ease, background 200ms ease;
}

.nav-link:hover,
.nav-dropdown-item:hover > .nav-link,
.nav-dropdown-item.is-open > .nav-link {
  color: var(--text-primary);
  background: var(--bg-secondary);
}

.nav-link.active {
  color: var(--copper-dot);
  font-weight: 600;
}

.nav-link.active::after {
  display: none;
}

.header-actions {
  gap: 12px;
}

.theme-toggle-btn {
  width: 38px;
  height: 38px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 50%;
}

.swatch-cart-btn {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
}

.swatch-cart-btn:hover {
  border-color: var(--copper-dot);
  background: var(--bg-surface-elevated);
}

.swatch-count-badge {
  border-radius: 50%;
  background: var(--copper-dot);
  color: #fff;
}

/* Hover Bridge & Mega Menu Container */
.nav-dropdown-item {
  position: relative;
  padding-block: 18px;
  margin-block: -18px;
}

/* Invisible hover bridge so diagonal cursor movement never drops hover */
.nav-dropdown-menu::before {
  content: "";
  position: absolute;
  top: -24px;
  left: 0;
  right: 0;
  height: 24px;
  background: transparent;
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  width: min(940px, calc(100vw - 48px));
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: 0 28px 80px rgba(18, 22, 30, 0.16), 0 4px 16px rgba(18, 22, 30, 0.06);
  padding: 0;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 220ms var(--ease-soft), transform 220ms var(--ease-soft), visibility 220ms;
  z-index: 250;
  overflow: visible;
}

#servicesDropdownItem .nav-dropdown-menu {
  width: min(960px, calc(100vw - 48px));
}

.nav-dropdown-item:hover .nav-dropdown-menu,
.nav-dropdown-item:focus-within .nav-dropdown-menu,
.nav-dropdown-item.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item:hover .nav-chevron,
.nav-dropdown-item:focus-within .nav-chevron,
.nav-dropdown-item.is-open .nav-chevron {
  transform: rotate(180deg);
}

/* Mega Menu Inner Layout */
.mega-menu-layout {
  display: grid;
  grid-template-columns: 1fr 290px;
  border-radius: 14px;
  overflow: hidden;
}

.mega-menu-main {
  padding: 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--bg-surface);
}

.nav-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 0;
}

.dropdown-header-title {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.dropdown-header-all {
  font-size: 13px;
  font-weight: 600;
  color: var(--copper-dot);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dropdown-header-all:hover {
  color: var(--copper-hover);
  text-decoration: none;
}

.nav-dropdown-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
}

.nav-dropdown-link {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: transparent;
  transition: all 180ms ease;
}

.nav-dropdown-link:hover {
  transform: none;
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
}

.mega-item-icon {
  width: 34px;
  height: 34px;
  border-radius: 7px;
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--copper-dot);
  flex-shrink: 0;
  margin-top: 1px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.nav-dropdown-link:hover .mega-item-icon {
  background: var(--copper-dot);
  color: #fff;
  border-color: var(--copper-dot);
}

.mega-item-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.nav-dropdown-link .title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}

.nav-dropdown-link .sub {
  font-size: 11.5px;
  color: var(--text-muted);
  line-height: 1.35;
  margin-top: 3px;
}

.mega-menu-footer-bar {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
  color: var(--text-muted);
}

.mega-menu-footer-links {
  display: flex;
  gap: 16px;
}

.mega-menu-footer-links a {
  color: var(--text-primary);
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.mega-menu-footer-links a:hover {
  color: var(--copper-dot);
}

/* Mega Menu Featured Visual Column */
.mega-menu-aside {
  background: var(--bg-secondary);
  border-left: 1px solid var(--border-subtle);
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 14px;
}

.mega-aside-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.mega-aside-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid var(--border-strong);
  background: #171a1d;
}

.mega-aside-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 500ms var(--ease-soft);
}

.mega-aside-card:hover .mega-aside-media img {
  transform: scale(1.05);
}

.mega-aside-badge {
  display: inline-flex;
  align-self: flex-start;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--copper-dot);
  background: var(--copper-dim);
  padding: 4px 8px;
  border-radius: 4px;
}

.mega-aside-title {
  font-size: 16px !important;
  font-weight: 600 !important;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.28;
}

.mega-aside-desc {
  font-size: 12px !important;
  color: var(--text-secondary);
  line-height: 1.5 !important;
  margin: 0;
}

.mega-aside-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  background: var(--text-primary);
  color: var(--bg-primary);
  border-radius: 6px;
  font-size: 12px;
  font-weight: 500;
  transition: background 200ms ease;
}

.mega-aside-cta:hover {
  background: var(--copper-dot);
  color: #fff;
}

.mobile-nav-drawer {
  background: var(--bg-primary);
  top: 80px;
  max-height: calc(100dvh - 80px);
  overflow: auto;
}

/* ==========================================================================
   Site Footer
   ========================================================================== */
.site-footer {
  background: var(--bg-secondary);
  color: var(--text-primary);
  padding: 72px 0 28px;
  border-top: 1px solid var(--border-subtle);
}

.footer-grid {
  grid-template-columns: 1.3fr 0.8fr 1.2fr 1fr;
  gap: 40px;
}

.footer-logo {
  width: 160px;
  height: 48px;
  object-fit: contain;
  margin-bottom: 24px;
}

.footer-logo.logo-light {
  display: block;
}

.footer-logo.logo-dark {
  display: none;
}

[data-theme="dark"] .footer-logo.logo-light {
  display: none;
}

[data-theme="dark"] .footer-logo.logo-dark {
  display: block;
}

.footer-col h4 {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  text-transform: none;
  letter-spacing: -0.01em;
  margin-bottom: 20px;
}

.footer-col p,
.footer-links a,
.footer-col > a {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.8;
}

.footer-links a:hover {
  color: var(--copper-dot);
  transform: none;
}

.footer-col p {
  margin-bottom: 20px;
}

.footer-bottom {
  margin-top: 48px;
  padding-top: 20px;
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
  flex-wrap: wrap;
  gap: 16px;
}

.footer-contact {
  display: inline-block;
  padding-block: 8px;
  font-weight: 500;
  color: var(--copper-dot) !important;
}

.custom-cursor-ring,
.custom-cursor-dot,
#customCursorRing,
#customCursorDot {
  display: none !important;
}

/* ==========================================================================
   Controls & Buttons
   ========================================================================== */
.btn-primary,
.btn-secondary,
.btn-outline,
.zara-btn-primary {
  min-height: var(--control-height);
  height: auto;
  padding: 14px 24px;
  border-radius: 6px !important;
  font-size: 13px !important;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none !important;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background 300ms var(--ease-soft), color 300ms var(--ease-soft), border-color 300ms var(--ease-soft), transform 300ms var(--ease-soft);
}

.btn-primary,
.zara-btn-primary {
  background: var(--text-primary);
  color: var(--bg-primary);
}

.btn-secondary,
.btn-outline {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-subtle);
}

.btn-primary:hover,
.zara-btn-primary:hover {
  background: var(--copper-dot);
  color: #fff;
  transform: translateY(-2px);
}

.btn-secondary:hover,
.btn-outline:hover {
  background: var(--surface-hover);
  border-color: var(--border-strong);
  color: var(--text-primary);
  transform: translateY(-2px);
}

.btn-sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 12px !important;
}

.header-actions > a.btn-primary {
  height: 44px;
  min-height: 44px;
  width: auto;
  padding-inline: 18px;
  flex-shrink: 0;
  background: var(--text-primary);
  color: var(--bg-primary);
}

.header-actions > a.btn-primary:hover {
  background: var(--copper-dot);
  color: #fff;
}

.btn-block {
  width: 100%;
}

button:disabled,
[aria-disabled="true"] {
  opacity: 0.45;
  cursor: not-allowed !important;
  transform: none !important;
}

.badge-gold,
.badge-accent,
.badge-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: 0;
  color: var(--copper-dot);
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  box-shadow: none;
}

.badge-gold::before,
.badge-accent::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper-dot);
  display: inline-block;
  flex-shrink: 0;
}

.badge-dot {
  display: none;
}

.search-input {
  min-height: 48px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--bg-surface);
  color: var(--text-primary);
  font: 400 14px/1.5 var(--font-sans);
  box-shadow: none;
}

.search-input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.search-input:focus {
  border-color: var(--copper-dot);
  box-shadow: 0 0 0 3px var(--copper-dim);
}

input,
select,
textarea {
  accent-color: var(--copper-dot);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--copper-dot);
  outline-offset: 3px;
}

label {
  font-size: 13px;
}

textarea.search-input {
  resize: vertical;
  min-height: 120px;
}

/* ==========================================================================
   Circular Hero System (Shared across Home, Sustainability, Services & Service Pages)
   ========================================================================== */
.fsl-home-intro {
  padding: 0;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border-subtle);
}

.fsl-home-hero {
  padding: 56px 0 68px;
  min-height: min(760px, calc(100svh - 80px));
}

.fsl-page-circle-hero {
  padding: 48px 0 64px;
  min-height: min(640px, calc(100svh - 80px));
}

.fsl-home-hero h1 {
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 1.04;
}

.fsl-page-circle-hero h1 {
  font-size: clamp(38px, 4.4vw, 62px);
  line-height: 1.06;
  max-width: 680px;
}

.fsl-home-hero .description {
  font-size: 16px;
  line-height: 1.7;
  max-width: 480px;
}

.fsl-page-circle-hero .description {
  font-size: 16px;
  line-height: 1.7;
  max-width: 540px;
  margin: 22px 0 28px;
}

.fsl-home-hero .eyebrow {
  margin-bottom: 24px;
}

.fsl-home-hero .primary {
  background: var(--text-primary);
  color: var(--bg-primary);
  width: auto;
  min-width: 200px;
  padding-inline: 24px;
}

.fsl-home-hero .primary:hover {
  background: var(--copper-dot);
  color: #fff;
}

.fsl-home-hero .secondary {
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  width: auto;
  min-width: 190px;
  padding-inline: 22px;
}

.fsl-home-hero .motion-toggle {
  color: var(--text-primary);
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
}

/* Hero Metrics Bar inside Copy */
.hero-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  max-width: 560px;
}

.hero-metric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 14px 16px;
}

.hero-metric-val,
.hero-metric-card strong {
  font-family: var(--font-sans);
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: block;
  line-height: 1.1;
  margin-bottom: 4px;
}

.hero-metric-val.is-accent,
.hero-metric-card:nth-child(2) strong {
  color: var(--copper-dot);
}

.hero-metric-lbl,
.hero-metric-card span {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: block;
}

/* ==========================================================================
   Unified Kinetic Scroll Cards & Catalog Cards (Strong Image-to-Body Relationship)
   ========================================================================== */
.home-kinetic-stage {
  background: var(--bg-secondary) !important;
}

.fiddle-header-row {
  align-items: flex-end;
}

.fiddle-title-wrap {
  max-width: 650px;
}

.fiddle-title-wrap p {
  max-width: 540px;
  margin-top: 12px;
}

.fiddle-controls-hint {
  border: 1px solid var(--border-subtle);
  background: var(--bg-surface);
  font-size: 12px;
  letter-spacing: 0;
  border-radius: 6px;
  padding: 10px 14px;
}

.fiddle-card {
  width: 370px;
  height: 550px;
}

.card-inner {
  background: var(--bg-surface) !important;
  border: 1px solid var(--border-strong) !important;
  border-radius: 12px !important;
  box-shadow: var(--shadow-sm) !important;
  padding: 12px !important;
  display: flex;
  flex-direction: column;
  gap: 0;
  transition: transform 350ms var(--ease-soft), border-color 350ms var(--ease-soft), box-shadow 350ms var(--ease-soft) !important;
}

.fiddle-card:hover .card-inner {
  border-color: var(--copper-dot) !important;
  box-shadow: var(--shadow-lg) !important;
}

.fiddle-card-media {
  width: 100%;
  height: 56%;
  background: var(--bg-secondary);
  border-radius: 8px;
  border: 1px solid var(--border-subtle);
  overflow: hidden;
  position: relative;
}

.fiddle-card-media img {
  transition: transform 600ms var(--ease-soft);
}

.fiddle-card:hover .fiddle-card-media img {
  transform: scale(1.04);
}

.fiddle-card-badge {
  display: inline-flex !important;
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23, 26, 29, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.fiddle-card-weight {
  display: inline-flex !important;
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(250, 249, 246, 0.92);
  color: #171a1d;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 5px;
  border: 1px solid rgba(23, 26, 29, 0.12);
}

.fiddle-card-body {
  padding: 16px 8px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.fiddle-card-meta {
  color: var(--copper-dot);
  font-family: var(--font-mono);
  font-size: 11px;
  margin-bottom: 6px;
}

.fiddle-card-title {
  font-size: 24px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.fiddle-progress-bar {
  background: var(--copper-dot);
}

/* ==========================================================================
   Fabrics Catalog Filter Workbench & Architectural Swatch Cards
   ========================================================================== */
.catalog-toolbar {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 24px 28px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.toolbar-top-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.toolbar-top-title,
.toolbar-title-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  font-weight: 600;
}

.toolbar-top-title::before,
.toolbar-title-label::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--copper-dot);
}

.toolbar-search-row {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 16px;
  margin-bottom: 0;
}

.search-input-wrap {
  position: relative;
}

.search-input-wrap .search-input {
  padding-left: 44px;
  background: var(--bg-primary);
}

/* Category Pills Workbench */
.toolbar-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.toolbar-group-label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  font-weight: 600;
}

.toolbar-category-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding-bottom: 0;
}

.category-tab-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font: 500 12.5px/1.4 var(--font-sans);
  padding: 9px 15px;
  border-radius: 7px;
  transition: all 200ms ease;
}

.category-tab-btn:hover {
  background: var(--bg-surface-elevated);
  border-color: var(--border-strong);
  color: var(--text-primary);
}

.category-tab-btn.active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
  box-shadow: 0 4px 12px rgba(23, 26, 29, 0.14);
}

/* Interactive Property Filter Pills (Replaces Raw Checkboxes) */
.toolbar-traits-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 16px;
  border-top: 1px solid var(--border-subtle);
}

.trait-pill-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 13px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  user-select: none;
  transition: all 180ms ease;
}

.trait-pill-label:hover {
  border-color: var(--border-strong);
  color: var(--text-primary);
  background: var(--bg-surface-elevated);
}

.trait-pill-label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 4px;
  background: var(--bg-surface);
  display: inline-grid;
  place-content: center;
  margin: 0;
  transition: all 150ms ease;
}

.trait-pill-label input[type="checkbox"]::before {
  content: "";
  width: 8px;
  height: 8px;
  transform: scale(0);
  transition: transform 150ms ease;
  box-shadow: inset 1em 1em #fff;
  clip-path: polygon(14% 44%, 0 65%, 50% 100%, 100% 16%, 80% 0%, 43% 62%);
}

.trait-pill-label:has(input:checked) {
  background: var(--copper-dim);
  border-color: var(--copper-dot);
  color: var(--copper-dot);
  font-weight: 600;
}

.trait-pill-label input[type="checkbox"]:checked {
  background: var(--copper-dot);
  border-color: var(--copper-dot);
}

.trait-pill-label input[type="checkbox"]:checked::before {
  transform: scale(1);
}

/* Catalog Fabric Card - Framed Architectural Swatch Binder Style */
.fabric-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px 24px;
}

.fabric-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
  border-radius: 14px;
  padding: 12px;
  overflow: hidden;
  transition: transform 350ms var(--ease-soft), border-color 350ms var(--ease-soft), box-shadow 350ms var(--ease-soft);
  display: flex;
  flex-direction: column;
}

.fabric-card:hover {
  transform: translateY(-5px);
  border-color: var(--copper-dot);
  box-shadow: var(--shadow-lg);
}

.fabric-card-media {
  aspect-ratio: 16 / 10;
  background: var(--bg-secondary);
  border-radius: 9px;
  border: 1px solid var(--border-subtle);
  position: relative;
  overflow: hidden;
}

.fabric-card:hover .fabric-card-media img {
  transform: scale(1.05);
}

.card-category-tag {
  display: inline-flex !important;
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23, 26, 29, 0.82);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  z-index: 2;
}

.fabric-card-body {
  padding: 16px 8px 6px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-meta-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  padding-bottom: 10px;
  margin-bottom: 10px;
  border-bottom: 1px dashed var(--border-subtle);
}

.card-meta-line .code {
  color: var(--copper-dot);
  font-weight: 600;
}

.fabric-card-title {
  font-size: 23px !important;
  font-weight: 600 !important;
  letter-spacing: -0.03em;
  margin-bottom: 6px;
}

.fabric-card-tagline {
  font-size: 13px;
  line-height: 1.55;
  min-height: 40px;
  color: var(--text-secondary);
  margin-bottom: 14px;
}

.card-spec-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-spec-pill {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: 5px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 4px 8px;
  color: var(--text-secondary);
}

.fabric-card-footer,
.fiddle-card-footer {
  gap: 8px;
  flex-wrap: wrap;
  border-top: 1px solid var(--border-subtle);
  padding-top: 14px;
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.btn-card-swatch,
.btn-card-compare,
.link-card-detail,
.btn-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border-radius: 6px;
  padding: 7px 12px;
  font: 500 12px/1.3 var(--font-sans);
  white-space: nowrap;
  border: 1px solid var(--border-subtle);
  box-shadow: none;
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  gap: 6px;
  transition: all 220ms var(--ease-soft);
}

.btn-card-swatch {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
}

.btn-card-swatch:hover {
  background: var(--copper-dot);
  border-color: var(--copper-dot);
  color: #fff;
}

.btn-card-compare:hover {
  background: var(--surface-hover);
  color: var(--text-primary);
  border-color: var(--border-strong);
}

.btn-card-compare.is-selected {
  background: var(--copper-dim);
  border-color: var(--copper-dot);
  color: var(--copper-dot);
}

.link-card-detail {
  background: transparent;
  border: 0;
  color: var(--copper-dot);
  font-weight: 600;
  padding-inline: 6px;
}

.link-card-detail:hover {
  color: var(--copper-hover);
  transform: translateX(3px);
}

.card-quick-view-overlay {
  background: rgba(23, 26, 29, 0.25);
  backdrop-filter: blur(2px);
}

.card-quick-btn {
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  transform: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
}

.fabric-card:focus-within .card-quick-view-overlay {
  opacity: 1;
}

.filter-status {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 24px;
  color: var(--text-secondary);
  font-size: 12.5px;
}

.filter-status button {
  background: var(--copper-dim);
  color: var(--copper-dot);
  border: 1px solid rgba(185, 74, 11, 0.25);
  border-radius: 6px;
  padding: 6px 12px;
  min-height: 32px;
  font-weight: 500;
}

.filter-status button:hover {
  background: var(--copper-dot);
  color: #fff;
}

/* ==========================================================================
   Service Cards & Framed Architectural Cards (With Media Top + Body Bottom)
   ========================================================================== */
.framed-media-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform 350ms var(--ease-soft), border-color 350ms var(--ease-soft), box-shadow 350ms var(--ease-soft);
}

.framed-media-card:hover {
  transform: translateY(-5px);
  border-color: var(--copper-dot);
  box-shadow: var(--shadow-lg);
}

.framed-card-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  border-radius: 9px;
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.framed-card-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 550ms var(--ease-soft);
}

.framed-media-card:hover .framed-card-img-wrap img {
  transform: scale(1.05);
}

.framed-card-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: rgba(23, 26, 29, 0.84);
  backdrop-filter: blur(8px);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.framed-card-body {
  padding: 18px 10px 8px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.framed-card-eyebrow {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--copper-dot);
  display: block;
  margin-bottom: 6px;
}

.framed-card-body h3 {
  font-size: 21px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.framed-card-body p {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin: 0 0 16px;
  flex: 1;
}

.framed-card-footer {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 600;
  color: var(--copper-dot);
}

/* ==========================================================================
   Detail Page: Ultra-Clean Zara-Editorial Dual Scroll & Minimalist 184-Shade UX
   (Hidden Scrollbars, Pure Unboxed Image Stream, Tabbed Color Swatch Matrix)
   ========================================================================== */
.detail-fullpage-wrap {
  max-width: 1720px;
  padding-inline: clamp(20px, 4vw, 56px);
}

.detail-hero-section {
  padding: 28px 0 80px;
}

.detail-breadcrumb-bar {
  border-bottom: 1px solid var(--border-subtle);
  padding-block: 14px;
  margin-top: 0 !important;
}

.detail-breadcrumb-bar strong {
  color: var(--text-primary) !important;
}

/* Dual Independent Scroll Split Grid — Clean Open Architecture (Zero Outer Boxes) */
.detail-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 48%) minmax(0, 52%);
  gap: clamp(32px, 4.5vw, 72px);
  align-items: start;
}

@media (max-width: 1024px) {
  .detail-split-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

/* Completely Hidden Scrollbars — Smooth Wheel/Trackpad Scroll Without Visual Bar Clutter */
.fsl-hidden-scroll {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.fsl-hidden-scroll::-webkit-scrollbar {
  width: 0 !important;
  height: 0 !important;
  display: none !important;
}

/* Left & Right Independent Scroll Panes on Desktop (No borders, no boxes, no shadows) */
@media (min-width: 1025px) {
  .detail-visual-pane,
  .detail-info-pane {
    height: calc(100vh - 126px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scroll-behavior: smooth;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0;
  }

  .detail-info-pane {
    padding-right: 4px;
  }
}

/* Left Column: Pure Full-Bleed Large Editorial Images (Zero Text, Zero Captions, Zero Box) */
.fabric-visual-stream {
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 100%;
}

.visual-stream-card {
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  width: 100%;
}

.visual-stream-media {
  border-radius: 0;
  overflow: hidden;
  border: none;
  background: var(--bg-secondary);
  width: 100%;
}

.visual-stream-img {
  width: 100%;
  height: auto;
  min-height: 540px;
  max-height: 780px;
  object-fit: cover;
  display: block;
}

/* Right Column: Minimalist Editorial Dossier & Clean Tab Switcher */
.detail-info-col {
  display: flex;
  flex-direction: column;
  padding-top: 4px;
}

/* Clean Editorial Tab Switcher (Overview & Specs vs 184 Color Swatches) */
.detail-editorial-tabs {
  display: flex;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 28px;
}

.detail-tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 12px 0 14px;
  margin-bottom: -1px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: color 180ms ease, border-color 180ms ease;
}

.detail-tab-btn:hover {
  color: var(--text-primary);
}

.detail-tab-btn.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

.detail-tab-count {
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 999px;
  background: var(--bg-secondary);
  color: var(--copper-dot);
  font-weight: 600;
}

.detail-tab-panel {
  display: none;
  animation: detailTabFade 220ms ease;
}

.detail-tab-panel.is-active {
  display: block;
}

@keyframes detailTabFade {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Subtle Inline Active Shade Strip inside Overview Tab */
.overview-shade-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  margin-bottom: 24px;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.overview-shade-current {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.overview-shade-dot {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
}

.overview-shade-meta {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-primary);
}

.overview-shade-meta span {
  color: var(--text-muted);
}

.overview-open-swatches-link {
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--copper-dot);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ==========================================================================
   Dedicated 184-Color Swatch Tab — Pure Color Stream (Hover to Reveal, Click to Copy)
   ========================================================================== */
.pure-swatch-panel {
  padding-bottom: 32px;
}

/* Minimal Live Hover Readout Bar at Top of Swatch Tab */
.pure-swatch-status-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg-primary);
  padding: 14px 0;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.pure-swatch-readout {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 28px;
}

.pure-swatch-readout-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid rgba(0, 0, 0, 0.18);
  flex-shrink: 0;
  transition: background-color 120ms ease;
}

.pure-swatch-readout-text {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-primary);
  letter-spacing: 0.02em;
}

.pure-swatch-readout-sub {
  color: var(--text-muted);
  margin-left: 6px;
}

.pure-swatch-hint {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

/* Minimal Filter Row (Underline Search + Text Filter Links, No Box Clutter) */
.pure-swatch-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
  flex-wrap: wrap;
}

.pure-swatch-search {
  border: none;
  border-bottom: 1px solid var(--border-strong);
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12px;
  padding: 6px 2px;
  width: 240px;
  outline: none;
  transition: border-color 180ms ease;
}

.pure-swatch-search:focus {
  border-bottom-color: var(--copper-dot);
}

.pure-swatch-families {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.pure-family-link {
  background: none;
  border: none;
  padding: 2px 0;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  cursor: pointer;
  border-bottom: 1.5px solid transparent;
  transition: color 160ms ease, border-color 160ms ease;
}

.pure-family-link:hover {
  color: var(--text-primary);
}

.pure-family-link.is-active {
  color: var(--text-primary);
  border-bottom-color: var(--copper-dot);
  font-weight: 600;
}

/* Pure Color-Only Matrix — No Pre-Shown Codes or Names, Only Pure Color Swatches */
.pure-color-matrix {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 12px;
  padding-top: 4px;
}

.pure-color-swatch-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: 1.5px solid rgba(0, 0, 0, 0.12);
  padding: 0;
  cursor: pointer;
  background-clip: padding-box;
  transition: transform 160ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 160ms ease, border-color 160ms ease;
}

[data-theme="dark"] .pure-color-swatch-item {
  border-color: rgba(255, 255, 255, 0.16);
}

.pure-color-swatch-item:hover,
.pure-color-swatch-item:focus-visible {
  transform: scale(1.18);
  z-index: 20;
  border-color: var(--text-primary);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
  outline: none;
}

.pure-color-swatch-item.is-selected {
  border: 2px solid var(--text-primary);
  box-shadow: 0 0 0 2px var(--bg-primary), 0 0 0 4px var(--copper-dot);
}

/* Floating Hover Pill on Each Swatch (Revealed ONLY on Hover/Focus) */
.pure-swatch-hover-pill {
  position: absolute;
  bottom: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(4px);
  background: #14171C;
  color: #FAF9F6;
  padding: 6px 10px;
  border-radius: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.35;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 140ms ease, transform 140ms ease;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
  z-index: 30;
  text-align: center;
}

.pure-swatch-hover-pill::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 5px;
  border-style: solid;
  border-color: #14171C transparent transparent transparent;
}

.pure-color-swatch-item:hover .pure-swatch-hover-pill,
.pure-color-swatch-item:focus-visible .pure-swatch-hover-pill {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}

.pure-swatch-hover-pill strong {
  color: #F39C6B;
  font-weight: 600;
  display: block;
}

.pure-swatch-hover-pill span {
  color: rgba(250, 249, 246, 0.85);
  font-size: 10px;
}

/* Minimal Sourcing Specs List (Replaces Heavy Boxy Cards) */
.sourcing-origin-card {
  background: transparent !important;
  border: none !important;
  border-top: 1px solid var(--border-subtle) !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  border-radius: 0 !important;
  padding: 22px 0 !important;
  margin-bottom: 32px !important;
}

.zara-perf-grid {
  border-bottom: none !important;
  padding-bottom: 8px !important;
  margin-bottom: 20px !important;
}

.zara-perf-item {
  border: none !important;
  border-bottom: 1px solid var(--border-subtle) !important;
  background: transparent !important;
  border-radius: 0 !important;
  padding: 12px 4px !important;
  align-items: flex-start !important;
  text-align: left !important;
}

.zara-title,
.fabric-title,
.fsl-site .detail-fabric-title {
  font-family: var(--font-sans) !important;
  letter-spacing: -0.055em !important;
  font-weight: 500 !important;
  font-size: clamp(38px, 4vw, 56px);
  margin-bottom: 10px;
}

.fsl-site .detail-fabric-headline {
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.35;
  letter-spacing: -0.02em;
  font-weight: 400;
  margin-bottom: 16px;
}

.zara-action-cluster {
  margin-block: 24px;
}

.zara-action-strip {
  gap: 16px;
  flex-wrap: wrap;
}

.zara-action-link {
  font: 500 12px/1.5 var(--font-sans);
  color: var(--text-secondary);
  padding-block: 10px;
}

.zara-action-link:hover {
  color: var(--copper-dot);
}

.zara-action-sep {
  display: none;
}

.zara-perf-item {
  border: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  border-radius: 8px;
}

.zara-tech-table th,
.zara-tech-table td {
  font-family: var(--font-sans);
  font-size: 13.5px;
  line-height: 1.6;
  padding: 15px 16px;
  border-color: var(--border-subtle);
}

.zara-tech-table th {
  font-weight: 500;
  color: var(--text-secondary);
}

.zara-tech-table td {
  color: var(--text-primary);
}

.color-chip-btn {
  border-radius: 50% !important;
}

/* Shared Overlays */
.swatch-drawer-panel,
.quick-view-modal-card,
.compare-modal-card,
.modal-card {
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border-strong);
  background: var(--bg-surface);
  border-radius: 12px;
}

.swatch-drawer-panel {
  border-radius: 0;
}

.swatch-drawer-title {
  font-size: 26px !important;
}

.drawer-close-btn,
.modal-close-btn {
  border: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
  width: 38px;
  height: 38px;
  border-radius: 50%;
}

.compare-floating-dock {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  border-radius: 10px;
  visibility: hidden;
  max-width: calc(100vw - 24px);
}

.compare-floating-dock.is-visible {
  visibility: visible;
}

.compare-dock-label,
.compare-dock-chip,
.compare-dock-slot-empty {
  color: var(--text-primary);
  background: var(--bg-secondary);
  border-color: var(--border-subtle);
}

.btn-dock-compare {
  background: var(--text-primary);
  color: var(--bg-primary);
  border: 0;
  border-radius: 6px;
  min-height: 40px;
  font: 500 12px/1.5 var(--font-sans);
  padding: 10px 16px;
}

.btn-dock-compare:not(:disabled):hover {
  background: var(--copper-dot);
  color: #fff;
}

.compare-modal-backdrop,
.modal-backdrop {
  background: rgba(23, 26, 29, 0.55);
  backdrop-filter: blur(5px);
}

.mobile-nav-drawer {
  visibility: hidden;
}
.mobile-nav-drawer.is-open {
  visibility: visible;
}

.fsl-tooltip {
  position: fixed;
  z-index: 2500;
  background: var(--text-primary);
  color: var(--bg-primary);
  font: 400 12px/1.5 var(--font-sans);
  padding: 8px 12px;
  border-radius: 5px;
  max-width: 250px;
  pointer-events: none;
}
.fsl-tooltip[hidden] {
  display: none;
}

/* ==========================================================================
   Contrast & Mismatch Fixes Across All Pages (Light & Dark Mode Safe)
   ========================================================================== */
/* Eliminate 80px header-height gap when header is sticky */
body.fsl-site [style*="margin-top: var(--header-height)"] {
  margin-top: 0 !important;
}

/* Dark CTA Banner Section Contrast Fix (Light & Dark Modes) */
body.fsl-site section[style*="radial-gradient"],
body.fsl-site .fsl-dark-cta-banner {
  background: radial-gradient(circle at 50% 0%, #1d2636 0%, #0d1118 100%) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.fsl-site section[style*="radial-gradient"] h2,
body.fsl-site .fsl-dark-cta-banner h2 {
  color: #faf9f6 !important;
}

body.fsl-site section[style*="radial-gradient"] p,
body.fsl-site .fsl-dark-cta-banner p {
  color: rgba(250, 249, 246, 0.78) !important;
}

body.fsl-site section[style*="radial-gradient"] .btn-primary,
body.fsl-site .fsl-dark-cta-banner .btn-primary {
  background: var(--copper-dot) !important;
  border-color: var(--copper-dot) !important;
  color: #ffffff !important;
  box-shadow: 0 8px 24px rgba(185, 74, 11, 0.35);
}

body.fsl-site section[style*="radial-gradient"] .btn-primary:hover,
body.fsl-site .fsl-dark-cta-banner .btn-primary:hover {
  background: #d1560f !important;
  border-color: #d1560f !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

body.fsl-site section[style*="radial-gradient"] .btn-secondary,
body.fsl-site .fsl-dark-cta-banner .btn-secondary {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.24) !important;
  color: #faf9f6 !important;
}

body.fsl-site section[style*="radial-gradient"] .btn-secondary:hover,
body.fsl-site .fsl-dark-cta-banner .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.45) !important;
  color: #ffffff !important;
}

/* Fabric Detail Page Contrast Fixes in Light & Dark Mode */
body.fsl-site .zara-btn-primary {
  background: var(--text-primary) !important;
  color: var(--bg-primary) !important;
  border: 1px solid var(--text-primary) !important;
  border-radius: 7px !important;
  transition: all 240ms var(--ease-soft) !important;
}

body.fsl-site .zara-btn-primary:hover {
  background: var(--copper-dot) !important;
  border-color: var(--copper-dot) !important;
  color: #ffffff !important;
}

body.fsl-site #breadcrumbFabricName {
  color: var(--text-primary) !important;
}

body.fsl-site .tds-sheet-card {
  background: #ffffff !important;
  color: #11141a !important;
}

body.fsl-site .tds-sheet-card h2,
body.fsl-site .tds-sheet-card h3,
body.fsl-site .tds-sheet-card h4,
body.fsl-site .tds-sheet-card strong,
body.fsl-site .tds-sheet-card td {
  color: #11141a !important;
}

/* ==========================================================================
   Smooth Scroll Progress, Reveal Animations & Kinetic Fabric Swatch Ticker
   ========================================================================== */
.fsl-scroll-progress {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  z-index: 2600;
  pointer-events: none;
  background: transparent;
}

.fsl-scroll-progress-bar {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--copper-dot) 0%, #e07a3c 100%);
  transform-origin: 0 50%;
  transform: scaleX(0);
  transition: transform 80ms linear;
}

/* Scroll Reveal Engine (Detroit.paris / Editorial Smooth Reveal) */
.reveal-item {
  opacity: 0;
  transform: translate3d(0, 26px, 0);
  transition:
    opacity 720ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.reveal-item.is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

/* Kinetic Fabric Texture Marquee Ribbon */
.fabric-ribbon-marquee {
  background: var(--bg-surface);
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 16px 0;
  overflow: hidden;
  position: relative;
}

.fabric-ribbon-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  animation: fslRibbonScroll 44s linear infinite;
}

.fabric-ribbon-marquee:hover .fabric-ribbon-track {
  animation-play-state: paused;
}

@keyframes fslRibbonScroll {
  0% {
    transform: translate3d(0, 0, 0);
  }
  100% {
    transform: translate3d(-50%, 0, 0);
  }
}

.fabric-ribbon-pill {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 14px 6px 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  text-decoration: none;
  transition: transform 240ms var(--ease-soft), border-color 240ms var(--ease-soft), box-shadow 240ms var(--ease-soft);
}

.fabric-ribbon-pill:hover {
  transform: translateY(-2px);
  border-color: var(--copper-dot);
  box-shadow: var(--shadow-sm);
}

.fabric-ribbon-swatch {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  flex-shrink: 0;
}

.fabric-ribbon-meta {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.fabric-ribbon-name {
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.fabric-ribbon-spec {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--copper-dot);
  letter-spacing: 0.04em;
}

/* Subtle tactile hover sheen on framed cards */
.framed-card-img-wrap::after,
.fabric-card-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0) 35%, rgba(255, 255, 255, 0.14) 50%, rgba(255, 255, 255, 0) 65%);
  transform: translateX(-120%);
  transition: transform 750ms cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.framed-media-card:hover .framed-card-img-wrap::after,
.fabric-card:hover .fabric-card-media::after {
  transform: translateX(120%);
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .header-actions > a.btn-primary {
    width: auto;
    min-width: 120px;
  }
  .main-nav {
    gap: 6px;
  }
  .header-inner {
    gap: 16px;
  }
  .detail-split-grid {
    gap: 40px;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .mega-menu-layout {
    grid-template-columns: 1fr 240px;
  }
}

@media (max-width: 1024px) {
  .main-nav {
    display: none;
  }
  .mobile-menu-toggle {
    display: flex;
  }
  .header-actions {
    margin-left: auto;
  }
  .container,
  .detail-fullpage-wrap {
    padding-inline: 32px;
  }
  .fabric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .detail-split-grid {
    grid-template-columns: 1fr;
  }
  .fabric-visual-stream {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .fabric-visual-stream > div:first-child {
    grid-column: 1 / -1;
  }
  .fsl-site .responsive-grid {
    gap: 32px !important;
  }
  .fsl-home-hero {
    gap: 28px;
  }
}

@media (max-width: 767px) {
  :root {
    --section-space: 52px;
  }
  .container,
  .detail-fullpage-wrap {
    padding-inline: 20px;
  }
  .site-header {
    height: 74px;
  }
  .brand-logo-img {
    width: 135px;
    height: 45px;
  }
  .header-actions {
    gap: 6px;
  }
  .header-actions > a.btn-primary {
    display: none;
  }
  .swatch-cart-btn {
    font-size: 12px;
    padding: 0 10px;
  }
  .mobile-nav-drawer {
    top: 74px;
    max-height: calc(100dvh - 74px);
  }
  .fsl-site .responsive-grid {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 24px !important;
  }
  .content-section {
    padding-block: 52px !important;
  }
  .fsl-home-hero,
  .fsl-page-circle-hero {
    padding: 36px 0 48px;
    gap: 36px;
  }
  .hero-metrics-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .toolbar-search-row {
    grid-template-columns: 1fr;
  }
  .toolbar-category-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-block: 4px;
  }
  .category-tab-btn {
    flex-shrink: 0;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .fiddle-card {
    width: 300px;
    height: 520px;
  }
  .fsl-site .content-section div[style*="grid-template-columns: repeat"] {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

@media (max-width: 480px) {
  .fabric-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ==========================================================================
   Utility & Status Pages: 404 Not Found, Coming Soon & Under Construction
   ========================================================================== */
.status-page-section {
  min-height: calc(100vh - 82px - 220px);
  display: flex;
  align-items: center;
  padding: clamp(56px, 8vw, 110px) 0;
  position: relative;
  overflow: hidden;
}

.status-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
}

@media (max-width: 992px) {
  .status-split-grid {
    grid-template-columns: 1fr;
    gap: 44px;
  }
}

.status-eyebrow-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--copper-dot);
  margin-bottom: 18px;
}

.status-eyebrow-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper-dot);
  box-shadow: 0 0 0 4px var(--copper-dim);
}

.status-giant-code {
  font-family: var(--font-sans);
  font-size: clamp(72px, 11vw, 148px);
  font-weight: 500;
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--text-primary);
  margin: 0 0 14px;
}

.status-title {
  font-family: var(--font-sans);
  font-size: clamp(32px, 4.2vw, 54px);
  font-weight: 500;
  line-height: 1.08;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 18px;
}

.status-lead {
  font-size: clamp(15px, 1.2vw, 17.5px);
  line-height: 1.75;
  color: var(--text-secondary);
  max-width: 580px;
  margin: 0 0 32px;
}

.status-action-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

/* Countdown Timer Grid for Coming Soon Page */
.status-countdown-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 110px));
  gap: 14px;
  margin-bottom: 34px;
}

.status-countdown-cell {
  border-top: 1px solid var(--border-strong);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 4px;
}

.status-countdown-num {
  display: block;
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  line-height: 1.05;
}

.status-countdown-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-top: 6px;
}

/* Notify Form for Coming Soon */
.status-notify-form {
  display: flex;
  gap: 10px;
  max-width: 500px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}

.status-notify-input {
  flex: 1 1 240px;
  min-height: 46px;
  padding: 0 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 13.5px;
  outline: none;
  transition: border-color 180ms ease;
}

.status-notify-input:focus {
  border-color: var(--copper-dot);
}

/* Progress Milestone List for Under Construction */
.status-progress-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 540px;
  margin-bottom: 36px;
  padding-top: 8px;
}

.status-progress-item {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.status-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
}

.status-progress-head span:last-child {
  color: var(--copper-dot);
  font-weight: 600;
}

.status-progress-bar-wrap {
  width: 100%;
  height: 4px;
  background: var(--border-subtle);
  border-radius: 999px;
  overflow: hidden;
}

.status-progress-bar-fill {
  height: 100%;
  background: var(--copper-dot);
  border-radius: 999px;
}

/* Quick Directory Links on Status Pages */
.status-quick-links {
  border-top: 1px solid var(--border-subtle);
  padding-top: 24px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 16px;
}

.status-quick-link-item {
  display: flex;
  flex-direction: column;
  gap: 3px;
  text-decoration: none;
  padding: 6px 0;
}

.status-quick-link-item strong {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  transition: color 160ms ease;
}

.status-quick-link-item span {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.status-quick-link-item:hover strong {
  color: var(--copper-dot);
}

/* Right Editorial Visual Showcase on Status Pages */
.status-visual-showcase {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.status-visual-frame {
  width: 100%;
  overflow: hidden;
  background: var(--bg-secondary);
}

.status-visual-frame img {
  width: 100%;
  height: clamp(380px, 48vw, 580px);
  object-fit: cover;
  display: block;
}

.status-visual-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 12px;
}

/* ==========================================================================
   24-Step Buyer Sourcing Journey & Payment Roadmap (sourcing-process.html)
   ========================================================================== */
.process-sticky-nav {
  position: sticky;
  top: 80px;
  z-index: 90;
  background: rgba(250, 249, 246, 0.94);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-subtle);
  padding: 14px 0;
}

[data-theme="dark"] .process-sticky-nav {
  background: rgba(15, 18, 23, 0.94);
}

.process-phase-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.process-phase-pills::-webkit-scrollbar {
  display: none;
}

.process-phase-pill {
  flex-shrink: 0;
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 180ms ease;
}

.process-phase-pill:hover {
  border-color: var(--text-primary);
  color: var(--text-primary);
}

.process-phase-pill.is-active {
  background: var(--text-primary);
  border-color: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.process-phase-block {
  padding: 68px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.process-phase-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: end;
  margin-bottom: 40px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border-strong);
}

@media (max-width: 768px) {
  .process-phase-header {
    grid-template-columns: 1fr;
    align-items: start;
  }
}

.process-phase-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper-dot);
  display: block;
  margin-bottom: 8px;
}

.process-phase-title {
  font-family: var(--font-sans);
  font-size: clamp(28px, 3.2vw, 44px);
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.process-phase-sub {
  font-size: 15px;
  color: var(--text-secondary);
  max-width: 680px;
  margin: 0;
}

.process-phase-sla-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-primary);
  padding: 8px 14px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  white-space: nowrap;
}

/* Clean Editorial Step Row List (Steps 01 - 24) */
.process-steps-list {
  display: flex;
  flex-direction: column;
}

.process-step-row {
  display: grid;
  grid-template-columns: 110px minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.85fr);
  gap: 28px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border-subtle);
  align-items: start;
  transition: background-color 180ms ease;
}

.process-step-row:last-child {
  border-bottom: none;
}

@media (max-width: 1100px) {
  .process-step-row {
    grid-template-columns: 90px 1fr 1fr;
    gap: 20px;
  }
  .process-step-col-docs {
    grid-column: 2 / -1;
  }
}

@media (max-width: 767px) {
  .process-step-row {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 24px 0;
  }
  .process-step-col-docs {
    grid-column: auto;
  }
}

.process-step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--copper-dot);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.process-step-num strong {
  font-family: var(--font-sans);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.process-step-name {
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.process-step-sla {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.process-role-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 5px;
}

.process-role-label.is-buyer {
  color: var(--copper-dot);
}

.process-role-text {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.process-doc-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.process-doc-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-primary);
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  padding: 3px 8px;
  border-radius: 4px;
}

/* Payment Architecture Grid on Process Page */
.payment-architecture-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin-top: 36px;
}

@media (max-width: 1024px) {
  .payment-architecture-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .payment-architecture-grid {
    grid-template-columns: 1fr;
  }
}

.payment-stage-col {
  border-top: 2px solid var(--text-primary);
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.payment-stage-col.is-accent {
  border-top-color: var(--copper-dot);
}

.payment-stage-pct {
  font-family: var(--font-sans);
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 500;
  letter-spacing: -0.05em;
  color: var(--text-primary);
  line-height: 1;
}

.payment-stage-col.is-accent .payment-stage-pct {
  color: var(--copper-dot);
}

.payment-stage-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.payment-stage-desc {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* ==========================================================================
   Showcase Projects, 4 Buyer Personas & Mobile Quick Action Bar
   ========================================================================== */
.fsl-showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 36px 28px;
}

@media (max-width: 900px) {
  .fsl-showcase-grid {
    grid-template-columns: 1fr;
  }
}

.fsl-showcase-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.fsl-showcase-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: var(--bg-secondary);
}

.fsl-showcase-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.fsl-showcase-item:hover .fsl-showcase-media img {
  transform: scale(1.03);
}

.fsl-showcase-tag {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 19, 25, 0.78);
  backdrop-filter: blur(8px);
  color: #FAF9F6;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 5px 10px;
  border-radius: 4px;
  text-transform: uppercase;
}

.fsl-showcase-content {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fsl-showcase-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--copper-dot);
  text-transform: uppercase;
}

.fsl-showcase-content h3 {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0;
}

.fsl-showcase-content p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

.fsl-showcase-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fsl-showcase-link:hover {
  color: var(--copper-dot);
}

/* 4 Target B2B Buyer Personas Strip */
.fsl-persona-strip {
  margin-top: 64px;
  padding-top: 44px;
  border-top: 1px solid var(--border-subtle);
}

.fsl-persona-header {
  margin-bottom: 28px;
}

.fsl-persona-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--copper-dot);
  text-transform: uppercase;
  display: block;
  margin-bottom: 6px;
}

.fsl-persona-header h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  font-weight: 500;
  letter-spacing: -0.025em;
  color: var(--text-primary);
  margin: 0;
}

.fsl-persona-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}

@media (max-width: 1024px) {
  .fsl-persona-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .fsl-persona-grid {
    grid-template-columns: 1fr;
  }
}

.fsl-persona-col {
  border-top: 2px solid var(--border-strong);
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fsl-persona-num {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--copper-dot);
  letter-spacing: 0.08em;
}

.fsl-persona-col h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0;
}

.fsl-persona-col p {
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-secondary);
  margin: 0;
}

/* Footer Social Outreach Pills (WhatsApp, LinkedIn, Facebook) */
.footer-grid.footer-grid-expanded {
  grid-template-columns: 1.35fr 0.9fr 1.15fr 0.95fr 1.15fr;
  gap: 32px;
}

@media (max-width: 1120px) {
  .footer-grid.footer-grid-expanded {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .footer-grid.footer-grid-expanded {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}

.footer-bottom-links {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer-bottom-links a {
  color: var(--text-muted);
  font-size: 12px;
  transition: color 0.2s ease;
}

.footer-bottom-links a:hover {
  color: var(--copper-dot);
}

/* Editorial Legal Pages (Terms & Conditions, Privacy Policy) */
.fsl-legal-stream {
  display: flex;
  flex-direction: column;
  gap: 36px;
}

.fsl-legal-block {
  border-bottom: 1px solid var(--border-subtle);
  padding-bottom: 32px;
}

.fsl-legal-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.fsl-legal-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  color: var(--copper-dot);
  text-transform: uppercase;
  display: block;
  margin-bottom: 8px;
}

.fsl-legal-block h2 {
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 12px;
}

.fsl-legal-block p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--text-secondary);
  margin: 0 0 12px;
}

.fsl-legal-block ul {
  margin: 10px 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.fsl-legal-block li {
  font-size: 14.5px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.footer-social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 6px;
}

.footer-social-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--text-primary) !important;
  background: var(--bg-primary);
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.footer-social-pill:hover {
  border-color: var(--copper-dot);
  color: var(--copper-dot) !important;
}

/* Mobile-First Sticky Quick Action Bar (<= 767px) */
.fsl-mobile-quick-bar {
  display: none;
}

@media (max-width: 767px) {
  body {
    padding-bottom: 62px;
  }
  .fsl-mobile-quick-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 940;
    display: grid;
    grid-template-columns: 1.15fr 0.9fr 0.95fr 1.1fr;
    background: var(--bg-primary);
    border-top: 1px solid var(--border-strong);
    box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.08);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
    gap: 6px;
  }
  .fsl-mqb-item {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 40px;
    padding: 0 6px;
    border-radius: 6px;
    border: 1px solid var(--border-subtle);
    background: var(--bg-secondary);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    text-align: center;
    cursor: pointer;
  }
  .fsl-mqb-wa {
    border-color: rgba(34, 197, 94, 0.35);
  }
  .fsl-mqb-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #16a34a;
    flex-shrink: 0;
  }
  .fsl-mqb-primary {
    background: var(--text-primary);
    color: var(--bg-primary) !important;
    border-color: var(--text-primary);
  }
}

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


/* ==========================================================================
   UI8 Architecture & Tactile 404 Design Extensions
   ========================================================================== */
.ui8-refined-404 {
  padding: clamp(48px, 6vw, 90px) 0 80px;
  background: radial-gradient(circle at 10% 20%, rgba(185, 74, 11, 0.035) 0%, transparent 40%),
              radial-gradient(circle at 90% 80%, rgba(23, 26, 29, 0.02) 0%, transparent 40%),
              var(--bg-primary);
}

.ui8-status-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 22px;
  margin-bottom: 36px;
  border-bottom: 1px solid var(--border-subtle);
}

.ui8-status-header .status-eyebrow-pill {
  margin-bottom: 0;
}

.ui8-system-meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  letter-spacing: 0.06em;
}

.ui8-system-meta .meta-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.18);
  animation: pulse-dot 2s infinite ease-in-out;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.ui8-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  position: relative;
}

.ui8-content-block {
  position: relative;
  z-index: 2;
}

.ui8-code-watermark {
  font-family: var(--font-mono);
  font-size: clamp(80px, 14vw, 170px);
  font-weight: 800;
  line-height: 0.85;
  letter-spacing: -0.06em;
  color: var(--border-strong);
  opacity: 0.28;
  user-select: none;
  pointer-events: none;
  margin-bottom: -15px;
  margin-left: -4px;
}

.ui8-display-title {
  font-size: clamp(34px, 4.4vw, 56px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.035em;
  margin: 0 0 20px;
  color: var(--text-primary);
}

.ui8-display-title .text-copper {
  color: var(--copper-dot);
}

.ui8-lead-editorial {
  font-size: clamp(15.5px, 1.25vw, 18px);
  line-height: 1.7;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 0 32px;
}

/* UI8 Integrated Search Console */
.ui8-search-console {
  margin-bottom: 28px;
  max-width: 580px;
}

.ui8-inline-search {
  display: flex;
  align-items: center;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  padding: 6px 8px 6px 18px;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s var(--ease-out-expo);
}

.ui8-inline-search:focus-within {
  border-color: var(--copper-dot);
  box-shadow: 0 0 0 4px var(--copper-glow);
}

.ui8-inline-search .search-input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
}

.ui8-inline-search .search-icon {
  color: var(--text-muted);
  flex-shrink: 0;
}

.ui8-inline-search input {
  width: 100%;
  border: none;
  background: transparent;
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 14px;
  outline: none;
}

.ui8-inline-search .btn-search-go {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.ui8-action-cluster {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.ui8-action-cluster .btn-primary,
.ui8-action-cluster .btn-secondary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* UI8 Curated Fast-Track Pathway Bento */
.ui8-curated-routes {
  margin-top: 36px;
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
}

.ui8-routes-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.ui8-bento-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.ui8-bento-tile {
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  text-decoration: none;
  color: var(--text-primary);
  transition: all 0.25s var(--ease-out-expo);
  position: relative;
  overflow: hidden;
}

.ui8-bento-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--copper-dot);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ui8-bento-tile:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-md);
}

.ui8-bento-tile:hover::before {
  opacity: 1;
}

.ui8-bento-tile .tile-category {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--copper-dot);
  margin-bottom: 8px;
}

.ui8-bento-tile h4 {
  font-size: 14.5px;
  font-weight: 600;
  margin: 0 0 6px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ui8-bento-tile p {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.45;
  margin: 0;
}

/* UI8 Right Stage & Tactile Badge */
.ui8-visual-stage {
  display: flex;
  justify-content: center;
  position: relative;
}

.ui8-floating-spec-card {
  margin-top: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 6px;
  backdrop-filter: blur(12px);
  transition: transform 0.3s ease, border-color 0.3s ease;
}

.ui8-floating-spec-card:hover {
  border-color: var(--copper-dot);
  transform: translateY(-2px);
}

.ui8-floating-spec-card .spec-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.ui8-floating-spec-card .spec-live-pill {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  padding: 3px 8px;
  border-radius: 999px;
  text-transform: uppercase;
}

.ui8-floating-spec-card .spec-code {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
}

.ui8-floating-spec-card .spec-detail strong {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.ui8-floating-spec-card .spec-detail span {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .ui8-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .ui8-bento-mini {
    grid-template-columns: 1fr;
  }
  .ui8-inline-search {
    flex-direction: column;
    align-items: stretch;
    border-radius: var(--radius-lg);
    padding: 12px;
  }
  .ui8-inline-search .btn-search-go {
    margin-top: 10px;
  }
}


/* ==========================================================================
   UI8 Architectural Material Filter Workbench Styles
   ========================================================================== */
.ui8-workbench-container {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: clamp(20px, 2.5vw, 28px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  margin-bottom: 24px;
}

.ui8-command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--border-subtle);
  flex-wrap: wrap;
}

.ui8-meta-cluster {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--text-muted);
}

.ui8-live-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.2);
  animation: pulse-dot 2s infinite ease-in-out;
}

.ui8-slash-divider {
  color: var(--border-strong);
}

.ui8-meta-caption {
  color: var(--text-secondary);
  font-weight: 500;
}

.ui8-counter-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.ui8-counter-badge {
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  color: var(--copper-dot);
  background: var(--copper-dim);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(185, 74, 11, 0.2);
}

.ui8-reset-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.ui8-reset-btn:hover {
  color: var(--copper-dot);
  border-color: var(--copper-dot);
  background: var(--bg-surface-elevated);
}

/* Search Console & Segmented Control */
.ui8-search-console-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
}

.ui8-search-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.ui8-search-icon {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  pointer-events: none;
}

.ui8-search-field {
  width: 100%;
  height: 46px;
  padding: 0 46px 0 42px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  color: var(--text-primary);
  font-size: 13.5px;
  transition: all 0.2s ease;
}

.ui8-search-field:focus {
  outline: none;
  border-color: var(--copper-dot);
  box-shadow: 0 0 0 3px var(--copper-glow);
  background: var(--bg-surface);
}

.ui8-search-kbd-hint {
  position: absolute;
  right: 12px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-surface-elevated);
  border: 1px solid var(--border-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  pointer-events: none;
}

.ui8-segmented-wrapper {
  position: relative;
}

.ui8-native-select-hidden {
  display: none;
}

.ui8-weight-segments {
  display: inline-flex;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 10px;
  padding: 3px;
  gap: 3px;
}

.ui8-seg-btn {
  border: none;
  background: transparent;
  padding: 8px 14px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.ui8-seg-btn .seg-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  margin-left: 2px;
}

.ui8-seg-btn:hover {
  color: var(--text-primary);
}

.ui8-seg-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

/* Category Tabs Workbench (Recessed tactile styling) */
.ui8-filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ui8-label-tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
}

.ui8-tactile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ui8-category-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-secondary);
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.ui8-category-chip .chip-badge {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 5px;
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-muted);
}

[data-theme="dark"] .ui8-category-chip .chip-badge {
  background: rgba(255, 255, 255, 0.08);
}

.ui8-category-chip:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
  border-color: var(--border-strong);
  transform: translateY(-1px);
}

.ui8-category-chip.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  border-color: var(--text-primary);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
}

.ui8-category-chip.active .chip-badge {
  background: rgba(255, 255, 255, 0.2);
  color: var(--bg-primary);
}

[data-theme="dark"] .ui8-category-chip.active .chip-badge {
  background: rgba(0, 0, 0, 0.35);
  color: var(--bg-primary);
}

/* Tactile Performance Trait Matrix */
.ui8-traits-matrix {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-subtle);
}

.ui8-trait-card {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

.ui8-trait-card input[type="checkbox"] {
  display: none;
}

.ui8-trait-check {
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--border-strong);
  border-radius: 3px;
  background: var(--bg-surface);
  position: relative;
  transition: all 0.18s ease;
  flex-shrink: 0;
}

.ui8-trait-card:hover {
  border-color: var(--copper-dot);
}

.ui8-trait-card:has(input:checked) {
  background: var(--copper-dim);
  border-color: rgba(185, 74, 11, 0.35);
}

.ui8-trait-card:has(input:checked) .ui8-trait-check {
  background: var(--copper-dot);
  border-color: var(--copper-dot);
}

.ui8-trait-card:has(input:checked) .ui8-trait-check::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 3.5px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.ui8-trait-name {
  font-size: 12px;
  font-weight: 500;
  color: var(--text-secondary);
}

.ui8-trait-card:has(input:checked) .ui8-trait-name {
  color: var(--text-primary);
  font-weight: 600;
}

@media (max-width: 900px) {
  .ui8-search-console-row {
    grid-template-columns: 1fr;
  }
  .ui8-weight-segments {
    width: 100%;
    overflow-x: auto;
  }
}


/* ==========================================================================
   Paradigm 1: Sticky Faceted Left Sidebar & Marketplace Workspace Styles
   ========================================================================== */
.catalog-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 28px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-subtle);
}

.catalog-main-title {
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 500;
  letter-spacing: -0.035em;
  margin: 6px 0 8px;
  color: var(--text-primary);
}

.catalog-main-desc {
  font-size: 14.5px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0;
}

/* Two-column Marketplace Grid */
.marketplace-workspace {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
  position: relative;
}

/* Sticky Left Sidebar */
.marketplace-sidebar {
  position: sticky;
  top: 96px;
  max-height: calc(100vh - 120px);
  overflow-y: auto;
  scrollbar-width: thin;
  padding-right: 8px;
}

.sidebar-sticky-inner {
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  padding: 22px 18px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.02);
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-subtle);
}

.sidebar-title-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--copper-dot);
  box-shadow: 0 0 0 3px var(--copper-dim);
}

.sidebar-title {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--text-primary);
  text-transform: uppercase;
}

.btn-close-drawer {
  display: none;
  background: transparent;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--text-muted);
}

/* Facet Search */
.sidebar-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 8px 12px;
  transition: all 0.2s ease;
}

.sidebar-search-box:focus-within {
  border-color: var(--copper-dot);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--copper-glow);
}

.sidebar-search-box svg {
  color: var(--text-muted);
  flex-shrink: 0;
}

.sidebar-search-box input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  font-family: var(--font-sans);
  font-size: 12.5px;
  color: var(--text-primary);
}

/* Facet Groups */
.facet-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.facet-group-title {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  text-transform: uppercase;
  margin: 0;
}

/* Category Nav List */
.facet-nav-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.sidebar-facet-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 12.5px;
  font-weight: 500;
  transition: all 0.18s ease;
}

.sidebar-facet-item .facet-count {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--text-muted);
  background: var(--bg-primary);
  padding: 1px 6px;
  border-radius: 4px;
}

.sidebar-facet-item:hover {
  background: var(--bg-surface-elevated);
  color: var(--text-primary);
}

.sidebar-facet-item.active {
  background: var(--text-primary);
  color: var(--bg-primary);
  font-weight: 600;
}

.sidebar-facet-item.active .facet-count {
  background: rgba(255, 255, 255, 0.2);
  color: var(--bg-primary);
}

/* Weight Radios */
.facet-radio-list,
.facet-checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.facet-radio-label,
.facet-checkbox-label {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 6px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text-secondary);
  transition: all 0.15s ease;
  user-select: none;
}

.facet-radio-label:hover,
.facet-checkbox-label:hover {
  color: var(--text-primary);
  background: var(--bg-primary);
}

.facet-radio-label input,
.facet-checkbox-label input {
  display: none;
}

.radio-custom {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.facet-radio-label input:checked ~ .radio-custom {
  border-color: var(--copper-dot);
}

.facet-radio-label input:checked ~ .radio-custom::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--copper-dot);
}

.facet-radio-label input:checked ~ .radio-text {
  color: var(--text-primary);
  font-weight: 600;
}

.cb-custom {
  width: 14px;
  height: 14px;
  border-radius: 3px;
  border: 1.5px solid var(--border-strong);
  background: var(--bg-surface);
  position: relative;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.facet-checkbox-label input:checked ~ .cb-custom {
  background: var(--copper-dot);
  border-color: var(--copper-dot);
}

.facet-checkbox-label input:checked ~ .cb-custom::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 4px;
  width: 3.5px;
  height: 7px;
  border: solid #ffffff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

.facet-checkbox-label input:checked ~ .cb-text {
  color: var(--text-primary);
  font-weight: 600;
}

/* Sidebar Custom Milling Prompt */
.sidebar-cta-card {
  background: var(--bg-primary);
  border: 1px dashed var(--border-strong);
  border-radius: 8px;
  padding: 14px;
  margin-top: 6px;
}

.sidebar-cta-card h5 {
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text-primary);
}

.sidebar-cta-card p {
  font-size: 11px;
  color: var(--text-muted);
  line-height: 1.4;
  margin: 0 0 8px;
}

.sidebar-cta-card a {
  font-size: 11px;
  font-weight: 600;
  color: var(--copper-dot);
}

/* Right Content Marketplace Bar */
.marketplace-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px 18px;
  margin-bottom: 24px;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-counter-text {
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--copper-dot);
}

.active-chips-flow {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.facet-active-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-primary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.facet-active-chip .chip-x {
  font-size: 14px;
  color: var(--text-muted);
}

.facet-active-chip:hover {
  border-color: var(--copper-dot);
  color: var(--copper-dot);
}

.btn-clear-all {
  background: transparent;
  border: none;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  text-decoration: underline;
  cursor: pointer;
  padding: 2px 4px;
}

.btn-clear-all:hover {
  color: var(--copper-dot);
}

/* Mobile Filter Trigger */
.mobile-filter-trigger-bar {
  display: none;
}

.btn-mobile-filter {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  background: var(--bg-surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
}

.mobile-filter-badge {
  background: var(--copper-dot);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 999px;
}

/* Mobile Drawer Mode */
@media (max-width: 992px) {
  .marketplace-workspace {
    grid-template-columns: 1fr;
  }

  .mobile-filter-trigger-bar {
    display: block;
    width: 100%;
    margin-top: 14px;
  }

  .btn-mobile-filter {
    width: 100%;
    justify-content: center;
  }

  .marketplace-sidebar {
    position: fixed;
    top: auto;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: 82vh;
    z-index: 1001;
    background: var(--bg-surface);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.2);
    transform: translateY(105%);
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    padding: 0;
  }

  .marketplace-sidebar.drawer-open {
    transform: translateY(0);
  }

  .sidebar-sticky-inner {
    border: none;
    border-radius: 20px 20px 0 0;
    padding: 24px 20px 40px;
  }

  .btn-close-drawer {
    display: block;
  }

  .filter-drawer-backdrop {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    backdrop-filter: blur(4px);
    z-index: 1000;
  }

  .filter-drawer-backdrop.open {
    display: block;
  }
}
 

/* ==========================================================================
   UI8 Coming Soon Tactile Countdown & Studio Layout
   ========================================================================== */
.ui8-coming-soon {
  padding: clamp(48px, 6vw, 88px) 0 80px;
  background: radial-gradient(circle at 12% 18%, rgba(185, 74, 11, 0.04) 0%, transparent 42%),
              radial-gradient(circle at 88% 82%, rgba(16, 185, 129, 0.03) 0%, transparent 40%),
              var(--bg-primary);
}

.ui8-countdown-deck {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 118px));
  gap: 12px;
  margin-bottom: 28px;
}

.ui8-cd-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 14px 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  box-shadow: var(--shadow-sm);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.ui8-cd-card:hover {
  transform: translateY(-2px);
  border-color: var(--copper-dot);
}

.ui8-cd-num {
  font-family: var(--font-sans);
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--text-primary);
}

.ui8-cd-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--copper-dot);
  margin-top: 6px;
}

@media (max-width: 540px) {
  .ui8-countdown-deck {
    grid-template-columns: repeat(2, 1fr);
  }
}


/* Coming Soon: Zero-Scroll Desktop Fit & Subtle Border Radius Input */
@media (min-width: 993px) {
  body[data-page="coming-soon"] {
    height: 100vh;
    overflow: hidden;
  }
  body[data-page="coming-soon"] .ui8-coming-soon {
    min-height: calc(100vh - 82px);
    height: calc(100vh - 82px);
    padding: 20px 0;
    display: flex;
    align-items: center;
  }
  body[data-page="coming-soon"] .ui8-status-header {
    padding-bottom: 12px;
    margin-bottom: 20px;
  }
  body[data-page="coming-soon"] .ui8-display-title {
    font-size: clamp(42px, 5vw, 68px);
    line-height: 1.04;
    letter-spacing: -0.04em;
    margin-bottom: 16px;
  }
  body[data-page="coming-soon"] .ui8-lead-editorial {
    margin-bottom: 24px;
    font-size: clamp(16px, 1.25vw, 18.5px);
  }
  body[data-page="coming-soon"] .ui8-countdown-deck {
    margin-bottom: 18px;
  }
  body[data-page="coming-soon"] .ui8-curated-routes {
    margin-top: 16px !important;
    padding-top: 16px !important;
  }
}

.ui8-coming-soon .ui8-inline-search {
  border-radius: 10px;
  padding: 6px 8px 6px 14px;
}

.ui8-coming-soon .ui8-inline-search .btn-search-go {
  border-radius: 7px;
}
