@font-face {
  font-family: Buyer Onest;
  src: url('/ui-fixes/category-atlas-media-v1/Onest-Variable.ttf') format('truetype');
  font-display: swap;
  font-weight: 100 900;
}
.bf-body {
  --bf-bg: #0b1a14;
  --bf-nav: #091510;
  --bf-panel: #13281f;
  --bf-raised: #1b352a;
  --bf-line: #355344;
  --bf-ink: #eef6f0;
  --bf-muted: #b3c7b9;
  --bf-mint: #a4dfc5;
  --bf-cream: #fbf1e2;
  --bf-buy: #ffab68;
  --bf-gutter: clamp(18px, 4.1vw, 55px);
  background: var(--bf-bg);
  color: var(--bf-ink);
  color-scheme: dark;
  margin: 0;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  font: 400 16px/1.55 Buyer Onest, Onest, Arial, sans-serif;
}
.bf-body *, .bf-body *::before, .bf-body *::after { box-sizing: border-box; }
.bf-body :where(h1,h2,h3,p,ul,figure) { margin: 0; }
.bf-body a { color: inherit; text-decoration: none; }
.bf-body :is(input,button,select,summary) { font: inherit; color: inherit; }
.bf-body :is(button,summary) { cursor: pointer; }
.bf-body [hidden] { display: none !important; }
.bf-body :focus-visible { outline: 2px solid var(--bf-mint); outline-offset: 3px; }
.bf-body main { flex: 1 0 auto; }
.bf-body img { display: block; max-width: 100%; }
.bf-body em { color: var(--bf-mint); font-style: normal; }
.bf-width { width: min(calc(100% - 2 * var(--bf-gutter)), 1250px); margin-inline: auto; }
.bf-muted { color: var(--bf-muted); }
.bf-sr { position: absolute; width: 1px; height: 1px; clip-path: inset(50%); overflow: hidden; white-space: nowrap; }

.bf-top { background: var(--bf-nav); border-bottom: 1px solid var(--bf-line); }
.bf-top-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 73px; gap: 20px; }
.bf-brand { display: inline-flex; justify-self: start; align-items: center; gap: 10px; min-height: 44px; font-size: 19px; font-weight: 710; letter-spacing: -.035em; }
.bf-brand img { flex: none; width: 38px; height: 38px; object-fit: contain; }
.bf-top nav { display: flex; align-self: stretch; gap: clamp(15px,3vw,34px); }
.bf-top nav a { display: inline-flex; align-items: center; position: relative; min-height: 44px; color: var(--bf-muted); font-size: 14px; font-weight: 550; }
.bf-top nav a[aria-current='page'] { color: var(--bf-ink); }
.bf-top nav a[aria-current='page']::after { content: ''; position: absolute; inset: auto 0 -1px; height: 2px; border-radius: 3px; background: var(--bf-mint); }
.bf-header-link { justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 12px; border: 1px solid var(--bf-line); border-radius: 100px; font-size: 13px; font-weight: 570; white-space: nowrap; }
.bf-header-link span { color: var(--bf-mint); }
.bf-footer { border-top: 1px solid var(--bf-line); background: var(--bf-nav); }
.bf-footer > div { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 8px 20px; min-height: 69px; padding-block: 10px; }
.bf-footer > div > a { font-weight: 640; }
.bf-footer nav { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--bf-muted); font-size: 13px; }
.bf-footer nav a { padding-block: 7px; }

