@charset "UTF-8";
/*!
 * FAMILIA OPTICA · HEADER  (familia-header.css)
 * ==================================================================
 * Top bar, main row, main menu + mega panels, search row, burger drawer.
 * Markup: inc/header.php. Behaviour: assets/js/familia.js.
 *
 * Layout as familia.lt's header (client 2026-09-25: "make the top menu
 * very similar in terms of layout like our familia.lt", replacing the
 * lensor.lt principles of the morning), on the shop's white ground:
 * Geologica, ink, red when open, sky "Registracija", 5/10px corners.
 * The top bar above it keeps the old shop's texts.
 *
 *   ≥1280  one 76px row on the page's rail (no burger): logo · menu · Registracija ·
 *          search ·
 *          account · wishlist · cart; the full-width mega panel
 *          under the row (titled columns of links + the photo)
 *   <1280  logo · the same right-hand group (68px below 1024); the menu
 *          is in the burger drawer, which slides in from the right
 *   ≤768   the flower instead of the full logo (familia.lt `.minlogo`)
 *
 * The top bar scrolls away (sticky header with a negative top); the row
 * under it stays. Heights never change on scroll – no layout shift.
 *
 * Sections:
 *   01 Shell + top bar        04 Menu in the row
 *   02 Main row + logo        05 Mega panel
 *   03 Icons + account menu   07 Burger drawer
 *                             08 Search row · motion · forced colours
 */

:root {
	--f-topbar-h: 56px;            /* phones: two 18px lines + padding (2026-09-25: a little smaller than the old 62px) */
	--f-row-h: 68px;               /* familia.lt `.header` on phones */
}
@media (min-width: 1024px) {
	:root { --f-row-h: 76px; }     /* familia.lt `.header` */
}

/* ==================================================================
   01 · SHELL + TOP BAR
   ================================================================== */

.familia .site-header,
.familia #masthead.site-header,
.familia.woocommerce-active .site-header,
.familia.woocommerce-active #masthead.site-header,
.familia.storefront-full-width-content .site-header {
	position: sticky;
	top: var(--f-sticky-top, 0px);
	z-index: 300;
	margin: 0;
	padding: 0;
	border: 0;
	background: #fff;
	color: var(--f-ink);
	transition: box-shadow var(--f-mid) var(--f-ease);
}
/* the top bar scrolls away, the rows under it stick */
.familia .site-header:has(> .f-topbar) { --f-sticky-top: calc(-1 * var(--f-topbar-h)); }
.admin-bar.familia .site-header { top: calc(var(--wp-admin--admin-bar--height, 0px) + var(--f-sticky-top, 0px)); }
/* Storefront gives #page `overflow-x: hidden`, which makes it a scroll container: the sticky header then
   stuck to #page (which never scrolls). `clip` cuts sideways overflow without creating a scroll container. */
.familia .site { overflow-x: clip; }
/* a hairline under the row (white header on the white page); scrolled: plus a faint shadow (heights stay the same) */
.familia .site-header { box-shadow: 0 1px 0 var(--f-default-200); }
.familia.f-scrolled .site-header { box-shadow: 0 1px 0 var(--f-default-200), 0 4px 12px -6px rgb(var(--f-ink-rgb) / .12); }

.familia .f-topbar {
	background: #f6f6f6;
	color: var(--f-ink);
}
/* The old shop's bar (bg-default-100, py-[11px], sm:h-[52px]) with its texts: 13/18 ink, the link inside red 700 16px;
   the free-pickup line red 600 16/24 (old: "text-link font-semibold text-base", hidden below 640px). */
