/* 3R Gallery global header. Scoped to the shortcode marker. */
.three-r-gallery-header,
.three-r-gallery-header * {
	box-sizing: border-box;
}

.three-r-gallery-header {
	position: relative;
	left: 50%;
	width: 100vw;
	min-height: 85px;
	margin-left: -50vw;
	padding: 0 64px;
	border-bottom: 1px solid var(--trr-border-strong, #000);
	background: var(--trr-surface-primary, #f9f9f9);
	color: var(--trr-foreground-primary, #000);
	font-family: var(--trr-font-body, 'Libre Franklin', 'Helvetica Neue', sans-serif);
}

.three-r-gallery-header__inner {
	display: grid;
	grid-template-columns: minmax(142px, 1fr) auto minmax(142px, 1fr);
	gap: 28px;
	align-items: center;
	min-height: 84px;
}

.three-r-gallery-header a {
	color: inherit;
	text-decoration: none;
}

.three-r-gallery-header__logo {
	display: inline-block;
	width: max-content;
	font-family: var(--trr-font-heading, 'Anton', Impact, sans-serif) !important;
	font-size: 40px !important;
	font-weight: 400 !important;
	letter-spacing: -0.045em !important;
	line-height: 0.95 !important;
	text-transform: uppercase;
	white-space: nowrap;
}

.three-r-gallery-header__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 25px;
	white-space: nowrap;
}

.three-r-gallery-header__nav a {
	font-size: 11px;
	font-weight: 500;
	letter-spacing: 0.025em;
	line-height: 1;
}

.three-r-gallery-header__nav a:hover,
.three-r-gallery-header__nav a[aria-current='page'] {
	text-decoration: underline;
	text-underline-offset: 4px;
}

.three-r-gallery-header__utilities {
	display: flex;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
}

.three-r-gallery-header__icon,
.three-r-gallery-header__toggle {
	position: relative;
	display: inline-flex;
	width: 44px;
	height: 44px;
	min-width: 44px;
	min-height: 44px;
	align-items: center;
	justify-content: center;
}

.three-r-gallery-header__icon .material-symbols-outlined,
.three-r-gallery-header__toggle .material-symbols-outlined {
	display: block;
	font-size: 20px;
	font-variation-settings: 'FILL' 0, 'wght' 400, 'GRAD' 0, 'opsz' 24;
	line-height: 1;
}

.three-r-gallery-header a:focus-visible,
.three-r-gallery-header button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 3px;
}

.trr-header__cart-count {
	position: absolute;
	top: 3px;
	right: 1px;
	display: inline-flex;
	min-width: 18px;
	height: 18px;
	align-items: center;
	justify-content: center;
	padding: 0 4px;
	border-radius: 9px;
	background: var(--trr-surface-inverse, #000);
	color: var(--trr-foreground-inverse, #fff);
	font-family: var(--trr-font-caption, 'Libre Franklin', sans-serif);
	font-size: 10px;
	font-weight: 700;
	line-height: 1;
}

.trr-header__cart-count.is-empty {
	display: none;
}

.trr-register-anchor {
	display: block;
	position: relative;
	width: 1px;
	height: 1px;
	margin: -1px;
	overflow: hidden;
	clip-path: inset(50%);
	scroll-margin-top: 96px;
}

.trr-register-anchor:focus {
	outline: none;
}

.elementor-location-header {
	border-bottom: 0 !important;
}

body.page-id-213 .three-r-gallery-header__inner,
body.parent-pageid-213 .three-r-gallery-header__inner,
body.woocommerce-shop .three-r-gallery-header__inner,
body.single-product .three-r-gallery-header__inner,
body.tax-product_cat .three-r-gallery-header__inner,
body.tax-product_tag .three-r-gallery-header__inner {
	grid-template-columns: minmax(230px, 1fr) auto minmax(142px, 1fr);
}

body.page-id-213 .three-r-gallery-header__logo,
body.parent-pageid-213 .three-r-gallery-header__logo,
body.woocommerce-shop .three-r-gallery-header__logo,
body.single-product .three-r-gallery-header__logo,
body.tax-product_cat .three-r-gallery-header__logo,
body.tax-product_tag .three-r-gallery-header__logo {
	display: inline-flex !important;
	align-items: center;
	gap: 10px;
	white-space: nowrap;
}

body.page-id-213 .three-r-gallery-header__logo::after,
body.parent-pageid-213 .three-r-gallery-header__logo::after,
body.woocommerce-shop .three-r-gallery-header__logo::after,
body.single-product .three-r-gallery-header__logo::after,
body.tax-product_cat .three-r-gallery-header__logo::after,
body.tax-product_tag .three-r-gallery-header__logo::after {
	content: 'SHOP';
	display: inline-flex;
	width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	background: var(--trr-surface-inverse, #000);
	color: var(--trr-foreground-inverse, #fff);
	font-family: var(--trr-font-caption, 'Inter', sans-serif);
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.13em;
	line-height: 1;
	text-indent: 0.13em;
	transform: translateY(1px);
}

/* The unenhanced navigation remains visible if the script cannot load. */
.three-r-gallery-header__toggle {
	display: none;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 0;
	background: transparent;
	color: inherit;
	cursor: pointer;
}

.three-r-gallery-header [hidden] {
	display: none !important;
}

/* Preserve desktop navigation without crowding the first desktop widths. */
@media (min-width: 1025px) and (max-width: 1200px) {
	.three-r-gallery-header {
		padding: 0 32px;
	}

	.three-r-gallery-header__inner,
	body:is(.page-id-213, .parent-pageid-213, .woocommerce-shop, .single-product, .tax-product_cat, .tax-product_tag) .three-r-gallery-header__inner {
		grid-template-columns: auto minmax(0, 1fr) auto;
		gap: 16px;
	}

	.three-r-gallery-header__nav {
		gap: 15px;
	}
}

@media (max-width: 1024px) {
	.three-r-gallery-header {
		padding: 0 32px;
	}

	.three-r-gallery-header__inner,
	body:is(.page-id-213, .parent-pageid-213, .woocommerce-shop, .single-product, .tax-product_cat, .tax-product_tag) .three-r-gallery-header__inner {
		grid-template-columns: minmax(0, 1fr) auto;
		column-gap: 16px;
		row-gap: 0;
	}

	.three-r-gallery-header__utilities {
		grid-column: 2;
		grid-row: 1;
	}

	.three-r-gallery-header[data-trr-nav-ready] .three-r-gallery-header__toggle {
		display: inline-flex;
	}

	.three-r-gallery-header__toggle:hover,
	.three-r-gallery-header__toggle[aria-expanded='true'] {
		border-color: currentColor;
		background: var(--trr-surface-inverse, #000);
		color: var(--trr-foreground-inverse, #fff);
	}

	.three-r-gallery-header__nav {
		grid-column: 1 / -1;
		grid-row: 2;
		align-items: stretch;
		flex-direction: column;
		gap: 0;
		padding: 12px 0 20px;
		border-top: 1px solid var(--trr-border-strong, #000);
		white-space: normal;
	}

	.three-r-gallery-header__nav a {
		display: flex;
		min-height: 48px;
		align-items: center;
		padding: 12px 4px;
		border-bottom: 1px solid var(--trr-border-subtle, #cfc4c5);
		font-size: 16px;
		line-height: 1.4;
	}
}

@media (max-width: 767px) {
	.three-r-gallery-header {
		min-height: 72px;
		padding: 0 16px;
	}

	.three-r-gallery-header__inner {
		min-height: 71px;
	}

	.three-r-gallery-header__logo {
		font-size: 30px !important;
	}

	body:is(.page-id-213, .parent-pageid-213, .woocommerce-shop, .single-product, .tax-product_cat, .tax-product_tag) .three-r-gallery-header__logo::after {
		width: 34px;
		height: 34px;
		font-size: 8px;
	}
}

@media (max-width: 480px) {
	.three-r-gallery-header__inner,
	body:is(.page-id-213, .parent-pageid-213, .woocommerce-shop, .single-product, .tax-product_cat, .tax-product_tag) .three-r-gallery-header__inner {
		column-gap: 8px;
	}

	.three-r-gallery-header__logo {
		font-size: 26px !important;
	}

	.three-r-gallery-header__utilities {
		gap: 0;
	}

	/* Stack the existing SHOP mark, without adding another toolbar row. */
	body:is(.page-id-213, .parent-pageid-213, .woocommerce-shop, .single-product, .tax-product_cat, .tax-product_tag) .three-r-gallery-header__logo {
		flex-direction: column;
		align-items: flex-start;
		gap: 4px;
	}

	body:is(.page-id-213, .parent-pageid-213, .woocommerce-shop, .single-product, .tax-product_cat, .tax-product_tag) .three-r-gallery-header__logo::after {
		width: 40px;
		height: 16px;
		transform: none;
	}
}
