/* ==========================================================================
   Brightline main styles
   Colours, fonts and sizes come from Theme Options as CSS variables.
   ========================================================================== */

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

body {
	margin: 0;
	font-style: var(--bl-body-style, normal);
	font-weight: var(--bl-body-weight, 400);
	font-family: var(--bl-body-font);
	font-size: var(--bl-base-size, 16px);
	line-height: 1.6;
}
@media (max-width: 549px) {
	body { font-size: var(--bl-base-size-sm, var(--bl-base-size, 16px)); }
}
body {
	color: var(--wp--preset--color--dark);
	background: #fff;
	-webkit-font-smoothing: antialiased;
}
body.bl-locked { overflow: hidden; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--bl-heading-font);
	font-weight: var(--bl-heading-weight, 700);
	text-transform: var(--bl-heading-transform, none);
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--bl-heading-color, inherit);
	font-style: var(--bl-heading-style, normal);
}
h1 { font-size: clamp(1.9rem, 4vw, 2.6rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
h3 { font-size: 1.4rem; }
h4 { font-size: 1.2rem; }
h5 { font-size: 1.05rem; }
h6 { font-size: 0.95rem; }

/* Heading sizes as on the old theme (Theme Options > Typography > Heading sizes) */
.bl-type-classic h1 { font-size: 1.7em; line-height: 1.3; }
.bl-type-classic h2 { font-size: 1.6em; line-height: 1.3; }
.bl-type-classic h3 { font-size: 1.25em; }
.bl-type-classic h4 { font-size: 1.125em; }
.bl-type-classic h5 { font-size: 1em; }
.bl-type-classic h6 { font-size: 0.85em; }
.bl-type-classic h1, .bl-type-classic h2, .bl-type-classic h3,
.bl-type-classic h4, .bl-type-classic h5, .bl-type-classic h6 { margin-bottom: 0.5em; }
@media (max-width: 549px) {
	.bl-type-classic h1 { font-size: 1.4em; }
	.bl-type-classic h2 { font-size: 1.2em; }
	.bl-type-classic h3 { font-size: 1em; }
}

p { margin: 0 0 1.2em; }
img, svg, video { max-width: 100%; height: auto; }
img { display: block; }
.bl-icon { display: block; flex: none; }

a { color: var(--bl-link, var(--wp--preset--color--primary)); text-decoration: none; }
a:hover { color: var(--wp--preset--color--secondary); }
.entry-content :where(p, li:not(.product)) > a:not(.wp-element-button):not(.button):not(.blpb-button) { text-decoration: underline; text-underline-offset: 0.15em; }

:focus-visible { outline: 2px solid var(--wp--preset--color--primary); outline-offset: 2px; }

hr { border: 0; border-top: 1px solid rgba(0, 0, 0, 0.1); margin: 2em 0; }

table { width: 100%; border-collapse: collapse; margin-bottom: 1.5em; }
th, td { padding: 0.6em 0.75em; border-bottom: 1px solid rgba(0, 0, 0, 0.08); text-align: left; }

blockquote { margin: 0 0 1.5em; padding-left: 1.2em; border-left: 3px solid var(--wp--preset--color--primary); }

.screen-reader-text {
	border: 0; clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%);
	height: 1px; width: 1px; margin: -1px; overflow: hidden; padding: 0;
	position: absolute !important; word-wrap: normal !important;
}
.skip-link:focus {
	clip: auto; clip-path: none; height: auto; width: auto; margin: 0;
	left: 8px; top: 8px; z-index: 100000; padding: 12px 18px;
	background: #fff; color: var(--wp--preset--color--dark); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

/* Forms and buttons
   ========================================================================== */
input[type="text"], input[type="email"], input[type="url"], input[type="password"],
input[type="search"], input[type="number"], input[type="tel"], input[type="date"],
select, textarea {
	width: 100%;
	max-width: 100%;
	padding: 0.65em 0.85em;
	font: inherit;
	color: inherit;
	background: #fff;
	border: 1px solid #d5d8dd;
	border-radius: 4px;
	transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus, textarea:focus {
	outline: none;
	border-color: var(--wp--preset--color--primary);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--wp--preset--color--primary) 20%, transparent);
}
label { display: inline-block; margin-bottom: 0.3em; font-weight: 600; }

.button, button.button, input[type="submit"], .wp-element-button, .wp-block-button__link {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.4em;
	padding: 0.75em 1.5em;
	font: inherit;
	font-weight: 700;
	line-height: 1.2;
	color: #fff;
	background: var(--wp--preset--color--primary);
	border: 2px solid transparent;
	border-radius: var(--bl-btn-radius, 4px);
	cursor: pointer;
	text-decoration: none;
	transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s;
}
.button:hover, input[type="submit"]:hover, .wp-element-button:hover {
	color: #fff;
	background: var(--wp--preset--color--secondary);
}
.is-style-outline > .wp-block-button__link { background: transparent; border-color: currentColor; color: inherit; }
.is-style-outline > .wp-block-button__link:hover { background: #fff; color: var(--wp--preset--color--dark); border-color: #fff; }

.bl-icon-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	position: relative;
	width: 42px;
	height: 42px;
	padding: 0;
	color: inherit;
	background: none;
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: background-color 0.2s, color 0.2s;
}
.bl-icon-btn:hover { color: var(--wp--preset--color--primary); background: rgba(0, 0, 0, 0.05); }

/* Layout
   ========================================================================== */
.bl-container {
	width: 100%;
	max-width: calc(var(--bl-container, 1200px) + 2 * var(--wp--preset--spacing--40, 1.5rem));
	margin-left: auto;
	margin-right: auto;
	padding-left: var(--wp--preset--spacing--40, 1.5rem);
	padding-right: var(--wp--preset--spacing--40, 1.5rem);
}

.bl-site { min-height: 100vh; display: flex; flex-direction: column; }
.bl-site-content { flex: 1 0 auto; }

.bl-layout { display: grid; gap: 2.5rem; padding-top: 2.5rem; padding-bottom: 3.5rem; }
.bl-main { min-width: 0; }
@media (min-width: 961px) {
	.bl-layout--sidebar-right { grid-template-columns: minmax(0, 1fr) 280px; }
	.bl-layout--sidebar-left { grid-template-columns: 280px minmax(0, 1fr); }
	.bl-layout--sidebar-left > .bl-main { order: 2; }
}

.bl-main--page, .bl-main--full { padding-bottom: 3rem; }
.bl-main--full { padding-bottom: 0; }
.bl-page-header { padding-top: 2.5rem; padding-bottom: 1rem; }
.bl-page-title { margin-bottom: 0.4em; }
.bl-archive-description { color: #666; }
.bl-page-content > :first-child.alignfull { margin-top: 0; }
.bl-main--page .bl-page-content--shop { padding-bottom: 1rem; }

/* Top bar
   ========================================================================== */
.bl-topbar {
	background: var(--bl-topbar-bg);
	color: var(--bl-topbar-text);
	font-size: 0.85rem;
}
.bl-topbar a { color: inherit; }
.bl-topbar a:hover { opacity: 0.8; }
.bl-topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 38px; }
.bl-topbar__text p { margin: 0; }
.bl-topbar__menu { display: flex; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 960px) {
	.bl-topbar__inner { justify-content: center; text-align: center; }
	.bl-topbar__nav { display: none; }
}

/* Header
   ========================================================================== */
.bl-header {
	position: relative;
	z-index: 50;
	background: var(--bl-header-bg);
	color: var(--bl-header-text);
	border-bottom: 1px solid rgba(0, 0, 0, 0.07);
	transition: box-shadow 0.25s;
}
.bl-header.is-sticky { position: sticky; top: var(--wp-admin--admin-bar--height, 0px); }
@media (max-width: 600px) { .admin-bar .bl-header.is-sticky { top: 0; } }
.bl-header.is-stuck { box-shadow: 0 4px 18px rgba(0, 0, 0, 0.08); }
.bl-sticky-sentinel { height: 1px; margin-bottom: -1px; }

.bl-header a { color: inherit; }
.bl-header a:hover { color: var(--wp--preset--color--primary); }

.bl-header__inner {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	min-height: var(--bl-header-height, 90px);
}
.bl-header__brand { flex: none; }
.bl-header__brand img { max-height: calc(var(--bl-header-height, 90px) - 24px); max-width: var(--bl-logo-w, 200px); width: auto; height: auto; }
.bl-site-title { margin: 0; font-family: var(--bl-heading-font); font-size: 1.5rem; font-weight: var(--bl-heading-weight, 700); line-height: 1.1; }
.bl-header__icons { display: flex; align-items: center; gap: 0.25rem; margin-left: auto; }
.bl-header__nav { flex: 1; }
.bl-header__search-inline { flex: 0 1 320px; }
.bl-header__search-inline--wide { flex: 1 1 auto; max-width: 520px; margin-left: auto; }
.bl-header__search-inline + .bl-header__icons { margin-left: 0; }

/* Logo-centred layout */
.bl-header--center .bl-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; }
.bl-header--center .bl-header__left { justify-self: start; width: 100%; max-width: 300px; }
.bl-header--center .bl-header__brand { justify-self: center; text-align: center; }
.bl-header--center .bl-header__icons { justify-self: end; }
.bl-header--center .bl-header__nav--below .bl-menu { justify-content: center; }

