/*
 * Header: one 3-column bar. Desktop: menu | logo | search, account, mini cart.
 * Below 1000px: menu toggle | logo | search icon, mini cart.
 */

/* ---------- Sticky, auto-hide, shrink (assets/js/header.js) ---------- */
/* The header element itself stays transparent; only the bar has a background
   (Blocksy customizer CSS: .ct-header { background-color: transparent }). */
.wp-site-blocks > header.wp-block-template-part { position: relative; z-index: 50; }
.wp-site-blocks > header.is-scrolled {
	position: sticky;
	top: var(--wp-admin--admin-bar--height, 0px);
	height: var(--reflect-header-height);
	pointer-events: none;
}
.wp-site-blocks > header.is-scrolled.is-hidden { top: calc(var(--reflect-header-height) * -1); }
.wp-site-blocks > header.is-anim { transition: top .2s ease; }
.wp-site-blocks > header.is-scrolled > .reflect-header { pointer-events: auto; }

.reflect-header {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	min-height: var(--wp--custom--header--row-min-height);
	padding-inline: var(--wp--custom--edge--desktop);
	background: var(--wp--preset--color--palette-color-9);
}
.reflect-header > * { margin-block: 0; }
@media (width <= 999.98px) { .reflect-header { padding-inline: var(--wp--custom--edge--tablet); } }
@media (width <= 689.98px) {
	.reflect-header { padding-inline: var(--wp--custom--edge--mobile); box-shadow: var(--wp--preset--shadow--header-mobile); }
}
.reflect-header__start, .reflect-header__end { min-width: 0; }
/* Sticky row shrinks to 70% (Blocksy stickyHeaderRowShrink), never below the logo. */
.is-scrolled .reflect-header { min-height: calc(var(--wp--custom--header--row-min-height) * .7); }
.reflect-header__end { justify-content: flex-end; gap: 20px; }
@media (width <= 689.98px) { .reflect-header__end { gap: 5px; } .reflect-header__start { padding-left: 5px; } }

/* Logo: the height drives the size; it shrinks while sticky. */
.reflect-header .reflect-logo { margin-block: var(--wp--custom--header--logo-margin); line-height: 0; }
.reflect-logo img { height: var(--wp--custom--header--logo-height--desktop); width: auto !important; max-width: none; transition: height .2s ease; }
.is-scrolled .reflect-logo img { height: var(--wp--custom--header--logo-height-sticky--desktop); }
@media (width <= 999.98px) {
	.reflect-logo img { height: var(--wp--custom--header--logo-height--tablet); }
	.is-scrolled .reflect-logo img { height: var(--wp--custom--header--logo-height-sticky--tablet); }
}
@media (width <= 689.98px) {
	.reflect-logo img { height: var(--wp--custom--header--logo-height--mobile); }
	.is-scrolled .reflect-logo img { height: var(--wp--custom--header--logo-height-sticky--mobile); }
}

