/* ==================================================================
   Familia – single product page (inc/product.php, familia-product.js)

   Layout and placement of the legacy product block (`dy`, client.bundle.js): gallery left
   (max 678 px, rounded bottom-right corner), buying column right (560 px); below, full width:
   service links, the 2 × 2 descriptions, product-page blocks (text + image, IŠMATAVIMAI /
   Savybės on grey, Rekomenduojame carousel). Everything below the buy box follows the old
   shop one to one (client, 2026-09-23: white page, Open Sans, ink #140e06), measured against
   shop.familia.lt – see docs/parity/product-descriptions.md. Loaded after familia-shop.css on
   product pages only.
   ================================================================== */

/* Storefront sets `overflow: hidden` on the product (float clearing); it clipped
   every full-bleed band below the summary (services, grey/white blocks,
   Išmatavimai) to the container. The grid needs no clearing; the page itself
   clips sideways overflow (#page overflow-x). */
.familia.single-product div.product { overflow: visible; }

.familia.single-product div.product > .familia-descriptions,
.familia.single-product div.product > .familia-pblocks { grid-column: 1 / -1; }

/* legacy: "md:flex md:justify-between" – the gallery `md:flex-1 md:max-w-[555px]
   lg:max-w-[678px]`, the buying column `md:w-[560px]` with `lg:pl-20 md:py-9`.
   The legacy md is 1024px and lg 1280px; below 1024 everything stacks. */
@media (min-width: 1024px) {
	.familia.single-product div.product {
		grid-template-columns: minmax(0, 555px) 560px;
		justify-content: space-between;
		gap: 0 16px;
	}
	.familia.single-product div.product > .familia-gallery { grid-column: 1; min-width: 0; align-self: start; }
	.familia.single-product div.product > .summary { grid-column: 2; padding-block: 36px; }
}
@media (min-width: 1280px) {
	.familia.single-product div.product { grid-template-columns: minmax(0, 678px) 560px; gap: 0 80px; }
}

/* breadcrumb: above the page on desktop, under the photos on phones (legacy) */
.familia .familia-product-crumbs { font-size: 11px; }
.familia .familia-product-crumbs .woocommerce-breadcrumb { margin: 0; padding: 8px 0 0; }
@media (max-width: 1023px) {   /* legacy `ny visibleOnPhone` is "md:hidden" */
	.familia.single-product .storefront-breadcrumb { display: none; }
}
@media (min-width: 1024px) {
	.familia .familia-product-crumbs { display: none; }
	.familia.single-product div.product > .familia-product-crumbs { grid-column: 1; }
}

/* ---------------------------------------------------------------- gallery */
/* Legacy: a white box (`bg-default-50 pb-5 rounded-br-[100px]`) on the white
   page – neither the box nor its corner shows, so it is drawn square. */
.familia .familia-gallery {
	position: relative;
	background: var(--fs-white, #fff);
	padding-bottom: 20px;
	border-radius: 0;
	overflow: hidden;
}
.familia .familia-gallery img { border-radius: 0; }
.familia .familia-gallery__track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	overscroll-behavior-x: contain;
}
.familia .familia-gallery__track::-webkit-scrollbar { display: none; }
.familia .familia-gallery__track:focus-visible { outline: 2px solid var(--f-sky-deep); outline-offset: -2px; }
.familia .familia-gallery__slide {
	scroll-snap-align: start;
	scroll-snap-stop: always;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 220px;
	padding-bottom: 64px;
}
.familia .familia-gallery__link { display: flex; align-items: center; justify-content: center; width: 100%; height: 220px; cursor: pointer; }
/* WooCommerce's placeholder (no photo yet) has no link box: keep it in the
   same fixed photo box instead of a 646px square */
.familia .familia-gallery__slide--placeholder { height: 220px; }
.familia .familia-gallery__slide--placeholder img { max-height: 100%; width: auto; }
.familia .familia-gallery__img,
.familia .familia-gallery__slide img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; margin: 0 auto; }
/* the photo fills the slide's box and `contain` centres it: an auto-sized <img> could end up narrower than the slide
   and sit on its left edge on some widths / browsers (client 2026-09-30: "the frame seems to be not centered") */
.familia .familia-gallery__link .familia-gallery__img { width: 100%; height: 100%; max-width: none; max-height: none; object-position: 50% 50%; object-fit: scale-down; }   /* scale-down: a small upload (Acuvue Oasys 400 × 256) keeps its own size instead of being blown up blurry */
/* legacy `wf` "bottom-spaced": the old shop's 40px circled chevrons in 40×48
   buttons right under the photo box, at its two edges (`md:px-5 lg:px-0`),
   "hidden md:flex"; the previous one `text-default-600 opacity-50` on the
   first photo. The dot row (`h-7 md:h-10`) sits under the photo box too. */
.familia .familia-gallery__arrow {
	position: absolute;
	bottom: 12px;                  /* 60px below the photos − 48 */
	z-index: 3;
	display: none;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 48px;
	min-height: 48px;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	cursor: pointer;
}
@media (min-width: 1024px) {
	.familia .familia-gallery > .familia-gallery__arrow:not([hidden]) { display: inline-flex; }
}
.familia .familia-gallery__arrow:disabled { color: var(--f-default-600); }
.familia .familia-gallery__arrow svg { width: 40px; height: 40px; }
.familia .familia-gallery__arrow--prev { left: 20px; }
.familia .familia-gallery__arrow--next { right: 20px; }
.familia .familia-gallery__arrow--next svg { transform: rotate(180deg); }
.familia .familia-gallery__arrow:disabled { opacity: .5; cursor: default; }
/* The global `.familia button:hover` (0,2,1) filled the arrow's 40×48 box sky-deep, so the "next" arrow the mouse rests on
   after a click showed a square (client 2026-10-01). The arrow is only its circled chevron: no fill, border or nudge on
   hover / press / mouse focus; keyboard users keep a round outline. */