.familia .f-topbar__in { display: flex; align-items: center; gap: 24px; height: var(--f-topbar-h); overflow: hidden; }
.familia .f-topbar__promo {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 13px;
	font-weight: 400;
	line-height: 18px;
	color: var(--f-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.familia .f-topbar__promo p { margin: 0; }
.familia .f-topbar__promo a { color: var(--f-red-text, #e00e00); font-size: 15px; font-weight: 700; text-decoration: none; }
.familia .f-topbar__promo a:hover { text-decoration: underline; }
.familia .f-topbar__pickup {
	display: none;
	flex: 0 1 auto;
	min-width: 0;
	overflow: hidden;
	color: var(--f-red-text, #e00e00);
	font-size: 15px;
	font-weight: 600;
	line-height: 22px;
	white-space: nowrap;
	text-overflow: ellipsis;
	text-decoration: none;
}
.familia a.f-topbar__pickup:hover { color: var(--f-red-text, #e00e00); text-decoration: underline; }
@media (min-width: 640px) {
	:root { --f-topbar-h: 44px; }   /* old shop 52px; client 2026-09-25: slightly smaller */
	.familia .f-topbar__promo { -webkit-line-clamp: 1; white-space: nowrap; text-overflow: ellipsis; display: block; }
}
/* both texts fit on one line from ~1100px; below that the sentence alone (no two truncated halves) */
@media (min-width: 1100px) {
	.familia .f-topbar__pickup { display: block; }
}

/* ==================================================================
   02 · MAIN ROW + LOGO  (familia.lt: 76px row, 68px on phones)
   ================================================================== */

.familia .f-bar { position: relative; background: #fff; }   /* the mega panels hang from here, full width */
.familia .f-bar__row {
	display: flex;
	align-items: center;
	gap: 20px;
	min-height: var(--f-row-h);
}

/* icon buttons (search, close): 40×40, no fill */
.familia .f-bar .f-iconbtn,
.familia .f-drawer .f-iconbtn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	cursor: pointer;
}
.familia .f-bar .f-iconbtn:hover,
.familia .f-drawer .f-iconbtn:hover { background: transparent; color: var(--f-red); }
.familia .f-bar .f-iconbtn[aria-expanded="true"] { color: var(--f-red); }

.familia .f-bar .f-logo,
.familia.woocommerce-active .site-header .f-bar .f-logo.site-branding {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
}
.familia .f-logo__link,
.familia .f-logo .custom-logo-link { display: inline-flex; align-items: center; color: var(--f-ink); text-decoration: none; }
.familia .f-logo img,
.familia .f-logo .custom-logo {
	display: block;
	width: auto;
	height: 34px;                  /* familia.lt's logo box: 105 × 33 */
	max-height: 34px;
	border-radius: 0;
}
.familia .f-logo img.f-logo__mark { display: none; }
@media (max-width: 768px) {       /* familia.lt `.minlogo`: only the flower on phones and small tablets */
	.familia .f-bar .f-logo img.f-logo__full { display: none; }
	.familia .f-bar .f-logo img.f-logo__mark { display: block; width: 32px; height: 32px; max-height: 32px; }
}

.familia .f-bar__tools {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 10px;
	margin: 0 -6px 0 auto;
}

/* "Registracija": familia.lt's small primary button – sky, 14/21, 5px corners, 37px */
.familia .f-cta,
.familia a.f-cta:visited {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 37px;
	padding: 0 20px;
	border: 1px solid transparent;
	border-radius: 5px;
	background: var(--f-sky, #8dc9f7);
	color: var(--f-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 21px;
	white-space: nowrap;
	text-decoration: none;
	transition: background-color var(--f-fast) var(--f-ease);
}
.familia .f-cta:hover,
.familia .f-cta:focus-visible { background: var(--f-sky-deep, #6293b4); color: var(--f-ink); text-decoration: none; }

/* burger: familia.lt's three bars in a 38px button, below 1280px (from there the menu is in the row – client
   2026-09-26: "do we need burger menu when in desktop mode?") */
.familia .f-bar .f-burger,
.familia .f-bar .f-burger:hover {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	min-width: 38px;
	height: 38px;
	min-height: 38px;
	padding: 8px;
	border: 0;
	border-radius: 5px;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	cursor: pointer;
}
.familia .f-burger__bars { display: flex; flex-direction: column; justify-content: space-between; width: 22px; height: 16px; }
.familia .f-burger__bars span { display: block; height: 2px; border-radius: 1px; background: currentColor; transition: transform var(--f-mid) var(--f-ease), opacity var(--f-fast) var(--f-ease); }
.familia .f-bar .f-burger:hover { color: var(--f-red); }
.familia .f-burger[aria-expanded="true"] .f-burger__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.familia .f-burger[aria-expanded="true"] .f-burger__bars span:nth-child(2) { opacity: 0; }
.familia .f-burger[aria-expanded="true"] .f-burger__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
@media (min-width: 1280px) {
	.familia .f-bar .f-burger { display: none; }
	.f-drawer { display: none; }
}

/* phones: flower · Registracija · search · account · wishlist · cart · burger fit 360px */
@media (max-width: 639px) {
	.familia .f-bar__row { gap: 12px; }
	.familia .f-bar__tools { gap: 2px; }
	.familia .f-cta { height: 34px; margin-right: 4px; padding: 0 12px; font-size: 13px; }
	.familia .f-bar .f-action,
	.familia .f-bar .f-iconbtn { width: 36px; min-width: 36px; }
}
@media (max-width: 374px) {
	.familia .f-bar .f-wishlist,
	.familia .f-bar .f-action--wishlist { display: none; }
}

/* ==================================================================
   03 · ICONS + ACCOUNT MENU
   ================================================================== */

.familia .f-actions {
	position: static;
	display: flex;
	align-items: center;
	gap: 0;
	margin: 0;
	padding: 0;
}

.familia .f-action {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	min-width: 40px;
	height: 40px;
	min-height: 40px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 5px;
	background: transparent;
	color: var(--f-ink);
	text-decoration: none;
}
.familia .f-action:hover { color: var(--f-red); }
.familia .f-action.is-current { color: var(--f-ink); }
.familia .f-action__icon { display: inline-flex; position: relative; }
/* names stay in the accessibility tree; the header shows icons only (as familia.lt's account icon) */
.familia .f-bar .f-action__label {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip-path: inset(50%);
	white-space: nowrap;
	border: 0;
}

/* the account icon says what it is (client 2026-09-30: next to the "Registracija" (visit booking) button the bare
   person icon was taken for "register" – it is "Prisijungti" / "Paskyra"): visible label from 1024 px */
@media (min-width: 1024px) {
	.familia .f-bar .f-action--account { width: auto; min-width: 40px; gap: 6px; padding: 0 8px; }
	.familia .f-bar .f-action--account .f-action__label {
		position: static; width: auto; height: auto; margin: 0; overflow: visible; clip-path: none;
		font-size: 14px; font-weight: 500; line-height: 1;
	}
}

/* count badge: a 17px ink circle over the icon's corner */
.familia .f-action__count {
	position: absolute;
	top: -6px;
	right: -7px;
	display: grid;
	place-items: center;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: var(--f-r-pill);
	background: var(--f-ink);
	color: #fff;
	font-size: var(--f-t-xs);
	font-weight: 700;
	line-height: 1;
	font-variant-numeric: tabular-nums;
	box-shadow: 0 2px 4px rgb(0 0 0 / .2);
}

/* logged-in account menu: opens on hover and focus */
.familia .f-account { position: relative; display: flex; }
.familia .f-account__menu {
	position: absolute;
	top: 100%;
	right: -40px;
	z-index: 320;
	width: 13rem;
	padding: 12px 0 0;
	border-radius: 0 0 10px 10px;
	background: #fff;
	box-shadow: 0 0 10px rgb(102 105 107 / .1), 0 12px 24px -8px rgb(var(--f-ink-rgb) / .16);
	opacity: 0;
	visibility: hidden;
	transition: opacity var(--f-mid) var(--f-ease), visibility var(--f-mid) var(--f-ease);
}
.familia .f-account:hover .f-account__menu,
.familia .f-account:focus-within .f-account__menu { opacity: 1; visibility: visible; }
.familia .f-account__menu ul { margin: 0 0 8px; padding: 0; list-style: none; }
.familia .f-account__menu li { margin: 0; }
.familia .f-account__menu a {
	display: block;
	padding: 8px 20px;
	color: var(--f-ink);
	font-size: var(--f-t-sm);
	font-weight: 400;
	text-decoration: none;
}
.familia .f-account__menu a:hover { color: var(--f-red); }
.familia .f-account__menu .f-account__logout {
	padding-block: 12px;
	border-top: 1px solid var(--f-default-200);
	color: var(--f-default-900);
}
@media (max-width: 767px) { .familia .f-account__menu { display: none; } }

/* ==================================================================
   04 · MENU IN THE ROW (≥1280; below that the burger drawer has it)
   familia.lt's `.mainmenu`: 16/16 regular, 10px 18px, red when open.
   Storefront's `.main-navigation` rules (width 73.9 %, float, clearfix
   pseudo-elements, `ul ul` hidden at -9999px, 200px sub-links, link
   paddings) are undone with the id so nothing leaks into the panels.
   ================================================================== */

.familia #site-navigation.f-nav {   /* beats Storefront's `.woocommerce-active .site-header .main-navigation` */
	position: static;
	display: none;
	width: auto;
	margin: 0;
	padding: 0;
	float: none;
	clear: none;
	border: 0;
	background: transparent;
}
.familia #site-navigation.f-nav::before,
.familia #site-navigation.f-nav::after { content: none; display: none; }
.familia #site-navigation ul { display: block; margin: 0; padding: 0; list-style: none; }
.familia #site-navigation li { position: static; display: block; margin: 0; text-align: left; }
.familia #site-navigation a { display: block; width: auto; padding: 0; }
.familia #site-navigation ul ul {
	position: static;
	top: auto;
	left: auto;
	z-index: auto;
	float: none;
	margin: 0;
	box-shadow: none;
}

.familia #site-navigation .f-nav__list { display: flex; align-items: center; }
.familia #site-navigation .f-nav__item--d0 { display: flex; }
.familia #site-navigation .f-nav__item--d0.is-phone { display: none; }

.familia #site-navigation .f-nav__link {
	display: inline-flex;
	align-items: center;
	min-height: 0;
	margin: 0;
	padding: 10px;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	font-family: var(--f-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 16px;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	white-space: nowrap;
	cursor: pointer;
	transition: color var(--f-fast) var(--f-ease);
	-webkit-tap-highlight-color: transparent;
}
.familia #site-navigation .f-nav__link:hover,
.familia #site-navigation .f-nav__item--d0.is-current > .f-nav__link,
.familia #site-navigation .f-nav__item--d0.is-open > .f-nav__link { color: var(--f-red); }
.familia #site-navigation .f-nav__link:focus-visible { outline: 2px solid var(--f-focus); outline-offset: -2px; }
.familia #site-navigation .f-nav__caret { display: none; }

/* the row sits on the page's rail (1100px at 1280, 1260px from 1440): 1280–1439 the items are 15px with 8px sides
   and the right-hand group closes up so the five fit; from 1440 familia.lt's 16px (sides 14px, familia.lt 18px) */
@media (min-width: 1280px) {
	.familia #site-navigation.f-nav { display: flex; flex: 1 1 auto; min-width: 0; }
	/* a seventh item scrolls sideways instead of running into the right-hand group */
	.familia #site-navigation .f-nav__list { overflow-x: auto; scrollbar-width: none; }
	.familia #site-navigation .f-nav__list::-webkit-scrollbar { display: none; }
}
@media (min-width: 1280px) and (max-width: 1439px) {
	.familia .f-bar__row { gap: 16px; }
	.familia .f-bar__tools { gap: 4px; }
	.familia .f-cta { padding-inline: 14px; }
	.familia #site-navigation .f-nav__link { padding-inline: 8px; font-size: 15px; }
}
@media (min-width: 1440px) {
	.familia #site-navigation .f-nav__link { padding-inline: 14px; }
}

/* ==================================================================
   05 · MEGA PANEL  (familia.lt's `.submenu`: the header's full width,
   titled columns of grey links, the photo on the right, 10px corners)
   ================================================================== */

.familia #site-navigation .f-mega {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 310;
	display: none;
	border-top: 1px solid var(--f-default-200);
	border-radius: 0 0 10px 10px;
	background: rgb(255 255 255 / .9);         /* familia.lt: 90% white over an 8px blur */
	-webkit-backdrop-filter: blur(8px);
	backdrop-filter: blur(8px);
	box-shadow: 0 0 10px rgb(102 105 107 / .1), 0 16px 32px -16px rgb(var(--f-ink-rgb) / .18);
	color: var(--f-ink);
	cursor: auto;
}
.familia #site-navigation .f-nav__item--mega.is-open > .f-mega { display: block; animation: f-mega-in var(--f-mid) var(--f-ease); }
/* without JS the panels still open on hover and keyboard focus */
.familia:not(.f-js) #site-navigation .f-nav__item--mega:hover > .f-mega,
.familia:not(.f-js) #site-navigation .f-nav__item--mega:focus-within > .f-mega { display: block; }
@keyframes f-mega-in { from { opacity: 0; } to { opacity: 1; } }

.familia #site-navigation .f-mega__in { display: flex; gap: 30px; padding-block: 20px; }
.familia #site-navigation .f-mega__cols { display: flex; flex: 0 1 auto; flex-wrap: wrap; gap: 24px 0; min-width: 0; }
.familia #site-navigation .f-mega__col { flex: 0 0 auto; width: 220px; padding-right: 20px; }
/* Friends & Frames style (client 2026-09-26): up to 12 brands in two columns of six (2026-10-01, FAMILIA_MEGA_BRANDS), then the categories, then Medžiaga / Kaina */
.familia #site-navigation .f-mega__col--brands { width: 340px; }
.familia #site-navigation .f-mega__col--brands .f-mega__list { display: grid; grid-auto-flow: column; grid-template-rows: repeat(6, auto); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.familia #site-navigation .f-mega__col--shortcuts { width: 180px; }
.familia #site-navigation .f-mega__group + .f-mega__group { margin-top: 22px; }
.familia #site-navigation .f-mega__title {
	margin: 0 0 12px;
	color: var(--f-ink);
	font-size: 18px;
	font-weight: 600;
	line-height: 24px;
}
.familia #site-navigation .f-mega__list { display: flex; flex-direction: column; gap: 12px; }
/* a category raised to a column of its own next to the list ("Tirpalai ir akių priežiūra") */
.familia #site-navigation .f-mega__title--link a { color: inherit; text-decoration: none; transition: color var(--f-fast) var(--f-ease); }
.familia #site-navigation .f-mega__title--link a:hover,
.familia #site-navigation .f-mega__title--link a[aria-current="page"] { color: var(--f-red); }
.familia #site-navigation .f-mega__col--heading.is-phone { display: none; }
.familia #site-navigation .f-mega__item.is-phone { display: none; }
.familia #site-navigation .f-mega__link {
	color: #676767;
	font-size: 16px;
	font-weight: 400;
	line-height: 19px;
	text-decoration: none;
	transition: color var(--f-fast) var(--f-ease);
}
.familia #site-navigation .f-mega__link:hover,
.familia #site-navigation .f-mega__link[aria-current="page"] { color: var(--f-red); }
.familia #site-navigation .f-mega__all {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	margin-top: 16px;
	color: var(--f-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 20px;
	text-decoration: none;
}
.familia #site-navigation .f-mega__all:hover { color: var(--f-red); }

/* the photo spans exactly the columns: from the first title to the last link (familia.lt: 430 × the columns' height) */
.familia #site-navigation .f-mega__photo {
	position: relative;
	display: block;
	flex: 1 1 260px;
	max-width: 430px;
	margin-left: auto;
	align-self: stretch;
	overflow: hidden;
	border-radius: 10px;
	background: var(--f-default-100);
}
.familia #site-navigation .f-mega__photo img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: contain; transition: transform var(--f-slow) var(--f-ease); }   /* fitted, never cropped (familia.lt: contain) */
.familia #site-navigation a.f-mega__photo:hover img { transform: scale(1.03); }
@media (min-width: 1440px) {
	.familia #site-navigation .f-mega__photo { flex-basis: 340px; }   /* familia.lt: up to 430px */
}

/* ==================================================================
   07 · BURGER DRAWER (below 1280px)
   familia.lt's `.hamburgerMenu`: slides in from the right over a dimmed
   page – logo + close, the whole menu as a list (an item with children
   opens its sub-list in place), then the top-bar links in a grey block.
   ================================================================== */

.familia.f-drawer-open { overflow: hidden; }
.f-drawer { position: fixed; inset: 0; z-index: 500; }
.admin-bar .f-drawer { top: var(--wp-admin--admin-bar--height, 0px); }   /* logged-in staff: the drawer's head under the admin bar, not behind it */
.f-drawer[hidden] { display: none; }
.f-drawer__backdrop {
	position: absolute;
	inset: 0;
	background: rgb(var(--f-ink-rgb) / .45);
	opacity: 0;
	transition: opacity var(--f-slow) var(--f-ease);
}
.familia.f-drawer-open .f-drawer__backdrop { opacity: 1; }
.f-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	display: flex;
	flex-direction: column;
	width: min(100%, 380px);
	background: #fff;
	color: var(--f-ink);
	overflow-y: auto;
	overscroll-behavior: contain;
	transform: translateX(100%);
	transition: transform var(--f-slow) var(--f-ease);
}
.familia.f-drawer-open .f-drawer__panel { transform: none; }
.f-drawer__panel:focus { outline: 0; }

.familia .f-drawer__head {
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: space-between;
	height: var(--f-row-h);
	padding: 0 12px 0 var(--f-gut);
	border-bottom: 1px solid var(--f-default-200);
}
.familia .f-drawer .f-drawer__logo { display: flex; float: none; width: auto; margin: 0; padding: 0; }
.familia .f-drawer .f-drawer__logo img,
.familia .f-drawer .f-drawer__logo .custom-logo { width: auto; height: 32px; max-height: 32px; }
.familia .f-drawer .f-drawer__logo img.f-logo__mark { display: none; }

.familia .f-drawer__nav { flex: 1 0 auto; padding: 0 var(--f-gut) 24px; }
.familia .f-drawer__list { margin: 0; padding: 0; list-style: none; }
.familia .f-drawer__item { margin: 0; border-bottom: 1px solid var(--f-default-200); }
.familia .f-drawer__row { display: flex; align-items: stretch; }
.familia .f-drawer__link {
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	font-family: var(--f-text);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.3;
	letter-spacing: 0;
	text-align: left;
	text-transform: none;
	text-decoration: none;
	cursor: pointer;
}
.familia .f-drawer__link:hover { background: transparent; color: var(--f-red); }
.familia .f-drawer__item.is-current > .f-drawer__link,
.familia .f-drawer__item.is-current > .f-drawer__row .f-drawer__link { color: var(--f-red); }
.familia .f-drawer__row .f-drawer__toggle {
	display: inline-flex;
	flex: 0 0 48px;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	margin: 0 -12px 0 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	cursor: pointer;
}
.familia .f-drawer__toggle svg { flex: none; transition: transform var(--f-fast) var(--f-ease); }
.familia .f-drawer__toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.familia .f-drawer__toggle[aria-expanded="true"],
.familia .f-drawer__row .f-drawer__toggle:hover { color: var(--f-red); }

.familia .f-drawer__sub { margin: -4px 0 0; padding: 0 0 12px 12px; list-style: none; }
.familia .f-drawer__sub[hidden] { display: none; }
.familia .f-drawer__sub li { margin: 0; }
.familia .f-drawer__sublink {
	display: flex;
	align-items: center;
	min-height: 40px;
	color: #676767;
	font-size: 15px;
	font-weight: 400;
	text-decoration: none;
}
.familia .f-drawer__sublink:hover,
.familia .f-drawer__sublink[aria-current="page"] { color: var(--f-red); }
.familia .f-drawer__all { color: var(--f-ink); font-weight: 600; }

/* the service lines under the menu (client 2026-09-26: "that bottom part looks very bad"): full-width rows on a light
   grey band – a 20px icon, 15px text, hairlines between; the drawer id makes it immune to Storefront's list indents */
#f-drawer .f-drawer__info {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	margin: 0;
	padding: 8px var(--f-gut) 16px;
	background: var(--f-default-100, #f6f6f6);
	list-style: none;
}
#f-drawer .f-drawer__infoitem { width: 100%; margin: 0; padding: 0; list-style: none; }
#f-drawer .f-drawer__infoitem + .f-drawer__infoitem { border-top: 1px solid var(--f-default-200, #e5e5e5); }
#f-drawer .f-drawer__infolink {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	margin: 0;
	padding: 8px 0;
	color: var(--f-ink);
	font-size: 15px;
	font-weight: 400;
	line-height: 1.35;
	text-align: left;
	text-decoration: none;
}
#f-drawer .f-drawer__infoicon { display: inline-flex; flex: none; color: var(--f-ink); }
#f-drawer .f-drawer__infoicon svg { width: 20px; height: 20px; }
#f-drawer .f-drawer__infotext { flex: 1 1 auto; min-width: 0; }
#f-drawer a.f-drawer__infolink:hover { color: var(--f-red); }
#f-drawer a.f-drawer__infolink:hover .f-drawer__infoicon { color: var(--f-red); }

/* ==================================================================
   08 · SEARCH ROW · MOTION · FORCED COLOURS
   The magnifier opens the inline field (familia-search suggestions)
   as a row under the header, over the page.
   ================================================================== */

.familia .f-search {
	position: absolute;
	top: 100%;
	right: 0;
	left: 0;
	z-index: 305;
	display: none;
	border-top: 1px solid var(--f-default-200);
	background: #fff;
	box-shadow: 0 16px 32px -12px rgb(var(--f-ink-rgb) / .18);
}
.familia .f-bar.is-search-open .f-search { display: block; }
.familia .f-search__in { display: flex; align-items: center; gap: 8px; padding-block: 12px; }
.familia .f-search__form { position: relative; display: flex; flex: 1 1 auto; align-items: center; max-width: 760px; margin: 0 auto; }
.familia input.f-search__input {
	width: 100%;
	height: 48px;
	min-height: 48px;
	margin: 0;
	padding: 12px 16px 12px 48px;
	border: 0;
	border-radius: var(--f-r-xs);
	background: var(--f-default-100);
	box-shadow: none;
	color: var(--f-ink);
	font-size: var(--f-t-base);   /* 16px: no zoom on iOS */
	line-height: 1.5;
}
.familia input.f-search__input:focus { background: var(--f-default-100); }
.familia input.f-search__input::placeholder { color: var(--f-default-900); opacity: 1; }
.familia .f-search__submit {
	position: absolute;
	top: 0;
	left: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	min-width: 48px;
	height: 48px;
	min-height: 48px;
	padding: 0;
	border: 0;
	border-radius: var(--f-r-xs) 0 0 var(--f-r-xs);
	background: transparent;
	box-shadow: none;
	color: var(--f-default-900);
}
.familia .f-search__submit svg { width: 24px; height: 24px; }
.familia .f-search__submit:hover { background: transparent; color: var(--f-ink); }
.familia .f-search__close { flex: 0 0 auto; }

/* the suggestion list: the shop's greys and square corners */
.familia-suggest {
	--familia-suggest-muted: var(--f-default-600);
	--familia-suggest-border-strong: var(--f-default-200);
	--familia-suggest-radius: var(--f-r-xs);
	box-shadow: 0 4px 6px -1px rgb(0 0 0 / .1), 0 2px 4px -2px rgb(0 0 0 / .1);
}
.familia-suggest .familia-suggest__count-line { font-size: var(--f-t-sm); }
/* the header field is now a full-width row: the list opens under it at its width (suggest.css widens it
   to the left for the old 192px field) */
.familia .f-search .familia-suggest:not(.familia-suggest--fixed) { left: 0; right: 0; width: auto; }

@media (prefers-reduced-motion: reduce) {
	.familia #site-navigation .f-nav__item--mega.is-open > .f-mega { animation: none; }
	.f-drawer__panel,
	.f-drawer__backdrop,
	.familia .f-burger__bars span,
	.familia .f-account__menu { transition: none; }
}

@media (forced-colors: active) {
	.familia #site-navigation .f-mega,
	.familia .f-search,
	.familia .f-account__menu { border: 1px solid CanvasText; }
}

@media print {
	.familia .f-topbar,
	.familia .f-bar__tools,
	.familia #site-navigation { display: none !important; }
}
