/* ==========================================================================
   FreshBobbin - Bespoke Modern Haberdashery & Quilt Yardage Atelier
   Aesthetic: Purl Soho x Liberty London x Merchant & Mills
   Palette:
     Sunlit Unbleached Cotton Muslin : #fcf9f4
     Japanese Selvedge Indigo        : #1b365d
     Pincushion Coral                : #d64541
     Tailor's Shear Brass            : #b8860b
     Crisp Studio Card Surface       : #ffffff
   Typography: Fraunces (Craft Serif) · Plus Jakarta Sans (UI) · IBM Plex Mono
   ========================================================================== */

:root {
  --muslin: #fcf9f4;
  --linen: #f3ede2;
  --linen-deep: #e5dccb;
  --indigo: #1b365d;
  --indigo-deep: #122542;
  --indigo-soft: #294a7a;
  --indigo-tint: #edf2f8;
  --coral: #d64541;
  --coral-deep: #9e2824;
  --coral-tint: #fdf0ef;
  --brass: #b8860b;
  --brass-ink: #735102;
  --brass-tint: #faf3df;
  --studio: #ffffff;
  --ink: #172336;
  --ink-2: #354459;
  --ink-3: #4a586d;
  --line: #dfd6c5;
  --line-strong: #c6b9a2;

  --display: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --shadow-card: 0 2px 8px rgba(27, 54, 93, 0.05), 0 1px 2px rgba(27, 54, 93, 0.03);
  --shadow-hover: 0 14px 30px rgba(27, 54, 93, 0.1), 0 3px 8px rgba(27, 54, 93, 0.05);
  --wrap: 1360px;
}

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background: var(--muslin);
  color: var(--ink);
}

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--muslin);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--linen);
  padding: 2px 6px;
  border-radius: var(--radius-xs);
}

.mono {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 28px;
}

/* Japanese Red-Tick Selvedge Top Thread */
.selvedge-rule {
  height: 4px;
  background: repeating-linear-gradient(
    90deg,
    var(--indigo) 0,
    var(--indigo) 36px,
    #fcf9f4 36px,
    #fcf9f4 39px,
    var(--coral) 39px,
    var(--coral) 45px,
    #fcf9f4 45px,
    #fcf9f4 48px
  );
}

.skip {
  position: absolute;
  left: -9999px;
  top: 8px;
  z-index: 999;
  padding: 12px 18px;
  background: var(--indigo);
  color: #ffffff;
  font-weight: 700;
  border-radius: var(--radius-sm);
}

.skip:focus {
  left: 14px;
}

/* ==========================================================================
   Sunlit Haberdashery Masthead (Light Linen & Selvedge Indigo)
   ========================================================================== */
.top {
  position: sticky;
  top: 0;
  z-index: 90;
  background: rgba(252, 249, 244, 0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-strong);
  box-shadow: 0 1px 0 rgba(27, 54, 93, 0.04);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 44px;
  flex-shrink: 0;
}

.logo-mark {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.wordmark-stack {
  display: flex;
  flex-direction: column;
  line-height: 1.06;
}

.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.44rem;
  letter-spacing: -0.02em;
  color: var(--indigo);
}

.wordmark i {
  font-style: normal;
  font-weight: 600;
  color: var(--brass-ink);
  margin-left: 1px;
}

.wordmark-sub {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  color: var(--ink-3);
  margin-top: 2px;
}

.nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 2px;
  font-size: 0.91rem;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.16s ease;
}

.nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 9px;
  height: 2px;
  background: var(--indigo);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.2s ease;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--indigo);
}

.nav a[aria-current="page"]::after {
  transform: scaleX(1);
}

.nav a.nav-accent {
  color: var(--coral-deep);
}

.nav a.nav-accent::after {
  background: var(--coral);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 9px;
}

.action-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  color: var(--indigo);
  font-size: 0.85rem;
  font-weight: 600;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.action-link:hover,
.action-link[aria-current="page"] {
  border-color: var(--indigo);
  background: var(--indigo-tint);
}

.action-link svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.saved-pill em {
  font-style: normal;
  font-size: 0.75rem;
  padding: 1px 6px;
  border-radius: 2px;
  background: var(--coral);
  color: #ffffff;
}

.menu-btn {
  display: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  color: var(--indigo);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

.menu-ico {
  position: relative;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.menu-ico::before,
.menu-ico::after {
  content: "";
  position: absolute;
  left: 0;
  width: 16px;
  height: 2px;
  background: currentColor;
}

.menu-ico::before { top: -5px; }
.menu-ico::after { top: 5px; }

.menu-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  background: rgba(23, 35, 54, 0.55);
  backdrop-filter: blur(4px);
}

.menu-sheet[hidden] {
  display: none !important;
}

.menu-panel {
  margin-left: auto;
  width: min(360px, 90vw);
  height: 100%;
  background: var(--muslin);
  color: var(--ink);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  border-left: 2px solid var(--indigo);
}

.menu-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.menu-body {
  display: flex;
  flex-direction: column;
  padding-top: 10px;
  overflow-y: auto;
}

.menu-body a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 8px 4px;
  border-bottom: 1px solid var(--line);
  font-family: var(--display);
  font-size: 1.12rem;
  color: var(--indigo);
}

.menu-body a:hover {
  color: var(--coral-deep);
}

/* ==========================================================================
   Buttons & Controls (44px Touch Targets Enforced)
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: var(--radius-xs);
  border: 1px solid transparent;
  font-family: var(--sans);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.14s ease;
  white-space: nowrap;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

.btn.primary:hover {
  background: var(--indigo-deep);
  border-color: var(--indigo-deep);
}

.btn.berry {
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
}

.btn.berry:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
}

.btn.brass-outline {
  background: var(--studio);
  border-color: var(--brass);
  color: var(--indigo);
}

.btn.brass-outline:hover {
  background: var(--brass-tint);
  border-color: var(--indigo);
}

.btn.ghost {
  background: var(--studio);
  border-color: var(--line-strong);
  color: var(--ink);
}

.btn.ghost:hover {
  border-color: var(--indigo);
  background: var(--linen);
}

.btn.sm {
  min-height: 44px;
  padding: 8px 14px;
  font-size: 0.83rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--brass-ink);
}

.eyebrow a:hover {
  text-decoration: underline;
}

/* ==========================================================================
   Sunlit Textile & Haberdashery Editorial Lookbook Hero (Zero Stat Boxes)
   ========================================================================== */
.hero-lookbook {
  position: relative;
  background:
    radial-gradient(circle at 86% 18%, rgba(184, 134, 11, 0.09), transparent 45%),
    radial-gradient(circle at 12% 84%, rgba(27, 54, 93, 0.06), transparent 48%),
    linear-gradient(180deg, #fcf9f4 0%, #f6f0e6 100%);
  padding: 46px 0 44px;
  border-bottom: 1px solid var(--line-strong);
}

.hero-lookbook::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(27, 54, 93, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 54, 93, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
}

.lookbook-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.96fr) minmax(0, 1.04fr);
  gap: 40px;
  align-items: center;
}

