/*
Theme Name: Rúmföt
Theme URI: https://rumfot.is
Description: Custom block theme for Rúmföt.is — calm, Nordic, linen and heather.
Version: 1.23.0
Requires at least: 6.6
Requires PHP: 8.1
License: Proprietary (theme code). Bundled fonts: SIL Open Font License 1.1 (see assets/fonts).
Text Domain: rumfot
*/

/* Small refinements theme.json can't express. Keep this file short. */

/* Sticky, slightly translucent header */
.rf-header {
	backdrop-filter: saturate(140%) blur(8px);
	background-color: color-mix(in srgb, var(--wp--preset--color--base) 88%, transparent);
}
/* backdrop-filter makes the header the containing block for position:fixed children, which trapped the
   mobile menu overlay inside the header bar. No blur on phones (where the overlay menu is used) or while it's open. */
@media (max-width: 781px) { .rf-header { backdrop-filter: none; background-color: var(--wp--preset--color--base); } }
.rf-header:has(.is-menu-open) { backdrop-filter: none; }

/* Wordmark: serif name with a quiet ".is" */
.rf-wordmark { letter-spacing: -0.01em; }
.rf-wordmark .rf-tld { color: var(--wp--preset--color--accent); font-style: italic; }

/* Hairline rule used between sections */
.rf-rule { border: 0; border-top: 1px solid var(--wp--preset--color--line); }

