/*
Theme Name: Black Fox
Theme URI: https://blackfoxclothing.com/
Author: Universal Digi
Author URI: https://universaldigi.com/
Description: Premium WooCommerce theme for Black Fox Clothing. Light and dark mode. Homepage images, text and heading font under Appearance > Customize > Black Fox homepage.
Version: 1.3.0
Requires at least: 6.0
Requires PHP: 7.4
WC requires at least: 8.0
Text Domain: blackfox
*/

:root {
	--paper: #ffffff;
	--ink: #0f0f0f;
	--ink-2: #2a2a2a;
	--on-ink: #ffffff;
	--mist: #f2f2f1;
	--line: #e4e4e2;
	--muted: #6b6b6b;
	--accent: #6e4a6b;
	--plum: #6e4a6b;
	--night: #0f0f0f;
	--header-bg: rgba(255, 255, 255, .94);
	--radius: 8px;
	--wrap: 1320px;
	--ease: cubic-bezier(.16, 1, .3, 1);
	--font: "Jost", "Helvetica Neue", Helvetica, Arial, sans-serif;
	--font-head: var(--font);
	color-scheme: light;
}
:root[data-theme="dark"] {
	--paper: #121212;
	--ink: #f2eee8;
	--ink-2: #d9d4cc;
	--on-ink: #121212;
	--mist: #1c1b1a;
	--line: #2c2a28;
	--muted: #9d978f;
	--accent: #c9a3c4;
	--night: #0a0a0a;
	--header-bg: rgba(18, 18, 18, .92);
	color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 16px/1.65 var(--font);
	-webkit-font-smoothing: antialiased;
	transition: background-color .4s, color .4s;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); font-weight: 500; line-height: 1.15; margin: 0 0 .5em; letter-spacing: .02em; }
p { margin: 0 0 1em; }
button { font: inherit; cursor: pointer; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.bf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 clamp(16px, 4vw, 48px); }

/* Every photo gets the same soft corner. */
.bf-main img, .woocommerce img, .wc-block-components-product-image img { border-radius: var(--radius); }

.bf-kicker {
	display: inline-block;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: .28em;
	text-transform: uppercase;
	color: var(--accent);
	margin-bottom: 14px;
}