.lookbook-index-tag {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 5px 12px;
  background: var(--studio);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--coral);
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--indigo);
  margin-bottom: 18px;
}

.lookbook-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.55rem, 4.5vw, 4.15rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--indigo);
  margin: 0 0 18px;
}

.lookbook-copy h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--coral-deep);
}

.lookbook-sub {
  font-size: 1.08rem;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 54ch;
  margin: 0 0 26px;
}

.lookbook-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.stitch-colophon {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  padding-top: 16px;
  border-top: 1px dashed var(--line-strong);
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}

.stitch-colophon span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.stitch-colophon span::before {
  content: "";
  width: 7px;
  height: 7px;
  transform: rotate(45deg);
  background: var(--brass);
}

/* Asymmetric Lookbook Gallery Triptych */
.lookbook-folio {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 14px;
  padding: 14px;
  background: var(--studio);
  border: 1px solid var(--line-strong);
  box-shadow: 0 18px 42px rgba(27, 54, 93, 0.09);
  position: relative;
}

.lookbook-folio::after {
  content: "";
  position: absolute;
  inset: 5px;
  border: 1px dashed rgba(184, 134, 11, 0.42);
  pointer-events: none;
}

.folio-lead {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: var(--muslin);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.18s ease;
}

.folio-lead:hover,
.folio-side-card:hover {
  transform: translateY(-2px);
}

.folio-lead-img {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  padding: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid var(--line);
}

.folio-lead-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.folio-plate-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  background: var(--indigo);
  color: #ffffff;
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.folio-lead-body {
  padding: 13px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.folio-maker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--coral-deep);
}

.folio-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--indigo);
}

.folio-price {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-2);
}

.folio-stack {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.folio-side-card {
  flex: 1;
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  background: var(--muslin);
  border: 1px solid var(--line);
  overflow: hidden;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.folio-side-card:hover {
  border-color: var(--indigo);
}

.folio-side-img {
  height: 100%;
  min-height: 92px;
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--line);
}

.folio-side-img img {
  width: 76px;
  height: 76px;
  object-fit: contain;
}

.folio-side-body {
  padding: 8px 11px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.folio-side-body .folio-title {
  font-size: 0.88rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Haberdashery Ribbon */
.shop-ribbon {
  background: var(--indigo);
  color: var(--muslin);
  padding: 12px 0;
  border-bottom: 2px solid var(--brass);
}

.shop-ribbon-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  column-gap: 14px;
  row-gap: 2px;
}

.shop-ribbon-inner::-webkit-scrollbar {
  display: none;
}

.shop-ribbon-label {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #f3cf7a;
  flex-shrink: 0;
  padding-right: 12px;
  border-right: 1px solid rgba(252, 249, 244, 0.22);
}

.shop-ribbon-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 6px;
  font-family: var(--display);
  font-size: 0.95rem;
  color: rgba(252, 249, 244, 0.88);
  white-space: nowrap;
  transition: color 0.16s ease;
}

.shop-ribbon-link:hover {
  color: #f3cf7a;
}

/* ==========================================================================
   Interactive Yardage, Seam-Layout SVG & Precut Atelier (#studio-bench)
   ========================================================================== */
.atelier-band {
  padding: 50px 0 22px;
}

.atelier-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--indigo);
  box-shadow: 0 3px 0 var(--linen), 0 4px 0 var(--line-strong);
}

.atelier-head h2 {
  font-family: var(--display);
  font-weight: 600;
  font-size: clamp(1.75rem, 2.8vw, 2.4rem);
  line-height: 1.12;
  color: var(--indigo);
  margin: 6px 0 0;
}

.atelier-more {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
  white-space: nowrap;
}

.atelier-more:hover {
  text-decoration: underline;
}

.bench-shell {
  background: var(--studio);
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.bench-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  background: var(--linen);
  border-bottom: 1px solid var(--line-strong);
}

.tab-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 3px;
  min-height: 64px;
  padding: 12px 20px;
  border: none;
  border-right: 1px solid var(--line);
  border-bottom: 3px solid transparent;
  background: transparent;
  color: var(--ink-2);
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

.tab-btn:last-child {
  border-right: none;
}

.tab-btn .tab-idx {
  font-family: var(--mono);
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.tab-btn .tab-title {
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--indigo);
}

.tab-btn:hover {
  background: rgba(255, 255, 255, 0.65);
}

.tab-btn.active {
  background: var(--studio);
  border-bottom-color: var(--indigo);
}

.tab-btn.active .tab-idx {
  color: var(--coral-deep);
}

#bench-panel {
  padding: 28px;
}

.bench-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: start;
}

.bench-controls {
  background: var(--muslin);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.field-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field-label {
  font-size: 0.83rem;
  font-weight: 700;
  color: var(--indigo);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.field-label .mono {
  color: var(--coral-deep);
}

.ctrl-select,
.ctrl-input {
  min-height: 44px;
  padding: 9px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  color: var(--ink);
  font-size: 0.91rem;
}

.ctrl-select:focus,
.ctrl-input:focus {
  outline: 2px solid var(--indigo);
  outline-offset: 1px;
  border-color: var(--indigo);
}

.ctrl-range {
  width: 100%;
  min-height: 44px;
  accent-color: var(--indigo);
  cursor: pointer;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.choice-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 13px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-xs);
  background: var(--studio);
  color: var(--ink-2);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.choice-pill:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.choice-pill.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

.bench-output {
  background: var(--muslin);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 22px;
}

.formula-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.formula-head h3 {
  font-family: var(--display);
  font-size: 1.35rem;
  line-height: 1.2;
  color: var(--indigo);
  margin: 4px 0 0;
}

/* Architectural SVG Seam-Layout Blueprint */
.blueprint-box {
  background: var(--indigo-tint);
  border: 1px solid #c9d6e8;
  border-radius: var(--radius-xs);
  padding: 14px 16px;
  margin-bottom: 16px;
}

.blueprint-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
}

.blueprint-svg {
  width: 100%;
  height: auto;
  max-height: 196px;
  background: #ffffff;
  border: 1px solid #cfdbe9;
  border-radius: 2px;
}

.blueprint-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-2);
}

/* Yardage & Precut Spec Tables */
.weight-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  background: var(--studio);
  border: 1px solid var(--line);
}

.weight-table th,
.weight-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #eee7da;
}

.weight-table th {
  background: var(--linen);
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--indigo);
}

.weight-table tr:last-child td {
  border-bottom: none;
}