.familia .familia-gallery__arrow:hover,
.familia .familia-gallery__arrow:focus,
.familia .familia-gallery__arrow:active { background: transparent; border-color: transparent; box-shadow: none; outline: none; transform: none; }
.familia .familia-gallery__arrow:focus-visible { outline: none; }
.familia .familia-gallery__arrow:focus-visible svg { outline: 2px solid var(--f-focus); outline-offset: 1px; border-radius: 50%; }
@media (min-width: 1280px) {
	.familia .familia-gallery__arrow--prev { left: 0; }
	.familia .familia-gallery__arrow--next { right: 0; }
}
.familia .familia-gallery__dots {
	position: absolute;
	left: 64px;
	right: 64px;
	bottom: 37px;                  /* dot centre 20px under the photos */
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	pointer-events: none;
}
.familia .familia-gallery__dot { width: 6px; height: 6px; border-radius: 999px; background: var(--f-default-400, #cdd1d6); transition: width .2s ease, background-color .2s ease; }
.familia .familia-gallery__dot.is-active { width: 12px; background: var(--f-sky); }
.familia .familia-gallery .familia-badges--single { top: 12px; left: 16px; }
.familia .familia-gallery__wish { position: absolute; top: 12px; right: 16px; left: auto; bottom: auto; z-index: 3; }   /* phones: top right, opposite the badges (QA 2026-09-28 #47; was bottom left) */
@media (min-width: 1024px) {   /* legacy "h-[220px] md:h-[434px]", wishlist "md:hidden" */
	.familia .familia-gallery__slide { min-height: 434px; padding-bottom: 0; }
	.familia .familia-gallery__link,
	.familia .familia-gallery__slide--placeholder { height: 434px; }
	.familia .familia-gallery { padding-bottom: 60px; }   /* the 40px dot row + pb-5 */
	.familia .familia-gallery__wish { display: none; }
	.familia .familia-gallery .familia-badges--single { left: 0; }
}

.familia .familia-gallery__lightbox {
	width: min(1400px, calc(100vw - 48px));
	max-width: none;
	padding: 28px;
	border: 0;
	border-radius: var(--f-r-md, 8px);
	background: #fff;
}
.familia .familia-gallery__lightbox::backdrop { background: rgba(var(--f-ink-rgb, 20 14 6) / .6); }
.familia .familia-gallery__lightbox-track {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
}
.familia .familia-gallery__lightbox-track figure { margin: 0; scroll-snap-align: start; display: flex; justify-content: center; align-items: center; height: min(580px, 70vh); }
.familia .familia-gallery__lightbox-track img { max-width: 100%; max-height: 100%; object-fit: contain; }
.familia .familia-gallery__lightbox .familia-gallery__arrow { position: static; margin: 16px 8px 0; }
.familia .familia-gallery__close {
	position: absolute;
	top: 8px;
	right: 12px;
	padding: 4px 10px;
	border: 0;
	background: none;
	font-size: 30px;
	line-height: 1;
	color: var(--f-ink);
	cursor: pointer;
}

/* badges (legacy: discount on secondary, TOP on accent, RECOMMENDED on primary, others #8CBBFF) */
.familia .familia-badges--single .familia-badge { height: 32px; padding-inline: 16px; font-size: 12px; line-height: 16px; letter-spacing: 0; }   /* "h-8 px-4 sm:px-2.5 text-xs" */
@media (min-width: 768px) { .familia .familia-badges--single .familia-badge { padding-inline: 10px; } }
.familia .familia-badges--single .familia-badge--sale { background: var(--f-sky); color: var(--f-ink); }   /* legacy white ("text-default-50") is 1.8:1 on the sky – ink for WCAG AA */
.familia .familia-badges--single .familia-badge--top { background: var(--f-red-text); color: #fff; }
.familia .familia-badges--single .familia-badge--recommended,
.familia .familia-badges--single .familia-badge--rekomenduojame { background: var(--f-ink); color: #fff; }
.familia .familia-badges--single .familia-badge--promo,
.familia .familia-badges--single .familia-badge--new { background: #8cbbff; color: var(--f-ink); }

/* ---------------------------------------------------------------- summary */
.familia.single-product .summary .product_title {
	margin: 0 0 12px;              /* ref: h1-small mb-3 text-26 lg:text-32 font-extrabold leading-snug */
	font-size: 26px;
	font-weight: 400;
	line-height: 1.375;
}
@media (min-width: 1024px) { .familia.single-product .summary .product_title { font-size: 32px; } }
.familia.single-product .summary .familia-product-subtitle { margin: 0 0 20px; font-size: 18px; line-height: 1.375; color: var(--f-ink); }   /* "mb-5 md:mb-6 text-lg leading-snug" */
@media (min-width: 1024px) { .familia.single-product .summary .familia-product-subtitle { margin-bottom: 24px; } }

/* colour dots: "flex flex-wrap pb-8 md:pb-10", dot "min-h-[34px] min-w-[34px] p-1 mb-1 border
   rounded-full", the chosen one with an ink ring */
.familia .familia-swatches--single { margin: 0 0 32px; }
@media (min-width: 1024px) { .familia .familia-swatches--single { margin-bottom: 40px; } }
.familia .familia-swatches--single .familia-swatches__label,
.familia .familia-swatches--single .familia-swatch__label {
	position: absolute !important;
	width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); border: 0; white-space: nowrap;
}
.familia .familia-swatches--single .familia-swatches__list { display: flex; flex-wrap: wrap; gap: 0; margin: 0; padding: 0; }
.familia .familia-swatches--single .familia-swatch { margin: 0 0 4px; }
.familia .familia-swatches--single .familia-swatch__button {
	width: 34px;
	height: 34px;
	min-width: 34px;
	min-height: 34px;
	padding: 4px;
	border: 1px solid transparent;
	border-radius: 50%;
	background-clip: content-box !important;   /* FC_Swatches sets the colour with an inline `background:` */
	box-shadow: none;
}
.familia .familia-swatches--single .familia-swatch__button img { width: 24px; height: 24px; border-radius: 50%; object-fit: cover; }
.familia .familia-swatches--single .familia-swatch__button[aria-pressed="true"],
.familia .familia-swatches--single[data-count="1"] .familia-swatch__button { border-color: var(--f-ink); box-shadow: none; }
.familia .familia-swatches--single .familia-swatch--light .familia-swatch__button { box-shadow: inset 0 0 0 4px #fff, inset 0 0 0 5px var(--f-line, #e8eaed); }

/* colours as small photos of the model (QA 2026-09-28 #17, Farfetch-like): 72 × 48 tiles, thin grey frame, the chosen one
   in ink; the chosen colour's name above. A colour without a photo keeps its dot, centred in a tile of the same size. */
.familia .familia-swatches--thumbs .familia-swatches__current { margin: 0 0 10px; color: var(--f-quiet, #736e69); font-size: 14px; }
.familia .familia-swatches--thumbs .familia-swatches__current span { color: var(--f-ink); }
.familia .familia-swatches--thumbs .familia-swatches__list { gap: 8px; }
.familia .familia-swatches--thumbs .familia-swatch { margin: 0; }
.familia .familia-swatches--thumbs .familia-swatch__button,
.familia .familia-swatches--thumbs .familia-swatch--thumb .familia-swatch__button {
	display: grid;
	place-items: center;
	width: 72px;
	min-width: 72px;
	height: 48px;
	min-height: 48px;
	padding: 3px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background-color: #fff;
	cursor: pointer;
}
.familia .familia-swatches--thumbs .familia-swatch:not(.familia-swatch--thumb) .familia-swatch__button { background-clip: content-box !important; background-origin: content-box; padding: 11px 23px; }
.familia .familia-swatches--thumbs .familia-swatch--thumb .familia-swatch__button img { width: 100%; height: 100%; border-radius: 0; object-fit: contain; }
.familia .familia-swatches--thumbs .familia-swatch__button:hover { border-color: #9a948e; }
.familia .familia-swatches--thumbs .familia-swatch__button[aria-pressed="true"] { border-color: var(--f-ink); box-shadow: inset 0 0 0 1px var(--f-ink); }
.familia .familia-swatches--thumbs .familia-swatch--out-of-stock .familia-swatch__button img { opacity: .45; }
/* a model whose SKUs carry no colour chooses by its code ("Spalvos kodas" C006, readers' "Dioptrijos" +3.50 –
   FC_Variations::ensure_axis()): a SKU without a photo is a text chip of the tile's height */
.familia .familia-swatches--single .familia-swatch--text .familia-swatch__button,
.familia .familia-swatches--thumbs .familia-swatch--text .familia-swatch__button {
	display: grid;
	place-items: center;
	width: auto;
	min-width: 56px;
	height: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #e2e2e2;
	border-radius: 6px;
	background: #fff;
	color: var(--f-ink);
	font-size: 14px;
	font-weight: 400;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
}
.familia .familia-swatches--thumbs .familia-swatch--text .familia-swatch__button { height: 48px; min-height: 48px; }
.familia .familia-swatches--single .familia-swatch--text .familia-swatch__button:hover { border-color: #9a948e; }
.familia .familia-swatches--single .familia-swatch--text .familia-swatch__button[aria-pressed="true"],
.familia .familia-swatches--single[data-count="1"] .familia-swatch--text .familia-swatch__button { border-color: var(--f-ink); box-shadow: inset 0 0 0 1px var(--f-ink); }
.familia .familia-swatches--single .familia-swatch--text.familia-swatch--out-of-stock .familia-swatch__button { color: #9a948e; }

/* price row */
.familia .familia-price-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.familia.single-product .summary .familia-price-row .price {
	margin: 0;
	font-size: 18px;
	font-weight: 500;
	gap: 8px;
}
/* ref: old "text-lg line-through font-medium mr-2", new "text-lg font-extrabold" (18/28) */
.familia.single-product div.product > .summary .familia-price-row .price { margin: 0; font-size: 18px; line-height: 28px; }
.familia.single-product .summary .familia-price-row .price del { margin-right: 8px; font-size: 18px; font-weight: 400; line-height: 28px; color: var(--f-ink); opacity: 1; }
.familia.single-product .summary .familia-price-row .price ins { margin: 0; font-size: 18px; font-weight: 500; line-height: 28px; text-decoration: none; }
/* ref: the current price is "text-secondary" (sky) when there is no discount,
   ink only next to a struck-out price; the deeper sky keeps it readable */
.familia.single-product .summary .familia-price-row .price > .amount { color: var(--f-sky); }   /* "text-secondary", as on the old page */
.familia .familia-price-row__wish { display: none; }
@media (min-width: 1024px) { .familia .familia-price-row__wish { display: block; } }   /* legacy "hidden md:flex" */
/* familia-promotions appends its own "Mažiausia kaina per 30 dienų" span to the
   price HTML; the product page prints that line itself under the row
   (.familia-lowest-price), so the appended copy is hidden here and in the
   phone bar – otherwise it sat between the old and the new price. */
.familia .familia-price-row .familia-omnibus,
.familia .familia-sticky__price .familia-omnibus { display: none; }
.familia .familia-lowest-price { margin: 0; font-size: 14px; line-height: 20px; color: var(--f-ink); }   /* plain body text under the row */
/* ref: price block "mb-10 md:mb-9" inside "mb-6 md:mb-5" → 56px to the delivery line */
.familia.single-product .summary .familia-lowest-price { margin-bottom: 56px; }
.familia.single-product .summary .familia-price-row + .familia-lowest-price[hidden] + * { margin-top: 56px; }
/* ref: the delivery line ("text-sm font-semibold") sits straight on the order
   button, and "Pasimatuoti optikoje" follows 20px (mt-5) under it. The form's
   own paddings and margins (Storefront / WooCommerce) are dropped. */
.familia.single-product .summary form.cart { margin: 0; padding: 0; }
.familia.single-product .summary .woocommerce-variation-add-to-cart,
.familia.single-product .summary form.cart:not(.variations_form) { padding-top: 0; }
.familia.single-product .summary .fg { margin: 0; }
.familia.single-product .summary .single_variation_wrap .woocommerce-variation { margin: 0; }

/* wishlist heart (familia-wishlist): the card's 40px circle, static in its slot */
.familia .familia-gallery__wish .familia-card__wish,
.familia .familia-price-row__wish .familia-card__wish { position: static; line-height: 0; }

/* variant selectors: the colour (and what follows from it) is chosen with the dots */
.familia.single-product table.variations tr.familia-variation-row--hidden,
.familia.single-product table.variations.familia-variations--hidden { display: none; }
.familia.single-product .woocommerce-variation-price { display: none; }
.familia.single-product .woocommerce-variation-description:empty { display: none; }

/* delivery date / sold out (WooCommerce's own availability line, FC_Stock) */
.familia.single-product .summary p.stock::before { content: none; display: none; }   /* Storefront's Font Awesome smiley */
/* lens pages: the price block's legacy mb-10 before the eye selector */
.familia.familia-lens-product .summary .familia-price-row { margin-bottom: 24px; }
.familia.familia-lens-product .summary p.stock.familia-delivery--date { margin-bottom: 24px; }
.familia.single-product .summary p.stock.familia-delivery--date,
.familia.single-product .summary:has(.familia-delivery) > p.stock.familia-delivery--date { display: block; margin: 0 0 4px; padding: 0; background: none; color: var(--f-muted, #676767); font-size: 13px; font-weight: 400; }   /* quieter: the badge above the name carries it */

/* fast delivery above the name (2026-09-28) */
/* …and the only delivery line: the others stay in the page for familia-product.js to read (sold-out text still shows) */
.familia.single-product .summary:has(.familia-delivery-badge) p.stock.familia-delivery--date,
.familia.single-product .summary:has(.familia-delivery-badge) .woocommerce-variation-availability p.stock:not(.out-of-stock),
.familia.single-product .summary:has(.familia-delivery-badge) .fl-status .fl-delivery,
.familia.single-product .summary:has(.familia-delivery-badge) .fs-delivery { display: none !important; }
.familia.single-product .summary .familia-delivery-badge[hidden] { display: none; }
.familia.single-product .summary .familia-delivery-badge { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 12px; padding: 6px 12px; border-radius: 999px; background: var(--f-brand-wash, #e5f5ff); color: var(--f-brand, #3d291d); font-size: 14px; font-weight: 500; line-height: 1.3; }
.familia.single-product .summary .familia-delivery-badge .f-icon { flex: none; color: var(--f-sky-deep, #6293b4); }
.familia.single-product .summary p.stock.familia-delivery--soldout,
.familia.single-product .summary:has(.familia-delivery) > p.stock.familia-delivery--soldout { display: block; margin: 0 0 12px; padding: 0; background: none; color: var(--f-err); font-size: 15px; font-weight: 500; }

/* quantity stepper + order button */
.familia.single-product form.cart .familia-qty { display: inline-flex; align-items: center; gap: 4px; margin: 0 16px 0 0; }
.familia.single-product form.cart .familia-qty input.qty {
	width: 56px;
	border: 0;
	background: transparent;
	text-align: center;
	font-size: 16px;
	-moz-appearance: textfield;
}
.familia.single-product form.cart .familia-qty input.qty::-webkit-inner-spin-button,
.familia.single-product form.cart .familia-qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* legacy stepper: 40px outlined circles (default-600) with − / + */
.familia .familia-qty__btn,
.familia.single-product form.cart .familia-qty__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border: 2px solid var(--f-default-600, #b5bac2);
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--f-default-900, #666);
	font-size: 22px;
	font-weight: 400;
	line-height: 1;
	cursor: pointer;
}
.familia .familia-qty__btn:hover { border-color: var(--f-ink); color: var(--f-ink); background: transparent; }
/* ref: order button "h-16 … md:text-lg px-10 md:px-7 w-full shadow-sm uppercase", label "text-base
   font-bold"; the computed shadow on the live page is the primary button's hasShadow */
.familia.single-product .single_add_to_cart_button {
	min-height: 64px;
	flex: 1 1 auto;
	font-size: 16px;
	font-weight: 500;
	text-transform: none;
	box-shadow: 0 10px 30px 4px rgb(0 0 0 / .15);
}
.familia .single_add_to_cart_button .familia-atc__sum { margin-left: 8px; font-weight: 500; }

/* salon button + dialog (familia-salons, legacy `xc`) */
/* ref: "Pasimatuoti optikoje" is the secondary button – the same sky as the
   order button (secondaryButtonColor), h-16, bold uppercase, label centred
   (the legacy photo of a man sits at its right end: /img/tryOn-btn-image.png,
   not in this repo). mt-5 under the order button. */
.familia.single-product .familia-salons--modal { margin: 20px 0 0; padding: 0; background: none; border: 0; }
.familia .familia-salons__open {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 64px;   /* the order button's height; salons.js gives it the order button's width and place */
	padding: 0 28px;
	border: 2px solid var(--f-sky);
	border-radius: var(--f-r-sm, 4px);
	background: #fff;   /* secondary under the blue order button, blue outline (Ramunė 2026-09-30) */
	box-shadow: none;
	color: var(--f-ink);
	font-size: 16px;
	font-weight: 500;
	text-transform: none;
	cursor: pointer;
}
.familia .familia-salons__open:hover { border-color: var(--f-sky); background: var(--f-sky); color: var(--f-ink); }
.familia .familia-salons__open[hidden] { display: none; }
.familia .familia-salons__dialog {
	width: min(620px, calc(100vw - 24px));
	max-height: 88dvh;
	padding: 28px;
	border: 0;
	border-radius: var(--f-r-md, 8px);
	background: #fff;
	color: var(--f-ink);
	overflow-y: auto;
}
.familia .familia-salons__dialog::backdrop { background: rgba(20, 14, 6, .5); }
.familia .familia-salons__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
.familia .familia-salons__dialog .familia-salons__title { margin: 0; font-size: 24px; font-weight: 400; }
.familia .familia-salons__close { padding: 0 6px; border: 0; background: none; font-size: 30px; line-height: 1; color: var(--f-ink); cursor: pointer; }
.familia .familia-salons__hint { margin: 0 0 12px; font-weight: 300; }
@media (min-width: 768px) { .familia .familia-salons__hint { display: none; } }
.familia .familia-salons__search {
	width: 100%;
	height: 52px;
	margin: 0 0 24px;
	padding: 0 20px;
	border: 2px solid var(--f-default-100, #f6f6f6);
	border-radius: var(--f-r-sm, 4px);
	background: var(--f-default-100, #f6f6f6);
	font-size: 18px;
}
.familia .familia-salons__search:focus { border-color: var(--f-ink); background: #fff; outline: 0; }
.familia .familia-salons__count { margin: 0 0 10px; color: var(--f-default-600, #666); font-size: 14px; font-weight: 500; }
.familia .familia-salons__cards { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.familia .familia-salons__card { display: grid; gap: 10px; padding: 24px 28px; border: 2px solid var(--f-line, #e8eaed); border-radius: var(--f-r-sm, 4px); }
.familia .familia-salons__card[hidden] { display: none; }
.familia .familia-salons__card-title { font-size: 20px; font-weight: 400; }
.familia .familia-salons__card-phone { color: var(--f-ink); text-decoration: none; }
.familia .familia-salons__card-hours { font-weight: 300; }

/* ---------------------------------------------------------------- below the summary
   One to one with the legacy product block (`dy` in client.bundle.js) and its CSS
   (client.bundle.css `.semantic-html`, `.semantic-html.product-description`). The legacy
   Tailwind breakpoints are sm 768 / md 1024 / lg 1280. Colours are the legacy tokens
   (default-50 #fff, default-100 #f6f6f6, marker #cdd1d6, ink = text colour), written out so
   the area does not depend on the theme's palette variables. */

/* services – `uy` × 4. Below 1024: "grid grid-cols-2 gap-2.5 mb-14", each a white box
   "rounded-sm pl-5 pr-3 pt-4 pb-4 h-[148px]" with the icon (55 px, block) over the label
   "text-lg leading-[24px]"; phone order 1/3/2/4. From 1024: the full-width grey band
   "md:bg-default-100", inner "md:px-[90px]" inside the 90 px container, "md:flex
   justify-between md:py-6", each item "md:flex md:items-center md:h-14", the label
   "md:max-w-[150px] md:flex-1", from 1280 "lg:text-xl lg:ml-8". */
/* client 2026-09-25: "this grey bar … seems to be very large, can we make it smaller with smaller text": a slim
   band – 32px icons, 15px one-line labels (phones: a 2 × 2 grid of compact rows) */
.familia ul.familia-services {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	margin: 16px 0 32px;
	padding: 0;
	list-style: none;
}
.familia .familia-services__item {
	margin: 0;
	padding: 10px 12px;
	border-radius: 10px;
	background: #f6f6f6;
}
.familia .familia-services__item a {
	display: flex;
	align-items: center;
	gap: 10px;
	color: inherit;
	font-size: 14px;
	font-weight: 400;
	line-height: 18px;
	text-decoration: none;
}
.familia .familia-services__item svg { display: block; flex: none; width: 32px; height: 32px; }
.familia .familia-services__text span { white-space: nowrap; }
.familia .familia-services__item:nth-child(2) { order: 3; }
.familia .familia-services__item:nth-child(3) { order: 2; }
.familia .familia-services__item:nth-child(4) { order: 4; }
@media (min-width: 1024px) {
	.familia ul.familia-services {
		display: flex;
		justify-content: space-around;
		margin: 32px 0 0;
		padding: 12px 0;
		background: #f6f6f6;
		box-shadow: 0 0 0 100vmax #f6f6f6;
		clip-path: inset(0 -100vmax);
	}
	.familia .familia-services__item { display: flex; align-items: center; order: 0 !important; padding: 0; border-radius: 0; background: transparent; }
	.familia .familia-services__item a { gap: 12px; font-size: 15px; line-height: 20px; }
	.familia .familia-services__text { white-space: nowrap; }
}

/* descriptions – `Lt`: "flex flex-col md:grid md:grid-cols-2 w-full mb-4 md:mb-0";
   row 1 cells "bg-default-50", row 2 "bg-default-100"; left cells "px-4 md:px-[90px] py-4
   md:py-16", right cells "px-4 md:pr-[90px] py-4 md:py-16" (16 px on the left). */
.familia .familia-descriptions { display: flex; flex-direction: column; width: 100%; margin: 0 0 16px; }
.familia .familia-descriptions__cell { padding: 16px; background: #fff; }
.familia .familia-descriptions__cell--row2 { background: #f6f6f6; }
@media (min-width: 1024px) {
	.familia .familia-descriptions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; }
	.familia .familia-descriptions__cell--left { padding: 64px 90px; }
	.familia .familia-descriptions__cell--right { padding: 64px 90px 64px 16px; }
}

/* the description HTML – "text-base md:text-22 semantic-html product-description" */
.familia .familia-descriptions__text { color: inherit; font-size: 16px; font-weight: 400; line-height: 24px; overflow-wrap: break-word; }
.familia .familia-descriptions__text > :first-child { margin-top: 0; }
.familia .familia-descriptions__text p { margin: 0 0 8px; font-size: 16px; font-weight: 300; line-height: 1.375; }
.familia .familia-descriptions__text strong,
.familia .familia-descriptions__text b { font-weight: 700; }             /* legacy base `strong { 800 }` (older editor HTML) */
.familia .familia-descriptions__text .font-bold { font-weight: 500; }   /* the newer editor marks bold "font-bold" */
.familia .familia-descriptions__text em { font-style: italic; }
.familia .familia-descriptions__text a { color: inherit; text-decoration: none; }
.familia .familia-descriptions__text h1,
.familia .familia-descriptions__text h2 { margin: 0 0 28px; font-size: 32px; font-weight: 400; line-height: 1.375; }
.familia .familia-descriptions__text h3,
.familia .familia-descriptions__text h4 { margin: 0 0 8px; font-size: 22px; font-weight: 400; line-height: 1.375; }
.familia .familia-descriptions__text h5,
.familia .familia-descriptions__text h6 { margin: 0 0 4px; font-size: 12px; font-weight: 500; line-height: 1.375; }
.familia .familia-descriptions__text ul,
.familia .familia-descriptions__text ol {
	margin: 0 0 0 20px;
	padding: 0;
	font-size: 16px;
	font-weight: 300;
	line-height: 1.375;
	cursor: default;
}
.familia .familia-descriptions__text ul { list-style: disc; }
.familia .familia-descriptions__text ol { list-style: decimal; }
.familia .familia-descriptions__text li { margin: 0 0 20px; padding: 0; }
.familia .familia-descriptions__text li::marker { color: #cdd1d6; }
.familia .familia-descriptions__text ul li::marker { font-size: 18px; line-height: 28px; }   /* numbered lists keep the text size */
.familia .familia-descriptions__text li > ul,
.familia .familia-descriptions__text li > ol { margin-top: 0; }
.familia .familia-descriptions__text figure { margin: 0; }
.familia .familia-descriptions__text img { max-width: 100%; height: auto; }
.familia .familia-descriptions__text hr { margin: 0; border: 0; border-top: 1px solid; }
/* the specification table: auto width, collapsed, odd rows grey with 12 px rounded ends,
   label light / value 600; the 1 px ink frame only on the editor's `border` class (the
   CKEditor tables of older products had none on the legacy page either) */
.familia .familia-descriptions__text table {
	width: auto;
	margin: 0;
	border: 0;
	border-collapse: collapse;
	border-spacing: 0;
	background: transparent;
	font-size: 16px;
	font-weight: 300;
	line-height: 24px;
}
.familia .familia-descriptions__text table.border { border: 1px solid currentColor; }
.familia .familia-descriptions__text tbody,
.familia .familia-descriptions__text thead,
.familia .familia-descriptions__text tr,
.familia .familia-descriptions__text th,
.familia .familia-descriptions__text td { border: 0 none; background: transparent; }
.familia .familia-descriptions__text th,
.familia .familia-descriptions__text td {
	padding: 10px 28px;
	color: inherit;
	font-weight: inherit;
	text-align: left;
	vertical-align: middle;
}
.familia .familia-descriptions__text tr:nth-child(odd) td { background: #f6f6f6; }
.familia .familia-descriptions__text tr td:first-of-type { border-radius: 12px 0 0 12px; }
.familia .familia-descriptions__text tr td:last-of-type { border-radius: 0 12px 12px 0; }
.familia .familia-descriptions__text tr td:only-of-type { border-radius: 12px; }
.familia .familia-descriptions__text table strong,
.familia .familia-descriptions__text table b,
.familia .familia-descriptions__text table .font-bold { font-weight: 600; }
.familia .familia-descriptions__text table ul { margin-bottom: 32px; }
.familia .familia-descriptions__text table ul li { margin-bottom: 10px; font-size: 18px; line-height: 28px; }
/* `.semantic-html .btn` (+ .btn-primary / .btn-secondary, both sky on Familia): the video link
   of two coloured-lens descriptions and "REGISTRACIJA VIZITUI" in the lens text-with-image
   block; `.body-text` 20/22 px light. */
.familia .familia-descriptions__text .btn,
.familia .familia-twi__text .btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 64px;
	margin: 32px 0;
	padding: 0 24px;
	border: 2px solid #8dc9f7;
	border-radius: 2px;
	background: #8dc9f7;
	color: #140e06;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	letter-spacing: 0;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	cursor: pointer;
	transition: all .15s cubic-bezier(.4, 0, .2, 1);
}
.familia .familia-descriptions__text .btn-primary,
.familia .familia-twi__text .btn-primary { box-shadow: 0 10px 30px 4px rgba(0, 0, 0, .15); }
.familia .familia-descriptions__text p:last-child .btn,
.familia .familia-twi__text p:last-child .btn { margin-bottom: 0; }
.familia .familia-descriptions__text .btn:hover,
.familia .familia-twi__text .btn:hover { border-color: #6293b4; background: #6293b4; }
.familia .familia-descriptions__text .body-text,
.familia .familia-twi__text .body-text { font-size: 20px; font-weight: 300; line-height: 1.375; }
@media (min-width: 768px) {
	.familia .familia-descriptions__text .btn,
	.familia .familia-twi__text .btn { width: min-content; font-size: 18px; line-height: 28px; }
	.familia .familia-descriptions__text .body-text,
	.familia .familia-twi__text .body-text { font-size: 22px; }
}
@media (min-width: 1024px) {
	.familia .familia-descriptions__text { font-size: 22px; }
	.familia .familia-descriptions__text h1,
	.familia .familia-descriptions__text h2 { font-size: 44px; }
	.familia .familia-descriptions__text h3 { font-size: 26px; }
	.familia .familia-descriptions__text h5,
	.familia .familia-descriptions__text h6 { margin-bottom: 8px; }
	.familia .familia-descriptions__text table ul { margin-bottom: 48px; }
}

/* spacing to the page blocks: the legacy product block ends with "md:pb-24" (96 px from
   1024, nothing below – there the services' mb-14 and the descriptions' mb-4 do it), and the
   first block ("Rekomenduojame" py-16, text-with-image, IŠMATAVIMAI) brings its own padding.
   Below 1024 the product grid's 24 px row gap would add up between these rows (an empty
   descriptions wrapper is still a row), so the grid has no row gap there and the gallery →
   buy box and buy box → services distances (24 px + own margins, unchanged) are margins. */
.familia .familia-pblocks .familia-related { margin: 0; }
@media (max-width: 1023px) {
	.familia.single-product div.product { row-gap: 0; }
	.familia.single-product div.product > .summary { margin-top: 24px; }
	.familia.single-product div.product > ul.familia-services { margin-top: 40px; }
}
@media (min-width: 1024px) {
	.familia.single-product div.product > .familia-pblocks { margin-top: 40px; }
}

/* product-page blocks */
/* minmax(0, 1fr) + min-width: the related carousel's max-content width
   otherwise stretched this grid to ~2600px, pushing every image of the
   text-with-image blocks off the right edge. */
.familia .familia-pblocks { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; min-width: 0; }
.familia .familia-pblock { min-width: 0; }
.familia .familia-pblock--desktop { display: none; }
@media (min-width: 768px) {   /* legacy platform flags are sm: (768px) */
	.familia .familia-pblock--desktop { display: block; }
	.familia .familia-pblock--phone { display: none; }
}
/* text with image – legacy `textWithImage`: the block's own background across the full width
   (inline style, `--twi-bg` for the full bleed), "pb-7 sm:pb-16 pt-7 sm:pt-16" whatever the
   "no bottom margin" flag says (the storefront never read it; only `blockSpacing`, unused
   here); inner "flex flex-col sm:flex-row items-center justify-between"; text "sm:w-1/2 w-full
   max-w-[575px]" in `.semantic-html`; image "sm:w-1/2 w-full max-w-[575px] order-first mb-7
   sm:mb-0", left "sm:mr-14" / right "sm:order-last sm:ml-14", 575 × 649 inside. */
/* client 2026-09-25: the blocks "seem to be very large … huge gaps should be much smaller": 40px bands (legacy
   64px), photos at most 360px tall (legacy 649px), 32px between photo and text, smaller headings */
.familia .familia-twi { padding: 24px 0; box-shadow: 0 0 0 100vmax var(--twi-bg, transparent); clip-path: inset(0 -100vmax); }
.familia .familia-twi__inner { display: flex; flex-direction: column; align-items: center; justify-content: space-between; }
.familia .familia-twi__text { display: block; width: 100%;   /* a block, not a flex column: the paragraphs' margins collapse as in the legacy inner div */  max-width: 575px; color: inherit; font-size: 14px; font-weight: 400; line-height: 20px; }
.familia .familia-twi__text p { margin: 0 0 12px; font-size: 16px; font-weight: 400; line-height: 1.5; }
.familia .familia-twi__text strong,
.familia .familia-twi__text b { font-weight: 700; }
.familia .familia-twi__text h2 { margin: 0 0 16px; font-size: 24px; font-weight: 400; line-height: 1.25; }
.familia .familia-twi__text h3,
.familia .familia-twi__text h4,
.familia .familia-twi__text h2.familia-twi__h3 { margin: 0 0 12px; font-size: 20px; font-weight: 500; line-height: 1.3; }   /* __h3: an H3 promoted to H2 for the outline (FC_Product_Page::promote_headings), H3 look kept */
/* the legacy text wraps its headings (and the lead line) in <strong>: one medium weight, as familia.lt's titles */
.familia .familia-twi__text :is(h2, h3, h4) :is(strong, b) { font-weight: inherit; }
.familia .familia-twi__text a { color: inherit; text-decoration: none; }
.familia .familia-twi__media { order: -1; display: flex; justify-content: center; align-items: center; width: 100%; max-width: 575px; margin-bottom: 20px; }
.familia .familia-twi__media img { display: block; max-width: 100%; max-height: 280px; width: auto; height: auto; object-fit: contain; }
.familia .familia-twi__media img.familia-pblock__img--bundled { max-height: 320px; }
@media (min-width: 768px) {
	.familia .familia-twi { padding: 40px 0; }
	/* both halves fill the page's rail, so the blocks line up with Išmatavimai / Savybės (client 2026-09-25) */
	.familia .familia-twi__inner { flex-direction: row; justify-content: space-between; gap: 48px; }
	.familia .familia-twi__text, .familia .familia-twi__media { flex: 1 1 0; width: auto; max-width: none; }
	.familia .familia-twi__media { margin-bottom: 0; }
	.familia .familia-twi__media img { max-height: 360px; }
	/* the bundled picture (case + cloth, cropped to its subject on the band's own #f6f6f6): as wide as its half, against
	   the rail's outer edge like the product photos of the other blocks (client 2026-09-30: "much smaller … does not end
	   on the right with the same edge") */
	.familia .familia-twi--image-right .familia-twi__media:has(.familia-pblock__img--bundled) { justify-content: flex-end; }
	.familia .familia-twi--image-left .familia-twi__media:has(.familia-pblock__img--bundled) { justify-content: flex-start; }
	.familia .familia-twi__media img.familia-pblock__img--bundled { max-height: 400px; }
	.familia .familia-twi--image-left .familia-twi__media { order: -1; }
	.familia .familia-twi--image-right .familia-twi__media { order: 2; }
}
@media (min-width: 1024px) {
	.familia .familia-twi__text h2 { font-size: 30px; }
	.familia .familia-twi__text h3,
	.familia .familia-twi__text h2.familia-twi__h3 { font-size: 24px; }
}

/* IŠMATAVIMAI + Savybės – legacy `productAttributes` (`Ew`, `Cw`, rows `Lg`): full-width
   "bg-default-100"; dimensions "md:pb-16 pt-14 md:pt-24", title "font-bold mb-14 uppercase
   text-base md:text-26 md:mb-24" (24 px line), a slider below 1024 ("md:hidden", each drawing
   "pb-24 w-full md:pb-0"), three in a row from 1024 ("md:flex justify-between space-x-4");
   caption "text-base font-light mb-4", the lens drawing "mt-11"; properties "pb-16 md:pb-32
   pt-10 md:pt-20", title "mb-6 md:mb-7", list "flex flex-col flex-wrap md:max-h-[145px]
   md:w-[70%]", row "py-2 md:py-1 md:mr-8", label "font-light text-base md:text-lg pr-2
   w-[140px]", value "text-base md:text-lg mr-1". md = 1024. */
.familia .familia-properties { background: #f6f6f6; box-shadow: 0 0 0 100vmax #f6f6f6; clip-path: inset(0 -100vmax); }
.familia .familia-properties__title { margin: 0 0 16px; font-size: 16px; font-weight: 500; line-height: 24px; text-transform: none; letter-spacing: 0; }
.familia .familia-dimensions { padding: 32px 0 0; }
.familia .familia-dimensions .familia-properties__title { margin-bottom: 20px; }
/* phones: the three measurements side by side (client 2026-09-30: the legacy swipe slider showed only "Lęšio
   skersmuo" – nothing told that the other two were a swipe away): label, value, then the drawing */
.familia .familia-dimensions__list { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 12px; align-items: stretch; }   /* 1–3 equal columns (an implausible measurement is left out) */
.familia .familia-dimension { display: flex; flex-direction: column; align-items: center; margin: 0; padding-bottom: 28px; text-align: center; }
.familia .familia-dimension figcaption { margin: 0 0 auto; padding-bottom: 10px; font-size: 13px; font-weight: 300; line-height: 18px; }
.familia .familia-dimension__label { display: block; }
.familia .familia-dimension__value, .familia .familia-dimension__suffix { font-weight: 500; font-size: 15px; }
.familia .familia-dimension img { display: block; width: 100%; max-width: 120px; height: auto; max-height: 64px; object-fit: contain; margin: 0 auto; }
.familia .familia-props { padding: 24px 0 32px; }
.familia dl.familia-props__list { display: flex; flex-direction: column; flex-wrap: wrap; margin: 0; }
.familia .familia-props__row { display: flex; padding: 8px 0; }
.familia .familia-props__row dt { flex: 0 0 140px; width: 140px; min-width: 140px; padding-right: 8px; overflow: hidden; text-overflow: ellipsis; font-size: 16px; font-weight: 300; line-height: 24px; }
.familia .familia-props__row dd { margin: 0; font-size: 16px; font-weight: 400; line-height: 24px; }
.familia .familia-props__row dd span + span { margin-left: 4px; }
@media (min-width: 1024px) {
	.familia .familia-properties__title { font-size: 20px; }
	.familia .familia-dimensions { padding: 40px 0 24px; }
	.familia .familia-dimensions .familia-properties__title { margin-bottom: 24px; }
	.familia .familia-dimensions__list { gap: 16px; }
	.familia .familia-dimension { padding-bottom: 0; }
	.familia .familia-dimension figcaption { font-size: 16px; line-height: 24px; }
	.familia .familia-dimension__label { display: inline; }
	.familia .familia-dimension__value, .familia .familia-dimension__suffix { font-weight: inherit; font-size: inherit; }
	.familia .familia-dimension img { max-width: 100%; max-height: 140px; }
	.familia .familia-props { padding: 24px 0 40px; }
	.familia .familia-props .familia-properties__title { margin-bottom: 16px; }
	.familia dl.familia-props__list { max-height: 145px; width: 70%; }
	.familia .familia-props__row { margin-right: 32px; padding: 4px 0; }
	.familia .familia-props__row dt, .familia .familia-props__row dd { font-size: 16px; line-height: 24px; }
}

/* Rekomenduojame carousel */
.familia .familia-related { padding: 40px 0; }
.familia .familia-related__heading { margin: 0 0 20px; }
.familia .familia-related__heading h3,
.familia .familia-related__heading h2 { margin: 0; font-size: 22px; font-weight: 400; line-height: 1.375; }   /* the block heading is `.semantic-html h3`: 22 px, 26 px from 1024 */
@media (min-width: 1024px) {
	.familia .familia-related__heading h3,
	.familia .familia-related__heading h2 { font-size: 24px; }
}
.familia .familia-carousel { position: relative; }
/* ref (Ef): one card per view, "sm:calc(50%-30px) md:calc(33.33%-30px)", gap-x-[30px] */
.familia .familia-carousel ul.products {
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: 100%;
	grid-template-columns: none;
	gap: 30px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scrollbar-width: none;
	margin: 0;
}
.familia .familia-carousel ul.products::-webkit-scrollbar { display: none; }
.familia.single-product .familia-carousel ul.products li.product,
.familia.single-product .familia-carousel ul.products[class*="columns-"] li.product { width: auto; max-width: none; margin: 0; scroll-snap-align: start; float: none; }
.familia .familia-carousel__prev,
.familia .familia-carousel__next {
	position: absolute;
	top: -56px;                         /* centred on the heading line (20px gap above the row) */
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	min-height: 40px;
	padding: 0;
	border: 1.5px solid currentColor;   /* legacy circled chevrons */
	border-radius: 50%;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	cursor: pointer;
}
.familia .familia-carousel__prev { right: 50px; }   /* mr-2.5 */
.familia .familia-carousel__next { right: 0; }
.familia .familia-carousel__prev::before { content: '‹'; font-size: 24px; line-height: 1; }
.familia .familia-carousel__next::before { content: '›'; font-size: 24px; line-height: 1; }
.familia .familia-carousel__prev:disabled,
.familia .familia-carousel__next:disabled { color: var(--f-default-600); cursor: default; }
@media (min-width: 768px) {
	.familia .familia-carousel ul.products { grid-auto-columns: calc(50% - 30px); }
}
@media (min-width: 1024px) {
	.familia .familia-carousel ul.products { grid-auto-columns: calc((100% - 60px) / 3); }
}
@media (min-width: 1280px) {   /* four in view, as the listings */
	.familia .familia-carousel ul.products { grid-auto-columns: calc((100% - 90px) / 4); }
}

/* "added to cart" dialog (legacy `Vg`) */
.familia .familia-added {
	width: min(900px, calc(100vw - 24px));
	max-height: 90dvh;
	padding: 0;
	border: 0;
	border-radius: var(--f-r-md, 8px);
	background: #fff;
	color: var(--f-ink);
	overflow-y: auto;
}
.familia .familia-added::backdrop { background: rgba(20, 14, 6, .5); }
.familia .familia-added__box { position: relative; display: flex; flex-direction: column; align-items: center; padding: 40px 24px 48px; }
.familia .familia-added__box > svg { width: 58px; height: 60px; color: var(--f-ok, #05c46b); }
.familia .familia-added__close { position: absolute; top: 12px; right: 16px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--f-ink); }
.familia .familia-added__title { margin: 24px 0 28px; text-align: center; font-size: 22px; font-weight: 400; line-height: 1.3; }
.familia .familia-added__actions { display: flex; flex-direction: column-reverse; gap: 20px; width: 100%; max-width: 640px; }
.familia .familia-added__actions > * { flex: 1; justify-content: center; }
.familia .familia-added .familia-related { width: 100%; padding: 48px 0 0; }
.familia .familia-added .familia-related__heading { margin-bottom: 38px; }
@media (min-width: 640px) {
	.familia .familia-added__box { padding: 48px 58px 77px; }
	.familia .familia-added__title { margin: 40px 64px 48px; font-size: 26px; }
	.familia .familia-added__actions { flex-direction: row; }
}

/* ==================================================================
   QUANTITY – one quiet box (here, after the legacy stepper rules above, so it wins) instead of two outlined circles (client 2026-09-28: "the + − stands out and does not fit
   the card – find a better place and design"): a 1px frame like the other fields, − and + inside it, the number in
   the middle. Normal products: left of "Užsakyti", same height. Lens pages: a field of its own, "Kiekis" above it,
   like "Bazinė kreivė" / "Stiprumas".
   ================================================================== */
.familia.single-product form.cart .familia-qty,
.familia .familia-lens .fl-qty {
	display: inline-grid;
	grid-template-columns: 44px 48px 44px;
	align-items: stretch;
	gap: 0;
	height: 48px;
	margin: 0;
	padding: 0;
	border: 1px solid #d9d9d9;
	border-radius: 6px;
	background: #fff;
	overflow: hidden;
}
.familia.single-product form.cart .familia-qty { align-self: stretch; height: auto; min-height: 48px; margin-right: 8px; }
.familia.single-product form.cart .familia-qty__btn,
.familia .familia-qty__btn,
.familia .familia-lens .fl-qty button {
	width: auto;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	color: var(--f-muted, #676767);
	font-size: 20px;
	font-weight: 300;
	line-height: 1;
	cursor: pointer;
}
.familia.single-product form.cart .familia-qty__btn:hover,
.familia .familia-qty__btn:hover,
.familia .familia-lens .fl-qty button:hover { border: 0; background: var(--f-default-100, #f6f6f6); color: var(--f-ink); }
.familia.single-product form.cart .familia-qty input.qty,
.familia .familia-lens .fl-qty input {
	width: 100%;
	height: auto;
	min-height: 0;
	padding: 0;
	border: 0;
	background: transparent;
	box-shadow: none;
	color: var(--f-ink);
	font-size: 16px;
	font-weight: 500;
	text-align: center;
	-moz-appearance: textfield;
}
.familia .familia-lens .fl-qty input::-webkit-inner-spin-button,
.familia .familia-lens .fl-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.familia.single-product form.cart .familia-qty:focus-within,
.familia .familia-lens .fl-qty:focus-within { border-color: var(--f-ink); }
/* lens pages: a labelled field under the parameters, not a centred row of its own */
.familia .familia-lens .fl-qty { grid-column: auto; position: relative; margin: 26px 0 8px; overflow: visible; }
.familia .familia-lens .fl-qty::before { content: "Kiekis"; position: absolute; left: 0; bottom: calc(100% + 8px); color: var(--f-ink); font-size: 14px; font-weight: 500; white-space: nowrap; }
.familia .familia-lens .fl-qty > * { border-radius: 0; }
@media (max-width: 1023px) { .familia .familia-lens .fl-qty input { flex: none; } }

/* photo colour tiles: a light colour without a photo (white …) keeps a visible dot – a thin ring round it */
.familia .familia-swatches--thumbs .familia-swatch--light:not(.familia-swatch--thumb) .familia-swatch__button { position: relative; }
.familia .familia-swatches--thumbs .familia-swatch--light:not(.familia-swatch--thumb) .familia-swatch__button::after { content: ""; position: absolute; top: 11px; bottom: 11px; left: 23px; right: 23px; border: 1px solid #cfcfcf; }

/* quantity = the same field as the selects around it (client 2026-09-28: "not like the rest"): their 2px #e8eaed frame,
   2px corners, 48px, 18px type; − at the left edge, the number in the middle, + at the right edge – on lens pages as
   wide as the parameter fields, on other products a 150px field left of "Užsakyti" (its 64px height) */
.familia.single-product form.cart .familia-qty,
.familia .familia-lens .fl-qty {
	grid-template-columns: 48px minmax(0, 1fr) 48px;
	border: 2px solid var(--f-default-300, #e8eaed);
	border-radius: 2px;
}
.familia .familia-lens .fl-qty { display: grid; width: 100%; height: 48px; }
.familia.single-product form.cart .familia-qty { width: 150px; }
.familia.single-product form.cart .familia-qty input.qty,
.familia .familia-lens .fl-qty input { font-size: 18px; font-weight: 400; }
.familia.single-product form.cart .familia-qty__btn,
.familia .familia-qty__btn,
.familia .familia-lens .fl-qty button { color: var(--f-ink); font-size: 22px; font-weight: 300; }
.familia.single-product form.cart .familia-qty:focus-within,
.familia .familia-lens .fl-qty:focus-within { border-color: var(--f-default-500, #b8bdc5); }

/* description, one text in a row (QA 2026-09-28 #25): full width, a light heading, two balanced columns when long,
   "Privalumai:"-style lines as subheadings, sky list markers, calmer spacing */
.familia .familia-descriptions__cell--wide { grid-column: 1 / -1; }
@media (min-width: 768px) {
	.familia .familia-descriptions__cell--wide { padding: 56px 90px; }
}
.familia .familia-descriptions__title { margin: 0 0 24px; color: var(--f-ink); font-size: clamp(24px, 2.4vw, 30px); font-weight: 300; line-height: 1.2; }
.familia .familia-descriptions__cell--wide .familia-descriptions__text { max-width: 1080px; }
@media (min-width: 1024px) {
	.familia .familia-descriptions__text--cols { columns: 2; column-gap: 72px; }
	.familia .familia-descriptions__text--cols > * { break-inside: avoid; }
	.familia .familia-descriptions__text--cols li { break-inside: avoid; }
}
.familia .familia-descriptions__cell--wide .familia-descriptions__text p { margin: 0 0 12px; line-height: 1.6; }
.familia .familia-descriptions__cell--wide .familia-descriptions__text p.familia-desc-sub { margin: 20px 0 8px; font-size: 17px; font-weight: 500; line-height: 1.4; break-after: avoid; }
.familia .familia-descriptions__cell--wide .familia-descriptions__text p.familia-desc-sub:first-child { margin-top: 0; }
.familia .familia-descriptions__cell--wide .familia-descriptions__text p > :is(strong, b) { font-weight: 500; }   /* bold words in running text: medium, not heavy */
.familia .familia-descriptions__cell--wide .familia-descriptions__text ul,
.familia .familia-descriptions__cell--wide .familia-descriptions__text ol { margin: 0 0 12px 20px; line-height: 1.5; }
.familia .familia-descriptions__cell--wide .familia-descriptions__text li { margin: 0 0 8px; }
.familia .familia-descriptions__cell--wide .familia-descriptions__text li::marker { color: var(--f-sky-deep, #6293b4); }


/* Išmatavimai | Savybės side by side (QA 2026-09-28 #32 "old school – like Alensa: the drawings to the LEFT, the
   descriptions to the right"): one grey band, the three drawings on the left, the properties as a two-column list
   with hairlines on the right; stacked on phones and tablets. */
@media (min-width: 1024px) {
	.familia .familia-properties__inner:has(.familia-dimensions):has(.familia-props) {
		display: grid;
		grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
		gap: 64px;
		align-items: start;
		padding: 40px 0 44px;
	}
	.familia .familia-properties__inner:has(.familia-dimensions):has(.familia-props) .familia-dimensions,
	.familia .familia-properties__inner:has(.familia-dimensions):has(.familia-props) .familia-props { padding: 0; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimensions__list { gap: 20px; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimension figcaption { font-size: 14px; line-height: 20px; margin-bottom: 12px; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimension img { max-height: 96px; }
	.familia .familia-properties__inner:has(.familia-dimensions) dl.familia-props__list { display: block; width: auto; max-height: none; }
	.familia .familia-properties__inner:has(.familia-dimensions) .familia-props__row { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr); gap: 16px; margin: 0; padding: 9px 0; border-bottom: 1px solid #e2e2e2; }
	.familia .familia-properties__inner:has(.familia-dimensions) .familia-props__row:first-child { border-top: 1px solid #e2e2e2; }
	.familia .familia-properties__inner:has(.familia-dimensions) .familia-props__row dt { width: auto; min-width: 0; flex: none; color: var(--f-muted, #676767); font-size: 15px; font-weight: 400; line-height: 22px; }
	.familia .familia-properties__inner:has(.familia-dimensions) .familia-props__row dd { font-size: 15px; font-weight: 500; line-height: 22px; }
}

/* benefits under the photos (QA 2026-09-28 #44): no band and no icons – ✓ text links in a row; desktop in the gallery
   column (the buying column spans both rows), phones straight under the photos */
.familia.single-product div.product > ul.familia-services {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 22px;
	margin: 12px 0 20px;
	padding: 0;
	border: 0;
	background: none;
	box-shadow: none;
	clip-path: none;
	list-style: none;
}
.familia.single-product div.product > ul.familia-services .familia-services__item { order: 0 !important; display: block; margin: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.familia.single-product div.product > ul.familia-services .familia-services__item a { display: inline-flex; align-items: baseline; gap: 6px; padding: 0; color: var(--f-ink); font-size: 14px; font-weight: 400; line-height: 20px; text-decoration: none; }
.familia.single-product div.product > ul.familia-services .familia-services__item a::before { content: "✓"; color: var(--f-sky-deep, #6293b4); font-weight: 600; }
.familia.single-product div.product > ul.familia-services .familia-services__item a:hover .familia-services__text { text-decoration: underline; text-underline-offset: 3px; }
.familia.single-product div.product > ul.familia-services .familia-services__item svg { display: none; }
.familia.single-product div.product > ul.familia-services .familia-services__text span { white-space: normal; }
@media (min-width: 1024px) {
	.familia.single-product div.product { grid-template-rows: auto 1fr; }   /* row 1 = the photos' height; the buying column's extra height goes to row 2 */
	.familia.single-product div.product > .familia-gallery { grid-row: 1; }
	.familia.single-product div.product > ul.familia-services { grid-column: 1; grid-row: 2; align-self: start; justify-content: center; margin: 16px 0 32px; }
	.familia.single-product div.product > .summary { grid-row: 1 / span 2; }
}


/* Išmatavimai wider, Savybės narrower, the three drawings sized alike and aligned (client 2026-09-28): the two front views
   share one frame box (the bridge drawing is cropped to the lens-diameter one), each drawing takes its column's width
   up to 240px, all sit on one baseline under their captions */
@media (min-width: 1024px) {
	.familia .familia-properties__inner:has(.familia-dimensions):has(.familia-props) { grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 56px; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimensions__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: end; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimension { display: flex; flex-direction: column; align-items: center; height: 100%; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimension figcaption { margin-bottom: auto; padding-bottom: 14px; white-space: nowrap; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimension img { width: 100%; max-width: 240px; height: auto; max-height: none; margin: 0 auto; }
	.familia .familia-properties__inner:has(.familia-props) .familia-dimension--height img { margin-top: 0; }
}

/* "Rekomenduojame" inside the added-to-cart dialog: four cards of ~180 px – an old + new price on one line ran past the
   card into the next one (2026-10-01). Smaller price there, and it may wrap (new price under the old) as the last resort. */
.familia .familia-added ul.products li.product .price { flex-wrap: wrap; row-gap: 2px; max-width: 100%; font-size: 15px; white-space: normal; }
.familia .familia-added ul.products li.product .price del,
.familia .familia-added ul.products li.product .price ins { white-space: nowrap; }
.familia .familia-added ul.products li.product .price ins { margin-left: 6px; }