.bl-header__bottom { border-top: 1px solid rgba(0, 0, 0, 0.07); }

/* Desktop menu */
.bl-menu, .bl-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.bl-menu { display: flex; flex-wrap: wrap; align-items: center; }
.bl-header__nav:not(.bl-header__nav--below) .bl-menu { justify-content: center; }
.bl-menu > li { position: relative; }
.bl-menu > li > a {
	display: flex;
	align-items: center;
	gap: 0.3em;
	padding: 0 0.9em;
	min-height: 52px;
	font-weight: var(--bl-nav-weight, 700);
	font-style: var(--bl-nav-style, normal);
	font-size: 0.92rem;
	letter-spacing: 0.02em;
}
.bl-nav-uppercase .bl-menu > li > a { text-transform: uppercase; }
.bl-menu > li.current-menu-item > a,
.bl-menu > li.current-menu-ancestor > a { color: var(--wp--preset--color--primary); }
.bl-menu > li.menu-item-has-children > a::after {
	content: "";
	width: 0.4em;
	height: 0.4em;
	border-right: 2px solid currentColor;
	border-bottom: 2px solid currentColor;
	transform: translateY(-25%) rotate(45deg);
	opacity: 0.6;
}
.bl-menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 0;
	z-index: 20;
	min-width: 230px;
	padding: 0.6rem 0;
	background: #fff;
	color: var(--wp--preset--color--dark);
	border-radius: 6px;
	box-shadow: 0 12px 34px rgba(0, 0, 0, 0.12);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
}
.bl-menu .sub-menu .sub-menu { top: -0.6rem; left: 100%; }
.bl-menu li:hover > .sub-menu,
.bl-menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.bl-menu .sub-menu a { display: block; padding: 0.5rem 1.2rem; font-size: 0.92rem; color: inherit; }
.bl-menu .sub-menu a:hover { background: var(--wp--preset--color--light); color: var(--wp--preset--color--primary); }
.bl-nav__empty { font-size: 0.9rem; opacity: 0.7; }

/* Cart count bubble */
.bl-cart-count {
	position: absolute;
	top: 3px;
	right: 0;
	min-width: 18px;
	height: 18px;
	padding: 0 5px;
	border-radius: 9px;
	background: var(--wp--preset--color--secondary);
	color: #fff;
	font-size: 0.7rem;
	font-weight: 700;
	line-height: 18px;
	text-align: center;
}
.bl-cart-count.is-empty { display: none; }