.weight-table tr.is-highlight {
  background: var(--brass-tint);
}

.spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.spec-tile {
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  padding: 11px 13px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.spec-tile span {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-3);
}

.spec-tile strong {
  font-size: 0.9rem;
  line-height: 1.35;
  color: var(--indigo);
}

.precut-diagram-row {
  display: grid;
  grid-template-columns: 164px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  background: var(--studio);
  border: 1px solid var(--line);
  padding: 12px;
  margin-bottom: 14px;
}

.precut-svg {
  width: 140px;
  height: 108px;
}

.spec-notes {
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--linen);
  border-left: 3px solid var(--brass);
  font-size: 0.88rem;
  color: var(--ink-2);
}

.spec-notes p {
  margin: 0 0 6px;
}

.spec-notes p:last-child {
  margin-bottom: 0;
}

.matched-strip {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px dashed var(--line-strong);
}

/* ==========================================================================
   Departments, Studio Product Cards (#ffffff Gallery Frames) & Kits
   ========================================================================== */
.sec {
  padding: 44px 0;
  border-top: 1px solid var(--line);
}

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.sec-head h2,
.sec-head h3 {
  font-family: var(--display);
  color: var(--indigo);
  margin: 4px 0 0;
  letter-spacing: -0.015em;
}

.sec-head h2 {
  font-size: clamp(1.6rem, 2.5vw, 2.2rem);
}

.sec-head h3 {
  font-size: 1.22rem;
}

.sec-head > a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-family: var(--mono);
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--coral-deep);
  white-space: nowrap;
}

.sec-head > a:hover {
  text-decoration: underline;
}

.dept-swatch-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 12px;
}

.dept-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 128px;
  padding: 15px 14px;
  background: var(--studio);
  border: 1px solid var(--line);
  border-bottom: 3px solid var(--indigo);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.dept-card:hover {
  transform: translateY(-2px);
  border-bottom-color: var(--coral);
  box-shadow: var(--shadow-hover);
}

.dept-count {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brass-ink);
}

.dept-card h3 {
  font-family: var(--display);
  font-size: 1rem;
  line-height: 1.25;
  color: var(--indigo);
  margin: 10px 0 0;
}

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

.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
}

/* Studio Product Cards */
.p-card {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.p-card:hover {
  transform: translateY(-3px);
  border-color: var(--indigo);
  box-shadow: var(--shadow-hover);
}

.p-media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border-bottom: 1px solid #eee7da;
  overflow: hidden;
}

.p-img-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  padding: 16px;
}

.p-img-link img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.26s ease;
}

.p-card:hover .p-img-link img {
  transform: scale(1.035);
}

.badge-deal {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--coral);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.save-fab {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid rgba(27, 54, 93, 0.14);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink-2);
  cursor: pointer;
  transition: all 0.16s ease;
}

.save-fab svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.85;
}

.save-fab:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.save-fab.on {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #f3cf7a;
}

.save-fab.on svg {
  fill: currentColor;
}

.p-body {
  padding: 15px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.p-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-3);
  margin-bottom: 6px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.p-brand {
  color: var(--indigo);
  font-weight: 600;
}

.p-brand:hover {
  text-decoration: underline;
}