/* Buttons */
.bf-btn, .woocommerce .button, .woocommerce button.button, .woocommerce a.button,
.woocommerce .single_add_to_cart_button, .woocommerce .button.alt, .woocommerce button.button.alt, .woocommerce a.button.alt,
.wc-block-components-button:not(.is-link) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 48px;
	padding: 0 34px;
	border: 1px solid var(--ink);
	border-radius: 999px;
	background: var(--ink);
	color: var(--on-ink);
	font: 500 13px/1 var(--font);
	letter-spacing: .18em;
	text-transform: uppercase;
	transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), opacity .3s;
}
.bf-btn:hover, .woocommerce .button:hover, .woocommerce .single_add_to_cart_button:hover, .woocommerce .button.alt:hover,
.wc-block-components-button:not(.is-link):hover { background: var(--ink-2); border-color: var(--ink-2); color: var(--on-ink); }
.woocommerce button.button.alt.disabled, .woocommerce button.button.alt.disabled:hover {
	background: var(--ink);
	border-color: var(--ink);
	color: var(--on-ink);
	opacity: .35;
}
/* Light buttons sit on photos, so they stay white in both modes. */
.bf-btn--light { background: #fff; color: #0f0f0f; border-color: #fff; }
.bf-btn--light:hover { background: transparent; color: #fff; border-color: #fff; }
.bf-btn--line { background: transparent; color: var(--ink); }
.bf-btn--line:hover { background: var(--ink); color: var(--on-ink); }

/* Announcement + header */
.bf-announce {
	background: var(--night);
	color: #e9e6e1;
	text-align: center;
	font-size: 12px;
	letter-spacing: .22em;
	text-transform: uppercase;
	padding: 10px 16px;
}
.bf-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: var(--header-bg);
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	border-bottom: 1px solid transparent;
	transition: border-color .3s, box-shadow .3s, background-color .4s;
}
.admin-bar .bf-header { top: 32px; }
.bf-scrolled .bf-header { border-color: var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, .05); }
.bf-header__in { position: relative; display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.bf-logo { display: flex; align-items: center; gap: 12px; }
.bf-logo img { max-height: 40px; width: auto; border-radius: 0 !important; }
.bf-wordmark { font-family: var(--font-head); font-size: 19px; font-weight: 600; letter-spacing: .36em; white-space: nowrap; }
.bf-nav .menu { display: flex; gap: 40px; list-style: none; margin: 0; padding: 0; }
.bf-nav a {
	font-size: 13px;
	letter-spacing: .16em;
	text-transform: uppercase;
	position: relative;
	padding: 6px 0;
}
.bf-nav .menu a::after {
	content: "";
	position: absolute;
	left: 0; right: 0; bottom: 0;
	height: 1px;
	background: currentColor;
	transform: scaleX(0);
	transform-origin: right;
	transition: transform .4s var(--ease);
}
.bf-nav .menu a:hover::after { transform: scaleX(1); transform-origin: left; }
.bf-nav__account { display: none; }
.bf-icons { display: flex; align-items: center; gap: 20px; }
.bf-icons svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; display: block; }
.bf-theme { background: none; border: 0; padding: 0; }
.bf-theme__sun, [data-theme="dark"] .bf-theme__moon { display: none !important; }
[data-theme="dark"] .bf-theme__sun { display: block !important; }
.bf-cart { position: relative; display: block; }
.bf-cart-count {
	position: absolute;
	top: -6px; right: -9px;
	min-width: 18px; height: 18px;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--ink);
	color: var(--on-ink);
	font-size: 10px;
	line-height: 18px;
	text-align: center;
}
.bf-burger { display: none; background: none; border: 0; padding: 8px 0; width: 32px; }
.bf-burger span { display: block; height: 1.5px; background: currentColor; margin: 6px 0; transition: transform .3s var(--ease); }