.bf-intro { isolation: isolate; position: relative; background: radial-gradient(ellipse at 68% 0, #244235, transparent 69%), #0c1d16; }
.bf-intro::after { content: ''; position: absolute; z-index: -1; inset: 0 0 0 40%; background: linear-gradient(90deg,#0d2118 2%,#11281e55 64%),linear-gradient(0deg,var(--bf-bg),#152d267a 56%),url('/ui-fixes/category-atlas-media-v1/textile-production.jpg') center 56% / cover; mask-image: linear-gradient(90deg,transparent,#000 30%); }
.bf-intro > div { padding-block: clamp(31px,4.5vw,65px) clamp(25px,3.6vw,43px); }
.bf-intro-copy { max-width: 705px; }
.bf-body h1 { font-weight: 550; font-size: clamp(36px,5.15vw,66px); line-height: 1.06; letter-spacing: -.055em; text-wrap: balance; }
.bf-intro p { margin-block-start: 12px; max-width: 530px; color: var(--bf-muted); }
.bf-body h2 { font-size: clamp(21px,2.35vw,29px); font-weight: 570; letter-spacing: -.038em; line-height: 1.2; }
.bf-body h3 { font-size: clamp(18px,1.8vw,22px); font-weight: 600; letter-spacing: -.02em; line-height: 1.27; }
.bf-body :is(h1,h2,h3,p,button,a,strong) { overflow-wrap: anywhere; }
.bf-btn,.bf-link { display: inline-flex; min-height: 44px; justify-content: center; align-items: center; gap: 9px; font-weight: 610; font-size: 14px; line-height: 1.28; }
.bf-btn { padding: 9px 14px; border: 1px solid var(--bf-line); border-radius: 10px; }
.bf-body .bf-btn-secondary { background: var(--bf-raised); color: var(--bf-ink); }
.bf-body .bf-btn-buy { color: #2d211a; border-color: #ffc493; background: linear-gradient(135deg,#ffbf88,var(--bf-buy)); box-shadow: inset 0 1px #fff4; }
.bf-body .bf-link { color: var(--bf-mint); min-height: 36px; justify-content: start; }
.bf-arrow { font-size: 1.1em; line-height: 1; flex: none; }

.bf-pricing-content { padding-block: 19px clamp(38px,6vw,65px); }
.bf-state { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 15px 0; color: var(--bf-muted); }
.bf-plan-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: stretch; gap: 13px; }
.bf-plan { display: flex; flex-direction: column; min-width: 0; gap: 8px; padding: clamp(15px,2.45vw,29px); border: 1px solid var(--bf-line); border-radius: 17px; background: linear-gradient(150deg,#1a3227,#11241c 80%); scroll-margin-top: 15px; }
.bf-plan:target { border-color: var(--bf-mint); }
.bf-plan h2 { min-height: 1.24em; }
.bf-price { color: var(--bf-ink); font-size: clamp(27px,3.3vw,44px); font-weight: 580; letter-spacing: -.051em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.bf-term { font-size: 13px; }
.bf-includes { display: grid; align-content: start; gap: 9px; padding: 12px 0; margin-block: 5px; border-top: 1px solid var(--bf-line); list-style: none; font-size: 14px; }
.bf-includes li { position: relative; padding-left: 17px; overflow-wrap: anywhere; }
.bf-includes li::before { content: '✓'; position: absolute; left: 0; color: var(--bf-mint); }
.bf-plan .bf-btn { margin-top: auto; justify-content: space-between; }
.bf-guidance { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 18px; border-block-start: 1px solid var(--bf-line); margin-top: 30px; padding-top: 20px; }
.bf-guidance p { color: var(--bf-muted); margin-top: 6px; max-width: 72ch; }
.bf-guidance .bf-link { flex: none; }
@media (hover:hover) {
  .bf-body :is(.bf-btn,.bf-header-link):not(:disabled):hover { filter: brightness(1.12); }
  .bf-body :is(.bf-link,.bf-top nav a,.bf-footer nav a):hover { color: #def5e8; }
}
@media (max-width: 740px) {
  .bf-plan-grid { grid-template-columns: minmax(0,1fr); }
}
@media (max-width: 590px) {
  .bf-top-inner { grid-template-columns: minmax(0,1fr) auto; gap: 0 10px; padding-top: 4px; min-height: 52px; }
  .bf-top nav { grid-row: 2; grid-column: 1 / -1; gap: 20px; }
  .bf-header-link { grid-row: 1; grid-column: 2; min-height: 44px; }
  .bf-brand { font-size: 17px; gap: 8px; }
  .bf-brand img { width: 31px; height: 31px; }
  .bf-intro > div { padding-block: 23px 17px; }
  .bf-intro::after { inset-inline-start: 24%; opacity: .58; }
  .bf-body h1 { font-size: clamp(30px,9vw,43px); text-wrap: unset; }
  .bf-intro p { font-size: 14px; margin-block-start: 8px; }
  .bf-pricing-content { padding-block-start: 13px; }
  .bf-plan { border-radius: 13px; }
  .bf-guidance { margin-top: 22px; }
}

.bf-directory-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 11px 20px; margin-block-end: 13px; }
.bf-directory-head p { margin-top: 4px; font-size: 13px; }
.bf-directory-search { display: grid; grid-template-columns: auto minmax(0,1fr); gap: 9px; align-items: center; width: min(330px,100%); min-height: 45px; padding: 0 12px; border: 1px solid var(--bf-line); border-radius: 10px; background: #102119; }
.bf-directory-search:focus-within { border-color: var(--bf-mint); }
.bf-body .bf-directory-search input { width: 100%; min-width: 0; padding: 10px 0; background: transparent; border: 0; outline: none; font-size: 16px; }
.bf-directory-search input::placeholder { color: var(--bf-muted); opacity: 1; }
.bf-search-icon { width: 13px; height: 13px; position: relative; border: 1.5px solid var(--bf-mint); border-radius: 50%; margin-right: 3px; }
.bf-search-icon::after { content: ''; position: absolute; width: 6px; height: 1.5px; background: var(--bf-mint); transform: rotate(45deg); bottom: -2px; right: -4px; }
.bf-category-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 13px; padding: 0; list-style: none; }
.bf-category-tile { display: grid; grid-template-rows: auto 1fr; min-width: 0; border-radius: 16px; border: 1px solid var(--bf-line); background: var(--bf-panel); scroll-margin-top: 14px; }
.bf-category-art { height: clamp(88px,11vw,149px); overflow: hidden; border-radius: 15px 15px 0 0; background: linear-gradient(140deg,#2b4c39,#172a21); }
.bf-category-art img { height: 100%; width: 100%; object-fit: cover; }
.bf-category-art img[src$='textile-texture.jpg'] { object-position: center 82%; }
.bf-category-copy { min-width: 0; display: flex; flex-direction: column; gap: 5px; padding: 14px clamp(13px,2vw,20px) 12px; }
.bf-category-meta { font-size: 13px; }
.bf-category-price { display: flex; align-items: baseline; gap: 5px 12px; flex-wrap: wrap; margin-block: 5px 2px; }
.bf-category-price strong,.bf-dialog-actions > strong { color: var(--bf-cream); font-size: clamp(23px,2.65vw,33px); font-variant-numeric: tabular-nums; letter-spacing: -.04em; line-height: 1.15; }
.bf-category-price small { color: var(--bf-muted); font-size: 13px; }
.bf-category-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 12px; padding-block-start: 10px; margin-top: auto; border-top: 1px solid var(--bf-line); }
.bf-category-actions .bf-btn { justify-content: space-between; }
.bf-body .bf-details-link { border: 0; background: transparent; padding: 0; min-height: 40px; }
.bf-other { border-block-start: 1px solid var(--bf-line); margin-top: 25px; }
.bf-other > summary { padding: 13px 0; min-height: 44px; font-weight: 580; }
.bf-other > summary span { margin-left: 5px; color: var(--bf-muted); }
.bf-other-list { display: grid; gap: 6px; list-style: none; padding: 0; }
.bf-other-list li { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; padding: 10px 12px; border-radius: 9px; background: var(--bf-panel); scroll-margin-top: 14px; }
.bf-other-list h3 { font-size: 16px; }
.bf-other-list p { font-size: 13px; }
.bf-category-dialog { position: fixed; inline-size: min(650px,calc(100% - 24px)); max-height: calc(100dvh - 24px); margin: auto; padding: clamp(15px,4vw,26px); border: 1px solid #5c7a6a; border-radius: 18px; background: #14291f; color: var(--bf-ink); overflow: auto; }
.bf-category-dialog::backdrop { background: #020a07bd; }
.bf-category-dialog [data-dialog-content] { display: grid; gap: 9px; }
.bf-category-dialog h2 { max-width: calc(100% - 45px); }
.bf-category-dialog h3 { margin-top: 6px; }
.bf-dialog-close { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; border: 1px solid var(--bf-line); border-radius: 50%; background: var(--bf-nav); font-size: 24px !important; }
.bf-features { display: flex; flex-wrap: wrap; padding: 0; gap: 5px; list-style: none; }
.bf-features li { padding: 4px 9px; border: 1px solid var(--bf-line); border-radius: 999px; color: var(--bf-mint); font-size: 13px; overflow-wrap: anywhere; }
.bf-gallery { display: grid; grid-template-columns: repeat(auto-fill,minmax(min(100%,132px),1fr)); align-items: start; gap: 9px; }
.bf-preview { display: block; min-height: 44px; background: #eeeee9; border-radius: 8px; overflow: hidden; }
.bf-preview img { width: 100%; aspect-ratio: 1.5; object-fit: contain; }
.bf-dialog-actions { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: 8px; margin-top: 6px; }
@media (max-width: 850px) { .bf-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } }
@media (max-width: 590px) {
  .bf-category-grid { grid-template-columns: minmax(0,1fr); gap: 9px; }
  .bf-category-tile { grid-template-columns: minmax(65px,22%) minmax(0,1fr); grid-template-rows: auto; border-radius: 12px; }
  .bf-category-art { position: relative; height: auto; border-radius: 11px 0 0 11px; }
  .bf-category-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
  .bf-category-copy { padding: 10px 10px 8px; }
  .bf-category-actions { gap: 2px 8px; }
  .bf-category-actions .bf-btn { padding-inline: 8px; }
  .bf-directory-head h2 { font-size: 20px; }
  .bf-directory-search { width: 100%; }
  .bf-category-dialog .bf-dialog-close { width: 44px; height: 44px; }
}
@media (max-width: 370px) {
  .bf-category-tile { grid-template-columns: minmax(0,1fr); }
  .bf-category-art { display: none; }
  .bf-category-copy { padding-inline: 12px; }
  .bf-category-actions .bf-btn { padding-inline: 12px; }
}

.bf-top-auth .bf-top-inner { grid-template-columns: 1fr auto; }
.bf-auth-main { display: grid; align-items: center; background: radial-gradient(ellipse at 35% 5%, #1b392b, transparent 60%); }
.bf-auth-layout {
  display: grid;
  grid-template-columns: minmax(390px, 465px) minmax(0, 490px);
  justify-content: center;
  padding-block: clamp(25px, 6vh, 76px);
}
.bf-auth-panel {
  position: relative;
  padding: clamp(27px, 4vw, 44px);
  border: 1px solid var(--bf-line);
  border-radius: 23px 0 0 23px;
  background: var(--bf-panel);
}
.bf-auth-panel h1 { font-size: clamp(32px, 4vw, 44px); }
.bf-auth-intro { margin-block: 11px 22px; max-width: 36ch; }
.bf-auth-panel form { display: grid; gap: 8px; }
.bf-auth-panel label { margin: 3px 0 0; font-size: 14px; font-weight: 630; }
.bf-auth-panel input {
  width: 100%;
  min-height: 47px;
  border: 1px solid #527363;
  border-radius: 9px;
  padding: 9px 12px;
  background: #0e2118;
  color: var(--bf-ink);
  font-size: 16px;
}
.bf-auth-password { position: relative; }
.bf-auth-password input { padding-inline-end: 90px; }
.bf-auth-password button {
  position: absolute;
  inset: 0 0 0 auto;
  min-width: 74px;
  padding: 0 10px;
  border: 0;
  border-radius: 9px;
  color: var(--bf-mint);
  background: transparent;
  font-size: 13px;
}
.bf-auth-panel .bf-auth-hint { margin: -1px 0 3px; font-size: 13px; }
.bf-body .bf-btn-auth { width: 100%; min-height: 47px; margin-block-start: 8px; border: 1px solid #d1f3e3; background: var(--bf-mint); color: #122920; }
.bf-btn-auth:disabled { opacity: .58; cursor: wait; }
.bf-auth-message { margin-block-start: 15px; padding: 10px 12px; border: 1px solid #567867; border-radius: 9px; background: #172f25; font-size: 14px; }
.bf-auth-error { color: #ffe2d4; border-color: #ae7763; background: #3b2924; }
.bf-auth-result { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 8px; }
.bf-auth-help { display: flex; flex-wrap: wrap; gap: 2px 18px; margin-top: 17px; border-top: 1px solid var(--bf-line); padding-top: 8px; }
.bf-auth-help a, .bf-body .bf-auth-text-button { display: inline-flex; align-items: center; gap: 6px; min-height: 38px; color: var(--bf-mint); font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }
.bf-auth-text-button { border: 0; padding: 0; background: transparent; }
.bf-auth-picture {
  min-width: 0;
  min-height: 360px;
  border-radius: 0 23px 23px 0;
  border: 1px solid var(--bf-line);
  border-left: 0;
  background: linear-gradient(122deg, #12281d38, #101f18a8), url('/ui-fixes/category-atlas-media-v1/textile-production.jpg') 57% center / cover;
}
@media (max-width: 690px) {
  .bf-auth-main { display: block; }
  .bf-auth-layout { grid-template-columns: minmax(0,500px); padding-block: 19px 28px; }
  .bf-auth-panel { border-radius: 17px; padding: 20px 17px; }
  .bf-auth-intro { margin-block: 8px 16px; font-size: 14px; }
  .bf-auth-help { margin-top: 14px; }
  .bf-auth-picture { display: none; }
}