.p-title {
  font-family: var(--display);
  font-size: 1.04rem;
  font-weight: 600;
  line-height: 1.32;
  margin: 0 0 10px;
  color: var(--ink);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.p-title a:hover {
  color: var(--coral-deep);
}

.p-sizes {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-bottom: 12px;
}

.sz-chip {
  font-size: 0.75rem;
  padding: 2px 7px;
  border-radius: 2px;
  background: var(--muslin);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.p-foot {
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px dashed var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.p-price {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.p-price strong {
  font-size: 1.05rem;
  color: var(--indigo);
}

.p-price s {
  font-size: 0.76rem;
  color: var(--ink-3);
}

/* Studio Kits */
.kit-card {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr);
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.kit-thumbs {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 1px;
  background: var(--line);
  border-right: 1px solid var(--line);
}

.kit-thumbs a {
  background: #ffffff;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kit-thumbs img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.kit-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
}

.kit-body h3 {
  font-family: var(--display);
  font-size: 1.24rem;
  color: var(--indigo);
  margin: 5px 0 8px;
  line-height: 1.25;
}

.kit-body h3 a:hover {
  color: var(--coral-deep);
}

.kit-body p {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--ink-2);
}

.kit-foot {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.kit-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* Video Cards */
.v-card {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.v-media {
  position: relative;
  aspect-ratio: 16 / 9;
  background: var(--indigo-deep);
  cursor: pointer;
  overflow: hidden;
}

.v-media img,
.v-media iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.v-play {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(27, 54, 93, 0.92);
  border: 2px solid #f3cf7a;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
  transition: transform 0.18s ease, background 0.18s ease;
}

.v-media:hover .v-play {
  transform: scale(1.08);
  background: var(--coral);
  border-color: #ffffff;
}

.v-play svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
  margin-left: 2px;
}

.v-dur {
  position: absolute;
  right: 8px;
  bottom: 8px;
  padding: 2px 7px;
  border-radius: 2px;
  background: rgba(23, 35, 54, 0.88);
  color: #ffffff;
  font-size: 0.75rem;
}

.v-body {
  padding: 14px 16px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.v-title {
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.34;
  margin: 0 0 10px;
}

.v-title a:hover {
  color: var(--coral-deep);
}

.v-stats {
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--ink-3);
}

/* ==========================================================================
   Subpages, Filters, Shop Cards, Product Detail & Trust Legal Cards
   ========================================================================== */
.page-head {
  padding: 38px 0 24px;
  border-bottom: 1px solid var(--indigo);
  box-shadow: 0 3px 0 var(--muslin), 0 4px 0 var(--line-strong);
  margin-bottom: 24px;
}

.page-head h1 {
  font-family: var(--display);
  font-size: clamp(2rem, 3.4vw, 2.85rem);
  line-height: 1.1;
  color: var(--indigo);
  letter-spacing: -0.02em;
  margin: 8px 0 12px;
}

.lede {
  font-size: 1.04rem;
  line-height: 1.64;
  color: var(--ink-2);
  max-width: 68ch;
  margin: 0 0 14px;
}

.fine {
  font-size: 0.85rem;
  color: var(--ink-3);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
  padding: 14px;
  background: var(--linen);
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
}

.filter-bar .ctrl-input {
  flex: 1 1 240px;
}

.more-row {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

.brand-card {
  background: var(--studio);
  border: 1px solid var(--line);
  border-left: 4px solid var(--indigo);
  border-radius: var(--radius-xs);
  padding: 22px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.brand-card h2 a:hover {
  color: var(--coral-deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 36px;
  padding: 36px 0 20px;
  align-items: start;
}

.detail-media {
  background: #ffffff;
  border: 1px solid var(--line-strong);
  padding: 28px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-card);
}

.detail-media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-info h1 {
  font-family: var(--display);
  font-size: clamp(1.75rem, 3vw, 2.45rem);
  line-height: 1.15;
  color: var(--indigo);
  margin: 8px 0 14px;
}

.detail-price {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 16px;
}

.detail-price strong {
  font-size: 1.65rem;
  color: var(--indigo);
}

.detail-price s {
  font-size: 1.05rem;
  color: var(--ink-3);
}

.badge-inline {
  padding: 3px 8px;
  border-radius: 2px;
  background: var(--coral);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* Trust & FAQ Pages (trust.js compatibility) */
.legal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 36px;
}

.legal-card {
  background: var(--studio);
  border: 1px solid var(--line);
  padding: 20px 22px;
}

.legal-card h2 {
  font-family: var(--display);
  font-size: 1.25rem;
  color: var(--indigo);
  margin: 0 0 8px;
}

.legal-card p {
  margin: 0 0 10px;
  color: var(--ink-2);
}

.partners-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 24px;
  padding-bottom: 40px;
}

.faq-list details {
  background: var(--studio);
  border: 1px solid var(--line);
  padding: 14px 18px;
  margin-bottom: 10px;
}

.faq-list summary {
  font-family: var(--display);
  font-size: 1.08rem;
  font-weight: 600;
  color: var(--indigo);
  cursor: pointer;
  min-height: 32px;
}

.remove-box {
  background: var(--linen);
  border: 1px solid var(--line-strong);
  border-top: 3px solid var(--coral);
  padding: 22px;
}

.remove-box h2 {
  font-family: var(--display);
  color: var(--indigo);
  margin: 0 0 10px;
}

/* ==========================================================================
   Selvedge Indigo Editorial Footer, Toast & Feedback Rules
   ========================================================================== */
.foot {
  margin-top: 56px;
  background: var(--indigo-deep);
  color: rgba(252, 249, 244, 0.84);
  border-top: 3px solid var(--brass);
  padding: 48px 0 54px;
}

.foot-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.3fr);
  gap: 40px;
  align-items: start;
}

.foot-logo-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 10px;
}

.foot-brand .wordmark {
  color: #ffffff;
}

.foot-brand .wordmark i {
  color: #f3cf7a;
}

.foot-kicker {
  font-size: 0.75rem;
  letter-spacing: 0.1em;
  color: #f3cf7a;
}

.foot-tag {
  margin: 0 0 12px;
  max-width: 48ch;
  color: rgba(252, 249, 244, 0.88);
}

.foot-fee,
.foot-fine {
  font-size: 0.82rem;
  color: rgba(252, 249, 244, 0.82);
  margin: 6px 0 0;
  max-width: 54ch;
}

.foot-nav {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 18px;
}

.foot-nav a,
.foot-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  background: none;
  border: 0;
  padding: 0;
  text-align: left;
  font-size: 0.88rem;
  color: rgba(252, 249, 244, 0.8);
  cursor: pointer;
}

.foot-nav a:hover,
.foot-link:hover {
  color: #f3cf7a;
}

.foot-fb-dot {
  min-height: 44px;
  min-width: 44px;
  background: none;
  border: 0;
  color: rgba(252, 249, 244, 0.35);
  cursor: pointer;
  text-align: left;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 160;
  padding: 12px 18px;
  border-radius: var(--radius-xs);
  background: var(--indigo);
  border: 1px solid var(--brass);
  color: #ffffff;
  font-size: 0.88rem;
  font-weight: 600;
  box-shadow: var(--shadow-hover);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.on {
  opacity: 1;
  transform: translateY(0);
}

/* Hide floating feedback button by default; reveal on triple-tap logo */
#htfb-btn {
  display: none !important;
}

body.show-feedback #htfb-btn {
  display: flex !important;
}

/* ==========================================================================
   Responsive Breakpoints (1440px -> Tablet -> Mobile -> <=374px)
   ========================================================================== */
@media (max-width: 1160px) {
  .dept-swatch-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .grid-4 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .nav {
    gap: 14px;
  }
}

@media (max-width: 960px) {
  .nav {
    display: none;
  }
  .menu-btn {
    display: inline-flex;
  }
  .lookbook-grid,
  .bench-grid,
  .detail-grid,
  .partners-wrap,
  .legal-grid,
  .foot-inner {
    grid-template-columns: 1fr;
  }
  .bench-tabs {
    grid-template-columns: 1fr;
  }
  .tab-btn {
    border-right: none;
    border-bottom: 1px solid var(--line);
  }
  .grid-2 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .wrap {
    padding: 0 16px;
  }
  .hide-sm {
    display: none;
  }
  .hero-lookbook {
    padding: 32px 0 32px;
  }
  .lookbook-folio,
  .field-row,
  .spec-grid,
  .precut-diagram-row,
  .video-grid-4,
  .grid-3 {
    grid-template-columns: 1fr;
  }
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .dept-swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .kit-card {
    grid-template-columns: 1fr;
  }
  .kit-thumbs {
    border-right: none;
    border-bottom: 1px solid var(--line);
    height: 180px;
  }
  #bench-panel {
    padding: 18px 14px;
  }
  .foot-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==========================================================================
   V4 Sunlit Full-Bleed Photo-Wall Hero, Shop Navbar CTA & YouTube Sewing Hub
   ========================================================================== */
.logo-mark {
  width: 46px !important;
  height: 46px !important;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 8px rgba(27, 54, 93, 0.22));
}

.nav a.nav-shop-pill {
  background: var(--coral);
  color: #ffffff;
  font-weight: 700;
  padding: 0 16px;
  border-radius: 999px;
  min-height: 38px;
  margin-right: 4px;
}
.nav a.nav-shop-pill::after { display: none; }
.nav a.nav-shop-pill:hover,
.nav a.nav-shop-pill[aria-current="page"] {
  background: var(--coral-deep);
  color: #ffffff;
}

.nav a.nav-yt-link {
  color: var(--indigo);
  font-weight: 700;
}
.nav a.nav-yt-link:hover,
.nav a.nav-yt-link[aria-current="page"] {
  color: var(--coral-deep);
}

.hero-v4-wall {
  position: relative;
  width: 100%;
  min-height: 610px;
  background: #f8f2e8;
  color: var(--ink);
  overflow: hidden;
  display: flex;
  align-items: center;
  border-bottom: 2px solid var(--line-strong);
}

.hero-wall-backdrop {
  position: absolute;
  top: -110px;
  right: -120px;
  bottom: -110px;
  width: 78%;
  min-width: 780px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  transform: rotate(-7deg);
  pointer-events: none;
  z-index: 1;
}