/* ---------- Desktop navigation: click to open, cascading flyouts ---------- */
.reflect-nav-desktop .wp-block-navigation-item__content { padding: 0 12.5px; text-decoration: none; }
.reflect-nav-desktop > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation-item__content:hover,
.reflect-nav-desktop > .wp-block-navigation__container > .wp-block-navigation-item > [aria-expanded="true"],
.reflect-nav-desktop > .wp-block-navigation__container > :is(.current-menu-item, .current-menu-parent, .current-menu-ancestor) > .wp-block-navigation-item__content { color: var(--wp--preset--color--black); }
/* Top level: label, then the 8px arrow inside the clickable area (as in Blocksy). */
.reflect-nav-desktop > .wp-block-navigation__container > .has-child { position: relative; }
.reflect-nav-desktop > .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content { padding-left: 12.5px; padding-right: 31px; }
.reflect-nav-desktop > .wp-block-navigation__container > .wp-block-navigation-item:first-child > .wp-block-navigation-item__content { padding-left: 0; }
.reflect-nav-desktop > .wp-block-navigation__container > .has-child > .wp-block-navigation__submenu-icon { position: absolute; right: 12.5px; top: 50%; transform: translateY(-50%); margin: 0; pointer-events: none; }
.reflect-nav-desktop > .wp-block-navigation__container > .has-child > .wp-block-navigation-item__content:hover + .wp-block-navigation__submenu-icon,
.reflect-nav-desktop > .wp-block-navigation__container > .has-child > [aria-expanded="true"] + .wp-block-navigation__submenu-icon { color: var(--wp--preset--color--black); }
.reflect-nav-desktop .wp-block-navigation__submenu-icon { width: 8px; height: 8px; }
.reflect-nav-desktop .wp-block-navigation__submenu-icon svg { width: 8px; height: 8px; stroke-width: 2px; }
.reflect-nav-desktop .wp-block-navigation__submenu-container {
	width: 200px;
	min-width: 200px !important;
	padding: 0;
	border: 0 !important;
	border-radius: var(--wp--custom--radius--dropdown);
	background: var(--wp--preset--color--palette-color-8) !important;
	color: var(--wp--preset--color--palette-color-5) !important;
	box-shadow: var(--wp--preset--shadow--dropdown);
	font-size: var(--wp--preset--font-size--12);
	font-weight: 500;
	line-height: 1.65;
}
.reflect-nav-desktop > .wp-block-navigation__container > .wp-block-navigation-item > .wp-block-navigation__submenu-container { top: calc(100% + 24px); }
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation__submenu-container { left: calc(100% + 5px) !important; top: 0; }
/* Core paints each row in the panel colour (background-color: inherit) with square corners, which hid the
   panel's round bottom corners. The rows stay clear, so only the panel and the hovered row paint. */
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item { border-top: 1px solid var(--wp--preset--color--divider); background-color: transparent; }
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item:first-child { border-top: 0; }
.reflect-nav-desktop .wp-block-navigation__submenu-container > .wp-block-navigation-item:last-child > .wp-block-navigation-item__content { border-radius: var(--wp--custom--radius--dropdown); }
.reflect-nav-desktop.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-item__content { width: 100%; padding: 12px 18px; }
.reflect-nav-desktop.wp-block-navigation .has-child .wp-block-navigation__submenu-container > .wp-block-navigation-item > .wp-block-navigation-submenu__toggle { padding-right: 30px; }
/* z-index: the row button is a flex item with core's z-index: 1, so its dark hover and open background
   painted over the arrow. */
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation__submenu-icon { position: absolute; right: 14px; top: 50%; z-index: 2; transform: translateY(-50%) rotate(-90deg); pointer-events: none; }
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation-item__content,
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible,
.reflect-nav-desktop .wp-block-navigation__submenu-container [aria-expanded="true"] { background: var(--wp--preset--color--palette-color-5); color: #eee; }
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item:hover > .wp-block-navigation__submenu-icon,
.reflect-nav-desktop .wp-block-navigation__submenu-container .wp-block-navigation-item__content:focus-visible + .wp-block-navigation__submenu-icon,
.reflect-nav-desktop .wp-block-navigation__submenu-container [aria-expanded="true"] + .wp-block-navigation__submenu-icon { color: #eee; }

/* ---------- Menu toggle and off-canvas panel (below 1000px) ---------- */
.reflect-nav-toggle .wp-block-navigation__responsive-container-open { padding: 0; color: var(--wp--preset--color--palette-color-3); }
.reflect-nav-toggle .wp-block-navigation__responsive-container-open svg { width: 18px; height: 18px; }
.reflect-nav-toggle .wp-block-navigation__responsive-container.is-menu-open { padding: 0; background: transparent; }
.reflect-nav-toggle .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding: 0; align-items: stretch; height: 100%; }
.reflect-nav-toggle .wp-block-navigation__overlay-container { height: 100%; }
.reflect-offcanvas {
	width: 75vw;
	max-width: 75vw;
	min-height: 100dvh;
	box-shadow: var(--wp--preset--shadow--panel);
	font-family: var(--wp--preset--font-family--comfortaa);
}
@media (width > 689.98px) {
	.reflect-offcanvas { width: 65vw; max-width: 65vw; }
	.reflect-nav-offcanvas { font-size: 20px !important; }
}
.reflect-offcanvas__head { width: 100%; }
.reflect-offcanvas__title { margin: 0; font-weight: 400; letter-spacing: 0.03em; }
.reflect-offcanvas .wp-block-navigation-overlay-close { padding: 0; color: var(--wp--preset--color--palette-color-1); }
.reflect-offcanvas .wp-block-navigation-overlay-close svg { width: 20px; height: 20px; }

/* Accordion: header.js adds a toggle per parent and the class .is-open.
   Without JavaScript the whole tree stays visible. */
.reflect-nav-offcanvas,
.reflect-nav-offcanvas .wp-block-navigation__container { width: 100%; gap: 0 !important; align-items: stretch !important; }
.reflect-nav-offcanvas .wp-block-navigation-item { flex-direction: row !important; flex-wrap: wrap; align-items: center !important; gap: 0 !important; width: 100%; border-top: 1px solid rgba(31, 31, 31, .2); }
.reflect-nav-offcanvas .wp-block-navigation__container > .wp-block-navigation-item:last-child { border-bottom: 1px solid rgba(31, 31, 31, .2); }
.reflect-nav-offcanvas .wp-block-navigation-item__content { flex: 1 1 0% !important; min-width: 0; width: auto !important; padding: 5px 0 !important; text-decoration: none; }
.reflect-nav-offcanvas .wp-block-navigation__submenu-container {
	position: static !important;
	width: 100% !important;
	min-width: 0 !important;
	height: auto !important;
	padding: 0 0 0 20px !important;
	gap: 0 !important;
	border: 0 !important;
	background: transparent !important;
	font-size: 14px;
	opacity: 1 !important;
	visibility: visible !important;
	overflow: visible !important;
}
.reflect-nav-offcanvas .wp-block-navigation__submenu-container .wp-block-navigation-item { padding: 0 !important; }
.reflect-nav-offcanvas .reflect-collapsible > .wp-block-navigation__submenu-container { display: none !important; }
.reflect-nav-offcanvas .reflect-collapsible.is-open > .wp-block-navigation__submenu-container { display: flex !important; }
.reflect-sub-toggle { flex: none; width: 24px; height: 24px; padding: 0; border: 0; background: none; color: inherit; cursor: pointer; }
.reflect-sub-toggle::before { content: ""; display: block; width: 0; height: 0; margin: auto; border: 5px solid transparent; border-top: 6px solid currentColor; border-bottom: 0; }
.reflect-sub-toggle[aria-expanded="true"]::before { transform: rotate(180deg); }
.reflect-socials .wp-social-link svg { width: 21px; height: 21px; }
.reflect-socials .wp-social-link a { padding: 0; }
.reflect-offcanvas .reflect-socials .wp-social-link svg { width: 16px; height: 16px; }

/* ---------- Search, account, mini cart ---------- */
:root { --reflect-search-bar-width: 190px; }
.reflect-search--bar { width: var(--reflect-search-bar-width); }
/* FiboSearch keeps one suggestions panel on <body> for all search fields and gives it the width of the
   field in use (adjustContainerWidth), so the header field made a 190px list. While the header field is the
   active one (FiboSearch moves .dgwt-wcas-active only when another field takes focus), the panel is 500px
   wide, as Blocksy's header search was, and ends at the field's right edge. FiboSearch writes the inline
   width and left again on each reposition: hence !important and a transform. The phone overlay holds the
   panel inside its own bar, so this rule does not reach it. FiboSearch's details panel (off in its settings)
   is placed from the field and would need the same shift. */
@media (width > 999.98px) {
	body:has(.reflect-search--bar .dgwt-wcas-search-wrapp.dgwt-wcas-active) > .dgwt-wcas-suggestions-wrapp {
		width: 500px !important;
		transform: translateX(calc(var(--reflect-search-bar-width) - 100%));
	}
}
.reflect-search--icon .dgwt-wcas-search-icon { width: 20px; height: 16px; display: block; }
.reflect-search--icon .dgwt-wcas-search-icon svg { width: 20px; height: 16px; fill: var(--wp--preset--color--palette-color-3); }
.reflect-search--icon .dgwt-wcas-search-icon:hover svg { fill: var(--wp--preset--color--black); }
/* FiboSearch sets outline: 0 on :focus; keyboard focus gets the theme ring (base.css :focus-visible). */
.reflect-search .dgwt-wcas-sf-wrapp input[type="search"].dgwt-wcas-search-input:focus-visible,
.reflect-search .dgwt-wcas-sf-wrapp .dgwt-wcas-search-submit:focus-visible { outline: 2px solid var(--wp--preset--color--palette-color-1); outline-offset: 2px; }
/* Blocksy's header search icon was #555 (AWS sets it on the icon, so snippet 8173's button colour did not reach it). */
.reflect-search--bar .dgwt-wcas-search-submit:not(:hover) { color: #555 !important; }

.reflect-account, .reflect-minicart { color: var(--wp--preset--color--palette-color-3); line-height: 0; }
.reflect-account a { display: block; padding: 0; color: inherit; }
.reflect-account svg { width: 15px; height: 15px; }
.reflect-account a:hover { color: var(--wp--preset--color--palette-color-1); }

.reflect-minicart .wc-block-mini-cart__button { padding: 0; gap: 8px; color: inherit; font-size: var(--wp--preset--font-size--12); }
/* On Cart and Checkout the bag is a link to the cart page (inc/commerce.php). */
.reflect-minicart a.wc-block-mini-cart__button { text-decoration: none; }
.reflect-minicart .wc-block-mini-cart__button:hover:not([disabled]) { opacity: 1; color: var(--wp--preset--color--black); }
.reflect-minicart .wc-block-mini-cart__icon { width: 15px; height: 15px; margin: 0; }
.reflect-minicart .wc-block-mini-cart__amount {
	order: -1;
	display: initial;
	font-size: var(--wp--preset--font-size--12);
	font-weight: 600;
	line-height: 1.65;
	letter-spacing: 0.36px;
	text-transform: uppercase;
	color: var(--wp--preset--color--palette-color-3);
}
.reflect-minicart .wc-block-mini-cart__button:hover .wc-block-mini-cart__amount { color: var(--wp--preset--color--palette-color-1); }
@media (width <= 999.98px) {
	.reflect-minicart .wc-block-mini-cart__amount { display: none; }
	.reflect-minicart .wc-block-mini-cart__button { padding-left: 8px; }
}
.reflect-minicart .wc-block-mini-cart__badge {
	top: -8px;
	right: -9px;
	left: auto;
	min-width: 16px;
	height: 16px;
	padding: 0 3px;
	border: 0;
	border-radius: var(--wp--custom--radius--badge);
	background: var(--wp--preset--color--palette-color-3) !important;
	color: var(--wp--preset--color--palette-color-9) !important;
	font-size: var(--wp--preset--font-size--10);
	font-weight: 600;
	transform: none;
}

/* Mini cart drawer (native) in the shop colours. */
.wc-block-mini-cart__drawer { font-family: var(--wp--preset--font-family--comfortaa); color: var(--wp--preset--color--palette-color-1); }
.wc-block-mini-cart__drawer .wc-block-components-drawer__content { background: var(--wp--preset--color--palette-color-8); }
.wc-block-mini-cart__drawer .wc-block-mini-cart__footer-actions .wc-block-components-button:not(.is-link) { border-radius: var(--wp--custom--radius--control); min-height: var(--wp--custom--button--min-height); font-size: var(--wp--preset--font-size--15); font-weight: 500; }

/* ---------- Blocksy icons (CSS masks over the native SVGs) ---------- */
:root {
	--reflect-icon-account: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M7.5,0C3.4,0,0,3.4,0,7.5c0,1.7,0.5,3.2,1.5,4.5c1.4,1.9,3.6,3,6,3s4.6-1.1,6-3c1-1.3,1.5-2.9,1.5-4.5C15,3.4,11.6,0,7.5,0zM7.5,13.5c-1.4,0-2.8-0.5-3.8-1.4c1.1-0.9,2.4-1.4,3.8-1.4s2.8,0.5,3.8,1.4C10.3,13,8.9,13.5,7.5,13.5z M12.3,11c-1.3-1.1-3-1.8-4.8-1.8S4,9.9,2.7,11c-0.8-1-1.2-2.2-1.2-3.5c0-3.3,2.7-6,6-6s6,2.7,6,6C13.5,8.8,13.1,10,12.3,11zM7.5,3C6.1,3,5,4.1,5,5.5S6.1,8,7.5,8S10,6.9,10,5.5S8.9,3,7.5,3zM7.5,6.5c-0.5,0-1-0.5-1-1s0.5-1,1-1s1,0.5,1,1S8,6.5,7.5,6.5z'/%3E%3C/svg%3E");
	--reflect-icon-bag: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M14.1,1.6C14,0.7,13.3,0,12.4,0H2.7C1.7,0,1,0.7,0.9,1.6L0.1,13.1c0,0.5,0.1,1,0.5,1.3C0.9,14.8,1.3,15,1.8,15h11.4c0.5,0,0.9-0.2,1.3-0.6c0.3-0.4,0.5-0.8,0.5-1.3L14.1,1.6zM13.4,13.4c0,0-0.1,0.1-0.2,0.1H1.8c-0.1,0-0.2-0.1-0.2-0.1c0,0-0.1-0.1-0.1-0.2L2.4,1.7c0-0.1,0.1-0.2,0.2-0.2h9.7c0.1,0,0.2,0.1,0.2,0.2l0.8,11.5C13.4,13.3,13.4,13.4,13.4,13.4z M10,3.2C9.6,3.2,9.2,3.6,9.2,4v1.5c0,1-0.8,1.8-1.8,1.8S5.8,6.5,5.8,5.5V4c0-0.4-0.3-0.8-0.8-0.8S4.2,3.6,4.2,4v1.5c0,1.8,1.5,3.2,3.2,3.2s3.2-1.5,3.2-3.2V4C10.8,3.6,10.4,3.2,10,3.2z'/%3E%3C/svg%3E");
	--reflect-icon-chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 15'%3E%3Cpath d='M2.1,3.2l5.4,5.4l5.4-5.4L15,4.3l-7.5,7.5L0,4.3L2.1,3.2z'/%3E%3C/svg%3E");
	--reflect-icon-menu: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 14'%3E%3Crect x='6' width='12' height='1.7' rx='1'/%3E%3Crect y='6.15' width='18' height='1.7' rx='1'/%3E%3Crect y='12.3' width='12' height='1.7' rx='1'/%3E%3C/svg%3E");
	--reflect-icon-search: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/%3E%3C/svg%3E");
}
.reflect-account svg,
.reflect-minicart .wc-block-mini-cart__icon,
.reflect-nav-desktop .wp-block-navigation__submenu-icon svg,
.reflect-nav-toggle .wp-block-navigation__responsive-container-open svg,
.reflect-search:is(.reflect-search--bar, .reflect-search--page) .dgwt-wcas-search-submit svg { display: none !important; }
.reflect-account a::before,
.reflect-minicart .wc-block-mini-cart__quantity-badge::before,
.reflect-nav-desktop .wp-block-navigation__submenu-icon::before,
.reflect-nav-toggle .wp-block-navigation__responsive-container-open::before,
.reflect-search:is(.reflect-search--bar, .reflect-search--page) .dgwt-wcas-search-submit::after {
	content: "";
	display: block;
	width: 15px;
	height: 15px;
	background: currentColor;
	-webkit-mask: var(--reflect-icon) center / contain no-repeat;
	mask: var(--reflect-icon) center / contain no-repeat;
}
.reflect-account a::before { --reflect-icon: var(--reflect-icon-account); }
.reflect-minicart .wc-block-mini-cart__quantity-badge::before { --reflect-icon: var(--reflect-icon-bag); }
.reflect-nav-desktop .wp-block-navigation__submenu-icon::before { --reflect-icon: var(--reflect-icon-chevron); width: 8px; height: 8px; }
.reflect-nav-toggle .wp-block-navigation__responsive-container-open::before { --reflect-icon: var(--reflect-icon-menu); width: 18px; height: 14px; }
.reflect-search:is(.reflect-search--bar, .reflect-search--page) .dgwt-wcas-search-submit::after { --reflect-icon: var(--reflect-icon-search); width: 24px; height: 24px; margin: 0 auto; }