/* Responsive header */
.bl-menu-toggle { display: none; }
@media (min-width: 961px) {
	.bl-hide-desktop { display: none !important; }
}
@media (max-width: 960px) {
	.bl-menu-toggle { display: inline-flex; margin-left: -10px; }
	.bl-header__nav, .bl-header__bottom, .bl-header__search-inline, .bl-header__left { display: none !important; }
	.bl-header__inner, .bl-header--center .bl-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; gap: 0.5rem; min-height: 64px; }
	.bl-header__brand { justify-self: center; }
	.bl-header__brand img { max-height: 44px; }
	.bl-header__icons { justify-self: end; gap: 0; }
	.bl-site-title { font-size: 1.25rem; }
}

/* Search form
   ========================================================================== */
.bl-search-form { position: relative; display: flex; }
.bl-search-form .bl-search-form__input { padding-right: 3em; border-radius: 999px; }
.bl-search-form__submit {
	position: absolute; top: 0; right: 0; bottom: 0;
	display: flex; align-items: center; justify-content: center;
	width: 3em; padding: 0; border: 0; background: none; color: inherit; cursor: pointer;
}
.bl-search-form__submit:hover { color: var(--wp--preset--color--primary); }

/* Overlays: drawers, search, modal (shared)
   ========================================================================== */
.bl-layer { position: fixed; inset: 0; z-index: 1000; }
.bl-layer[hidden] { display: none; }
.bl-layer__overlay {
	position: absolute; inset: 0;
	background: rgba(10, 12, 16, 0.55);
	opacity: 0;
	transition: opacity 0.25s;
}
.bl-layer.is-open .bl-layer__overlay { opacity: 1; }