.hero-wall-col {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.hero-wall-col:nth-child(even) {
  transform: translateY(-38px);
}
.hero-wall-col:nth-child(3) {
  transform: translateY(20px);
}

.hero-wall-card {
  background: #ffffff;
  border-radius: 14px;
  padding: 10px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(27, 54, 93, 0.08);
  box-shadow: 0 14px 32px rgba(27, 54, 93, 0.13);
}

.hero-wall-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-v4-scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background:
    linear-gradient(96deg,
      rgba(252, 249, 244, 0.99) 0%,
      rgba(252, 249, 244, 0.96) 36%,
      rgba(250, 245, 237, 0.78) 55%,
      rgba(250, 245, 237, 0.16) 80%,
      rgba(250, 245, 237, 0.05) 100%),
    radial-gradient(circle at 14% 25%, rgba(214, 69, 65, 0.09), transparent 48%);
  pointer-events: none;
}

.hero-v4-inner {
  position: relative;
  z-index: 3;
  padding: 68px 28px 64px;
}

.hero-v4-copy {
  max-width: 600px;
}

.hero-v4-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(184, 134, 11, 0.45);
  color: var(--indigo);
  font-family: var(--sans);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  margin-bottom: 18px;
  box-shadow: 0 2px 10px rgba(27, 54, 93, 0.06);
}

.hero-v4-copy h1 {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.75rem, 4.8vw, 4.35rem);
  line-height: 1.03;
  letter-spacing: -0.025em;
  color: var(--indigo);
  margin: 0 0 18px;
}

.hero-v4-copy h1 em {
  font-style: normal;
  font-weight: 700;
  color: var(--coral-deep);
}

.hero-v4-sub {
  font-size: 1.12rem;
  line-height: 1.62;
  color: var(--ink-2);
  max-width: 52ch;
  margin: 0 0 26px;
}

.hero-v4-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.btn.hero-shop-btn {
  min-height: 50px;
  padding: 12px 28px;
  font-size: 1.02rem;
  font-weight: 700;
  border-radius: 999px;
  background: var(--coral);
  border-color: var(--coral);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(214, 69, 65, 0.34);
}
.btn.hero-shop-btn:hover {
  background: var(--coral-deep);
  border-color: var(--coral-deep);
}

.btn.hero-yt-btn {
  min-height: 50px;
  padding: 12px 22px;
  font-size: 0.96rem;
  font-weight: 700;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid var(--indigo);
  color: var(--indigo);
  box-shadow: 0 6px 18px rgba(27, 54, 93, 0.09);
}
.btn.hero-yt-btn:hover {
  background: var(--indigo);
  color: #ffffff;
}

.hero-v4-quicklinks {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
  font-size: 0.86rem;
  color: var(--ink-2);
}

.hero-v4-quicklinks a {
  color: var(--indigo);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.yt-creator-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 0 0 20px;
}

.yt-creator-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--studio);
  border: 1px solid var(--line-strong);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--indigo);
  transition: border-color 0.16s ease, background 0.16s ease;
}

.yt-creator-pill:hover,
.yt-creator-pill.active {
  border-color: var(--coral);
  background: #fdf0ef;
  color: var(--coral-deep);
}

.yt-creator-pill .sub-tag {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-3);
}

.creator-roster-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 28px;
}

.creator-card-v4 {
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 15px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  box-shadow: 0 3px 12px rgba(27, 54, 93, 0.05);
}

.creator-card-v4 h3 {
  font-family: var(--display);
  font-size: 1.08rem;
  color: var(--indigo);
  margin: 0 0 2px;
}

.creator-handle-line {
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--coral-deep);
}

.creator-bio-v4 {
  font-size: 0.85rem;
  line-height: 1.48;
  color: var(--ink-2);
  margin: 0;
}

.creator-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 980px) {
  .creator-roster-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-wall-backdrop {
    width: 115%;
    opacity: 0.42;
  }
}