/* Category tiles: six equal squares, each with a frosted label (3 per row; 2 on tablets and phones) */
.rf-cats {
	list-style: none; padding: 0; margin-top: var(--wp--preset--spacing--50);
	display: grid; gap: 16px; grid-template-columns: repeat(3, minmax(0, 1fr));
}
.rf-cat { aspect-ratio: 1 / 1; }
.rf-cat a {
	position: relative; display: block; height: 100%; overflow: hidden; isolation: isolate;
	background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast); text-decoration: none;
	border-radius: 15px; border: 1px solid var(--wp--preset--color--line);
	box-shadow: 0 1px 1px rgb(20 22 26 / .10), 0 2px 3px rgb(20 22 26 / .10), 0 6px 10px -2px rgb(20 22 26 / .18);
	transition: box-shadow .3s ease, border-color .3s ease, transform .3s ease;
}
.rf-cat a:hover, .rf-cat a:focus-visible {
	border-color: var(--wp--preset--color--accent-2); transform: translateY(-3px);
	box-shadow: 0 1px 1px rgb(20 22 26 / .10), 0 4px 6px rgb(20 22 26 / .12), 0 12px 18px -4px rgb(20 22 26 / .24);
}
.rf-cat a:focus-visible { outline: 2px solid var(--wp--preset--color--accent); outline-offset: 3px; }
.rf-cat__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2,.7,.2,1); z-index: -1; }
.rf-cat__strips { position: absolute; inset: 0; z-index: -1; display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; background: var(--wp--preset--color--base); }
.rf-cat__strips .rf-cat__img { position: static; z-index: auto; }
.rf-cat a:hover .rf-cat__img, .rf-cat a:focus-visible .rf-cat__img { transform: scale(1.05); }
/* Per-tile crop: centre the sheet corner on Lök, the masks on Silki */
.rf-cat--lok .rf-cat__img { object-position: 50% 40%; background: #fff; }
.rf-cat--silki .rf-cat__img { object-position: 50% 30%; }
.rf-cat--koddar .rf-cat__img { object-position: 8% 50%; } /* keep the Rúmföt.is tag on the pillow in view */
/* Frosted label: name + product count on the left, gold arrow on the right */
.rf-cat__label {
	position: absolute; left: 12px; right: 12px; bottom: 12px;
	display: flex; align-items: center; justify-content: space-between; gap: .75rem;
	padding: .7rem .75rem .7rem 1rem; border-radius: 11px;
	background: rgb(255 255 255 / .80); -webkit-backdrop-filter: blur(10px) saturate(1.4); backdrop-filter: blur(10px) saturate(1.4);
	border: 1px solid rgb(255 255 255 / .7); box-shadow: 0 4px 14px -6px rgb(20 22 26 / .35);
	transition: background .3s ease;
}
.rf-cat a:hover .rf-cat__label, .rf-cat a:focus-visible .rf-cat__label { background: rgb(255 255 255 / .94); }
.rf-cat__text { display: flex; flex-direction: column; min-width: 0; }
.rf-cat__name { font-family: var(--wp--preset--font-family--serif); font-size: var(--wp--preset--font-size--large); line-height: 1.1; }
.rf-cat__count { margin-top: .15rem; font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: var(--wp--preset--color--contrast-2); }
.rf-cat__go {
	flex: none; width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
	border: 1px solid var(--wp--preset--color--accent); color: var(--wp--preset--color--accent);
	transition: background .3s ease, color .3s ease, transform .3s ease;
}
.rf-cat__go svg { width: 1rem; height: 1rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.rf-cat a:hover .rf-cat__go, .rf-cat a:focus-visible .rf-cat__go { background: var(--wp--preset--color--accent); color: #fff; transform: translateX(2px); }
/* Tablets and phones: two squares per row */
@media (max-width: 1000px) { .rf-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) {
	.rf-cats { gap: 10px; }
	.rf-cat a { border-radius: 12px; }
	.rf-cat__label { left: 8px; right: 8px; bottom: 8px; padding: .5rem .5rem .5rem .7rem; border-radius: 9px; }
	.rf-cat__name { font-size: var(--wp--preset--font-size--medium); }
	.rf-cat__count { font-size: .625rem; }
	.rf-cat__go { width: 1.7rem; height: 1.7rem; }
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
	.rf-cat__img, .rf-cat__go, .rf-cat__label, .rf-cat a { transition: none; }
	.rf-cat a:hover { transform: none; }
	.rf-cat a:hover .rf-cat__img { transform: none; }
}

/* Header search: plain icon button, not a filled block */
.rf-header .wp-block-search__button {
	background: transparent;
	color: var(--wp--preset--color--contrast);
	padding: 0.35rem;
	border: 0;
	min-width: 0;
}
.rf-header .wp-block-search__button:hover { color: var(--wp--preset--color--accent); }
.rf-header .wp-block-search__button svg { width: 22px; height: 22px; fill: currentColor; }
.rf-header .wp-block-search__input { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); }

/* Full-width hairline (WP's default separator styling shrinks it) */
hr.rf-rule { width: 100%; max-width: none; height: 0; background: none; opacity: 1; }

/* Product grid: add-to-cart aligned with the text above it */
.wc-block-components-product-button { justify-content: flex-start; align-items: flex-start; }
.wc-block-components-product-button .wp-block-button__link { margin-inline: 0; }

/* Sort dropdown */
.woocommerce-ordering select,
.wc-block-catalog-sorting select {
	appearance: none;
	background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%2323262B' stroke-width='1.3'/%3E%3C/svg%3E") no-repeat right .6rem center;
	border: 1px solid var(--wp--preset--color--line);
	border-radius: 2px;
	padding: .45rem 2rem .45rem .75rem;
	font: inherit;
	color: var(--wp--preset--color--contrast);
}

/* ---- Category sidebar (rumfot/category-sidebar) ---- */
.rf-catnav__title {
	font-family: var(--wp--preset--font-family--serif);
	font-size: var(--wp--preset--font-size--x-large);
	line-height: 1.1;
	margin: 0 0 var(--wp--preset--spacing--30);
}
.rf-catnav__list, .rf-catnav__sub { list-style: none; margin: 0; padding: 0; }
.rf-catnav__item a {
	display: block;
	padding: .45rem 0 .45rem .9rem;
	border-left: 2px solid var(--wp--preset--color--line);
	text-decoration: none;
	color: var(--wp--preset--color--contrast-2);
	font-size: var(--wp--preset--font-size--small);
}
.rf-catnav__item a:hover { color: var(--wp--preset--color--contrast); border-left-color: var(--wp--preset--color--accent-2); }
.rf-catnav__item.is-active > a { color: var(--wp--preset--color--contrast); font-weight: 600; }
.rf-catnav__item > a[aria-current="page"] { border-left-color: var(--wp--preset--color--accent); color: var(--wp--preset--color--accent); }
.rf-catnav__sub .rf-catnav__item a { padding-left: 1.7rem; font-size: var(--wp--preset--font-size--x-small); }
.rf-catnav__back {
	display: inline-block;
	margin-top: var(--wp--preset--spacing--40);
	font-size: var(--wp--preset--font-size--x-small);
	color: var(--wp--preset--color--contrast-2);
}
.rf-shop-sidebar { position: sticky; top: 6rem; align-self: flex-start; }

/* Phones: sidebar becomes a horizontally scrolling row of chips above the products */
@media (max-width: 781px) {
	.rf-shop-sidebar { position: static; }
	.rf-catnav__title { font-size: var(--wp--preset--font-size--large); }
	.rf-catnav__list { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: none; }
	.rf-catnav__sub { display: none; }
	.rf-catnav__item a {
		white-space: nowrap;
		border: 1px solid var(--wp--preset--color--line);
		border-radius: 999px;
		padding: .4rem .9rem;
		background: var(--wp--preset--color--surface);
	}
	.rf-catnav__item > a[aria-current="page"] { background: var(--wp--preset--color--contrast); border-color: var(--wp--preset--color--contrast); color: var(--wp--preset--color--surface); }
	.rf-catnav__back { display: none; }
}

/* Sidebar title quieter than the page title */
.rf-catnav__title { font-size: var(--wp--preset--font-size--large); color: var(--wp--preset--color--contrast-2); }
/* Product buttons: no wrapping on narrow cards */
@media (max-width: 781px) {
	.wc-block-components-product-button .wp-block-button__link { letter-spacing: .06em; padding-inline: .9rem; white-space: nowrap; }
}

/* Product size line under the short description (functions.php, pa_staerd) */
.rf-size { margin: .25rem 0 0; }
.rf-size strong { font-weight: 600; }

/* Logo (assets/images/logo.png, black on transparent) */
.rf-logo { margin: 0; }
.rf-logo a { display: inline-block; }
.rf-logo img { display: block; height: 44px; width: auto; }
.rf-logo--footer img { height: 52px; }
@media (max-width: 600px) { .rf-logo img { height: 34px; } }

/* Top info bar (parts/header.html). The whole header template part is sticky with a
   negative top equal to the bar height, so the bar scrolls away and the menu stays. */
:root { --rf-topbar-h: 2.25rem; }
.wp-site-blocks > .wp-block-template-part:has(.rf-header) {
	position: sticky; top: calc(-1 * var(--rf-topbar-h)); z-index: 50;
}
.rf-topbar {
	background: var(--wp--preset--color--base-2); color: var(--wp--preset--color--contrast);
	border-bottom: 1px solid var(--wp--preset--color--accent-2);
	height: var(--rf-topbar-h); overflow: hidden;
	padding-left: var(--wp--style--root--padding-left); padding-right: var(--wp--style--root--padding-right);
}
.rf-topbar__inner {
	margin: 0 auto !important; height: var(--rf-topbar-h);
	display: flex; align-items: center; justify-content: space-between; gap: 1.5rem;
	font-size: .8125rem; letter-spacing: .02em; white-space: nowrap;
}
.rf-topbar a { color: inherit; text-decoration: none; }
.rf-topbar a:hover, .rf-topbar a:focus-visible { color: var(--wp--preset--color--accent); text-decoration: underline; }
@media (max-width: 781px) {
	.rf-topbar__addr { display: none; }
	.rf-topbar__inner { justify-content: center; font-size: .75rem; gap: 1rem; }
}
@media (max-width: 420px) { .rf-topbar__tel { display: none; } }

/* Footer: visit column */
.rf-visit p { margin-top: 0; margin-bottom: .9rem; line-height: 1.7; }
.rf-visit h2 + p { margin-top: 1.4rem; }
.rf-visit a { color: inherit; }

/* Hafa samband page */
.rf-hours { width: 100%; border-collapse: collapse; }
.rf-hours td { padding: .55rem 0; border-bottom: 1px solid var(--wp--preset--color--line); }
.rf-hours td:last-child { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 1rem; }
.rf-contact-card { background: var(--wp--preset--color--surface); border: 1px solid var(--wp--preset--color--line); padding: var(--wp--preset--spacing--50); }
.rf-contact-card h2 { margin-top: 0; }

/* Front-page hero illustration: small, landscape card */
.rf-hero-photo { margin: 0; aspect-ratio: 16 / 10; max-height: 420px; overflow: hidden; width: 100%; }
.rf-hero-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; display: block; }


/* Cart count bubble: gold circle with a white number, readable on the white header */
.wc-block-mini-cart__badge {
	background-color: var(--wp--preset--color--accent) !important;
	color: #fff !important;
	font-weight: 600; font-size: .75em;
	border: 2px solid var(--wp--preset--color--base);
}

/* Front page "Valdar vörur": six small products, each photo in a 2px gold frame */
.rf-new .wc-block-product-template {
	display: grid !important; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--wp--preset--spacing--30);
}
.rf-new .wc-block-product-template > li { width: auto !important; max-width: none !important; margin: 0 !important; }
.rf-new .wc-block-components-product-image {
	border: 2px solid var(--wp--preset--color--accent); border-radius: 4px; overflow: hidden;
	box-shadow: 0 6px 16px -10px rgb(20 22 26 / .45); transition: border-color .3s ease;
}
.rf-new li:hover .wc-block-components-product-image { border-color: var(--wp--preset--color--contrast); }
.rf-new .wp-block-post-title { line-height: 1.25; }
.rf-new .wc-block-components-product-price { font-size: var(--wp--preset--font-size--x-small); }
/* Medium screens keep six in a row (small pictures); narrow ones go to three, capped so they never get bigger than on desktop */
@media (max-width: 820px) { .rf-new .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 620px; } }
@media (max-width: 600px) { .rf-new .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Black Friday banner (patterns/black-friday.php) ---------- */
.rf-bf {
	--bf-yellow: #FFD60A; --bf-black: #0A0A0B;
	position: relative; overflow: hidden; margin: 0 !important; max-width: none !important;
	background:
		radial-gradient(60% 90% at 85% 40%, rgb(255 214 10 / .16), transparent 70%),
		repeating-linear-gradient(135deg, rgb(255 255 255 / .025) 0 2px, transparent 2px 14px),
		var(--bf-black);
	color: #fff; min-height: 460px; display: flex; flex-direction: column;
}
.rf-bf::before { /* thin yellow rule along the top */
	content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: var(--bf-yellow);
}
.rf-bf__inner {
	flex: 1; width: 100%; max-width: 1280px; margin: 0 auto; box-sizing: border-box;
	padding: var(--wp--preset--spacing--60) var(--wp--style--root--padding-right) var(--wp--preset--spacing--50) var(--wp--style--root--padding-left);
	display: grid; grid-template-columns: 1.15fr 1fr; gap: var(--wp--preset--spacing--60); align-items: center;
}
.rf-bf p { margin: 0; }
.rf-bf__eyebrow {
	display: inline-flex; align-items: center; gap: .6rem; font-size: .8125rem; font-weight: 600;
	letter-spacing: .22em; text-transform: uppercase; color: var(--bf-yellow);
}
.rf-bf__dot { width: .55rem; height: .55rem; border-radius: 50%; background: var(--bf-yellow); box-shadow: 0 0 0 0 rgb(255 214 10 / .7); animation: rf-bf-pulse 1.8s infinite; }
@keyframes rf-bf-pulse { 70% { box-shadow: 0 0 0 .6rem rgb(255 214 10 / 0); } 100% { box-shadow: 0 0 0 0 rgb(255 214 10 / 0); } }
.rf-bf__heading {
	margin: .9rem 0 0; font-family: var(--wp--preset--font-family--sans); font-weight: 800;
	text-transform: uppercase; line-height: .86; letter-spacing: -.02em; font-size: clamp(3.6rem, 9vw, 8.5rem);
}
.rf-bf__heading span { display: block; }
.rf-bf__black { color: transparent; -webkit-text-stroke: 2px #fff; }
.rf-bf__friday {
	color: var(--bf-yellow);
	background: linear-gradient(100deg, var(--bf-yellow) 40%, #fff6c2 50%, var(--bf-yellow) 60%) 0 0 / 250% 100%;
	-webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
	animation: rf-bf-shine 4.5s ease-in-out infinite;
}
@keyframes rf-bf-shine { 0%, 35% { background-position: 100% 0; } 65%, 100% { background-position: 0 0; } }
.rf-bf__visit {
	list-style: none; padding: 0; margin: var(--wp--preset--spacing--50) 0 0;
	display: flex; flex-wrap: wrap; gap: .6rem 1.75rem; font-size: var(--wp--preset--font-size--medium); font-weight: 500;
}
.rf-bf__visit li { display: inline-flex; align-items: center; gap: .55rem; }
.rf-bf__visit svg { width: 1.2em; height: 1.2em; fill: var(--bf-yellow); flex: none; }
.rf-bf__visit a { color: #fff; text-decoration: none; border-bottom: 1px solid rgb(255 214 10 / .5); }
.rf-bf__visit a:hover, .rf-bf__visit a:focus-visible { color: var(--bf-yellow); border-bottom-color: var(--bf-yellow); }
.rf-bf__offer { border-left: 1px solid rgb(255 255 255 / .18); padding-left: var(--wp--preset--spacing--60); }
.rf-bf__pct { display: flex; align-items: baseline; flex-wrap: wrap; gap: .2rem .9rem; }
.rf-bf__num {
	font-family: var(--wp--preset--font-family--sans); font-weight: 800; color: var(--bf-yellow);
	font-size: clamp(3rem, 6.2vw, 5.75rem); line-height: 1; letter-spacing: -.03em;
	text-shadow: 0 0 40px rgb(255 214 10 / .35);
}
.rf-bf__off { font-family: var(--wp--preset--font-family--serif); font-style: italic; font-size: clamp(1.6rem, 2.6vw, 2.4rem); }
.rf-bf__all { margin-top: .5rem !important; font-size: var(--wp--preset--font-size--large); color: rgb(255 255 255 / .9); }
.rf-bf__tag {
	display: inline-block; margin-top: var(--wp--preset--spacing--40) !important; padding: .55rem 1rem;
	border: 1px dashed var(--bf-yellow); border-radius: 4px; font-size: var(--wp--preset--font-size--small); color: #fff;
}
.rf-bf__tag strong { color: var(--bf-yellow); font-size: 1.15em; margin-right: .25rem; }
.rf-bf__note {
	display: flex; align-items: flex-start; gap: .6rem; margin-top: var(--wp--preset--spacing--40) !important; max-width: 30rem;
	padding: .7rem .9rem; border-radius: 6px; background: rgb(255 255 255 / .07); border-left: 3px solid var(--bf-yellow);
	font-size: var(--wp--preset--font-size--small); line-height: 1.45; color: rgb(255 255 255 / .92);
}
.rf-bf__note strong { color: var(--bf-yellow); font-weight: 700; }
.rf-bf__note svg { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1rem; fill: none; stroke: var(--bf-yellow); stroke-width: 2; stroke-linecap: round; }
.rf-bf__note a { color: #fff; text-decoration: underline; text-decoration-color: var(--bf-yellow); text-underline-offset: 2px; white-space: nowrap; }
.rf-bf__note a:hover { color: var(--bf-yellow); }
.rf-bf__cta { margin-top: var(--wp--preset--spacing--40) !important; }
.rf-bf__cta a {
	display: inline-flex; gap: .6rem; align-items: center; padding: .95rem 1.8rem; border-radius: 2px;
	background: var(--bf-yellow); color: var(--bf-black); text-decoration: none;
	font-size: var(--wp--preset--font-size--x-small); font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
	transition: background .25s ease, color .25s ease, transform .25s ease;
}
.rf-bf__cta a:hover, .rf-bf__cta a:focus-visible { background: #fff; transform: translateY(-2px); }
.rf-bf__cta a:focus-visible { outline: 2px solid var(--bf-yellow); outline-offset: 3px; }
.rf-bf__ticker { background: var(--bf-yellow); color: var(--bf-black); overflow: hidden; white-space: nowrap; }
.rf-bf__track { display: inline-flex; animation: rf-bf-ticker 38s linear infinite; }
.rf-bf__track span {
	padding: .6rem 1.4rem; font-size: .8125rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
}
.rf-bf__track span::after { content: "✦"; margin-left: 2.8rem; font-weight: 400; }
@keyframes rf-bf-ticker { to { transform: translateX(-50%); } }
@media (max-width: 860px) {
	.rf-bf { min-height: 0; }
	.rf-bf__inner { grid-template-columns: 1fr; gap: var(--wp--preset--spacing--40); }
	.rf-bf__offer { border-left: 0; padding-left: 0; border-top: 1px solid rgb(255 255 255 / .18); padding-top: var(--wp--preset--spacing--40); }
	.rf-bf__black { -webkit-text-stroke-width: 1.5px; }
}
@media (prefers-reduced-motion: reduce) {
	.rf-bf__dot, .rf-bf__friday, .rf-bf__track { animation: none; }
}

/* Sale: black pill with yellow "−20%", calm before/after price */
.wc-block-components-product-sale-badge, .woocommerce span.onsale {
	background: #0A0A0B !important; color: #FFD60A !important; border: 0 !important;
	border-radius: 999px !important; padding: .32rem .7rem !important; min-height: 0 !important; min-width: 0 !important;
	font: 700 .8125rem/1 var(--wp--preset--font-family--sans) !important; letter-spacing: .04em; text-transform: none !important;
	box-shadow: 0 2px 6px rgb(0 0 0 / .25);
}
.wc-block-components-product-sale-badge { margin: .7rem .7rem 0 0 !important; }
.woocommerce span.onsale { top: .8rem !important; left: .8rem !important; right: auto !important; line-height: 1 !important; z-index: 9; }
.wc-block-components-product-price del, .woocommerce .price del {
	color: var(--wp--preset--color--contrast-2); opacity: .75; font-size: .88em; font-weight: 400;
	text-decoration-thickness: 1px; margin-right: .45rem;
}
.wc-block-components-product-price ins, .woocommerce .price ins {
	text-decoration: none; font-weight: 700; color: var(--wp--preset--color--contrast);
	background: linear-gradient(transparent 62%, rgb(255 214 10 / .55) 62%); padding: 0 .1em;
}

/* Phone menu: a dropdown panel at the top (about a third of the screen) instead of a full-screen overlay.
   Two columns of larger links; the page behind is dimmed. (WordPress switches to the overlay below 600px.) */
@media (max-width: 599px) {
	.wp-block-navigation__responsive-container.is-menu-open {
		bottom: auto !important; height: auto !important; max-height: 70vh; overflow-y: auto;
		padding: .9rem 1.25rem 1.4rem !important;
		background: var(--wp--preset--color--base) !important;
		border-bottom: 2px solid var(--wp--preset--color--accent);
		box-shadow: 0 0 0 100vmax rgb(20 22 26 / .38), 0 12px 30px rgb(20 22 26 / .25);
		animation: rf-menu-drop .25s ease-out;
	}
	@keyframes rf-menu-drop { from { transform: translateY(-12px); opacity: 0; } to { transform: none; opacity: 1; } }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content { padding-top: 2.6rem !important; align-items: stretch !important; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__container {
		display: grid !important; grid-template-columns: 1fr 1fr; gap: .2rem 1.25rem; width: 100%; justify-items: start; align-items: start;
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item { width: 100%; }
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content {
		display: block; width: 100%; padding: .55rem 0 !important; font-size: 1.3rem; font-weight: 500;
		border-bottom: 1px solid var(--wp--preset--color--line);
	}
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:hover,
	.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content:focus-visible { color: var(--wp--preset--color--accent); }
}
@media (max-width: 599px) and (prefers-reduced-motion: reduce) { .wp-block-navigation__responsive-container.is-menu-open { animation: none; } }

/* Infinite scroll status under the product grid */
.rf-shop .wp-block-query-pagination[hidden] { display: none !important; } /* the layout rule sets display:flex, which beats the hidden attribute */
.rf-more { display: flex; align-items: center; justify-content: center; gap: .6rem; min-height: 3.5rem; margin-top: var(--wp--preset--spacing--40); color: var(--wp--preset--color--contrast-2); font-size: var(--wp--preset--font-size--small); }
.rf-more:not(.is-loading):not(.is-done) { visibility: hidden; }
.rf-more__spinner { width: 1.1rem; height: 1.1rem; border-radius: 50%; border: 2px solid var(--wp--preset--color--line); border-top-color: var(--wp--preset--color--accent); animation: rf-spin .8s linear infinite; }
.rf-more.is-done .rf-more__spinner { display: none; }
.rf-more.is-done .rf-more__text:not(:empty)::before { content: ""; display: inline-block; width: 2rem; height: 1px; margin-right: .75rem; vertical-align: middle; background: var(--wp--preset--color--accent-2); }
.rf-more.is-done .rf-more__text:not(:empty)::after { content: ""; display: inline-block; width: 2rem; height: 1px; margin-left: .75rem; vertical-align: middle; background: var(--wp--preset--color--accent-2); }
@keyframes rf-spin { to { transform: rotate(360deg); } }
.rf-appended { animation: rf-fade-in .45s ease-out both; }
@keyframes rf-fade-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .rf-appended, .rf-more__spinner { animation: none; } }

/* "Úr versluninni": store photos as polaroids, numbered automatically (CSS counter) in the top right corner.
   Each photo is a normal image block, so its caption is written in the editor and shows in handwriting. */
.rf-polaroids-intro { color: var(--wp--preset--color--contrast-2); }
.rf-polaroids {
	counter-reset: rf-pol;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 3rem 2.25rem;
	margin-top: var(--wp--preset--spacing--50) !important;
	padding: 3rem 2.5rem;
	background: var(--wp--preset--color--base-2);
	border-radius: 4px;
}
.rf-polaroids > .wp-block-image.rf-polaroid {
	counter-increment: rf-pol;
	position: relative;
	margin: 0;
	padding: 12px 12px 0;
	background: #fff;
	box-shadow: 0 1px 2px rgba(30, 34, 39, .08), 0 14px 28px -12px rgba(30, 34, 39, .35);
	transform: rotate(var(--rf-tilt, 0deg));
	transition: transform .35s ease, box-shadow .35s ease;
}
.rf-polaroids > .rf-polaroid:nth-child(5n+1) { --rf-tilt: -1.8deg; }
.rf-polaroids > .rf-polaroid:nth-child(5n+2) { --rf-tilt: 1.3deg; }
.rf-polaroids > .rf-polaroid:nth-child(5n+3) { --rf-tilt: -.6deg; }
.rf-polaroids > .rf-polaroid:nth-child(5n+4) { --rf-tilt: 2deg; }
.rf-polaroids > .rf-polaroid:nth-child(5n+5) { --rf-tilt: -1.2deg; }
.rf-polaroids > .rf-polaroid:hover { transform: rotate(0deg) scale(1.03); z-index: 2; box-shadow: 0 2px 4px rgba(30, 34, 39, .08), 0 24px 40px -14px rgba(30, 34, 39, .45); }
.rf-polaroid img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; }
.rf-polaroid--top img { object-position: 50% 15%; }
/* The handwritten caption on the white strip; without a caption the strip is still there. */
.rf-polaroid figcaption.wp-element-caption {
	margin: 0;
	padding: .55rem .3rem .8rem;
	min-height: 4.4rem;
	font-family: var(--wp--preset--font-family--hand);
	font-size: 1.55rem;
	line-height: 1.1;
	text-align: center;
	color: var(--wp--preset--color--contrast);
}
.rf-polaroid:not(:has(figcaption))::after { content: ""; display: block; height: 4.4rem; }
/* Number: a gold sticker over the top right corner. */
.rf-polaroid::before {
	content: counter(rf-pol);
	position: absolute;
	top: -12px;
	right: -12px;
	z-index: 3;
	display: grid;
	place-items: center;
	width: 2.4rem;
	height: 2.4rem;
	border-radius: 50%;
	background: var(--wp--preset--color--accent);
	color: #fff;
	font-family: var(--wp--preset--font-family--serif);
	font-size: 1.05rem;
	font-weight: 500;
	box-shadow: 0 0 0 3px #fff, 0 4px 10px rgba(30, 34, 39, .3);
	pointer-events: none;
}
/* The lightbox "enlarge" button would sit under the number, so move it to the top left. */
.rf-polaroid .lightbox-trigger { right: auto !important; left: 20px !important; top: 20px !important; }
@media (max-width: 600px) {
	.rf-polaroids { grid-template-columns: repeat(2, 1fr); gap: 2rem 1.1rem; padding: 1.75rem 1rem; }
	.rf-polaroids > .wp-block-image.rf-polaroid { padding: 7px 7px 0; }
	.rf-polaroid figcaption.wp-element-caption { font-size: 1.2rem; min-height: 3.2rem; padding: .4rem .2rem .55rem; }
	.rf-polaroid:not(:has(figcaption))::after { height: 3.2rem; }
	.rf-polaroid::before { width: 1.9rem; height: 1.9rem; font-size: .85rem; top: -9px; right: -9px; }
}
@media (prefers-reduced-motion: reduce) { .rf-polaroids > .wp-block-image.rf-polaroid { transition: none; } }