.bl-drawer__panel {
	position: absolute; top: 0; bottom: 0;
	display: flex; flex-direction: column;
	width: min(380px, 88vw);
	background: #fff;
	color: var(--wp--preset--color--dark);
	box-shadow: 0 0 40px rgba(0, 0, 0, 0.2);
	transition: transform 0.25s ease;
}
.bl-drawer--left .bl-drawer__panel { left: 0; transform: translateX(-100%); }
.bl-drawer--right .bl-drawer__panel { right: 0; transform: translateX(100%); }
.bl-layer.is-open .bl-drawer__panel { transform: none; }
.bl-drawer__head {
	display: flex; align-items: center; justify-content: space-between;
	padding: 0.75rem 1rem 0.75rem 1.25rem;
	border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.bl-drawer__title { font-family: var(--bl-heading-font); font-weight: var(--bl-heading-weight, 700); font-size: 1.1rem; }
.bl-drawer__body { flex: 1; overflow-y: auto; padding: 1.25rem; overscroll-behavior: contain; }
.bl-drawer__body .bl-search-form { margin-bottom: 1.25rem; }

/* Mobile menu */
.bl-mobile-menu, .bl-mobile-menu .sub-menu { list-style: none; margin: 0; padding: 0; }
.bl-mobile-menu li { position: relative; border-bottom: 1px solid rgba(0, 0, 0, 0.06); }
.bl-mobile-menu a { display: block; padding: 0.8rem 3rem 0.8rem 0; color: inherit; font-weight: 600; }
.bl-nav-uppercase .bl-mobile-menu > li > a { text-transform: uppercase; font-size: 0.92rem; }
.bl-mobile-menu .sub-menu { display: none; padding-left: 1rem; border-top: 1px solid rgba(0, 0, 0, 0.06); }
.bl-mobile-menu .sub-menu li:last-child { border-bottom: 0; }
.bl-mobile-menu .sub-menu a { font-weight: 400; }
.bl-mobile-menu li.is-expanded > .sub-menu { display: block; }
.bl-submenu-toggle {
	position: absolute; top: 0.35rem; right: 0;
	width: 38px; height: 38px;
	border: 0; background: none; cursor: pointer; color: inherit;
}
.bl-submenu-toggle::before {
	content: ""; position: absolute; top: 50%; left: 50%;
	width: 8px; height: 8px;
	border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: translate(-50%, -75%) rotate(45deg);
	transition: transform 0.2s;
}
.is-expanded > .bl-submenu-toggle::before { transform: translate(-50%, -25%) rotate(-135deg); }

/* Search overlay */
.bl-search-overlay__panel {
	position: absolute; top: 0; left: 0; right: 0;
	padding: 2rem 0;
	background: #fff;
	transform: translateY(-100%);
	transition: transform 0.25s ease;
}
.bl-layer.is-open .bl-search-overlay__panel { transform: none; }
.bl-search-overlay__panel .bl-container { display: flex; align-items: center; gap: 1rem; }
.bl-search-overlay__panel .bl-search-form { flex: 1; }
.bl-search-overlay__panel .bl-search-form__input { font-size: 1.25rem; padding: 0.8em 3em 0.8em 1.1em; }

/* Modal (quick view) */
.bl-modal { display: flex; align-items: center; justify-content: center; padding: 1rem; }
.bl-modal[hidden] { display: none; }
.bl-modal__dialog {
	position: relative;
	width: min(960px, 100%);
	max-height: calc(100vh - 2rem);
	overflow-y: auto;
	background: #fff;
	border-radius: 8px;
	box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
	opacity: 0;
	transform: scale(0.96);
	transition: opacity 0.25s, transform 0.25s;
}
.bl-layer.is-open .bl-modal__dialog { opacity: 1; transform: none; }
.bl-modal__close { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 2; background: #fff; }
.bl-loader {
	width: 38px; height: 38px; margin: 5rem auto;
	border: 3px solid rgba(0, 0, 0, 0.1);
	border-top-color: var(--wp--preset--color--primary);
	border-radius: 50%;
	animation: bl-spin 0.8s linear infinite;
}
@keyframes bl-spin { to { transform: rotate(360deg); } }

/* Blog
   ========================================================================== */
.bl-posts--grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 2rem; }
.bl-posts--list { display: grid; gap: 2rem; }
@media (min-width: 700px) {
	.bl-posts--list .bl-card.has-post-thumbnail { display: grid; grid-template-columns: 40% 1fr; gap: 1.5rem; align-items: start; }
	.bl-posts--list .bl-card__image { margin-bottom: 0; }
}

.bl-card { display: flex; flex-direction: column; }
.bl-card__image { display: block; overflow: hidden; border-radius: 6px; margin-bottom: 1rem; }
.bl-card__image img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform 0.4s ease; }
.bl-card:hover .bl-card__image img { transform: scale(1.05); }
.bl-card__cat {
	display: inline-block; margin-bottom: 0.4rem;
	font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
}
.bl-card__title { font-size: 1.25rem; margin-bottom: 0.3rem; }
.bl-card__title a { color: inherit; }
.bl-card__title a:hover { color: var(--wp--preset--color--primary); }
.bl-card__excerpt { color: #555; }
.bl-card__excerpt p { margin-bottom: 0.6em; }
.bl-card__more { font-weight: 700; font-size: 0.9rem; }

.bl-post-meta { display: flex; flex-wrap: wrap; gap: 0.4rem; font-size: 0.85rem; color: #777; margin-bottom: 0.8rem; }

.bl-single__header { margin-bottom: 1.5rem; }
.bl-post-cats { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 0.5rem; }
.bl-single__image { margin: 0 0 2rem; }
.bl-single__image img { width: 100%; border-radius: 6px; }
.bl-entry > * { max-width: 100%; }
.bl-entry .alignwide, .bl-entry .alignfull { margin-left: 0; margin-right: 0; width: 100%; }
.bl-tags a {
	display: inline-block; margin: 0 0.4rem 0.4rem 0; padding: 0.25em 0.8em;
	font-size: 0.8rem; background: var(--wp--preset--color--light); border-radius: 999px; color: inherit;
}

.post-navigation { margin: 3rem 0; padding: 1.5rem 0; border-top: 1px solid rgba(0, 0, 0, 0.08); border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.post-navigation .nav-next { text-align: right; grid-column: 2; }
.bl-post-nav__label { display: block; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em; color: #888; }
.bl-post-nav__title { font-weight: 700; color: var(--wp--preset--color--dark); }

.pagination, .woocommerce-pagination { margin-top: 3rem; }
.nav-links { display: flex; flex-wrap: wrap; gap: 0.4rem; justify-content: center; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 40px; height: 40px; padding: 0 0.6rem;
	border: 1px solid rgba(0, 0, 0, 0.12); border-radius: 4px; color: inherit; font-weight: 600;
}
.pagination .page-numbers.current, .pagination a.page-numbers:hover {
	background: var(--wp--preset--color--primary); border-color: var(--wp--preset--color--primary); color: #fff;
}

/* Sidebar and widgets
   ========================================================================== */
.bl-sidebar .widget { margin-bottom: 2.25rem; }
.widget-title, .bl-sidebar .wp-block-heading {
	font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em;
	padding-bottom: 0.6rem; margin-bottom: 1rem;
	border-bottom: 2px solid rgba(0, 0, 0, 0.08);
}
.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li { padding: 0.35rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.05); }
.widget li a { color: inherit; }
.widget li a:hover { color: var(--wp--preset--color--primary); }

/* Comments
   ========================================================================== */
.bl-comments { margin-top: 3rem; }
.bl-comment-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.bl-comment-list .children { list-style: none; padding-left: 2rem; }
.bl-comment-list .comment-body { padding: 1.25rem 0; border-bottom: 1px solid rgba(0, 0, 0, 0.08); }
.bl-comment-list .avatar { float: left; margin-right: 1rem; border-radius: 50%; }
.comment-meta { font-size: 0.85rem; margin-bottom: 0.5rem; }
.comment-form p { margin-bottom: 1rem; }

/* 404
   ========================================================================== */
.bl-404 { padding-top: 4rem; padding-bottom: 5rem; text-align: center; max-width: 640px; }
.bl-404__code { font-size: clamp(5rem, 15vw, 9rem); font-weight: 800; line-height: 1; margin: 0; color: var(--wp--preset--color--primary); opacity: 0.2; }
.bl-404 .bl-search-form { margin: 2rem 0; }

/* Footer
   ========================================================================== */
.bl-footer { background: var(--bl-footer-bg); color: var(--bl-footer-text); font-size: 0.95rem; }
.bl-footer a { color: inherit; opacity: 0.85; }
.bl-footer a:hover { opacity: 1; color: inherit; }
.bl-footer .widget-title, .bl-footer .wp-block-heading { color: inherit; border-bottom-color: color-mix(in srgb, currentColor 15%, transparent); }
.bl-footer .widget li { border-bottom-color: color-mix(in srgb, currentColor 10%, transparent); }
.bl-footer__widgets { padding: 3.5rem 0 2rem; }
.bl-footer__grid { display: grid; gap: 2rem; }
@media (min-width: 700px) {
	.bl-footer__grid.bl-cols-2, .bl-footer__grid.bl-cols-3, .bl-footer__grid.bl-cols-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
	.bl-footer__grid.bl-cols-3 { grid-template-columns: repeat(3, 1fr); }
	.bl-footer__grid.bl-cols-4 { grid-template-columns: repeat(4, 1fr); }
}
.bl-footer__bottom { padding: 1.25rem 0; font-size: 0.85rem; border-top: 1px solid color-mix(in srgb, currentColor 12%, transparent); }
.bl-footer__bottom-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; }
.bl-footer__right p { margin: 0; }
.bl-footer__block { padding-top: 0; }
.bl-footer__menu { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
@media (max-width: 700px) { .bl-footer__bottom-inner { justify-content: center; text-align: center; } }

/* Back to top
   ========================================================================== */
.bl-back-to-top {
	position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 90;
	display: flex; align-items: center; justify-content: center;
	width: 46px; height: 46px;
	color: #fff; background: var(--wp--preset--color--dark);
	border: 0; border-radius: 50%; cursor: pointer;
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
	opacity: 0; transform: translateY(10px);
	transition: opacity 0.25s, transform 0.25s, background-color 0.2s;
}
.bl-back-to-top.is-visible { opacity: 1; transform: none; }
.bl-back-to-top:hover { background: var(--wp--preset--color--primary); }

/* Slider (group block with the "Slider" style)
   ========================================================================== */
.bl-slider { position: relative; }
.bl-slider > .is-style-bl-slider {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	scrollbar-width: none;
	margin: 0;
}
.bl-slider > .is-style-bl-slider::-webkit-scrollbar { display: none; }
.bl-slider > .is-style-bl-slider > * {
	flex: 0 0 var(--bl-slide-w, 100%);
	min-width: 0; /* 4.5.2: a long word or category name can't make one slide wider than the others */
	max-width: none !important;
	margin: 0 !important;
	scroll-snap-align: start;
}
.bl-slider__arrow {
	position: absolute; top: 50%; z-index: 3;
	display: flex; align-items: center; justify-content: center;
	width: 48px; height: 48px; margin-top: -24px;
	color: #fff; background: rgba(0, 0, 0, 0.3);
	border: 0; border-radius: 50%; cursor: pointer;
	transition: background-color 0.2s, opacity 0.2s;
}
.bl-slider__arrow:hover { background: rgba(0, 0, 0, 0.55); }
.bl-slider__arrow--prev { left: 1rem; }
.bl-slider__arrow--next { right: 1rem; }
.bl-slider__dots { position: absolute; left: 0; right: 0; bottom: 1.1rem; z-index: 3; display: flex; justify-content: center; gap: 0.5rem; }
.bl-slider__dot {
	width: 11px; height: 11px; padding: 0;
	background: rgba(255, 255, 255, 0.5); border: 0; border-radius: 50%; cursor: pointer;
	transition: background-color 0.2s, transform 0.2s;
}
.bl-slider__dot.is-active { background: #fff; transform: scale(1.2); }
@media (max-width: 849px) { .bl-slider > .is-style-bl-slider > * { flex-basis: var(--bl-slide-w-md, var(--bl-slide-w, 100%)); } }
@media (max-width: 549px) { .bl-slider > .is-style-bl-slider > * { flex-basis: var(--bl-slide-w-sm, var(--bl-slide-w-md, var(--bl-slide-w, 100%))); } }
@media (max-width: 600px) { .bl-slider__arrow { display: none; } }
.bl-slider.bl-no-dots .bl-slider__dots, .bl-slider.bl-no-arrows .bl-slider__arrow { display: none; }
.bl-slider.bl-nav-dark .bl-slider__arrow { background: rgba(255, 255, 255, 0.85); color: #222; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12); }
.bl-slider.bl-nav-dark .bl-slider__dot { background: rgba(0, 0, 0, 0.2); }
.bl-slider.bl-nav-dark .bl-slider__dot.is-active { background: var(--wp--preset--color--dark); }
.bl-slider.bl-nav-dark .bl-slider__dots { position: static; margin-top: 1rem; }

/* Header elements (header laid out like the old theme's header builder)
   ========================================================================== */
.bl-hb__area { display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .875rem; }
.bl-hb__col { display: flex; align-items: center; min-width: 0; }
.bl-hb__col--center { justify-content: center; }
.bl-hb__col--right { justify-content: flex-end; }
/* Rows (top bar, bottom bar): left grows, right keeps its natural width;
   when the centre area is used, left and right share the space equally. */
.bl-hb__row { display: flex; align-items: center; gap: 1rem; }
.bl-hb__row > .bl-hb__col--left { flex: 1 1 auto; min-width: 0; }
.bl-hb__row > .bl-hb__col--center { flex: 0 0 auto; }
.bl-hb__row > .bl-hb__col--right { flex: 0 0 auto; margin-left: auto; }
.bl-hb__row:has(> .bl-hb__col--center .bl-hb__area) > .bl-hb__col--left,
.bl-hb__row:has(> .bl-hb__col--center .bl-hb__area) > .bl-hb__col--right { flex: 1 1 0; }

.bl-hb__main { display: flex; align-items: center; gap: 1.5rem; }
/* Main row: like the old theme, the right-hand items keep their width and the
   left-hand items (e.g. the search box) give way when space is tight. */
.bl-hb--left .bl-hb__main > .bl-hb__col--left { flex: 1 1 0; min-width: 0; }
.bl-hb--left .bl-hb__main > .bl-hb__col--right { flex: 0 0 auto; margin-left: auto; }
/* As in the old theme: the right side stays on one line; when space runs short the left side (text, search)
   stacks onto two lines instead of anything sliding under anything else. */
.bl-hb--left .bl-hb__main > .bl-hb__col--right .bl-hb__area { flex-wrap: nowrap; }
.bl-hb--left .bl-hb__main > .bl-hb__col--left .bl-hb__area { flex-wrap: wrap; }
.bl-hb--left .bl-hb__main > .bl-hb__col--left .bl-hb__search { flex: 0 1 312px; min-width: 180px; }
.bl-hb--left .bl-hb__main > .bl-hb__col--left:has(.bl-hb__area) { min-width: 200px; }
@media (max-width: 1199px) { /* narrower screens: the right side may wrap too (its last items go onto a second line) */
	.bl-hb--left .bl-hb__main > .bl-hb__col--right { flex: 0 1 auto; min-width: 0; }
	.bl-hb--left .bl-hb__main > .bl-hb__col--right .bl-hb__area { flex-wrap: wrap; }
}
.bl-hb--center .bl-hb__main { display: grid; grid-template-columns: 1fr auto 1fr; }
.bl-hb--center .bl-header__brand { justify-self: center; }
.bl-hb__main > .bl-hb__col--right .bl-hb__area { justify-content: flex-end; }
.bl-hb__mobile-icons { display: none; }

.bl-hb__nav .bl-menu > li > a { padding: 0 .8em; }
.bl-header__main:not([class*="bl-navstyle-"]) .bl-hb__col--left .bl-hb__nav:first-child .bl-menu > li:first-child > a,
.bl-header__bottom:not([class*="bl-navstyle-"]) .bl-hb__col--left .bl-hb__nav:first-child .bl-menu > li:first-child > a { padding-left: 0; }
.bl-header__bottom .bl-hb__row { min-height: 52px; }
.bl-hb__divider { display: block; width: 1px; height: 1.6em; background: currentColor; opacity: .18; }
.bl-hb__html { font-size: .9rem; line-height: 1.4; }
.bl-hb__html p { margin: 0; }
.bl-hb__button .blpb-button { margin: 0; }
.bl-hb__search { min-width: 180px; flex: 0 1 280px; }
.bl-hb__social .blpb-social { margin: 0; }
.bl-hb__social .blpb-social__link { min-width: 1.9em; height: 1.9em; }
.bl-hb__contact { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; margin: 0; padding: 0; list-style: none; font-size: .85rem; }
.bl-hb__contact li, .bl-hb__contact a { display: inline-flex; align-items: center; gap: .4em; color: inherit; }
.bl-hb__contact .bl-icon { opacity: .75; }
.bl-hb__newsletter-link { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .85rem; color: inherit; }
.bl-topbar .bl-hb__area { gap: .2rem 1rem; }
.bl-topbar .bl-hb__html, .bl-topbar .bl-hb__contact { font-size: inherit; }
.bl-topbar .blpb-social__link { min-width: 1.7em; height: 1.7em; border-width: 1px; }

/* Mobile menu extras */
.bl-drawer__body .bl-hb__area { display: grid; gap: 1rem; margin-top: 1.25rem; }
.bl-hb__drawer-link { display: inline-flex; align-items: center; gap: .5em; font-weight: 600; color: inherit; }
.bl-hb__contact--drawer { display: grid; gap: .6rem; font-size: .95rem; }
.bl-drawer__body .blpb-button { margin: 0; }

.bl-hb__popup { max-width: 560px; }
.bl-hb__popup h3 { margin-bottom: .3em; }

@media (max-width: 960px) {
	.bl-hb__desktop { display: none !important; }
	.bl-hb__mobile-icons { display: flex; justify-self: end; }
	.bl-hb .bl-hb__main { display: grid; grid-template-columns: 1fr auto 1fr; gap: .5rem; }
	.bl-hb .bl-header__brand { justify-self: center; grid-column: 2; }
	.bl-hb .bl-menu-toggle { grid-column: 1; grid-row: 1; }
	.bl-hb__mobile-icons { grid-column: 3; grid-row: 1; }
	/* Like the old theme, the top bar is a desktop feature; its items appear in the mobile menu instead. */
	.bl-hb--topbar { display: none; }
}
@media (min-width: 961px) {
	.bl-hb .bl-menu-toggle { display: none; }
}

/* Navigation styles and sizes (Theme Options > Header) */
/* 4.3.0: the Classic sizes match the old theme: menus are 0.8 x the text size unless a menu size is chosen */
.bl-type-classic .bl-menu > li > a { font-size: .8em; }
.bl-navsize-xsmall .bl-menu > li > a { font-size: .65em; }
.bl-navsize-small .bl-menu > li > a { font-size: .7em; }
.bl-navsize-medium .bl-menu > li > a { font-size: .9em; }
.bl-navsize-large .bl-menu > li > a { font-size: 1em; }
.bl-navsize-xlarge .bl-menu > li > a { font-size: 1.1em; }
.bl-nav-caps .bl-menu > li > a { text-transform: uppercase; }
.bl-nav-nocaps .bl-menu > li > a { text-transform: none; }

.bl-navstyle-outline .bl-menu > li > a,
.bl-navstyle-pills .bl-menu > li > a,
.bl-navstyle-box .bl-menu > li > a { min-height: 0; margin: 0; padding: 0 .75em; line-height: 2.4em; border: 2px solid transparent; border-radius: 32px; transition: border-color .2s, background-color .2s, color .2s; }
.bl-navstyle-box .bl-menu > li > a { border-radius: 0; }
.bl-navstyle-outline .bl-menu > li.current-menu-item > a, .bl-navstyle-outline .bl-menu > li.current-menu-ancestor > a { border-color: currentColor; color: var(--wp--preset--color--primary); }
.bl-navstyle-outline .bl-menu > li:hover > a { color: var(--wp--preset--color--dark); }
.bl-navstyle-pills .bl-menu > li.current-menu-item > a, .bl-navstyle-pills .bl-menu > li.current-menu-ancestor > a, .bl-navstyle-pills .bl-menu > li:hover > a,
.bl-navstyle-box .bl-menu > li.current-menu-item > a, .bl-navstyle-box .bl-menu > li.current-menu-ancestor > a, .bl-navstyle-box .bl-menu > li:hover > a { color: #fff; background: var(--wp--preset--color--primary); }
.bl-navstyle-line .bl-menu > li > a, .bl-navstyle-line-bottom .bl-menu > li > a, .bl-navstyle-line-grow .bl-menu > li > a { position: relative; }
.bl-navstyle-line .bl-menu > li > a::before, .bl-navstyle-line-bottom .bl-menu > li > a::before, .bl-navstyle-line-grow .bl-menu > li > a::before {
	content: ""; position: absolute; left: .9em; right: .9em; height: 3px; background: var(--wp--preset--color--primary); opacity: 0; transition: opacity .2s, transform .2s;
}
.bl-navstyle-line .bl-menu > li > a::before { top: 0; }
.bl-navstyle-line-bottom .bl-menu > li > a::before, .bl-navstyle-line-grow .bl-menu > li > a::before { bottom: 0; }
.bl-navstyle-line-grow .bl-menu > li > a::before { transform: scaleX(0); opacity: 1; }
.bl-navstyle-line .bl-menu > li.current-menu-item > a::before, .bl-navstyle-line .bl-menu > li:hover > a::before,
.bl-navstyle-line-bottom .bl-menu > li.current-menu-item > a::before, .bl-navstyle-line-bottom .bl-menu > li:hover > a::before { opacity: 1; }
.bl-navstyle-line-grow .bl-menu > li.current-menu-item > a::before, .bl-navstyle-line-grow .bl-menu > li:hover > a::before { transform: none; }
.bl-navstyle-divided .bl-menu > li + li > a { border-left: 1px solid rgba(0, 0, 0, .1); }
.bl-navstyle-outline .bl-menu > li.menu-item-has-children > a::after,
.bl-navstyle-pills .bl-menu > li.menu-item-has-children > a::after { margin-left: .2em; }

/* Header bottom bar colour */
.bl-header__bottom { background: var(--bl-bottom-bg, transparent); color: var(--bl-bottom-text, inherit); }
.bl-header__bottom a { color: inherit; }
.bl-hb__html figure { margin: 0; }
.bl-hb__html img { display: inline-block; height: auto; }

/* Basket label next to the cart icon */
.bl-cart-link--labelled { width: auto; padding: 0 .5rem; gap: .5rem; border-radius: 99px; font-size: .78rem; font-weight: 600; white-space: nowrap; }
.bl-cart-link--labelled .bl-cart-count { right: -2px; }
/* 4.5.1: basket text under the icon (Theme Options > Header > Basket text position) */
.bl-cart-link--labelled.bl-cart-link--below { flex-direction: column-reverse; gap: 1px; height: auto; min-height: 42px; padding: 3px 6px; border-radius: 6px; font-size: .7rem; line-height: 1.15; }
.bl-cart-link--below .bl-cart-count { top: -2px; right: auto; left: calc(50% + 4px); }
@media (max-width: 960px) { .bl-cart-label { display: none; } .bl-cart-link--labelled, .bl-cart-link--labelled.bl-cart-link--below { width: 42px; height: 42px; min-height: 0; padding: 0; } .bl-cart-link--below .bl-cart-count { top: 3px; left: auto; right: -2px; } }
/* 4.5.1: Classic menus spaced as on the old theme - no padding in the links, 14px between items (plain menus; menu styles keep their own) */
.bl-type-classic :is(.bl-header__main, .bl-header__bottom):not([class*="bl-navstyle-"]) .bl-hb__nav .bl-menu > li > a { padding-left: 0; padding-right: 0; }
.bl-type-classic :is(.bl-header__main, .bl-header__bottom):not([class*="bl-navstyle-"]) .bl-hb__nav .bl-menu > li { margin: 0 7px; }
.bl-type-classic :is(.bl-header__main, .bl-header__bottom):not([class*="bl-navstyle-"]) .bl-hb__nav .bl-menu > li:first-child { margin-left: 0; }
.bl-type-classic :is(.bl-header__main, .bl-header__bottom):not([class*="bl-navstyle-"]) .bl-hb__nav .bl-menu > li:last-child { margin-right: 0; }

/* Footer bottom bar centred */
.bl-footer-bottom-center .bl-footer__bottom-inner { flex-direction: column; justify-content: center; text-align: center; gap: .5rem; }
.bl-footer-bottom-center .bl-footer__menu { justify-content: center; }
.bl-copyright:empty { display: none; }

/* Letter case options (from the old theme: buttons, section titles, widget titles) */
.blpb-button { text-transform: var(--bl-btn-transform, uppercase); }
.bl-type-classic :is(.button, .wp-element-button, .wp-block-button__link) { text-transform: var(--bl-btn-transform, uppercase); }
.blpb-title__main { text-transform: var(--bl-title-transform, uppercase); }
.widget-title, .bl-sidebar .wp-block-heading { text-transform: var(--bl-widget-transform, uppercase); }

/* Dropdown menu styles (Theme Options > Header > Dropdown style) */
.bl-dd .bl-menu .sub-menu {
	min-width: 260px;
	padding: 20px 0;
	font-size: var(--bl-dd-size, 100%);
	color: var(--bl-dd-text, var(--wp--preset--color--dark));
	background: var(--bl-dd-bg, #fff);
	border-radius: var(--bl-dd-radius, 0);
	box-shadow: none;
	transform: none;
}
.bl-dd .bl-menu .sub-menu .sub-menu { top: -20px; }
.bl-dd-shadow .bl-menu .sub-menu { box-shadow: 1px 1px 15px rgba(0, 0, 0, .15); }
.bl-dd-border .bl-menu .sub-menu { border: 2px solid var(--bl-dd-border, #ddd); }
.bl-dd .bl-menu .sub-menu a { padding: 10px 20px; font-size: 1em; line-height: 1.3; color: inherit; opacity: .85; text-transform: none; }
.bl-dd-caps .bl-menu .sub-menu a { font-size: .85em; text-transform: uppercase; }
.bl-dd .bl-menu .sub-menu a:hover { background: transparent; color: inherit; opacity: 1; }
.bl-dd-default .bl-menu .sub-menu a { margin: 0 10px; padding-left: 0; padding-right: 0; border-bottom: 1px solid #ececec; }
.bl-dd-default .bl-menu .sub-menu li:last-child > a { border-bottom: 0; }
.bl-dd-bold .bl-menu .sub-menu a { margin: 0 10px; padding-left: 10px; padding-right: 5px; border-radius: 10px; }
.bl-dd-bold .bl-menu .sub-menu a:hover { color: #fff; background: var(--wp--preset--color--primary); opacity: 1; }
.bl-dd-arrow .bl-menu > li.menu-item-has-children::after {
	content: "";
	position: absolute;
	left: 50%;
	bottom: -2px;
	z-index: 21;
	width: 0;
	height: 0;
	margin-left: -10px;
	border: 10px solid transparent;
	border-bottom-color: var(--bl-dd-bg, #fff);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.bl-dd-arrow.bl-dd-border .bl-menu > li.menu-item-has-children::before {
	content: "";
	position: absolute;
	left: 50%;
	bottom: 0;
	z-index: 20;
	width: 0;
	height: 0;
	margin-left: -12px;
	border: 12px solid transparent;
	border-bottom-color: var(--bl-dd-border, #ddd);
	opacity: 0;
	pointer-events: none;
	transition: opacity .2s;
}
.bl-dd-arrow .bl-menu > li.menu-item-has-children:is(:hover, :focus-within)::after,
.bl-dd-arrow.bl-dd-border .bl-menu > li.menu-item-has-children:is(:hover, :focus-within)::before { opacity: 1; }
.bl-dd-arrow .bl-menu > li > .sub-menu { margin-top: 0; }
.bl-hb__main .bl-hb__col--left .bl-hb__area > :not(.bl-hb__search) { flex-shrink: 0; }
.bl-hb__main .bl-hb__html { white-space: nowrap; }

/* Custom HTML areas (after header / before & after footer) */
.bl-after-header > *, .bl-footer__html > * { margin-block-start: 0; }
.bl-after-header > :last-child, .bl-footer__html > :last-child { margin-bottom: 0; }


/* Widget titles and footer menu as on the old theme */
.bl-type-classic .widget-title,
.bl-type-classic .bl-sidebar .wp-block-heading { padding-bottom: 0; margin-bottom: 0; border-bottom: 0; font-size: 1em; font-weight: 600; letter-spacing: .05em; }
.bl-type-classic .widget-title::after,
.bl-type-classic .bl-sidebar .wp-block-heading::after { content: ""; display: block; width: 30px; height: 3px; margin: .66em 0 1em; background: var(--bl-divider, rgba(0, 0, 0, .1)); }
/* The old theme sidebar widget titles are plain text colour, not heading colour */
.bl-type-classic .bl-sidebar .widget-title { color: inherit; line-height: 1.05; }

/* The old theme-style widget lists: link-coloured items, dividers, collapsible sub-lists */
.bl-type-classic .widget > ul > li { padding: 0; border-bottom: 0; display: flex; flex-flow: row wrap; align-items: center; }
.bl-type-classic .widget > ul > li + li { border-top: 1px solid #ececec; }
.bl-type-classic .widget > ul > li > a { flex: 1; display: inline-block; padding: 6px 0; color: var(--bl-link, var(--wp--preset--color--primary)); }
.bl-type-classic .widget > ul > li li { padding: 0; border: 0; }
.bl-type-classic .widget > ul > li li > a { display: inline-block; font-size: .9em; padding: 3px 0; color: var(--bl-link, var(--wp--preset--color--primary)); }
.bl-type-classic .widget > ul > li > ul { display: none; width: 100%; margin: 0 0 10px 3px; padding-left: 15px; border-left: 1px solid #ddd; }
.bl-type-classic .widget > ul > li.bl-open > ul,
.bl-type-classic:not(.bl-widgets-js) .widget .current-cat-parent > ul,
.bl-type-classic:not(.bl-widgets-js) .widget .current-cat > ul { display: block; }
.bl-type-classic .widget .current-cat > a { color: #000; font-weight: bolder; }
.bl-type-classic .widget_product_categories > ul > li > .count { font-size: .85em; opacity: .4; margin-right: 6px; }
.bl-type-classic .widget_product_categories > ul > li ul .count { font-size: .85em; opacity: .4; margin-left: 4px; } /* 4.7.0: shown, they follow the filters */
.bl-widget-toggle { background: none; border: 0; box-shadow: none; color: currentColor; width: 45px; padding: 0; margin: 0 5px 0 0; line-height: 1; opacity: .6; cursor: pointer; display: inline-flex; justify-content: center; }
.bl-widget-toggle:hover { opacity: 1; }
.bl-widget-toggle svg { width: 1.1em; height: 1.1em; transition: transform .3s; }
.bl-open > .bl-widget-toggle svg { transform: rotate(180deg); }
.bl-type-classic .bl-footer .widget-title::after { background: rgba(255, 255, 255, .3); }
.bl-type-classic .bl-footer__menu { text-transform: uppercase; font-size: .85em; gap: .4rem 1.1rem; }
.bl-type-classic .bl-footer { font-size: 1em; }
.bl-type-classic .bl-footer__bottom { padding: 10px 0 15px; font-size: .9em; color: color-mix(in srgb, var(--bl-footer-text) 55%, transparent); border-top: 0; }
.bl-type-classic .bl-footer__bottom a { opacity: 1; }

/* Coloured text set in the old editor (data-text-color) */
[data-text-color="primary"] { color: var(--wp--preset--color--primary) !important; }
[data-text-color="secondary"] { color: var(--wp--preset--color--secondary) !important; }
[data-text-color="success"] { color: var(--wp--preset--color--accent) !important; }
[data-text-color="alert"] { color: var(--bl-alert, #b20000) !important; }