@media (max-width: 640px) {
  .creator-roster-grid {
    grid-template-columns: 1fr;
  }
  .hero-v4-wall {
    min-height: 500px;
  }
  .hero-v4-inner {
    padding: 44px 16px 42px;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 12px;
  }
  .wordmark {
    font-size: 1.18rem;
  }
  .wordmark-sub {
    display: none;
  }
  .dept-swatch-grid,
  .foot-nav {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V5 Visual Haberdashery Atelier (#brands), Inline Bench Shop & Media Thumbs
   ========================================================================== */
.dept-card-thumb {
  width: 100%;
  height: 92px;
  background: #ffffff;
  border: 1px solid #ede5d8;
  border-radius: var(--radius-xs);
  padding: 8px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.dept-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Inline Shoppable Strip inside Interactive Yardage & Precut Calculators */
.bench-inline-shop {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.bench-inline-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.bench-inline-head a {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--indigo);
}

.bench-inline-head a:hover {
  text-decoration: underline;
}

.bench-inline-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.bench-mini-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-xs);
  overflow: hidden;
  min-width: 0;
}

.bench-mini-thumb {
  width: 100%;
  height: 88px;
  padding: 6px;
  background: #ffffff;
  border-bottom: 1px solid #f0eade;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bench-mini-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bench-mini-body {
  padding: 8px 9px 9px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
  min-width: 0;
}

.bench-mini-maker {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--coral-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bench-mini-title {
  font-family: var(--display);
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.24;
  color: var(--indigo);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bench-mini-foot {
  margin-top: auto;
  padding-top: 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 0.78rem;
}

.bench-mini-buy {
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--indigo);
  padding: 2px 6px;
  border-radius: 3px;
  background: var(--indigo-tint);
}

/* Creator Card Video Preview Thumbnail */
.creator-card-v4 {
  padding: 0;
  overflow: hidden;
  gap: 0;
}

.creator-card-thumb {
  position: relative;
  aspect-ratio: 16 / 9;
  background: #122542;
  cursor: pointer;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
}

.creator-card-thumb img,
.creator-card-thumb iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
}

.creator-card-copy {
  padding: 13px 15px 8px;
}

.creator-card-v4 .creator-card-actions {
  padding: 6px 15px 14px;
}

/* 3-Column Visual Brand Showroom (#brands) */
.brand-Control-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.brand-Control-bar .ctrl-input {
  flex: 1 1 280px;
  max-width: 420px;
}

.brand-showcase-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}

.bcard {
  display: flex;
  flex-direction: column;
  background: var(--studio);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  min-width: 0;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.bcard:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}

.brand-mosaic {
  display: grid;
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  aspect-ratio: 16 / 9.5;
  background: var(--linen);
  padding: 6px;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.brand-mosaic-cell {
  background: #ffffff;
  border-radius: 5px;
  padding: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.brand-mosaic-cell.is-lead {
  grid-row: 1 / span 2;
  padding: 10px;
}

.brand-mosaic-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform 0.24s ease;
}

.bcard:hover .brand-mosaic-cell img {
  transform: scale(1.04);
}

.bcard-body {
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.bcard-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.bcard-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: var(--muslin);
  border: 1px solid var(--line);
  color: var(--ink-2);
}

.bcard-pill-skus {
  background: var(--indigo-tint);
  border-color: rgba(27, 54, 93, 0.24);
  color: var(--indigo);
}

.bcard-pill-sale {
  background: var(--coral-tint);
  border-color: rgba(214, 69, 65, 0.34);
  color: var(--coral-deep);
}

.bcard-title {
  font-family: var(--display);
  font-size: 1.3rem;
  font-weight: 700;
  line-height: 1.2;
  margin: 2px 0 0;
  color: var(--indigo);
}

.bcard-title a:hover {
  color: var(--coral-deep);
}

.bcard-focus {
  margin: 0;
  font-size: 0.89rem;
  line-height: 1.48;
  color: var(--ink-2);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bcard-policy {
  font-size: 0.77rem;
  line-height: 1.35;
  color: var(--ink-3);
  padding-top: 6px;
  border-top: 1px dashed var(--line);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bcard-actions {
  margin-top: auto;
  padding-top: 10px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1080px) {
  .brand-showcase-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 680px) {
  .brand-showcase-grid,
  .bench-inline-cards {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   V6 Product-First Quilting, Sewing Notions & Fabric Studio Hero (#home)
   ========================================================================== */
.fb-studio-hero {
  position: relative;
  background-color: var(--muslin);
  background-image:
    radial-gradient(circle at 12% 10%, rgba(184, 134, 11, 0.14), transparent 36%),
    radial-gradient(circle at 88% 8%, rgba(214, 69, 65, 0.09), transparent 38%),
    linear-gradient(to right, rgba(27, 54, 93, 0.032) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(27, 54, 93, 0.032) 1px, transparent 1px),
    linear-gradient(180deg, #faf5ec 0%, var(--muslin) 380px);
  background-size: 100% 100%, 100% 100%, 28px 28px, 28px 28px, 100% 100%;
  padding: 18px 0 24px;
  border-bottom: 2px dashed var(--line-strong);
}

.fb-hero-top {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 18px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.fb-hero-copy {
  flex: 1 1 300px;
  min-width: 0;
  max-width: 100%;
}

.fb-badge-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
}

.quilt-block-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--brass-tint);
  border: 1.5px dashed var(--brass);
  font-family: var(--display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--indigo);
}

.quilt-pill-ico {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}

.fb-stat-pill {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-2);
}

.fb-stat-pill a {
  color: var(--coral-deep);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.fb-hero-h {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--indigo);
}

.fb-hero-h em {
  font-style: normal;
  font-weight: 700;
  color: var(--coral-deep);
  text-decoration: underline;
  text-decoration-style: dashed;
  text-decoration-color: var(--brass);
  text-decoration-thickness: 2px;
  text-underline-offset: 5px;
}

.fb-hero-controls {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex: 1 1 380px;
  min-width: 0;
  max-width: 100%;
  justify-content: flex-end;
}

.fb-search-box {
  position: relative;
  flex: 1 1 210px;
  min-width: 0;
  max-width: 100%;
}

.fb-search-box svg {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  fill: none;
  stroke: var(--indigo);
  stroke-width: 2.1;
  stroke-linecap: round;
  pointer-events: none;
}

.fb-search-box input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px 0 37px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink);
  box-shadow: 0 2px 8px rgba(27, 54, 93, 0.05);
}

.fb-search-box input::placeholder {
  color: var(--ink-3);
  font-weight: 500;
}

.fb-search-box input:focus {
  outline: 2px solid var(--indigo);
  border-color: var(--indigo);
}

#home-sort {
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line-strong);
  background: var(--studio);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--indigo);
  cursor: pointer;
}

#home-sort:focus {
  outline: 2px solid var(--indigo);
  border-color: var(--indigo);
}

.btn.brass-cta {
  background: var(--brass-tint);
  border: 1.5px solid var(--brass);
  border-radius: var(--radius-sm);
  color: var(--indigo);
  font-weight: 700;
  padding: 0 13px;
}

.btn.brass-cta:hover {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

.bench-cta-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

/* Interactive Department & Markdown Filter Rail right above hero products */
.fb-filter-rail {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

.fb-cat-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--studio);
  border: 1.5px solid var(--line-strong);
  color: var(--ink);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fb-cat-chip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-3);
}

.fb-cat-chip:hover,
.fb-cat-chip.active {
  background: var(--indigo);
  border-color: var(--indigo);
  color: #ffffff;
}

.fb-cat-chip:hover em,
.fb-cat-chip.active em {
  color: #f3cf7a;
}

.fb-flag-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 44px;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  background: var(--coral-tint);
  border: 1.5px dashed var(--coral);
  color: var(--coral-deep);
  font-size: 0.83rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s ease;
}

.fb-flag-chip em {
  font-style: normal;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
}

.fb-flag-chip:hover {
  border-style: solid;
}

.fb-flag-chip.active {
  background: var(--coral-deep);
  border: 1.5px solid var(--coral-deep);
  color: #ffffff;
}

.fb-live-count {
  margin-left: auto;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-2);
}

.hero-prod-grid {
  gap: 16px;
}

.hero-prod-grid .p-media {
  aspect-ratio: 1 / 0.86;
}

.hero-prod-grid .p-img-link {
  padding: 10px;
}

.hero-prod-grid .p-sizes {
  display: none;
}

.hero-prod-grid .p-body {
  padding: 12px 13px 13px;
}

.hero-more-row {
  margin-top: 20px;
}

.fb-empty-box {
  background: var(--studio);
  border: 1.5px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  padding: 28px 20px;
  text-align: center;
}

.fb-empty-box p {
  margin: 0 0 12px;
  font-weight: 600;
  color: var(--ink-2);
}

.p-card {
  min-width: 0;
}