/* Hero */
.bf-hero { position: relative; height: min(88vh, 860px); min-height: 520px; overflow: hidden; background: #0f0f0f; }
.bf-hero__slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity 1.2s var(--ease), visibility 1.2s; }
.bf-hero__slide.is-active { opacity: 1; visibility: visible; }
.bf-hero__slide img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; border-radius: 0 !important; transform: scale(1.06); transition: transform 7s linear; }
.bf-hero__slide.is-active img { transform: scale(1); }
.bf-hero__slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.25) 45%, rgba(0,0,0,0) 70%); }
.bf-hero__text { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; align-items: flex-start; color: #fff; }
.bf-hero__text .bf-kicker { color: rgba(255,255,255,.78); }
.bf-hero__title { font-size: clamp(42px, 6.4vw, 96px); font-weight: 500; text-transform: uppercase; letter-spacing: .01em; max-width: 9.5em; line-height: 1.02; margin-bottom: 18px; }
.bf-hero__text p { font-size: 17px; letter-spacing: .06em; opacity: .88; margin-bottom: 30px; }
.bf-hero__slide .bf-hero__text > * { opacity: 0; transform: translateY(18px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.bf-hero__slide.is-active .bf-hero__text > * { opacity: 1; transform: none; }
.bf-hero__slide.is-active .bf-hero__text > :nth-child(2) { transition-delay: .12s; }
.bf-hero__slide.is-active .bf-hero__text > :nth-child(3) { transition-delay: .24s; }
.bf-hero__slide.is-active .bf-hero__text > :nth-child(4) { transition-delay: .36s; }
.bf-hero__dots { position: absolute; z-index: 3; bottom: 32px; left: 50%; transform: translateX(-50%); display: flex; gap: 10px; }
.bf-hero__dots button { width: 28px; height: 3px; padding: 0; border: 0; border-radius: 2px; background: rgba(255,255,255,.4); transition: width .4s var(--ease), background .4s; }
.bf-hero__dots button.is-active { width: 54px; background: #fff; }

/* Sections */
.bf-section { padding: clamp(64px, 9vw, 120px) 0; }
.bf-section--tight { padding-bottom: clamp(48px, 7vw, 96px); }
.bf-head { text-align: center; max-width: 640px; margin: 0 auto clamp(36px, 5vw, 60px); }
.bf-head h2, .bf-page__title, .woocommerce-products-header__title, .related > h2, .upsells > h2 {
	font-size: clamp(28px, 3.4vw, 44px);
	text-transform: uppercase;
	letter-spacing: .06em;
}
.bf-head p { color: var(--muted); font-size: 17px; margin: 0; }
.bf-empty { text-align: center; color: var(--muted); }

/* Product grid + card */
ul.products.bf-grid, .woocommerce ul.products {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: clamp(20px, 3vw, 40px);
	list-style: none;
	margin: 0 auto;
	padding: 0;
	max-width: 1080px;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none; }
.woocommerce ul.products li.product.bf-card { width: auto; float: none; margin: 0; padding: 0; }
.bf-card { display: flex; flex-direction: column; }
.bf-card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.bf-card__img { position: absolute; inset: 0; width: 100%; height: 100% !important; object-fit: cover; transition: opacity .6s var(--ease), transform 1.2s var(--ease); }
.bf-card__img--alt { opacity: 0; }
.bf-card:hover .bf-card__img { transform: scale(1.04); }
.bf-card:hover .bf-card__img--alt { opacity: 1; }
.bf-badge {
	position: absolute;
	top: 16px; left: 16px;
	padding: 6px 12px;
	border-radius: 4px;
	background: var(--plum);
	color: #fff;
	font-size: 11px;
	letter-spacing: .18em;
	text-transform: uppercase;
}
.bf-card__info { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 20px 2px 16px; }
.bf-card__title { font-family: var(--font); font-size: 17px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; margin: 0; }
.bf-card__price, .woocommerce .price, .woocommerce div.product p.price, .wc-block-components-product-price { font-size: 16px; color: var(--ink) !important; }
.bf-card__cta { align-self: flex-start; }

/* Split tiles */
.bf-split { padding-bottom: clamp(64px, 9vw, 120px); }
.bf-split__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
.bf-tile { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #0f0f0f; }
.bf-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s var(--ease); }
.bf-tile:hover img { transform: scale(1.05); }
.bf-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(0,0,0,.55), rgba(0,0,0,0) 50%); }
.bf-tile__text { position: absolute; z-index: 1; left: clamp(20px, 3vw, 40px); bottom: clamp(20px, 3vw, 40px); display: flex; flex-direction: column; align-items: flex-start; gap: 16px; color: #fff; }
.bf-tile__title { font-family: var(--font-head); font-size: clamp(28px, 4vw, 54px); font-weight: 500; letter-spacing: .1em; text-transform: uppercase; line-height: 1; }

/* Details */
.bf-details { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(12px, 2vw, 24px); }
.bf-detail { margin: 0; }
.bf-detail img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
.bf-detail figcaption { padding-top: 18px; }
.bf-detail strong { display: block; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; font-size: 15px; margin-bottom: 4px; }
.bf-detail span { color: var(--muted); font-size: 15px; }

/* Banner */
.bf-banner { padding-bottom: clamp(64px, 9vw, 120px); }
.bf-banner__in { position: relative; display: block; overflow: hidden; border-radius: var(--radius); }
.bf-banner__in img { width: 100%; height: auto; }

/* Reveal */
.bf-reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.bf-reveal.is-in { opacity: 1; transform: none; }
.bf-grid .bf-reveal:nth-child(2), .bf-details .bf-reveal:nth-child(2), .bf-split__grid .bf-reveal:nth-child(2) { transition-delay: .12s; }
.bf-details .bf-reveal:nth-child(3) { transition-delay: .24s; }

/* Trust strip */
.bf-trust { border-top: 1px solid var(--line); padding: 56px 0; }
.bf-trust__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px; text-align: center; }
.bf-trust svg { width: 30px; height: 30px; fill: none; stroke: var(--ink); stroke-width: 1.2; margin: 0 auto 14px; display: block; }
.bf-trust h4 { font-family: var(--font); font-size: 14px; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 6px; }
.bf-trust p { font-size: 14px; color: var(--muted); margin: 0 auto; max-width: 240px; }

/* Footer */
.bf-footer { background: var(--night); color: #cfcac3; padding: 72px 0 0; font-size: 15px; }
.bf-footer .bf-wordmark { color: #fff; }
.bf-footer__grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; padding-bottom: 56px; }
.bf-footer__brand p { margin-top: 18px; max-width: 320px; color: #9b968f; }
.bf-footer h5 { font-family: var(--font); color: #fff; font-size: 13px; letter-spacing: .2em; text-transform: uppercase; margin-bottom: 18px; }
.bf-footer .menu { list-style: none; margin: 0; padding: 0; }
.bf-footer .menu li { margin-bottom: 10px; }
.bf-footer .menu a:hover { color: #fff; }
.bf-footer__base { display: flex; justify-content: space-between; gap: 16px; border-top: 1px solid #2b2b2b; padding-top: 22px; padding-bottom: 22px; font-size: 13px; color: #85807a; }

/* Pages */
.bf-page, .bf-shop { padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(64px, 8vw, 110px); }
.bf-page__title, .woocommerce-products-header__title { text-align: center; margin-bottom: 40px; }
.bf-content { max-width: 1080px; margin: 0 auto; }
.woocommerce-breadcrumb { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted) !important; margin-bottom: 28px !important; }
.woocommerce-breadcrumb a { color: var(--muted) !important; }
.woocommerce-breadcrumb .sep { margin: 0 10px; }
.woocommerce .woocommerce-result-count, .woocommerce .woocommerce-ordering { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius);
	background: var(--mist) !important;
	color: var(--ink) !important;
}
.woocommerce-message::before, .woocommerce-info::before { color: var(--accent) !important; }

/* Single product: gallery + summary only. Tabs and related products sit below (moved in functions.php). */
.single-product div.product {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: clamp(28px, 5vw, 80px);
	align-items: start;
}
.woocommerce.single-product div.product .woocommerce-product-gallery,
.woocommerce.single-product div.product .summary { float: none; width: auto; margin: 0; }
.single-product div.product > *:not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; }
.single-product .woocommerce-product-gallery { position: relative; }
.single-product .woocommerce-product-gallery__image { background: var(--mist); border-radius: var(--radius); overflow: hidden; }
.woocommerce div.product div.images .flex-control-thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 12px; }
.woocommerce div.product div.images .flex-control-thumbs li { width: auto; float: none; }
.woocommerce div.product div.images .flex-control-thumbs img { opacity: .55; aspect-ratio: 1; object-fit: cover; transition: opacity .3s; }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active,
.woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { background: #fff !important; border-radius: 50% !important; }
.single-product .summary { position: sticky; top: 110px; }
.admin-bar.single-product .summary { top: 142px; }
.single-product .product_title { font-size: clamp(30px, 3.4vw, 44px); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 10px; }
.woocommerce div.product .summary p.price { font-size: 22px; margin-bottom: 22px; }
.woocommerce div.product .summary p.price::after { content: "Inclusive of all taxes"; display: block; font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-top: 4px; }
.woocommerce-product-details__short-description { color: var(--ink-2); font-size: 16px; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 26px; }
.woocommerce div.product form.cart { margin-bottom: 26px; }
.woocommerce div.product form.cart .variations { margin-bottom: 8px; border: 0; }
.woocommerce div.product form.cart .variations th, .woocommerce div.product form.cart .variations td { display: block; padding: 0; text-align: left; }
.woocommerce div.product form.cart .variations label { font-size: 12px; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; display: block; margin-bottom: 12px; }
.bf-sizes { display: flex; flex-wrap: wrap; gap: 10px; }
.bf-sizes button {
	min-width: 56px; height: 48px;
	padding: 0 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: var(--paper);
	color: var(--ink);
	font-size: 14px;
	letter-spacing: .08em;
	transition: border-color .2s, background .2s, color .2s;
}
.bf-sizes button:hover { border-color: var(--ink); }
.bf-sizes button.is-on { background: var(--ink); border-color: var(--ink); color: var(--on-ink); }
.bf-sizes ~ select { display: none !important; }
.woocommerce div.product form.cart .reset_variations { font-size: 12px; letter-spacing: .1em; color: var(--muted); margin-top: 10px; display: inline-block; }
.woocommerce div.product form.cart .single_variation_wrap { margin-top: 18px; }
.woocommerce .woocommerce-variation-add-to-cart, .woocommerce div.product form.cart:not(.variations_form) { display: flex; gap: 12px; flex-wrap: wrap; }
.woocommerce .quantity .qty { height: 48px; width: 74px; border: 1px solid var(--line); border-radius: 999px; background: var(--paper); color: var(--ink); font: inherit; text-align: center; }
.woocommerce div.product form.cart .single_add_to_cart_button { flex: 1; min-width: 200px; }
.bf-assure { list-style: none; padding: 22px 0 0; margin: 0 0 22px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); }
.bf-assure li { padding-left: 22px; position: relative; margin-bottom: 8px; }
.bf-assure li::before { content: ""; position: absolute; left: 0; top: .55em; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.product_meta { font-size: 13px; color: var(--muted); }
.product_meta > span { display: block; margin-bottom: 4px; }
.product_meta .posted_in { display: none; }

.woocommerce-tabs { margin-top: clamp(48px, 7vw, 96px); border-top: 1px solid var(--line); padding-top: 12px; }
.woocommerce-tabs ul.tabs { list-style: none; padding: 0; margin: 0 0 24px; display: flex; flex-wrap: wrap; gap: 8px 32px; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 14px 0; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid transparent; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-tabs .panel { max-width: 760px; }
.woocommerce-tabs .panel > h2:first-child { display: none; }
.woocommerce table.shop_attributes { border: 0; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { border: 0; border-bottom: 1px solid var(--line); background: none !important; font-style: normal; padding: 12px 0; color: var(--ink); }
.related, .upsells { margin-top: clamp(56px, 8vw, 100px); }
.related > h2, .upsells > h2 { text-align: center; margin-bottom: 40px; }
.related ul.products, .upsells ul.products { grid-template-columns: repeat(auto-fit, minmax(0, 480px)); justify-content: center; }

/* Forms, cart and checkout */
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select,
.wc-block-components-text-input input, .wc-blocks-components-select__select, .wc-block-components-textarea {
	border: 1px solid var(--line) !important;
	border-radius: var(--radius) !important;
	background: var(--paper) !important;
	color: var(--ink) !important;
	font-family: var(--font) !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--muted) !important; }
.woocommerce form .form-row input.input-text { padding: 12px 14px; }
.wc-block-cart, .wc-block-checkout, .woocommerce-cart-form, .woocommerce-checkout { font-family: var(--font); color: var(--ink); }
.wc-block-components-sidebar .wc-block-components-panel, .wc-block-components-totals-wrapper, .wc-block-cart-items, .wc-block-cart-items td, .wc-block-cart-items th { border-color: var(--line) !important; }
.wc-block-components-quantity-selector { border-color: var(--line) !important; }
.wc-block-components-quantity-selector input, .wc-block-components-quantity-selector button { background: transparent !important; color: var(--ink) !important; }
.wc-blocks-components-select .wc-blocks-components-select__container { background: transparent !important; border-radius: var(--radius) !important; }
.wc-block-components-order-summary-item__quantity { background: var(--paper) !important; color: var(--ink) !important; border-color: var(--ink) !important; box-shadow: none !important; }
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button { width: 100%; }
.woocommerce table.shop_table { border-radius: var(--radius); border-color: var(--line); }

/* Mobile */
@media (max-width: 960px) {
	.bf-burger { display: block; }
	.bf-header__in { height: 64px; gap: 12px; }
	.bf-logo { position: absolute; left: 50%; transform: translateX(-50%); gap: 9px; }
	.bf-wordmark { font-size: 15px; letter-spacing: .28em; }
	.bf-icons { gap: 18px; }
	.bf-account { display: none !important; }
	/* Absolute, not fixed: the header's backdrop-filter traps fixed children inside it. */
	.bf-nav {
		position: absolute;
		top: 100%;
		left: 0; right: 0;
		height: 100vh;
		height: 100dvh;
		background: var(--paper);
		border-top: 1px solid var(--line);
		padding: 12px clamp(16px, 4vw, 48px) 40px;
		display: flex;
		flex-direction: column;
		opacity: 0;
		visibility: hidden;
		transform: translateY(-8px);
		transition: opacity .35s var(--ease), transform .35s var(--ease), visibility .35s;
	}
	.bf-menu-open .bf-nav { opacity: 1; visibility: visible; transform: none; }
	.bf-menu-open { overflow: hidden; }
	.bf-menu-open .bf-header { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--paper); }
	.bf-menu-open .bf-burger span:first-child { transform: translateY(3.75px) rotate(45deg); }
	.bf-menu-open .bf-burger span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
	.bf-nav .menu { flex-direction: column; gap: 0; }
	.bf-nav .menu a { display: block; font-family: var(--font-head); font-size: 22px; letter-spacing: .1em; padding: 20px 0; border-bottom: 1px solid var(--line); }
	.bf-nav .menu a::after { display: none; }
	.bf-nav__account { display: block; margin-top: 28px; font-size: 13px; color: var(--muted); }
	.bf-trust__grid { grid-template-columns: 1fr 1fr; }
	.bf-footer__grid { grid-template-columns: 1fr 1fr; }
	.bf-footer__brand { grid-column: 1 / -1; }
	.single-product div.product { grid-template-columns: 1fr; }
	.single-product .summary { position: static; }
}
@media (max-width: 782px) { .admin-bar .bf-header { top: 0; } }
@media (max-width: 640px) {
	.bf-announce { font-size: 10px; letter-spacing: .14em; padding: 9px 12px; }
	.bf-hero { height: 82vh; }
	.bf-hero__slide::after { background: linear-gradient(0deg, rgba(0,0,0,.7) 0%, rgba(0,0,0,.15) 60%); }
	.bf-hero__text { justify-content: flex-end; padding-bottom: 84px; }
	ul.products.bf-grid, .woocommerce ul.products { grid-template-columns: 1fr 1fr; gap: 14px; }
	.related ul.products, .upsells ul.products { grid-template-columns: minmax(0, 1fr); max-width: 420px; }
	.bf-card__info { flex-direction: column; gap: 4px; padding: 14px 0 12px; }
	.bf-card__title { font-size: 14px; }
	.bf-card__cta { width: 100%; padding: 0 12px; font-size: 11px; min-height: 42px; }
	.bf-split__grid { grid-template-columns: 1fr; }
	.bf-details { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
	.bf-detail { scroll-snap-align: start; }
	.bf-trust__grid { gap: 28px 16px; }
	.bf-footer__base { flex-direction: column; }
	.bf-badge { top: 10px; left: 10px; font-size: 9px; padding: 5px 8px; }
}
/* ---- 1.2: premium pass ---- */

/* Tactile press on every button. */
.bf-btn:active, .woocommerce .button:active, .wc-block-components-button:active { transform: scale(.98); }
.bf-btn, .woocommerce .button { transition: background .3s var(--ease), color .3s var(--ease), border-color .3s var(--ease), transform .2s var(--ease); }

/* Homepage: header floats over the hero, turns solid after the first scroll. */
.home .bf-hero { margin-top: -76px; height: calc(100dvh - 38px); min-height: 560px; max-height: 1000px; }
.home:not(.bf-scrolled):not(.bf-menu-open) .bf-header { background: transparent; color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; }
.home:not(.bf-scrolled):not(.bf-menu-open) .bf-cart-count { background: #fff; color: #0f0f0f; }
.bf-header { transition: background-color .5s var(--ease), color .5s var(--ease), border-color .3s, box-shadow .3s; }

/* Hero: left-aligned, bigger photo, dots become a timed progress line. */
.bf-hero__slide::after { background: linear-gradient(90deg, rgba(10,10,10,.6) 0%, rgba(10,10,10,.2) 50%, rgba(10,10,10,0) 75%), linear-gradient(0deg, rgba(10,10,10,.35), rgba(10,10,10,0) 30%); }
.bf-hero__dots { left: 0; right: 0; transform: none; bottom: 40px; gap: 12px; }
.bf-hero__dots button { position: relative; width: 64px; height: 2px; overflow: hidden; background: rgba(255,255,255,.3); }
.bf-hero__dots button.is-active { width: 64px; background: rgba(255,255,255,.3); }
.bf-hero__dots button::after { content: ""; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; }
.bf-hero__dots button.is-active::after { animation: bf-fill 6s linear forwards; }
@keyframes bf-fill { to { transform: scaleX(1); } }

/* Section heads sit on the left, like a lookbook. */
.bf-head--left { text-align: left; margin-left: 0; max-width: 560px; }
.bf-section ul.products.bf-grid { max-width: none; }
.bf-section .bf-head--left { max-width: var(--wrap); }
.bf-head--left p { max-width: 46ch; }

/* Photos unveil from the bottom as they enter, then settle from a slight zoom. */
.bf-unveil { clip-path: inset(12% 0 0 0 round var(--radius)); transition: clip-path 1.3s var(--ease); }
.bf-unveil img { transform: scale(1.12); transition: transform 1.8s var(--ease); }
.bf-unveil.is-in { clip-path: inset(0 0 0 0 round var(--radius)); }
.bf-unveil.is-in img { transform: scale(1); }
.bf-tile.is-in:hover img { transform: scale(1.05); }
.bf-split__grid .bf-unveil:nth-child(2), .bf-details .bf-unveil:nth-child(2) { transition-delay: .12s; }
.bf-details .bf-unveil:nth-child(3) { transition-delay: .24s; }

/* Hero copy stays in the open wall on the left, clear of the models. */
.bf-hero__title { font-size: clamp(40px, 4.8vw, 72px); max-width: 6em; }
/* Model shots are 2:3; keep heads in frame on the 4:5 cards. */
.bf-card__img { object-position: center 18%; }

/* Story: big photo beside the words, same light page. */
.bf-story { padding: clamp(32px, 5vw, 64px) 0 clamp(64px, 9vw, 120px); }
.bf-story__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.bf-story__media { aspect-ratio: 5 / 6; max-height: 82vh; overflow: hidden; border-radius: var(--radius); background: var(--mist); }
.bf-story__media img { width: 100%; height: 100%; object-fit: cover; }
.bf-story__text h2 { font-size: clamp(32px, 4.2vw, 58px); text-transform: uppercase; letter-spacing: .02em; line-height: 1.05; margin-bottom: 24px; }
.bf-story__text p { color: var(--muted); font-size: 17px; max-width: 46ch; margin-bottom: 32px; }
.bf-link { display: inline-block; font-size: 13px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; padding-bottom: 6px; background: linear-gradient(currentColor, currentColor) left bottom / 100% 1px no-repeat; transition: background-size .5s var(--ease); }
.bf-link:hover { background-size: 30% 1px; }

/* Cards: quieter info row, price in muted ink. */
.bf-card__price { color: var(--muted) !important; }
.bf-card__media { border-radius: var(--radius); }

@media (max-width: 960px) {
	.home .bf-hero { margin-top: -64px; }
	.bf-story__grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
	.home .bf-hero { height: calc(100dvh - 34px); min-height: 520px; }
	.bf-hero__dots { bottom: 28px; }
	.bf-hero__slide img { object-position: 68% center; }
	.bf-hero__slide::after { background: linear-gradient(0deg, rgba(10,10,10,.72) 0%, rgba(10,10,10,.15) 60%); }
	.bf-hero__dots button, .bf-hero__dots button.is-active { width: 44px; }
}

@media (prefers-reduced-motion: reduce) {
	.bf-unveil, .bf-unveil img { clip-path: none; transform: none; }
	.bf-hero__dots button.is-active::after { transform: none; }
	*, *::before, *::after { transition: none !important; animation: none !important; }
	.bf-reveal { opacity: 1; transform: none; }
}
