/*
 * Custom header — mobile-first.
 * KBA-3 header/banner: sticky header (logo, cart, hamburger), hamburger panel
 * (nav + filters + credentials), sticky fading Artist Statement banner below it.
 */

:root {
	--kba-header-height: 60px;
}

.kba-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: #ffffff;
	border-bottom: 1px solid #eee;
}

.kba-header-bar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var( --kba-header-height );
	padding: 0;
}

.kba-logo {
	display: flex;
	align-items: center;
	font-weight: bold;
	font-size: 1.1rem;
	text-decoration: none;
	color: var( --kba-text-color, #000 );
}

.kba-logo img {
	max-height: 40px;
	width: auto;
	display: block;
}

.kba-desktop-nav {
	display: none;
}

.kba-header-icons {
	display: flex;
	align-items: center;
	gap: 12px;
}

.kba-icon-btn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	background: none;
	border: none;
	padding: 0;
	color: var( --kba-text-color, #000 );
	cursor: pointer;
}

.kba-cart-count {
	position: absolute;
	top: 2px;
	right: 2px;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border-radius: 8px;
	background: var( --kba-heading-color, #1abc9c );
	color: #fff;
	font-size: 0.65rem;
	line-height: 16px;
	text-align: center;
}

.kba-cart-count:empty,
.kba-cart-count:-moz-only-whitespace {
	display: none;
}

/* Hamburger panel — full-width dropdown under the header */
.kba-menu-panel {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	max-height: calc( 100vh - var( --kba-header-height ) );
	overflow-y: auto;
	background: #ffffff;
	border-bottom: 1px solid #eee;
	padding: 24px 16px;
}

.kba-menu-panel[hidden] {
	display: none;
}

.kba-menu-nav {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-bottom: 24px;
}

.kba-menu-nav a {
	font-size: 1.1rem;
	font-weight: bold;
	text-decoration: none;
}

.kba-menu-filters {
	display: flex;
	flex-direction: column;
	gap: 12px;
	margin-bottom: 24px;
	padding-bottom: 24px;
	border-bottom: 1px solid #eee;
  justify-content: end;
}

.kba-filter-search-row {
	display: flex;
	align-items: center;
	gap: 8px;
}

.kba-filter-toggle {
	display: none;
}

.kba-filter-more {
	display: contents;
}

.kba-menu-filters input,
.kba-menu-filters select {
	box-sizing: border-box;
	width: 100%;
	height: 42px;
	padding: 10px 12px;
	font-family: inherit;
	font-size: 0.95rem;
	line-height: 1.2;
	border: 1px solid #ccc;
	border-radius: 0;
	vertical-align: middle;
}

.kba-menu-filters select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	padding-right: 32px;
	background-color: #fff;
	background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23333' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E" );
	background-repeat: no-repeat;
	background-position: right 8px center;
	background-size: 16px;
}

.kba-menu-filters .kba-filter-submit {
	width: auto;
	align-self: flex-start;
	background: var( --kba-heading-color, #1abc9c );
	color: #fff;
	border: none;
	padding: 10px 20px;
	font-weight: bold;
	cursor: pointer;
}
.kba-menu-filters-heading {
	margin: 0 0 12px;
	font-size: 1.1rem;
	font-weight: bold;
}

.kba-menu-footer {
	display: flex;
	flex-direction: column;
	gap: 16px;
	margin-top: 24px;
}

.kba-menu-credentials {
	display: flex;
	flex-direction: row;
	align-items: center;
	gap: 20px;
  justify-content: center;
}

.kba-menu-credential {
	display: inline-flex;
	color: var( --kba-text-color, #000 );
}

.kba-menu-credential svg {
	display: block;
}

/* KBA-20: shipping/copyright/privacy links (left) + brand graphic (right), same row. */
.kba-menu-policy-row {
	position: relative;
	padding-right: 120px;
}

.kba-menu-policy-links {
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.kba-menu-policy-links a {
	font-size: 0.85rem;
	color: var( --kba-text-color, #000 );
	text-decoration: none;
}

.kba-menu-brand-graphic {
	position: absolute;
	right: 0;
	bottom: 0;
	width: 220px;
	max-width: none;
	height: auto;
}

.kba-menu-backdrop {
	position: fixed;
	inset: 0;
	z-index: 90;
	background: rgba( 0, 0, 0, 0.4 );
}

.kba-menu-backdrop[hidden] {
	display: none;
}

body.kba-menu-open {
	overflow: hidden;
}

/* Sticky banner — Artist Statement teaser, stacks directly below the header */
.kba-banner {
	display: flex;
	gap: 16px;
	background: #ffffff;
	border-bottom: 1px solid #eee;
	text-decoration: none;
	color: inherit;
}
@media ( min-width: 769px ) {
  .kba-banner {
    padding: 16px;
  }
}
.kba-banner-image {
	flex: 0 0 96px;
}

.kba-banner-image img {
	display: block;
	width: 96px;
	height: 96px;
	object-fit: cover;
}

.kba-banner-text {
	flex: 1;
}

.kba-banner-heading {
	margin: 0 0 8px;
	font-size: 1.6rem;
	color: var( --kba-heading-color, #1abc9c );
}

.kba-banner-excerpt {
	position: relative;
	max-height: calc( 1.4em * 4 );
	overflow: hidden;
}

.kba-banner-excerpt p {
	margin: 0;
	line-height: 1.4em;
}

.kba-banner-excerpt::after {
	content: '';
	position: absolute;
	left: 0;
	right: 0;
	bottom: 0;
	height: 1.4em;
	background: linear-gradient( to bottom, rgba( 255, 255, 255, 0 ), #ffffff );
}

/* Filter bar above the shop loop — desktop only; mobile keeps filters in the hamburger */
.kba-shop-filters-bar {
	display: none;
}

@media ( min-width: 769px ) {
	.kba-header-bar {
		padding: 0 32px;
	}

	.kba-desktop-nav {
		display: flex;
		align-items: center;
		gap: 28px;
	}

	.kba-desktop-nav a {
		font-weight: bold;
		text-decoration: none;
		color: var( --kba-text-color, #000 );
	}

	.kba-hamburger {
		display: none;
	}

	.kba-menu-panel {
		left: auto;
		right: 0;
		width: 360px;
		border-left: 1px solid #eee;
	}

	.kba-menu-nav {
		display: none;
	}

	.kba-banner {
		padding: 24px 32px;
	}

	.kba-banner-image,
	.kba-banner-image img {
		flex-basis: 160px;
		width: 160px;
		height: 160px;
	}

	.kba-shop-filters-bar {
		display: block;
		max-width: 1200px;
		margin: 0 auto 24px;
		padding: 0 32px;
	}

	.kba-shop-filters-bar .kba-menu-filters {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		margin-bottom: 0;
		padding-bottom: 0;
		border-bottom: none;
	}

	.kba-shop-filters-bar .kba-menu-filters input,
	.kba-shop-filters-bar .kba-menu-filters select {
		width: auto;
	}

	.kba-shop-filters-bar .kba-filter-toggle {
		display: none;
	}

	.kba-shop-filters-bar .kba-filter-more {
		display: flex;
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px;
	}
}