/* ---------------- Responsive Fit: 4-col (1280px), 2-col (390px), 1-col (<=374px) ---------------- */
@media (max-width: 860px) {
  .fb-hero-top {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .fb-hero-copy,
  .fb-hero-controls {
    flex: 1 1 auto;
    width: 100%;
    justify-content: flex-start;
  }
  .fb-search-box {
    flex: 1 1 100%;
    width: 100%;
  }
  .fb-filter-rail {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 4px;
    scrollbar-width: none;
  }
  .fb-filter-rail::-webkit-scrollbar {
    display: none;
  }
  .fb-cat-chip,
  .fb-flag-chip {
    flex-shrink: 0;
  }
  .fb-live-count {
    display: none;
  }
}

@media (max-width: 640px) {
  .fb-studio-hero {
    padding: 12px 0 20px;
  }
  .fb-hero-controls #home-sort,
  .fb-hero-controls .fb-bench-cta {
    flex: 1 1 0;
    min-width: 0;
  }
  .lookbook-grid,
  .bench-grid,
  .detail-grid,
  .partners-wrap,
  .legal-grid,
  .foot-inner,
  .lookbook-folio,
  .field-row,
  .spec-grid,
  .precut-diagram-row,
  .video-grid-4,
  .grid-3,
  .grid-2,
  .kit-card,
  .brand-showcase-grid,
  .bench-inline-cards {
    grid-template-columns: minmax(0, 1fr);
  }
  /* Keep 2 visual product cards side-by-side on 390px phones above the fold */
  .grid-4,
  .hero-prod-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .p-img-link,
  .hero-prod-grid .p-img-link {
    padding: 8px;
  }
  .p-body,
  .hero-prod-grid .p-body {
    padding: 10px;
  }
  .p-sizes {
    display: none;
  }
  .p-title {
    font-size: 0.91rem;
    margin-bottom: 8px;
  }
  .p-foot {
    padding-top: 8px;
    gap: 6px;
    flex-wrap: wrap;
  }
  .p-price strong {
    font-size: 0.96rem;
  }
  .p-foot .p-shop-btn {
    padding: 6px 9px;
    font-size: 0.76rem;
  }
  .atelier-head,
  .sec-head,
  .bcard-actions,
  .creator-card-actions,
  .kit-actions,
  .pill-group {
    flex-wrap: wrap;
  }
  .atelier-head > *,
  .sec-head > * {
    min-width: 0;
  }
  .atelier-more,
  .sec-head > a {
    white-space: normal;
  }
  .more-row .btn,
  .pill-group .btn {
    max-width: 100%;
    white-space: normal;
    height: auto;
    padding-top: 9px;
    padding-bottom: 9px;
    text-align: center;
  }
  select,
  input:not([type="checkbox"]):not([type="radio"]) {
    max-width: 100%;
    min-width: 0;
  }
  .toast {
    left: 12px;
    right: 12px;
    max-width: calc(100vw - 24px);
  }
  .vmodal,
  .vmodal-box {
    max-width: 100%;
  }
}

@media (max-width: 480px) {
  .top-inner {
    gap: 8px;
    min-height: 60px;
  }
  .top-inner > .logo {
    min-width: 0;
    flex-shrink: 1;
    gap: 7px;
  }
  .logo > * {
    min-width: 0;
  }
  .logo .logo-mark {
    width: 32px !important;
    height: 32px !important;
    flex-shrink: 0;
  }
  .logo .logo-box {
    flex-shrink: 0;
  }
  .logo .wordmark,
  .logo .wordmark-main {
    font-size: clamp(0.95rem, 4.6vw, 1.3rem);
    letter-spacing: 0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .logo .wordmark-sub,
  .logo .logo-sub {
    display: none;
  }
  .top-actions {
    gap: 6px;
    flex-shrink: 0;
    min-width: 0;
  }
  .top-actions .hide-sm {
    display: none;
  }
  .top-actions > a {
    min-width: 44px;
    min-height: 44px;
    padding: 0 9px;
    gap: 5px;
    justify-content: center;
  }
  .top-actions .menu-btn {
    min-width: 44px;
    min-height: 44px;
    padding: 0 12px;
    justify-content: center;
  }
  .top-actions .menu-btn > span:not(.menu-ico) {
    display: none;
  }
}

@media (max-width: 374px) {
  .wrap {
    padding: 0 10px;
  }
  .top-actions {
    gap: 4px;
  }
  .top-actions > a {
    min-width: 42px;
    min-height: 44px;
    padding: 0 7px;
    gap: 4px;
  }
  .top-actions .menu-btn {
    min-width: 42px;
    min-height: 44px;
    padding: 0 10px;
  }
  .logo .logo-mark {
    width: 28px !important;
    height: 28px !important;
  }
  .fb-hero-controls #home-sort,
  .fb-hero-controls .fb-bench-cta {
    flex: 1 1 100%;
    width: 100%;
  }
  .grid-4,
  .hero-prod-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

html, body {
  overflow-x: clip;
}

/* ==========================================================================
   Retail Filter Bar, Slide-Up Drawer & Integrated Editorial Feed
   ========================================================================== */
:root {
  --rf-ink: #1b365d;
  --rf-accent: #1b365d;
  --rf-border: #dad1c2;
  --rf-tint: #f5efe6;
}

.rf-shell {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 12px 0 18px;
  box-sizing: border-box;
}

.rf-bar-primary {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.rf-search-field {
  position: relative;
  flex: 1 1 260px;
  min-width: 0;
  display: flex;
  align-items: center;
  background: #ffffff;
  border: 1.5px solid var(--rf-border);
  border-radius: 999px;
  padding: 0 14px;
  min-height: 44px;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.rf-search-field:focus-within {
  border-color: var(--rf-accent);
  box-shadow: 0 0 0 3px rgba(15, 23, 42, 0.08);
}

.rf-search-field svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
  stroke: var(--rf-ink);
  fill: none;
  stroke-width: 2;
  opacity: 0.65;
  margin-right: 9px;
}

.rf-search-field input[type="search"] {
  width: 100%;
  min-width: 0;
  border: 0 !important;
  outline: none !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--rf-ink);
  font-size: 0.94rem;
  line-height: 1.25;
  padding: 8px 0 !important;
  margin: 0 !important;
  height: auto !important;
}

.rf-drawer-trigger {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.rf-drawer-trigger.has-active {
  border-color: var(--rf-accent);
  background: var(--rf-tint);
}

.rf-drawer-trigger svg {
  width: 17px;
  height: 17px;
  flex: 0 0 17px;
}

.rf-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 0.74rem;
  font-weight: 700;
  line-height: 1;
}

.rf-badge[hidden] {
  display: none !important;
}

.rf-select-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.rf-pill-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  -moz-appearance: none !important;
  background-image: none !important;
  background-color: #ffffff !important;
  border: 1.5px solid var(--rf-border) !important;
  border-radius: 999px !important;
  color: var(--rf-ink) !important;
  font-size: 0.87rem !important;
  font-weight: 600 !important;
  line-height: 1.2 !important;
  min-height: 42px !important;
  padding: 0 34px 0 14px !important;
  margin: 0 !important;
  cursor: pointer;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-sizing: border-box;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.rf-pill-select.is-active {
  border-color: var(--rf-accent) !important;
  background-color: var(--rf-tint) !important;
}

.rf-pill-select:focus {
  outline: 2px solid var(--rf-accent);
  outline-offset: 1px;
}

.rf-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  pointer-events: none;
  color: var(--rf-ink);
  opacity: 0.72;
}

.rf-desktop-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.rf-sale-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.87rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-sizing: border-box;
}

.rf-sale-btn.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #ffffff;
}

.rf-clear-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1.5px dashed var(--rf-accent);
  background: transparent;
  color: var(--rf-accent);
  font-size: 0.84rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.rf-clear-btn[hidden] {
  display: none !important;
}

/* Slide-Up / Slide-Over Filter Drawer */
.rf-drawer {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(12, 16, 24, 0.52);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.rf-drawer[hidden] {
  display: none !important;
}

.rf-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.rf-drawer-panel {
  width: 100%;
  max-width: 560px;
  max-height: 86vh;
  background: #ffffff;
  color: var(--rf-ink);
  border-radius: 20px 20px 0 0;
  box-shadow: 0 -14px 42px rgba(0, 0, 0, 0.24);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateY(16px);
  transition: transform 0.22s ease;
}

.rf-drawer.is-open .rf-drawer-panel {
  transform: translateY(0);
}

.rf-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  border-bottom: 1px solid var(--rf-border);
  background: #ffffff;
}

.rf-drawer-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-ink);
}

.rf-drawer-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  border: 1px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.rf-drawer-body {
  overflow-y: auto;
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  -webkit-overflow-scrolling: touch;
}

.rf-drawer-sec-label {
  display: block;
  margin: 0 0 8px;
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rf-ink);
  opacity: 0.72;
}

.rf-drawer-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.rf-drawer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 6px 13px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
}

.rf-drawer-pill.active {
  background: var(--rf-accent);
  border-color: var(--rf-accent);
  color: #ffffff;
}

.rf-drawer-brand-shell {
  width: 100%;
}

.rf-drawer-brand-shell .rf-pill-select {
  width: 100%;
  min-height: 44px !important;
}

.rf-drawer-foot {
  display: grid;
  grid-template-columns: 1fr 1.6fr;
  gap: 10px;
  padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--rf-border);
  background: #ffffff;
}

.rf-foot-reset {
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
}

.rf-foot-apply {
  min-height: 46px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-accent);
  background: var(--rf-accent);
  color: #ffffff;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
}

/* Integrated Editorial & Shopping In-Feed Posts */
.rf-feed-beat {
  margin: 0 0 22px;
}

.rf-post-card {
  margin: 22px 0;
  padding: 22px 24px;
  background: #ffffff;
  border: 1.5px solid var(--rf-border);
  border-radius: 18px;
  box-shadow: 0 6px 22px rgba(15, 23, 42, 0.05);
  box-sizing: border-box;
  max-width: 100%;
  overflow: hidden;
}

.rf-post-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 14px;
}

.rf-post-kicker {
  display: inline-block;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rf-accent);
  margin-bottom: 4px;
}

.rf-post-title {
  margin: 0;
  font-size: clamp(1.18rem, 2.2vw, 1.48rem);
  line-height: 1.24;
  color: var(--rf-ink);
}

.rf-post-link {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rf-accent);
  text-decoration: none;
  white-space: nowrap;
}

.rf-post-link:hover {
  text-decoration: underline;
}

.rf-vid-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.rf-vid-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: var(--rf-tint);
  border: 1px solid var(--rf-border);
  border-radius: 14px;
  overflow: hidden;
}

.rf-vid-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
}

.rf-vid-stage img,
.rf-vid-stage iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 0;
  display: block;
}

.rf-vid-play {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  background: rgba(10, 14, 24, 0.26);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.rf-vid-play-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--rf-ink);
  font-size: 0.84rem;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.rf-vid-meta {
  padding: 12px 14px;
}

.rf-vid-creator {
  display: block;
  font-size: 0.76rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rf-accent);
  margin-bottom: 4px;
}

.rf-vid-name {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.32;
  font-weight: 600;
  color: var(--rf-ink);
}

/* Guide / Interactive Tool Callout Card */
.rf-post-guide {
  background: linear-gradient(135deg, #ffffff 0%, var(--rf-tint) 100%);
  border-left: 4px solid var(--rf-accent);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
}

.rf-guide-copy {
  flex: 1 1 320px;
  min-width: 0;
}

.rf-guide-sub {
  margin: 6px 0 12px;
  font-size: 0.94rem;
  line-height: 1.5;
  color: var(--rf-ink);
  opacity: 0.86;
}

.rf-guide-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.rf-guide-tag {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid var(--rf-border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--rf-ink);
}

.rf-guide-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.rf-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  background: var(--rf-accent);
  color: #ffffff !important;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none !important;
  white-space: nowrap;
}

.rf-cta-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink) !important;
  font-size: 0.88rem;
  font-weight: 600;
  text-decoration: none !important;
  white-space: nowrap;
}

/* Complete Setup / Kit Lookbook Post */
.rf-post-kit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.rf-kit-mosaic {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.rf-kit-thumb {
  display: block;
  aspect-ratio: 1 / 1;
  background: #ffffff;
  border: 1px solid var(--rf-border);
  border-radius: 12px;
  overflow: hidden;
  padding: 4px;
  box-sizing: border-box;
}

.rf-kit-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.rf-kit-info {
  min-width: 0;
}

.rf-kit-sum {
  margin: 6px 0 12px;
  font-size: 0.92rem;
  line-height: 1.48;
  color: var(--rf-ink);
  opacity: 0.85;
}

.rf-kit-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.rf-kit-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--rf-ink);
}

.rf-stream-sentinel {
  display: flex;
  justify-content: center;
  padding: 18px 0 8px;
}

.rf-more-btn {
  min-height: 44px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1.5px solid var(--rf-border);
  background: #ffffff;
  color: var(--rf-ink);
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
}

@media (max-width: 768px) {
  .rf-bar-primary {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 8px;
    align-items: stretch;
  }
  .rf-search-field {
    grid-column: 1 / -1;
    width: 100%;
  }
  .rf-drawer-trigger {
    display: inline-flex;
    width: 100%;
  }
  .rf-sort-shell {
    width: 100%;
    display: flex;
  }
  .rf-sort-shell .rf-pill-select {
    width: 100%;
    min-height: 44px !important;
  }
  .rf-desktop-row,
  .rf-hero-cta {
    display: none !important;
  }
  .rf-post-card {
    padding: 16px;
    margin: 16px 0;
  }
  .rf-post-kit-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
  }
}

@media (max-width: 640px) {
  .rf-vid-pair {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }
  .rf-kit-mosaic {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .pcard-meta > span,
  .pcard-meta .pcard-cat-tag,
  .prod-meta .spec-tag,
  .p-meta > span {
    display: none !important;
  }
  .pcard-meta,
  .prod-meta,
  .p-meta {
    flex-wrap: nowrap !important;
    overflow: hidden;
  }
}
