/* ==========================================================================
   Fingili theme v3
   Read: a Swedish shop for small cute things, for gift buyers and people who
   like cute things on their desk. Playful identity, plain shop mechanics.
   Dials: variance 5, motion 4, density 5.
   Type: Bagel Fat One for the logo and headings, Bricolage Grotesque for everything
   you read or click.
   Shape rule: buttons, chips, search and badges are pills; media tiles and panels
   are 20px; form fields are 12px.
   One accent: cone orange with dark text. Other colour comes from the products.
   Modes: day and night (html[data-mode]). Night swaps photos to their glowing twins.
   ========================================================================== */

:root {
	--fg-base: #F2F3F5;
	--fg-surface: #FBFBFC;
	--fg-tile: #E6E8EC;
	--fg-tile-hover: #DFE2E7;
	--fg-ink: #16171B;
	--fg-ink-soft: #5A5E68;
	--fg-line: #D8DBE1;
	--fg-line-strong: #B9BDC6;
	--fg-accent: #FF6A13;
	--fg-accent-hover: #FF7F33;
	--fg-accent-deep: #C24700;
	--fg-accent-ink: #16171B;
	--fg-shadow-rgb: 22 23 27;
	--fg-header-bg: rgb(242 243 245 / 0.86);
	--fg-night-tile: #12151C;
	--fg-glow: #EFFF6A;
	--fg-bead: #E8F36B;
	--fg-bead-1: #A1FFAC; --fg-bead-1-glow: #7DFF9B;
	--fg-bead-2: #F17B8F; --fg-bead-2-glow: #FF7FA8;
	--fg-bead-3: #7AC0E9; --fg-bead-3-glow: #66C8FF;
	--fg-radius: 20px;
	--fg-radius-field: 12px;
	--fg-ease: cubic-bezier(0.16, 1, 0.3, 1);
	--fg-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
	--fg-header-h: 78px;
	--fg-announce-h: 34px;
	--fg-hero-bg: #DCECFA;
	--fg-display: var(--wp--preset--font-family--display, "Bagel Fat One", system-ui);
	--fg-body: var(--wp--preset--font-family--body, system-ui, sans-serif);
	color-scheme: light;
}

html[data-mode="night"] {
	--fg-base: #0C0E13;
	--fg-surface: #14171E;
	--fg-tile: #171B23;
	--fg-tile-hover: #1D222C;
	--fg-ink: #ECEEF2;
	--fg-ink-soft: #9EA5B1;
	--fg-line: #262B35;
	--fg-line-strong: #3A4150;
	--fg-accent: #FF7A2B;
	--fg-accent-hover: #FF8E4A;
	--fg-accent-deep: #B84300;
	--fg-shadow-rgb: 0 0 0;
	--fg-header-bg: rgb(12 14 19 / 0.82);
	--fg-hero-bg: #10141C;
	color-scheme: dark;
}

/* --- base ------------------------------------------------------------------ */

html { scroll-behavior: smooth; }
body {
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	transition: background-color 0.5s var(--fg-ease), color 0.5s var(--fg-ease);
}
h1, h2, h3, h4 {
	font-family: var(--fg-display);
	font-weight: 400;
	font-feature-settings: "liga" 0, "clig" 0;
	letter-spacing: 0;
	text-wrap: balance;
}
p { text-wrap: pretty; }
::selection { background: var(--fg-accent); color: var(--fg-accent-ink); }
img { max-width: 100%; height: auto; }
:where(a, button, input, select, textarea, summary):focus-visible { outline: 2px solid var(--fg-ink); outline-offset: 3px; border-radius: 8px; }
.fg-icon { width: 1.25em; height: 1.25em; flex: none; }
.screen-reader-text:not(:focus), .fg-sr { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
html[data-mode="night"] .fg-day-only, html:not([data-mode="night"]) .fg-night-only { display: none; }

/* --- buttons and links --------------------------------------------------------- */

.wp-element-button, .wp-block-button__link, .fg-btn {
	white-space: nowrap;
	transition: transform 0.15s var(--fg-ease), background-color 0.2s var(--fg-ease), color 0.2s var(--fg-ease), border-color 0.2s var(--fg-ease);
}
.wp-element-button:active, .wp-block-button__link:active, .fg-btn:active { transform: translateY(1px) scale(0.98); }
.fg-btn {
	appearance: none; cursor: pointer;
	display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem;
	font: 700 1.0625rem/1.1 var(--fg-body);
	padding: 0.9rem 1.5rem;
	border-radius: 999px; border: 1.5px solid transparent;
	background: var(--fg-accent); color: var(--fg-accent-ink);
	text-decoration: none;
}
.fg-btn:hover { background: var(--fg-accent-hover); color: var(--fg-accent-ink); }
.fg-btn--quiet { background: transparent; color: var(--fg-ink); border-color: var(--fg-ink); }
.fg-btn--quiet:hover { background: var(--fg-ink); color: var(--fg-base); }
.fg-btn .fg-icon { width: 1.1em; height: 1.1em; transition: transform 0.3s var(--fg-ease); }
.fg-btn:hover .fg-icon { transform: translateX(3px); }
.fg-link { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--fg-ink); text-decoration: none; white-space: nowrap; }
.fg-link .fg-icon { width: 1.05em; height: 1.05em; transition: transform 0.3s var(--fg-ease); }
.fg-link:hover { color: var(--fg-ink); text-decoration: underline; text-underline-offset: 0.2em; }
.fg-link:hover .fg-icon { transform: translateX(3px); }

/* --- the glow bead (lights switch, glow badge) ------------------------------------ */

.fg-bead {
	display: inline-block; flex: none;
	width: 0.75em; height: 0.75em; border-radius: 50%;
	background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.85), transparent 46%), var(--fg-bead);
	box-shadow: inset 0 -1px 2px rgb(0 0 0 / 0.25);
	transition: box-shadow 0.6s var(--fg-ease), background 0.6s var(--fg-ease);
}
html[data-mode="night"] .fg-bead {
	background: var(--fg-glow);
	box-shadow: 0 0 5px var(--fg-glow), 0 0 14px color-mix(in srgb, var(--fg-glow) 55%, transparent);
}

/* --- logo: ink letters with three glow beads as i-dots ------------------------------ */

.fg-logo, .fg-word {
	font-family: var(--fg-display);
	font-feature-settings: "liga" 0, "clig" 0;
	color: var(--fg-ink);
	text-decoration: none;
	display: inline-flex;
	white-space: nowrap;
	line-height: 1;
}
.fg-logo { font-size: 2.4rem; padding-top: 0.22em; flex: none; }
.fg-logo:hover { color: var(--fg-ink); }
.fg-logo > span, .fg-word > span { display: inline-flex; }
.fg-logo__i { position: relative; display: inline-block; }
.fg-logo__i::before {
	content: "";
	position: absolute; left: 50%; top: -0.13em;
	width: 0.27em; height: 0.27em; border-radius: 50%;
	transform: translateX(-50%);
	background: radial-gradient(circle at 35% 30%, rgb(255 255 255 / 0.85), transparent 42%), var(--bead);
	box-shadow: inset 0 -0.03em 0.05em rgb(0 0 0 / 0.18);
	transition: box-shadow 0.8s var(--fg-ease), transform 0.5s var(--fg-spring), background 0.8s var(--fg-ease);
}
.fg-logo__i--1 { --bead: var(--fg-bead-1); --glow: var(--fg-bead-1-glow); }
.fg-logo__i--2 { --bead: var(--fg-bead-2); --glow: var(--fg-bead-2-glow); }
.fg-logo__i--3 { --bead: var(--fg-bead-3); --glow: var(--fg-bead-3-glow); }
html[data-mode="night"] .fg-logo__i::before {
	background: var(--glow);
	box-shadow: 0 0 0.12em var(--glow), 0 0 0.45em color-mix(in srgb, var(--glow) 70%, transparent), 0 0 1.1em color-mix(in srgb, var(--glow) 35%, transparent);
}
.fg-logo:hover .fg-logo__i::before { transform: translateX(-50%) translateY(-0.1em); }
.fg-logo:hover .fg-logo__i--2::before { transition-delay: 0.05s; }
.fg-logo:hover .fg-logo__i--3::before { transition-delay: 0.1s; }

/* --- header ------------------------------------------------------------------------ */

header.wp-block-template-part { position: sticky; top: calc(var(--fg-announce-h) * -1); z-index: 50; /* layer: sticky header */ }
.admin-bar header.wp-block-template-part { top: calc(var(--wp-admin--admin-bar--height, 32px) - var(--fg-announce-h)); }
@media (max-width: 600px) { .admin-bar header.wp-block-template-part { top: calc(var(--fg-announce-h) * -1); } }

/* promise bar: the shop's colour, three facts */
.fg-announce { height: var(--fg-announce-h); display: flex; align-items: center; background: var(--fg-accent); color: var(--fg-accent-ink); padding-inline: var(--wp--style--root--padding-left, 1rem); font-size: 0.85rem; font-weight: 700; }
.fg-announce ul { list-style: none; margin: 0 auto; padding: 0; width: 100%; max-width: 1320px; display: flex; justify-content: center; gap: 0.5rem 2.75rem; }
.fg-announce li { display: inline-flex; align-items: center; gap: 0.45rem; white-space: nowrap; }
.fg-announce .fg-icon { width: 1.1rem; height: 1.1rem; }
.fg-announce a { color: inherit; text-decoration: none; }
.fg-announce a:hover { text-decoration: underline; }
@media (max-width: 760px) { .fg-announce li:not(:first-child) { display: none; } }

.fg-header {
	background: var(--fg-header-bg);
	-webkit-backdrop-filter: saturate(150%) blur(14px);
	backdrop-filter: saturate(150%) blur(14px);
	border-bottom: 1px solid var(--fg-line);
	transition: background-color 0.5s var(--fg-ease), border-color 0.5s var(--fg-ease);
}
@media (prefers-reduced-transparency: reduce) { .fg-header { background: var(--fg-base); backdrop-filter: none; } }
.fg-header > * { margin-block: 0 !important; }
.fg-header__bar { min-height: var(--fg-header-h); gap: 1.25rem; position: relative; }
.fg-header__tools { gap: 0.5rem; align-items: center; flex: none; }
.fg-header .wp-block-woocommerce-customer-account { display: none; }

/* category row */
.fg-catnav { border-top: 1px solid var(--fg-line); }
.fg-catnav ul { list-style: none; margin: 0; padding: 0.4rem 0; display: flex; gap: 0.15rem; overflow-x: auto; scrollbar-width: none; }
.fg-catnav ul::-webkit-scrollbar { display: none; }
.fg-catnav a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.42rem 0.8rem; border-radius: 999px; font-weight: 600; font-size: 0.95rem; line-height: 1.2; color: var(--fg-ink); text-decoration: none; white-space: nowrap; transition: background-color 0.2s var(--fg-ease); }
.fg-catnav a:hover { background: var(--fg-tile); color: var(--fg-ink); }
.fg-catnav a.is-current { background: var(--fg-ink); color: var(--fg-base); }
.fg-catnav .fg-bead { width: 0.7rem; height: 0.7rem; }
@media (max-width: 1100px) { .fg-catnav { margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1); } .fg-catnav ul { padding-inline: calc(var(--wp--style--root--padding-left, 1rem) - 0.6rem); } }

/* search: a real field, like every shop with more than a handful of products */
.fg-search { margin: 0 auto; flex: 1 1 auto; max-width: 560px; min-width: 0; }
.fg-search .wp-block-search__inside-wrapper {
	display: flex; align-items: center; padding: 4px !important;
	border: 1.5px solid var(--fg-line-strong) !important; border-radius: 999px !important;
	background: var(--fg-surface); transition: border-color 0.2s var(--fg-ease);
}
.fg-search .wp-block-search__inside-wrapper:focus-within { border-color: var(--fg-ink) !important; }
.fg-search .wp-block-search__input {
	flex: 1 1 auto; min-width: 0; height: 36px; padding: 0 0.9rem !important;
	font: 500 1rem var(--fg-body); color: var(--fg-ink); background: transparent; border: 0 !important; border-radius: 999px;
}
.fg-search .wp-block-search__input::placeholder { color: var(--fg-ink-soft); opacity: 1; }
.fg-search .wp-block-search__input:focus { outline: none; }
.fg-search .wp-block-search__button {
	width: 36px; height: 36px; min-width: 36px; padding: 0 !important; margin: 0 !important;
	display: grid; place-items: center; border-radius: 999px !important; border: 0 !important;
	background: var(--fg-ink) !important; color: var(--fg-base) !important;
}
.fg-search .wp-block-search__button svg { width: 20px; height: 20px; min-width: 20px; fill: currentColor; }
@media (max-width: 760px) {
	.fg-header__bar { flex-wrap: wrap !important; row-gap: 0.4rem; padding-block: 0.5rem 0.6rem; }
	.fg-header__bar .fg-search { order: 3; flex: 1 1 100%; max-width: none; }
}

/* lights switch */
.fg-lights {
	appearance: none; cursor: pointer;
	height: 42px; padding: 0 1rem 0 0.85rem;
	display: inline-flex; align-items: center; gap: 0.55rem;
	border: 1.5px solid var(--fg-line); border-radius: 999px; background: transparent;
	color: var(--fg-ink); font: 600 0.95rem var(--fg-body); white-space: nowrap;
	transition: border-color 0.2s var(--fg-ease), transform 0.15s var(--fg-ease);
}
.fg-lights:hover { border-color: var(--fg-ink); }
.fg-lights:active { transform: scale(0.97); }
.fg-lights .fg-lights__pet { width: 1.2rem; height: 1.2rem; }
@media (max-width: 1240px) {
	.fg-header .fg-lights { width: 42px; padding: 0; justify-content: center; }
	.fg-header .fg-lights__text { clip: rect(1px, 1px, 1px, 1px); clip-path: inset(50%); height: 1px; width: 1px; overflow: hidden; position: absolute; white-space: nowrap; }
}

.fg-cart .wc-block-mini-cart__button {
	height: 42px; min-width: 42px; padding: 0 0.85rem;
	border-radius: 999px;
	display: inline-flex; align-items: center; gap: 0.35rem;
	background: var(--fg-ink); color: var(--fg-base);
	transition: transform 0.15s var(--fg-ease);
}
.fg-cart .wc-block-mini-cart__button:active { transform: scale(0.97); }
.fg-cart .wc-block-mini-cart__icon { width: 22px; height: 22px; }
.fg-cart .wc-block-mini-cart__badge { background: var(--fg-accent) !important; color: var(--fg-accent-ink) !important; border: 2px solid var(--fg-ink); font-weight: 800; }
.wc-block-mini-cart__drawer .components-modal__content { background: var(--fg-base); color: var(--fg-ink); }
.wc-block-mini-cart__title { font-family: var(--fg-display); font-weight: 400; }

/* --- hero ---------------------------------------------------------------------------- */

.fg-home > * + * { margin-block-start: 0; }
.fg-hero { padding-top: clamp(0.75rem, 1.5vw, 1.25rem); }
.fg-hero__panel {
	display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); align-items: center; gap: clamp(1rem, 3vw, 3rem);
	border-radius: var(--fg-radius); background: var(--fg-hero-bg); padding: clamp(1.5rem, 3.5vw, 3rem) clamp(1.25rem, 3.5vw, 3rem);
	transition: background-color 0.6s var(--fg-ease);
}
.fg-hero__title { font-size: clamp(2rem, 3.4vw, 3.2rem); line-height: 1.05; margin: 0; max-width: 14ch; }
.fg-hero__lede { font-size: clamp(1.05rem, 1.25vw, 1.18rem); color: var(--fg-ink-soft); max-width: 34ch; margin: 1rem 0 0; }
.fg-hero__cta { margin: 1.75rem 0 0; }
/* day and night scenes are rendered with the same camera; they sit on top of each other and cross-fade */
.fg-scene { position: relative; margin: 0; }
.fg-scene img { display: block; width: 100%; height: auto; }
.fg-scene__night { position: absolute; inset: 0; opacity: 0; }
.fg-scene__day, .fg-scene__night { transition: opacity 0.7s var(--fg-ease); }
html[data-mode="night"] .fg-scene__night { opacity: 1; }
html[data-mode="night"] .fg-scene__day { opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
	.fg-hero__copy > * { animation: fg-rise 0.8s var(--fg-ease) both; }
	.fg-hero__copy > :nth-child(2) { animation-delay: 0.08s; }
	.fg-hero__copy > :nth-child(3) { animation-delay: 0.16s; }
	.fg-scene { animation: fg-rise 0.9s var(--fg-ease) 0.1s both; }
}
@media (prefers-reduced-motion: reduce) { .fg-scene__day, .fg-scene__night, .fg-hero__panel { transition: none; } }
/* movement only: the heading and the picture are the page's largest paint, so they are visible from the first frame */
@keyframes fg-rise { from { transform: translateY(14px); } to { transform: none; } }
@media (max-width: 900px) {
	.fg-hero__panel { grid-template-columns: 1fr; }
	.fg-scene { order: -1; margin-inline: -0.5rem; }
	.fg-hero__title { max-width: 16ch; }
}

/* --- sections ---------------------------------------------------------------------------- */

.fg-sec { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.fg-sec__head { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem 2rem; flex-wrap: wrap; margin-bottom: clamp(1.25rem, 2.5vw, 2rem); }
.fg-sec__title { font-size: clamp(1.9rem, 3.2vw, 2.7rem); line-height: 1.02; margin: 0; }
.fg-sec__lede { font-size: 1.08rem; color: var(--fg-ink-soft); max-width: 52ch; margin: 0.6rem 0 0; }

/* --- category tiles ---------------------------------------------------------------------------- */

.fg-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.fg-tile { min-width: 0; }
.fg-tile a {
	position: relative; width: 100%; min-height: 0; box-sizing: border-box;
	display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 0.5rem;
	aspect-ratio: 1; padding: clamp(0.75rem, 1.4vw, 1.1rem);
	border-radius: var(--fg-radius); background: var(--fg-tile);
	color: var(--fg-ink); text-decoration: none; overflow: hidden;
	transition: background-color 0.25s var(--fg-ease);
}
.fg-tile a:hover { background: var(--fg-tile-hover); color: var(--fg-ink); }
.fg-tile__img { min-height: 0; display: grid; place-items: center; }
.fg-tile__img img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.45s var(--fg-spring); }
.fg-tile a:hover .fg-tile__img img { transform: translateY(-4px) rotate(-3deg); }
.fg-tile__label { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5rem; }
.fg-tile__name { font-weight: 700; font-size: clamp(0.98rem, 1.2vw, 1.1rem); line-height: 1.2; }
.fg-tile__count { color: var(--fg-ink-soft); font-size: 0.875rem; white-space: nowrap; }
.fg-tile--feature { grid-column: span 2; grid-row: span 2; }
.fg-tile--feature a { height: 100%; aspect-ratio: auto; background: var(--fg-accent); color: var(--fg-accent-ink); padding: clamp(1rem, 2vw, 1.75rem); }
.fg-tile--feature a:hover { background: var(--fg-accent-hover); color: var(--fg-accent-ink); }
.fg-tile--feature .fg-tile__name { font-family: var(--fg-display); font-weight: 400; font-size: clamp(1.6rem, 2.6vw, 2.3rem); line-height: 1; }
.fg-tile--feature .fg-tile__count { color: var(--fg-accent-ink); opacity: 0.75; font-size: 0.98rem; }
.fg-tile--night a { background: var(--fg-night-tile); color: #ECEEF2; box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.fg-tile--night a:hover { background: #181C25; color: #ECEEF2; }
.fg-tile--night .fg-tile__count { color: #9EA5B1; }
.fg-tile__empty { font-family: var(--fg-display); font-size: 2.5rem; color: var(--fg-ink-soft); opacity: 0.4; }
@media (max-width: 767px) {
	.fg-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.fg-tile--feature { grid-row: span 1; }
	.fg-tile--feature a { aspect-ratio: 2 / 1.25; }
}

/* --- product grids ------------------------------------------------------------------------------ */

.fg-grid .wc-block-product-template {
	display: grid !important;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: clamp(1.75rem, 3vw, 2.5rem) clamp(0.75rem, 1.6vw, 1.25rem);
	margin: 0; padding: 0; list-style: none;
}
@media (max-width: 1080px) { .fg-grid .wc-block-product-template { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) { .fg-grid .wc-block-product-template { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 1.75rem; } }

.fg-grid .wc-block-product {
	position: relative;
	display: grid !important;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "img img" "title price" "spec spec" "btn btn";
	grid-template-rows: auto auto auto 1fr;
	column-gap: 0.75rem; row-gap: 0.15rem;
	margin: 0 !important; width: auto !important; max-width: none !important; text-align: left;
}
.fg-grid .wc-block-components-product-image {
	grid-area: img; position: relative;
	margin: 0 0 0.7rem !important; aspect-ratio: 1;
	border-radius: var(--fg-radius); background: var(--tint, var(--fg-tile)); overflow: hidden;
	transition: background-color 0.25s var(--fg-ease), box-shadow 0.25s var(--fg-ease);
}
html[data-mode="night"] .fg-grid .wc-block-components-product-image { background: color-mix(in srgb, var(--tint, var(--fg-tile)) 9%, var(--fg-tile)); }
.fg-grid .wc-block-components-product-image a { display: block; height: 100%; }
.fg-grid .wc-block-components-product-image img {
	width: 100%; height: 100%; object-fit: contain; display: block; box-sizing: border-box;
	padding: 6%; border-radius: 0 !important;
	transition: transform 0.45s var(--fg-ease), opacity 0.35s var(--fg-ease);
}
.fg-grid .wc-block-components-product-image img.woocommerce-placeholder { padding: 24%; opacity: 0.35; mix-blend-mode: multiply; }
html[data-mode="night"] .fg-grid .wc-block-components-product-image img.woocommerce-placeholder { mix-blend-mode: normal; opacity: 0.12; }
.fg-grid .wc-block-product:hover .wc-block-components-product-image { box-shadow: inset 0 0 0 999px rgb(var(--fg-shadow-rgb) / 0.03); }
@media (hover: hover) and (prefers-reduced-motion: no-preference) {
	.fg-grid .wc-block-product:hover .wc-block-components-product-image img:not(.woocommerce-placeholder) { transform: translateY(-3px) scale(1.035); }
}
.fg-grid .wp-block-post-title {
	grid-area: title;
	font-family: var(--fg-body) !important; font-weight: 650; letter-spacing: 0;
	font-size: 1.02rem !important; line-height: 1.3; margin: 0 !important; text-align: left !important;
}
.fg-grid .wp-block-post-title a { text-decoration: none; color: var(--fg-ink); }
.fg-grid .wp-block-post-title a::after { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card clickable */
.fg-grid .wp-block-woocommerce-product-price { grid-area: price; margin: 0 !important; }
.fg-grid .wc-block-components-product-price {
	font-weight: 700; font-size: 1.02rem !important; line-height: 1.3;
	color: var(--fg-ink); white-space: nowrap; text-align: right !important;
}
.fg-spec { grid-area: spec; margin: 0; font-size: 0.875rem; line-height: 1.4; color: var(--fg-ink-soft); }
.fg-grid .wc-block-components-product-button {
	grid-area: btn; align-self: end;
	margin: 0.75rem 0 0 !important; position: relative; z-index: 2;
	align-items: stretch !important; flex-direction: column;
}
.fg-grid .wc-block-components-product-button .wp-block-button__link,
.fg-grid .wc-block-components-product-button__button {
	width: 100% !important; justify-content: center;
	background: transparent !important; color: var(--fg-ink) !important;
	border: 1.5px solid var(--fg-line-strong) !important; box-shadow: none !important;
	font-size: 0.95rem !important; font-weight: 700; padding: 0.62rem 1rem !important;
	border-radius: 999px !important; min-height: 0 !important;
}
.fg-grid .wc-block-components-product-button .wp-block-button__link:hover,
.fg-grid .wc-block-components-product-button__button:hover { background: var(--fg-ink) !important; color: var(--fg-base) !important; border-color: var(--fg-ink) !important; }
.fg-grid .added_to_cart, .fg-grid .wc-block-components-product-button a.added_to_cart { font-size: 0.875rem; margin-top: 0.45rem; color: var(--fg-ink); text-align: center; font-weight: 600; }
@media (max-width: 560px) {
	.fg-grid .wc-block-product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "title" "price" "spec" "btn"; grid-template-rows: auto auto auto auto 1fr; }
	.fg-grid .wc-block-components-product-price { text-align: left !important; }
	.fg-grid .wc-block-components-product-button__button { font-size: 0.9rem !important; padding-inline: 0.5rem !important; }
}

/* glow badge on product photos (real product property, like a sale flag) */
.fg-badge {
	position: absolute; top: 0.7rem; left: 0.7rem; z-index: 1;
	display: inline-flex; align-items: center; gap: 0.4rem;
	padding: 0.3rem 0.65rem 0.3rem 0.5rem; border-radius: 999px;
	background: var(--fg-surface); color: var(--fg-ink);
	font-size: 0.8rem; font-weight: 700; line-height: 1.2;
	box-shadow: 0 1px 2px rgb(var(--fg-shadow-rgb) / 0.12);
	pointer-events: none;
}
.fg-badge .fg-bead { width: 0.7rem; height: 0.7rem; }
html[data-mode="night"] .fg-badge { background: rgb(255 255 255 / 0.07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }

.wp-block-query-pagination { margin-top: 3rem; gap: 0.4rem; font-weight: 600; }
.wp-block-query-pagination a, .wp-block-query-pagination .current { display: inline-grid; place-items: center; min-width: 2.6rem; height: 2.6rem; padding: 0 0.8rem; border-radius: 999px; text-decoration: none; color: var(--fg-ink); }
.wp-block-query-pagination a:hover { background: var(--fg-tile); }
.wp-block-query-pagination .current { background: var(--fg-ink); color: var(--fg-base); }

img[data-night] { transition: opacity 0.35s var(--fg-ease); }
img.is-swapping { opacity: 0; }

/* --- gifts by price ------------------------------------------------------------------------------------------- */

.fg-prices__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.fg-price a {
	display: grid; justify-items: center; align-content: center; gap: 0.15rem;
	aspect-ratio: 1.55; border-radius: var(--fg-radius); background: var(--pt); color: var(--fg-ink);
	text-decoration: none; text-align: center; transition: transform 0.35s var(--fg-spring), background-color 0.5s var(--fg-ease);
}
.fg-price--1 { --pt: #FFE2CF; } .fg-price--2 { --pt: #DCF2E1; } .fg-price--3 { --pt: #DCECFA; } .fg-price--4 { --pt: #EBE3F7; }
html[data-mode="night"] .fg-price a { background: color-mix(in srgb, var(--pt) 10%, var(--fg-tile)); }
.fg-price a:hover { transform: translateY(-3px) rotate(-1deg); color: var(--fg-ink); }
.fg-price__label { font-weight: 700; font-size: 1rem; }
.fg-price__amount { font-family: var(--fg-display); font-size: clamp(2.6rem, 5vw, 4.2rem); line-height: 1; font-feature-settings: "liga" 0; }
.fg-price__amount small { font-size: 0.42em; margin-left: 0.12em; }
.fg-price__count { color: var(--fg-ink-soft); font-size: 0.9rem; margin-top: 0.3rem; }
@media (max-width: 767px) { .fg-prices__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.fg-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.25rem; margin: 1.25rem 0 0; font-weight: 700; }

/* --- pick a character: tabs + a row of its products ----------------------------------------------------------------- */

.fg-gtabs__tabs { display: flex; gap: 0.35rem; overflow-x: auto; scrollbar-width: none; padding: 0.25rem 0 0.75rem; }
.fg-gtabs__tabs::-webkit-scrollbar { display: none; }
.fg-gtab { appearance: none; border: 0; background: none; cursor: pointer; flex: none; width: 5.6rem; padding: 0.25rem 0; display: grid; justify-items: center; gap: 0.45rem; color: var(--fg-ink-soft); font: 600 0.92rem var(--fg-body); }
.fg-gtab__img { width: 4.6rem; height: 4.6rem; border-radius: 50%; background: var(--tint, var(--fg-tile)); display: grid; place-items: center; box-shadow: inset 0 0 0 2.5px transparent; transition: box-shadow 0.2s var(--fg-ease), background-color 0.5s var(--fg-ease); }
.fg-gtab__img img { width: 82%; height: 82%; object-fit: contain; transition: transform 0.4s var(--fg-spring); }
.fg-gtab__img:empty::after { content: attr(data-initial); font-family: var(--fg-display); font-size: 1.6rem; color: var(--fg-ink-soft); opacity: 0.5; }
.fg-gtab:hover { color: var(--fg-ink); }
.fg-gtab:hover .fg-gtab__img img { transform: translateY(-3px) rotate(-6deg); }
.fg-gtab[aria-selected="true"] { color: var(--fg-ink); }
.fg-gtab[aria-selected="true"] .fg-gtab__img { box-shadow: inset 0 0 0 2.5px var(--fg-ink); }
.fg-gtabs__panel { margin-top: 0.75rem; }
.fg-gtabs__panel[hidden] { display: none; }
.fg-gtabs__bio { color: var(--fg-ink-soft); margin: 0 0 1.25rem; max-width: 60ch; }
.fg-gtabs__bio a { color: var(--fg-ink); font-weight: 700; }

.fg-grid--row .wc-block-product-template { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1.25rem clamp(0.6rem, 1.2vw, 1rem); }
.fg-grid--row .wc-block-product { grid-template-columns: minmax(0, 1fr); grid-template-areas: "img" "title" "price" "spec" "btn"; grid-template-rows: auto auto auto auto 1fr; }
.fg-grid--row .wc-block-components-product-price { text-align: left !important; }
.fg-grid--row .wp-block-post-title { font-size: 0.98rem !important; }
.fg-grid--row .wc-block-components-product-button__button { font-size: 0.9rem !important; padding-inline: 0.5rem !important; }
@media (max-width: 1240px) {
	.fg-grid--row .wc-block-product-template { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: clamp(170px, 40vw, 220px); overflow-x: auto; scroll-snap-type: x proximity; padding-bottom: 0.5rem; scrollbar-width: thin; }
	.fg-grid--row .wc-block-product { scroll-snap-align: start; }
}

/* --- gänget: the characters ------------------------------------------------------------------------ */

.fg-gang__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: clamp(1.25rem, 2.5vw, 2rem) clamp(0.5rem, 1.5vw, 1.25rem); }
@media (max-width: 1080px) { .fg-gang__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 767px) { .fg-gang__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 420px) { .fg-gang__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fg-gang__item a { display: grid; justify-items: center; text-decoration: none; color: var(--fg-ink); text-align: center; }
.fg-gang__img {
	display: grid; place-items: center; width: 100%; aspect-ratio: 1;
	border-radius: 50%; background: var(--tint, var(--fg-tile));
	transition: background-color 0.25s var(--fg-ease);
}
html[data-mode="night"] .fg-gang__img, html[data-mode="night"] .fg-face__img, html[data-mode="night"] .fg-char__img, html[data-mode="night"] .fg-gtab__img { background: color-mix(in srgb, var(--tint, var(--fg-tile)) 9%, var(--fg-tile)); }
.fg-gang__img img { width: 82%; height: 82%; object-fit: contain; display: block; transition: transform 0.45s var(--fg-spring); }
.fg-gang__img:empty::after { content: attr(data-initial); font-family: var(--fg-display); font-size: clamp(1.6rem, 3vw, 2.4rem); color: var(--fg-ink-soft); opacity: 0.5; }
.fg-gang__item a:hover .fg-gang__img img { transform: translateY(-4px) rotate(-5deg); }
.fg-gang__name { font-weight: 700; font-size: 0.98rem; line-height: 1.2; margin-top: 0.6rem; }
.fg-gang__animal { font-size: 0.85rem; color: var(--fg-ink-soft); margin-top: 0.1rem; }

/* character page header + face strip in the shop */
.fg-char { display: grid; grid-template-columns: minmax(0, 0.42fr) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 3rem); align-items: center; padding-block: 0.75rem 0.5rem; }
.fg-char__img { aspect-ratio: 1; border-radius: 50%; background: var(--tint, var(--fg-tile)); display: grid; place-items: center; }
.fg-char__img img { width: 82%; height: 82%; object-fit: contain; display: block; }
.fg-char__img:empty::after { content: attr(data-initial); font-family: var(--fg-display); font-size: clamp(3rem, 8vw, 6rem); color: var(--fg-ink-soft); opacity: 0.5; }
.fg-char__meta { color: var(--fg-ink-soft); font-weight: 600; margin: 0; }
.fg-char__name { font-size: clamp(2.6rem, 6vw, 4.4rem) !important; line-height: 1; margin: 0.25rem 0 0.75rem; }
.fg-char__bio { font-size: clamp(1.08rem, 1.5vw, 1.25rem); max-width: 42ch; margin: 0; }
@media (max-width: 600px) { .fg-char { grid-template-columns: 0.38fr 1fr; } }
.fg-faces { display: flex; gap: 0.35rem; margin-top: 1rem; overflow-x: auto; scroll-snap-type: x proximity; padding: 0.25rem 0 0.6rem; scrollbar-width: thin; }
.fg-face { flex: none; scroll-snap-align: start; display: grid; justify-items: center; gap: 0.3rem; width: 4.5rem; text-decoration: none; color: var(--fg-ink-soft); font-size: 0.8rem; font-weight: 600; }
.fg-face__img { display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%; background: var(--tint, var(--fg-tile)); box-shadow: inset 0 0 0 2px transparent; transition: box-shadow 0.2s var(--fg-ease); }
.fg-face__img img { width: 80%; height: 80%; object-fit: contain; transition: transform 0.4s var(--fg-spring); }
.fg-face__img:empty::after { content: attr(data-initial); font-family: var(--fg-display); font-size: 1.3rem; color: var(--fg-ink-soft); opacity: 0.5; }
.fg-face:hover { color: var(--fg-ink); }
.fg-face:hover .fg-face__img img { transform: translateY(-3px) rotate(-6deg); }
.fg-face.is-current { color: var(--fg-ink); }
.fg-face.is-current .fg-face__img { box-shadow: inset 0 0 0 2px var(--fg-ink); }

/* --- bend: drag through rendered frames of the flexi snail ---------------------------------------------- */

.fg-bend { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.fg-bend__stage { position: relative; border-radius: var(--fg-radius); background: var(--fg-tile); overflow: hidden; touch-action: pan-y; cursor: grab; user-select: none; }
.fg-bend__stage:active { cursor: grabbing; }
.fg-bend__img { display: block; width: 100%; height: auto; pointer-events: none; }
.fg-bend__copy p { font-size: 1.1rem; color: var(--fg-ink-soft); max-width: 36ch; margin: 1rem 0 0; }
.fg-bend__control { display: grid; gap: 0.6rem; margin-top: 1.75rem; max-width: 340px; font-weight: 600; font-size: 0.95rem; color: var(--fg-ink-soft); }
.fg-bend__out { color: var(--fg-ink); font-weight: 700; margin-left: 0.35em; display: inline-block; min-width: 3.5ch; font-variant-numeric: tabular-nums; }
.fg-bend__range { -webkit-appearance: none; appearance: none; width: 100%; height: 28px; background: transparent; cursor: grab; }
.fg-bend__range::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: var(--fg-line-strong); }
.fg-bend__range::-moz-range-track { height: 4px; border-radius: 4px; background: var(--fg-line-strong); }
.fg-bend__range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: -10px; border-radius: 50%; background: var(--fg-accent); border: 2px solid var(--fg-ink); }
.fg-bend__range::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--fg-accent); border: 2px solid var(--fg-ink); }
.fg-bend__copy .fg-link { margin-top: 1.75rem; }
@media (max-width: 860px) { .fg-bend { grid-template-columns: 1fr; } }

/* --- glow: switch off the lights ------------------------------------------------------------------------- */

.fg-glow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.fg-glow__copy p { font-size: 1.1rem; color: var(--fg-ink-soft); max-width: 38ch; margin: 1rem 0 0; }
.fg-glow__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.fg-glow__actions .fg-lights__pet { width: 1.4rem; height: 1.4rem; }
.fg-glow__stage { display: block; padding: clamp(1rem, 2.5vw, 2rem); border-radius: var(--fg-radius); background: var(--fg-hero-bg); transition: background-color 0.5s var(--fg-ease); }
html[data-mode="night"] .fg-glow__stage { background: var(--fg-night-tile); }
.fg-glow__stage img { width: 100%; height: auto; display: block; transition: transform 0.5s var(--fg-ease), opacity 0.35s var(--fg-ease); }
.fg-glow__stage:hover img { transform: scale(1.02); }
.fg-glow--solo { grid-template-columns: 1fr; }
@media (max-width: 860px) { .fg-glow { grid-template-columns: 1fr; } .fg-glow__stage { order: -1; } }

/* --- shop archive ----------------------------------------------------------------------------------------- */

.fg-shop { padding-bottom: clamp(4rem, 8vw, 6rem); }
.fg-shop__head { padding-block: clamp(1.25rem, 3vw, 2.25rem) 0.25rem; }
.fg-shop__title { font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1; margin: 0.6rem 0 0; }
.fg-shop__desc { color: var(--fg-ink-soft); max-width: 56ch; font-size: 1.08rem; margin-top: 0.75rem; }
.fg-shop__desc p { margin: 0; }
.fg-crumbs, .woocommerce-breadcrumb { font-size: 0.875rem; color: var(--fg-ink-soft); }
.fg-crumbs a { color: var(--fg-ink-soft); text-decoration: none; }
.fg-crumbs a:hover { color: var(--fg-ink); text-decoration: underline; }

.fg-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 1.5rem; }
.fg-chip {
	display: inline-flex; align-items: center; gap: 0.4rem;
	font-weight: 600; font-size: 0.95rem; line-height: 1.2;
	padding: 0.5rem 1rem; border-radius: 999px;
	border: 1.5px solid var(--fg-line-strong);
	text-decoration: none; color: var(--fg-ink); background: transparent;
	transition: border-color 0.2s var(--fg-ease), background-color 0.2s var(--fg-ease), color 0.2s var(--fg-ease);
}
.fg-chip:hover { color: var(--fg-ink); border-color: var(--fg-ink); }
.fg-chip.is-current { background: var(--fg-ink); border-color: var(--fg-ink); color: var(--fg-base); }
.fg-chip .fg-bead { width: 0.7rem; height: 0.7rem; }
@media (max-width: 767px) {
	.fg-chips { flex-wrap: nowrap; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: none; padding-bottom: 0.25rem; margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1); padding-inline: var(--wp--style--root--padding-left, 1rem); scroll-padding-inline: var(--wp--style--root--padding-left, 1rem); }
	.fg-chips::-webkit-scrollbar { display: none; }
	.fg-chip { flex: none; scroll-snap-align: start; }
}
.fg-shop__bar { margin-block: 1.5rem 1.75rem !important; padding-top: 1.25rem; border-top: 1px solid var(--fg-line); align-items: center; color: var(--fg-ink-soft); font-size: 0.95rem; }
.fg-shop__bar p { margin: 0; }
.woocommerce-ordering select, .wc-block-catalog-sorting select, .orderby {
	appearance: none; font: 600 0.95rem var(--fg-body); color: var(--fg-ink);
	background: var(--fg-surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235A5E68' stroke-width='2.4'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 0.8rem center / 1rem no-repeat;
	border: 1.5px solid var(--fg-line-strong); border-radius: 999px; padding: 0.55rem 2.4rem 0.55rem 1rem;
}
.woocommerce-ordering { margin: 0; }
.fg-empty { padding: 3rem 0; text-align: center; }
.fg-empty h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); }

/* --- single product ----------------------------------------------------------------------------------------- */

.fg-product { padding-bottom: clamp(4rem, 8vw, 6rem); }
.fg-product .fg-crumbs { padding-top: 1.5rem; }
.fg-product__main { gap: clamp(2rem, 5vw, 4.5rem) !important; margin-top: 0.75rem !important; align-items: flex-start !important; }
.fg-product__media .wp-block-woocommerce-product-image-gallery { margin-inline: 0 auto; }
.fg-product__media .wp-block-woocommerce-product-image-gallery { max-width: 560px !important; width: 100%; }
.fg-product__media .woocommerce-product-gallery { margin: 0; position: relative; width: 100% !important; float: none !important; }
/* WooCommerce hides the gallery until its slider script runs; the main picture is the largest paint, so show it at once */
.woocommerce-product-gallery { opacity: 1 !important; }
.fg-product__media .woocommerce-product-gallery__wrapper, .fg-product__media .flex-viewport { border-radius: var(--fg-radius); background: var(--tint, var(--fg-tile)); }
html[data-mode="night"] .fg-product__media .woocommerce-product-gallery__wrapper, html[data-mode="night"] .fg-product__media .flex-viewport { background: color-mix(in srgb, var(--tint, var(--fg-tile)) 9%, var(--fg-tile)); }
.fg-product__media .woocommerce-product-gallery__image img { display: block; width: 100%; }
.fg-product__media .flex-control-thumbs { display: grid !important; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0.6rem; margin: 0.75rem 0 0 !important; padding: 0; list-style: none; }
.fg-product__media .flex-control-thumbs li { width: auto !important; margin: 0 !important; float: none !important; }
.fg-product__media .flex-control-thumbs img { border-radius: var(--fg-radius-field); background: var(--tint, var(--fg-tile)); opacity: 0.6; cursor: pointer; transition: opacity 0.2s var(--fg-ease); outline: 2px solid transparent; outline-offset: -2px; }
.fg-product__media .flex-control-thumbs img.flex-active, .fg-product__media .flex-control-thumbs img:hover { opacity: 1; outline-color: var(--fg-ink); }
.fg-product__media .woocommerce-product-gallery__trigger { position: absolute; top: 1rem; right: 1rem; z-index: 5; width: 44px; height: 44px; border-radius: 999px; background: var(--fg-surface); display: grid; place-items: center; text-indent: -9999px; color: var(--fg-ink); overflow: hidden; box-shadow: 0 1px 3px rgb(var(--fg-shadow-rgb) / 0.15); }
.fg-product__media .woocommerce-product-gallery__trigger::before { content: ""; width: 18px; height: 18px; text-indent: 0; background: var(--fg-ink); -webkit-mask: url("../icons/magnifying-glass-plus.svg") center / contain no-repeat; mask: url("../icons/magnifying-glass-plus.svg") center / contain no-repeat; }
.fg-seeglow { margin-top: 1rem; }
.fg-product__info { position: sticky; top: calc(var(--fg-header-h) + 5.5rem); align-self: flex-start; max-width: 540px; }
.fg-product__info > * + * { margin-block-start: 1rem; }
.fg-product__title { font-size: clamp(2rem, 3.2vw, 2.8rem) !important; line-height: 1.05; margin: 0 !important; }
.fg-product__price .wc-block-components-product-price, .fg-product__price { font-family: var(--fg-body) !important; font-weight: 700; font-size: 1.6rem !important; color: var(--fg-ink); text-align: left !important; }
.fg-product__excerpt { color: var(--fg-ink-soft); font-size: 1.1rem; }
.fg-product__excerpt p { margin: 0; }
.fg-product__buy form.cart { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: stretch; margin: 0.5rem 0 0 !important; }
.fg-product__buy .quantity input.qty { height: 54px; width: 5.25rem; border-radius: 999px; border: 1.5px solid var(--fg-line-strong); background: var(--fg-surface); color: var(--fg-ink); text-align: center; font: 700 1.05rem var(--fg-body); }
.fg-product__buy .single_add_to_cart_button { flex: 1 1 auto; min-height: 54px; font-size: 1.08rem !important; border-radius: 999px !important; background: var(--fg-accent) !important; color: var(--fg-accent-ink) !important; }
.fg-product__buy .single_add_to_cart_button:hover { background: var(--fg-accent-hover) !important; }
/* facts: what you want to know before buying, as a small two-column sheet */
.fg-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.9rem 1.5rem; margin: 1.5rem 0 0; padding: 1.1rem 1.25rem; border-radius: var(--fg-radius); background: var(--fg-surface); box-shadow: inset 0 0 0 1px var(--fg-line); }
.fg-facts div { min-width: 0; }
.fg-facts dt { font-size: 0.82rem; font-weight: 600; color: var(--fg-ink-soft); margin: 0 0 0.15rem; }
.fg-facts dd { margin: 0; font-weight: 650; font-size: 0.98rem; line-height: 1.35; }
@media (max-width: 420px) { .fg-facts { grid-template-columns: 1fr; } }
.fg-product__about { margin-top: clamp(3.5rem, 7vw, 5.5rem) !important; padding-top: clamp(2rem, 4vw, 3rem); border-top: 1px solid var(--fg-line); display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: 1rem clamp(2rem, 5vw, 4.5rem); }
.fg-product__about-title { font-size: clamp(1.7rem, 2.6vw, 2.2rem) !important; margin: 0 !important; }
.fg-product__desc { max-width: 64ch; font-size: 1.06rem; color: var(--fg-ink); }
.fg-product__desc > :first-child { margin-top: 0; }
.fg-product__desc h3 { font-family: var(--fg-body); font-weight: 700; font-size: 1.1rem; margin: 1.75rem 0 0.4rem; }
.fg-product__desc ul { padding-left: 1.2rem; }
@media (max-width: 781px) { .fg-product__about { grid-template-columns: 1fr; } }
.fg-assure { list-style: none; padding: 1.25rem 0 0; margin: 1.5rem 0 0; display: grid; gap: 0.8rem; border-top: 1px solid var(--fg-line); }
.fg-assure li { display: flex; gap: 0.75rem; align-items: center; font-size: 0.98rem; }
.fg-assure .fg-icon { color: var(--fg-ink); }
.fg-assure a { color: inherit; text-decoration-color: var(--fg-line-strong); text-underline-offset: 0.2em; }
.fg-assure a:hover { text-decoration-color: currentColor; }
.wp-block-woocommerce-product-meta { font-size: 0.875rem; color: var(--fg-ink-soft); }
.wp-block-woocommerce-product-meta .wp-block-group { gap: 1.25rem; flex-wrap: wrap; }
.wp-block-woocommerce-product-meta a { color: var(--fg-ink-soft); }
.fg-product__details { margin-top: clamp(3rem, 6vw, 5rem) !important; }
.woocommerce-tabs ul.tabs { display: flex; gap: 0.5rem; list-style: none; padding: 0; margin: 0 0 1.5rem; border: 0 !important; overflow: visible !important; }
.woocommerce-tabs ul.tabs li { margin: 0 !important; border: 0 !important; background: none !important; padding: 0 !important; }
.woocommerce-tabs ul.tabs li::before, .woocommerce-tabs ul.tabs li::after, .woocommerce-tabs ul.tabs::before { display: none !important; }
.woocommerce-tabs ul.tabs li a { display: inline-block; text-decoration: none; font-weight: 700; padding: 0.5rem 1.1rem; border-radius: 999px; border: 1.5px solid var(--fg-line-strong); color: var(--fg-ink); }
.woocommerce-tabs ul.tabs li.active a { background: var(--fg-ink); border-color: var(--fg-ink); color: var(--fg-base); }
.woocommerce-Tabs-panel { max-width: 68ch; font-size: 1.06rem; }
.woocommerce-Tabs-panel h3 { font-size: 1.5rem; margin: 2rem 0 0.5rem; }
.woocommerce-Tabs-panel table.shop_attributes { border-collapse: collapse; width: 100%; border: 0; }
.woocommerce-Tabs-panel table.shop_attributes th, .woocommerce-Tabs-panel table.shop_attributes td { text-align: left; padding: 0.7rem 0; border: 0; border-bottom: 1px solid var(--fg-line); font-style: normal; background: none !important; }
.woocommerce-Tabs-panel table.shop_attributes th { width: 30%; font-weight: 700; }
.woocommerce-Tabs-panel table.shop_attributes td p { margin: 0; }
.fg-related__title { font-size: clamp(1.9rem, 3.2vw, 2.7rem) !important; margin-top: clamp(4rem, 8vw, 6rem) !important; margin-bottom: 1.5rem !important; }
@media (max-width: 781px) { .fg-product__info { position: static; } }

/* --- WooCommerce blocks: cart, checkout, notices, forms ------------------------------------------------------- */

.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-block-components-textarea, .wc-blocks-components-select .wc-blocks-components-select__select,
.woocommerce form .input-text, .woocommerce form select {
	border-radius: var(--fg-radius-field) !important; border-color: var(--fg-line-strong) !important;
	background-color: var(--fg-surface) !important; color: var(--fg-ink) !important;
}
.wc-block-components-text-input label, .wc-blocks-components-select__label { color: var(--fg-ink-soft) !important; }
.wc-block-components-button:not(.is-link), .wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	border-radius: 999px !important; background: var(--fg-accent) !important; color: var(--fg-accent-ink) !important;
	font-weight: 700 !important; min-height: 54px;
}
.wc-block-components-button:not(.is-link):hover { background: var(--fg-accent-hover) !important; }
.wc-block-components-button:not(.is-link):active { transform: translateY(1px) scale(0.99); }
.wc-block-cart, .wc-block-checkout { color: var(--fg-ink); }
.wc-block-cart .wc-block-cart__totals-title, .wc-block-components-checkout-step__title, .wc-block-components-title { font-family: var(--fg-display) !important; font-weight: 400 !important; text-transform: none !important; letter-spacing: 0 !important; }
.wc-block-components-totals-wrapper, .wc-block-components-panel, .wc-block-cart-items, .wc-block-components-order-summary { border-color: var(--fg-line) !important; }
.wc-block-cart-item__image img, .wc-block-components-order-summary-item__image img { border-radius: var(--fg-radius-field); background: var(--fg-tile); }
.wc-block-components-notice-banner { border-radius: var(--fg-radius-field); }
.woocommerce-store-notice, p.demo_store { background: var(--fg-ink) !important; color: var(--fg-base) !important; }

/* --- pages / prose ------------------------------------------------------------------------------------------------ */

.fg-page { padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); }
.fg-page__title { font-size: clamp(2.4rem, 5vw, 3.6rem) !important; line-height: 1.02; margin-bottom: 1.75rem !important; }
.fg-page--wide .fg-page__title { margin-bottom: 0 !important; }
.fg-page--wide .wp-block-post-content > .fg-sec:first-child { padding-top: 0.25rem; }
.fg-page--wide .fg-gang .fg-sec__title { display: none; }
.fg-page--wide .fg-gang .fg-sec__lede { margin-top: 0.75rem; }
.fg-prose { font-size: 1.1rem; }
.fg-prose h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin-top: 2.75rem; }
.fg-prose h3 { font-size: 1.35rem; margin-top: 2rem; }
.fg-prose li + li { margin-top: 0.35rem; }

/* --- footer ------------------------------------------------------------------------------------------------------- */

.fg-footer { border-top: 1px solid var(--fg-line); padding-block: clamp(2.5rem, 5vw, 4rem) 0; margin-top: clamp(4rem, 8vw, 6rem); }
.fg-footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 2rem; }
.fg-footer__brand .fg-logo { font-size: 2.1rem; }
.fg-footer__brand p { color: var(--fg-ink-soft); max-width: 34ch; margin: 1rem 0 0; }
.fg-footer__title { font-family: var(--fg-body); font-size: 0.98rem; font-weight: 700; color: var(--fg-ink); margin: 0 0 0.8rem; letter-spacing: 0; }
.fg-footer__col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
.fg-footer__col a { text-decoration: none; color: var(--fg-ink-soft); }
.fg-footer__col a:hover { color: var(--fg-ink); text-decoration: underline; }
.fg-footer__note p { color: var(--fg-ink-soft); font-size: 0.95rem; margin: 0; }
.fg-footer__brand .fg-footer__small { margin-top: 0.6rem; }
.fg-footer__small { font-size: 0.875rem; }
.fg-footer__company p, .fg-footer__company address { color: var(--fg-ink-soft); font-style: normal; font-size: 0.95rem; margin: 0 0 0.7rem; }
.fg-footer__company address span, .fg-footer__company .fg-footer__small span { display: block; }
.fg-footer__base { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.5rem 2rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); padding: 1.25rem 0 1.5rem; border-top: 1px solid var(--fg-line); color: var(--fg-ink-soft); font-size: 0.875rem; }
.fg-footer__base p { margin: 0; }
.fg-footer__base a { color: var(--fg-ink-soft); }
@media (max-width: 900px) { .fg-footer__grid { grid-template-columns: 1fr 1fr; } .fg-footer__brand { grid-column: span 2; } }
@media (max-width: 520px) { .fg-footer__grid { grid-template-columns: 1fr; } .fg-footer__brand { grid-column: auto; } }

/* --- the lights-off moment ------------------------------------------------------------------------------------------ */

.fg-lights-veil { position: fixed; inset: 0; pointer-events: none; z-index: 90; /* layer: transient veil */ background: #0B0D12; opacity: 0; }
@media (prefers-reduced-motion: no-preference) { .fg-lights-veil.is-on { animation: fg-veil 0.7s var(--fg-ease); } }
@keyframes fg-veil { 0% { opacity: 0; } 30% { opacity: 0.6; } 100% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
	*, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}

/* ---------------------------------------------------------------- mystery bags */
:root {
	--fg-holo: conic-gradient(from 210deg at 68% 32%, #F6D6EC, #FBEDC6, #D2F2E2, #D0E7FA, #E0D6F8, #F6D6EC);
	--fg-holo-strong: linear-gradient(110deg, #F3B6DF 0%, #FBE39E 24%, #A9EFCB 48%, #A3D6F7 70%, #C7B2F5 100%);
}
html[data-mode="night"] {
	--fg-holo: conic-gradient(from 210deg at 68% 32%, #2A1F33, #2C2A1F, #1C2C27, #1B2633, #241F35, #2A1F33);
}
.fg-holo-dot {
	display: inline-block; flex: none; width: 0.75em; height: 0.75em; border-radius: 50%;
	background: var(--fg-holo-strong); box-shadow: inset 0 -1px 2px rgb(0 0 0 / 0.2);
}
.fg-catnav .fg-holo-dot { margin-right: 0.4rem; }
.fg-tile--holo a { background: var(--fg-holo); }
.fg-tile--holo a:hover { background: var(--fg-holo); filter: saturate(1.25); }
.fg-tile--holo .fg-tile__img img { box-sizing: border-box; padding: 3% 8% 9%; }

/* Lucky bags on the front page (patterns/lucky.php): three cards, each a whole-card link */
.fg-lucky__head { max-width: 46rem; }
.fg-lucky__head > p { font-size: 1.1rem; color: var(--fg-ink-soft); margin: 0.75rem 0 0; }
.fg-lucky__list { list-style: none; margin: 1.75rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1rem, 2.5vw, 2rem); }
.fg-lucky__card { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 0.4rem; }
.fg-lucky__pic { display: block; width: 100%; aspect-ratio: 1; border-radius: var(--fg-radius); background: var(--fg-holo); padding: clamp(0.75rem, 2vw, 1.25rem); box-sizing: border-box; }
.fg-lucky__pic img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform 0.5s var(--fg-spring); }
.fg-lucky__card:hover .fg-lucky__pic img { transform: translateY(-4px) rotate(-2deg); }
.fg-lucky__name { margin: 0.6rem 0 0; font-size: clamp(1.15rem, 1.6vw, 1.35rem); line-height: 1.2; }
.fg-lucky__name a { color: inherit; text-decoration: none; }
.fg-lucky__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--fg-radius); }
.fg-lucky__name a:focus-visible { outline: none; }
.fg-lucky__name a:focus-visible::after { outline: 3px solid var(--fg-ink); outline-offset: 4px; }
.fg-lucky__price { margin: 0; display: flex; align-items: baseline; gap: 0.6rem; flex-wrap: wrap; }
.fg-lucky__price strong { font-size: 1.4rem; }
.fg-lucky__value { color: var(--fg-ink-soft); font-size: 0.95rem; }
.fg-lucky__save { margin: 0.15rem 0 0; font-weight: 800; font-size: 0.85rem; line-height: 1; padding: 0.4rem 0.7rem; border-radius: 999px; background: var(--fg-ink); color: var(--fg-base); }
.fg-lucky__more { margin: 1.75rem 0 0; }
@media (max-width: 760px) {
	.fg-lucky__list { grid-template-columns: 1fr; gap: 1rem; }
	.fg-lucky__card { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.3rem; align-items: center; }
	.fg-lucky__pic { grid-row: 1 / span 3; }
	.fg-lucky__name { margin: 0; }
	.fg-lucky__save { justify-self: start; }
}
@media (prefers-reduced-motion: reduce) { .fg-lucky__pic img { transition: none; } }
.fg-myst { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 4rem); align-items: center; }
.fg-myst__stage { display: block; padding: clamp(1rem, 3vw, 2.5rem); border-radius: var(--fg-radius); background: var(--fg-holo); }
.fg-myst__stage img { width: 100%; max-width: 520px; height: auto; display: block; margin-inline: auto; transition: transform 0.5s var(--fg-spring); }
a.fg-myst__stage:hover img { transform: translateY(-4px) rotate(-2deg); }
.fg-myst__copy > p { font-size: 1.1rem; color: var(--fg-ink-soft); max-width: 42ch; margin: 1rem 0 0; }
.fg-myst__lede { font-size: clamp(1.15rem, 1.6vw, 1.3rem) !important; color: var(--fg-ink) !important; margin-top: 0 !important; }
.fg-myst__row { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 0.4rem; max-width: 34rem; }
.fg-myst__fig { aspect-ratio: 1; border-radius: 50%; background: var(--fg-tile); display: grid; place-items: center; overflow: hidden; }
.fg-myst__fig img { width: 118%; height: 118%; object-fit: contain; display: block; }
.fg-myst__fig--sallsynt { box-shadow: inset 0 0 0 2px var(--fg-ink); }
.fg-myst__fig--legendarisk { background: var(--fg-holo-strong); }
html[data-mode="night"] .fg-myst__fig--legendarisk { background: var(--fg-night-tile); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.1); }
.fg-myst__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 1.5rem; margin-top: 1.75rem; }
.fg-myst--page { padding-top: 0.5rem; }
@media (max-width: 860px) {
	.fg-myst { grid-template-columns: 1fr; }
	.fg-myst__row { grid-template-columns: repeat(5, minmax(0, 1fr)); max-width: 20rem; }
}

.fg-steps { list-style: none; counter-reset: fgstep; margin: 1.5rem 0 0; padding: 0; display: grid; gap: 0.75rem; max-width: 40ch; }
.fg-steps li { counter-increment: fgstep; position: relative; padding-left: 2.6rem; color: var(--fg-ink-soft); }
.fg-steps li::before { content: counter(fgstep); position: absolute; left: 0; top: 0.05em; font-family: var(--fg-display); font-size: 1.35rem; line-height: 1; color: var(--fg-accent-deep); }
html[data-mode="night"] .fg-steps li::before { color: var(--fg-accent); }
.fg-steps strong { color: var(--fg-ink); }

.fg-rar {
	display: inline-flex; align-items: center; padding: 0.22rem 0.7rem; border-radius: 999px;
	font-size: 0.8rem; font-weight: 700; line-height: 1.2; letter-spacing: 0.01em; white-space: nowrap;
	color: var(--fg-ink); box-shadow: inset 0 0 0 1.5px var(--fg-line-strong);
}
.fg-rar--sallsynt { background: var(--fg-ink); color: var(--fg-base); box-shadow: none; }
.fg-rar--legendarisk { background: var(--fg-holo-strong); color: #16171B; box-shadow: none; }

.fg-serie__group + .fg-serie__group { margin-top: clamp(2rem, 4vw, 3rem); }
.fg-serie__odds { display: flex; align-items: center; gap: 0.75rem; flex-wrap: wrap; margin: 0 0 1rem; color: var(--fg-ink-soft); }
.fg-serie__grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.fg-serie__group:nth-of-type(2) .fg-serie__grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.fg-serie__card { min-width: 0; }
.fg-serie__img { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--fg-radius); background: var(--fg-tile); overflow: hidden; }
.fg-serie__card--sallsynt .fg-serie__img { background: var(--fg-holo); }
.fg-serie__img img { width: 92%; height: 92%; object-fit: contain; display: block; transition: transform 0.45s var(--fg-spring); }
.fg-serie__card:hover .fg-serie__img img { transform: translateY(-4px) rotate(-3deg); }
.fg-serie__name { font-family: var(--fg-body); font-size: 1.02rem; font-weight: 700; margin: 0.7rem 0 0.15rem; line-height: 1.25; }
.fg-serie__line { margin: 0; color: var(--fg-ink-soft); font-size: 0.92rem; line-height: 1.4; }
@media (max-width: 1000px) { .fg-serie__grid, .fg-serie__group:nth-of-type(2) .fg-serie__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .fg-serie__grid, .fg-serie__group:nth-of-type(2) .fg-serie__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fg-legend { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: clamp(1.25rem, 3vw, 3rem); align-items: center; }
.fg-legend__pair { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(0.75rem, 1.5vw, 1.25rem); }
.fg-legend__pair > span { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--fg-radius); overflow: hidden; }
.fg-legend__day { background: var(--fg-holo); }
.fg-legend__night { background: var(--fg-night-tile); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06); }
.fg-legend__pair img { width: 92%; height: 92%; object-fit: contain; display: block; }
.fg-legend__name { font-size: clamp(1.7rem, 2.8vw, 2.3rem); margin: 0 0 0.75rem; line-height: 1; }
.fg-legend__copy p { color: var(--fg-ink-soft); font-size: 1.05rem; max-width: 40ch; margin: 0 0 0.75rem; }
@media (max-width: 860px) { .fg-legend { grid-template-columns: 1fr; } }

.fg-faq__list { display: grid; gap: 0.6rem; max-width: 52rem; }
.fg-faq__list details { border-radius: var(--fg-radius-field); background: var(--fg-surface); box-shadow: inset 0 0 0 1px var(--fg-line); }
.fg-faq__list summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.25rem; font-weight: 700; position: relative; }
.fg-faq__list summary::-webkit-details-marker { display: none; }
.fg-faq__list summary::after { content: "+"; position: absolute; right: 1.25rem; top: 50%; transform: translateY(-50%); font-size: 1.3rem; font-weight: 400; color: var(--fg-ink-soft); transition: transform 0.3s var(--fg-ease); }
.fg-faq__list details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.fg-faq__list details p { margin: 0; padding: 0 1.25rem 1.1rem; color: var(--fg-ink-soft); max-width: 62ch; }
@media (prefers-reduced-motion: reduce) {
	.fg-myst__stage img, .fg-serie__img img, .fg-faq__list summary::after { transition: none; }
}

/* ---------------------------------------------------------------- the pull cord (lights) */
/* A lamp cord hangs down past the header in the right gutter; pulling it turns the shop's lights off
   so the glow products glow. The bead at the end is the same glow bead as the dots in the logo. */
.fg-header { position: relative; }
.fg-cord {
	position: absolute; top: 0; z-index: 2; /* layer: above header rows */
	right: max(6px, calc((100% - var(--wp--style--global--wide-size, 1320px)) / 2 - 34px));
	width: 30px; height: calc(100% + 62px); padding: 0; border: 0; background: none; cursor: pointer;
	-webkit-tap-highlight-color: transparent;
}
.fg-cord__line {
	position: absolute; left: 50%; top: 0; bottom: 46px; width: 2px; margin-left: -1px; border-radius: 2px;
	background: linear-gradient(var(--fg-line-strong), var(--fg-ink-soft));
	transform-origin: 50% 0; transition: transform 0.45s var(--fg-spring);
}
/* The koala clinging to the cord (fingili_koala): grey by day, glowing at night like the glow plastic */
.fg-koala { display: inline-block; flex: none; line-height: 0; }
.fg-koala svg { width: 100%; height: 100%; overflow: visible; }
.fg-koala__cord { fill: none; stroke: var(--fg-ink-soft); stroke-width: 2; stroke-linecap: round; }
.fg-koala__fur, .fg-koala__paw { fill: #C3CBD6; stroke: #7D8696; stroke-width: 1.1; transition: fill 0.6s var(--fg-ease), stroke 0.6s var(--fg-ease); }
.fg-koala__fluff { fill: #F6F7FA; }
.fg-koala__ear, .fg-koala__bean { fill: #F7C1CF; }
.fg-koala__belly { fill: #EEF1F5; }
.fg-koala__tuft { fill: none; stroke: #7D8696; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.fg-koala__limb-o { fill: none; stroke: #7D8696; stroke-width: 6.2; stroke-linecap: round; }
.fg-koala__limb { fill: none; stroke: #C3CBD6; stroke-width: 4; stroke-linecap: round; transition: stroke 0.6s var(--fg-ease); }
.fg-koala__eye { fill: #1D1D1F; }
.fg-koala__shine { fill: #fff; }
.fg-koala__nose { fill: #40404E; }
.fg-koala__blush { fill: #FF9DB5; opacity: 0.7; }
.fg-koala__ink { fill: none; stroke: #1D1D1F; stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.fg-koala__leaf { fill: #86CB7E; stroke: #4E9A55; stroke-width: 0.9; }
.fg-koala__vein { fill: none; stroke: #4E9A55; stroke-width: 0.8; stroke-linecap: round; }
.fg-koala__bead { fill: var(--fg-bead-2); stroke: color-mix(in srgb, var(--fg-ink) 25%, var(--fg-bead-2)); stroke-width: 1; }
html[data-mode="night"] .fg-koala__fur, html[data-mode="night"] .fg-koala__paw { fill: var(--fg-glow); stroke: color-mix(in srgb, #fff 55%, var(--fg-glow)); }
html[data-mode="night"] .fg-koala__fluff { fill: color-mix(in srgb, #fff 62%, var(--fg-glow)); }
html[data-mode="night"] .fg-koala__ear, html[data-mode="night"] .fg-koala__bean { fill: #FFC6D6; }
html[data-mode="night"] .fg-koala__belly { fill: color-mix(in srgb, #fff 35%, var(--fg-glow)); }
html[data-mode="night"] .fg-koala__tuft, html[data-mode="night"] .fg-koala__limb-o { stroke: color-mix(in srgb, #fff 55%, var(--fg-glow)); }
html[data-mode="night"] .fg-koala__limb { stroke: var(--fg-glow); }
html[data-mode="night"] .fg-koala__leaf { fill: #A6FFAE; stroke: #DFFFE2; }
html[data-mode="night"] .fg-koala__vein { stroke: #5FC56A; }
html[data-mode="night"] .fg-koala__bead { fill: var(--fg-bead-2-glow); stroke: color-mix(in srgb, #fff 50%, var(--fg-bead-2-glow)); }
html[data-mode="night"] .fg-koala svg { filter: drop-shadow(0 0 3px color-mix(in srgb, var(--fg-glow) 80%, transparent)) drop-shadow(0 0 10px color-mix(in srgb, var(--fg-glow) 45%, transparent)); }
.fg-koala__eyes { transform-box: fill-box; transform-origin: 50% 50%; }
@media (prefers-reduced-motion: no-preference) {
	/* it blinks now and then, and sways a little on its cord */
	.fg-koala__eyes { animation: fg-koala-blink 5.5s infinite; }
	@keyframes fg-koala-blink { 0%, 92%, 97%, 100% { transform: scaleY(1); } 94.5% { transform: scaleY(0.1); } }
	.fg-cord__pet { animation: fg-koala-sway 6s var(--fg-ease) infinite; }
	@keyframes fg-koala-sway { 0%, 100% { rotate: 0deg; } 30% { rotate: 2.5deg; } 70% { rotate: -2deg; } }
}
.fg-cord__pet {
	position: absolute; left: 50%; bottom: -6px; width: 40px; height: 55px; margin-left: -20px;
	transform-origin: 50% 0; filter: drop-shadow(0 2px 3px rgb(var(--fg-shadow-rgb) / 0.22));
	transition: transform 0.45s var(--fg-spring);
}
html[data-mode="night"] .fg-cord__pet { filter: none; }
.fg-cord:hover .fg-cord__pet { transform: translateY(4px) rotate(-5deg); }
.fg-cord.is-pulled .fg-cord__line { transform: scaleY(1.08); }
.fg-cord.is-pulled .fg-cord__pet { transform: translateY(14px); }
.fg-cord:focus-visible { outline: none; }
.fg-cord:focus-visible .fg-cord__pet { outline: 2px solid var(--fg-ink); outline-offset: 3px; border-radius: 14px; }
@media (prefers-reduced-motion: no-preference) {
	.fg-cord.is-hinting .fg-cord__pet { animation: fg-pet-swing 1.6s var(--fg-ease) 2; }
	@keyframes fg-pet-swing { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg); } 75% { transform: rotate(6deg); } }
	.fg-cord__say { animation: fg-say-bob 3.2s var(--fg-ease) infinite; }
	@keyframes fg-say-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -2px; } }
}
.fg-lights__pet { width: 1.55rem; height: 1.15rem; margin: -0.2rem 0; }
/* the koala's speech bubble: "Dra ner mig!" (always shown on wide screens, on hover and the first-visit hint on small ones) */
.fg-cord__say {
	position: absolute; right: 34px; bottom: 26px; white-space: nowrap;
	font-size: 0.8rem; font-weight: 800; line-height: 1; padding: 0.5rem 0.7rem; border-radius: 999px;
	background: var(--fg-base); color: var(--fg-ink); border: 2px solid var(--fg-ink);
	box-shadow: 0 2px 0 var(--fg-ink);
	opacity: 0; transform: translateX(6px) scale(0.9); transform-origin: 100% 50%; pointer-events: none;
	transition: opacity 0.3s var(--fg-ease), transform 0.3s var(--fg-ease);
}
.fg-cord__say::after {
	content: ""; position: absolute; right: -7px; top: 50%; width: 10px; height: 10px; margin-top: -6px;
	background: var(--fg-base); border: solid var(--fg-ink); border-width: 2px 2px 0 0; transform: rotate(45deg) skew(8deg, 8deg);
}
.fg-cord:hover .fg-cord__say, .fg-cord:focus-visible .fg-cord__say, .fg-cord.is-hinting .fg-cord__say { opacity: 1; transform: none; }
.fg-cord.is-pulled .fg-cord__say { opacity: 0; }
@media (min-width: 1024px) {
	.fg-cord { right: max(12px, calc((100% - var(--wp--style--global--wide-size, 1320px)) / 2 - 34px)); height: calc(100% + 76px); }
	.fg-cord__line { bottom: 60px; }
	.fg-cord__pet { width: 50px; height: 69px; margin-left: -25px; }
	.fg-cord__say { opacity: 1; transform: none; right: 42px; bottom: 28px; }
}
/* on tablets the koala talks on the front page; on phones it would sit on the hero card, so there and elsewhere only on tap and the first-visit hint */
@media (min-width: 481px) and (max-width: 1023px) {
	.home .fg-cord__say { opacity: 1; transform: none; }
}
@media (max-width: 640px) {
	.fg-cord { height: calc(100% + 58px); }
	.fg-cord__pet { width: 36px; height: 50px; margin-left: -18px; }
	.fg-cord__line { bottom: 42px; }
	.fg-cord__say { right: 30px; bottom: 20px; font-size: 0.74rem; }
}
@media (max-width: 1420px) {
	.fg-header__bar, .fg-catnav { padding-right: 30px; }
}
@media (prefers-reduced-motion: reduce) {
	.fg-cord__line, .fg-cord__pet, .fg-cord__say { transition: none; }
}

/* ---------------------------------------------------------------- language switch */
.fg-lang {
	display: inline-flex; align-items: center; justify-content: center; height: 42px; min-width: 42px; padding: 0 0.6rem;
	border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--fg-line-strong); color: var(--fg-ink);
	font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; text-decoration: none;
}
.fg-lang:hover { box-shadow: inset 0 0 0 1.5px var(--fg-ink); color: var(--fg-ink); }

/* --- contact form ------------------------------------------------------------------ */

.fg-contact { margin-block: 1.5rem 2rem; max-width: 640px; }
.fg-form { display: grid; gap: 1rem; }
.fg-form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
@media (max-width: 600px) { .fg-form__row { grid-template-columns: 1fr; } }
.fg-field { display: grid; gap: 0.4rem; margin: 0; }
.fg-field label { font-weight: 600; font-size: 0.95rem; color: var(--fg-ink); }
.fg-field__opt { font-weight: 400; color: var(--fg-ink-soft); }
.fg-field input, .fg-field textarea {
	font: inherit; color: var(--fg-ink); background: var(--fg-surface);
	border: 1px solid var(--fg-line-strong); border-radius: var(--fg-radius-field);
	padding: 0.75rem 0.9rem; width: 100%; box-sizing: border-box;
	transition: border-color 0.2s var(--fg-ease), box-shadow 0.2s var(--fg-ease);
}
.fg-field textarea { resize: vertical; min-height: 9rem; }
.fg-field input:focus-visible, .fg-field textarea:focus-visible { outline: none; border-color: var(--fg-ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--fg-accent) 35%, transparent); }
.fg-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.fg-form__foot { display: flex; align-items: center; gap: 1rem 1.25rem; flex-wrap: wrap; }
.fg-form__note { margin: 0; color: var(--fg-ink-soft); font-size: 0.875rem; }
.fg-notice { border-radius: var(--fg-radius-field); padding: 0.85rem 1rem; margin: 0 0 1rem; border: 1px solid var(--fg-line-strong); background: var(--fg-surface); }
.fg-notice--ok { border-color: color-mix(in srgb, #2E9E5B 55%, var(--fg-line)); }
.fg-notice--error { border-color: color-mix(in srgb, #C8301F 60%, var(--fg-line)); }

/* --- shipping table ---------------------------------------------------------------- */

.fg-ship { margin-block: 1.25rem; max-width: 560px; }
.fg-ship table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.fg-ship th, .fg-ship td { text-align: left; padding: 0.6rem 0.75rem; border: 0; border-bottom: 1px solid var(--fg-line); }
.fg-ship th { font-size: 0.875rem; color: var(--fg-ink-soft); font-weight: 600; }
.fg-ship td + td, .fg-ship th + th { text-align: right; }

/* ==========================================================================
   v4: "candy shop" layer (November 2026)
   Read: a Swedish toy and gift shop for kids 6-14 and the parents who pay. Playful sticker language on top of
   the v3 mechanics. Dials: variance 6, motion 5, density 5.
   Colour rule: cone orange stays the one action colour (buttons, cart). Candy pastels are identity, never
   action: each product line and theme shelf has its own, used for pills, tiles and stickers.
   Shape rule (unchanged): interactive things are pills, media and panels 20-24px, fields 12px.
   Toy buttons: primary buttons sit on a 4px "ledge" and press down when clicked.
   ========================================================================== */

:root {
	--fg-base: #F4F6FF;
	--fg-surface: #FFFFFF;
	--fg-tile: #E8EDFB;
	--fg-tile-hover: #DEE5F8;
	--fg-ink: #1E1B3A;
	--fg-ink-soft: #5A5D7A;
	--fg-line: #DCE1F2;
	--fg-line-strong: #B4BBD6;
	--fg-shadow-rgb: 40 36 92;
	--fg-header-bg: rgb(244 246 255 / 0.9);
	--fg-hero-bg: #D9ECFF;
	--fg-radius: 22px;
	/* candy */
	--c-pink: #FFD3E1; --c-mint: #C9F3D6; --c-sky: #CFE6FF; --c-butter: #FFF0A8;
	--c-lilac: #E4D9FF; --c-peach: #FFDCC6; --c-aqua: #C8F1EC; --c-lime: #E4F6B8;
	--c-pink-ink: #B0245A; --c-ledge: #1E1B3A;
}
html[data-mode="night"] {
	--fg-ink: #EEF0FA;
	--fg-ink-soft: #A3A8C4;
	--c-pink: #3A2232; --c-mint: #1C3328; --c-sky: #1C2A40; --c-butter: #36321C;
	--c-lilac: #2B2545; --c-peach: #3A2A20; --c-aqua: #1A3634; --c-lime: #2C3420;
	--c-ledge: #000;
}

/* candy per product line and theme shelf */
.fg-catnav__item--mochi, .fg-theme--katter, .fg-chip--mochi, .fg-chip--katter { --candy: var(--c-pink); }
.fg-catnav__item--vickdjur, .fg-theme--skogen, .fg-chip--vickdjur, .fg-chip--skogen { --candy: var(--c-peach); }
.fg-catnav__item--flexi-djur, .fg-theme--smakryp, .fg-chip--flexi-djur, .fg-chip--smakryp { --candy: var(--c-mint); }
.fg-catnav__item--nyckelringar, .fg-theme--hundar, .fg-chip--nyckelringar, .fg-chip--hundar { --candy: var(--c-sky); }
.fg-catnav__item--ganget, .fg-theme--godsaker, .fg-chip--ganget, .fg-chip--godsaker { --candy: var(--c-butter); }
.fg-catnav__item--mysteriepasar, .fg-theme--fantasi, .fg-chip--mysteriepasar, .fg-chip--fantasi { --candy: var(--c-lilac); }
.fg-theme--smadjur, .fg-chip--smadjur, .fg-chip--bokmarken { --candy: var(--c-lime); }
.fg-theme--bondgarden, .fg-chip--bondgarden, .fg-chip--pennknoppar { --candy: var(--c-butter); }
.fg-theme--vilda-djur, .fg-chip--vilda-djur, .fg-chip--kabelbitare { --candy: var(--c-peach); }
.fg-theme--havet, .fg-chip--havet, .fg-chip--smyckesfat { --candy: var(--c-aqua); }
.fg-theme--hogtider, .fg-chip--hogtider, .fg-chip--kakmatt { --candy: var(--c-pink); }
.fg-theme--himlen, .fg-chip--himlen, .fg-chip--lyser-i-morkret { --candy: var(--c-lilac); }

/* --- toy buttons --------------------------------------------------------------- */
.fg-btn:not(.fg-btn--quiet) {
	box-shadow: 0 4px 0 var(--fg-accent-deep);
	transition: transform 0.12s var(--fg-ease), box-shadow 0.12s var(--fg-ease), background-color 0.2s var(--fg-ease);
}
.fg-btn:not(.fg-btn--quiet):hover { transform: translateY(-1px); box-shadow: 0 5px 0 var(--fg-accent-deep); }
.fg-btn:not(.fg-btn--quiet):active { transform: translateY(3px); box-shadow: 0 1px 0 var(--fg-accent-deep); }
.fg-btn--quiet { border-width: 2px; box-shadow: 0 3px 0 var(--c-ledge); }
.fg-btn--quiet:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-ledge); }
.wp-block-woocommerce-product-button .wp-block-button__link:not(.fg-grid *),
.single-product .single_add_to_carts_button, .single-product button.single_add_to_cart_button,
.wc-block-cart__submit-button, .wc-block-components-checkout-place-order-button {
	box-shadow: 0 4px 0 var(--fg-accent-deep) !important;
	transition: transform 0.12s var(--fg-ease), box-shadow 0.12s var(--fg-ease) !important;
}
.single-product button.single_add_to_cart_button:active, .wc-block-cart__submit-button:active,
.wc-block-components-checkout-place-order-button:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--fg-accent-deep) !important; }

/* --- header ---------------------------------------------------------------------- */
.fg-announce { position: relative; z-index: 2; }
.fg-announce::after { /* scalloped edge, like the trim on a market stall */
	content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 7px; pointer-events: none;
	background: radial-gradient(circle at 9px 0, var(--fg-accent) 7px, transparent 7.5px) 0 0 / 18px 7px repeat-x;
}
.fg-header { border-bottom: 0; box-shadow: 0 1px 0 var(--fg-line), 0 10px 24px -18px rgb(var(--fg-shadow-rgb) / 0.35); }
.fg-header__bar { min-height: 76px; }
.fg-logo { font-size: 2.6rem; }
@media (prefers-reduced-motion: no-preference) {
	.fg-logo:hover .fg-logo__i::before { animation: fg-hop 0.6s var(--fg-spring); }
	.fg-logo:hover .fg-logo__i--2::before { animation-delay: 0.07s; }
	.fg-logo:hover .fg-logo__i--3::before { animation-delay: 0.14s; }
}
@keyframes fg-hop { 0%, 100% { transform: translateX(-50%) translateY(0); } 45% { transform: translateX(-50%) translateY(-0.28em); } }

.fg-search .wp-block-search__inside-wrapper { border: 2px solid var(--fg-ink) !important; background: var(--fg-surface); box-shadow: 0 3px 0 var(--c-ledge); }
.fg-search .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 3px 0 var(--c-ledge), 0 0 0 4px var(--c-butter); }
.fg-search .wp-block-search__button { background: var(--fg-accent) !important; color: var(--fg-accent-ink) !important; }
.fg-search .wp-block-search__input { font-weight: 600; }

.fg-iconbtn, .fg-lang {
	display: inline-grid; place-items: center; width: 44px; height: 44px; flex: none;
	border-radius: 999px; border: 2px solid var(--fg-ink); background: var(--fg-surface); color: var(--fg-ink);
	box-shadow: 0 3px 0 var(--c-ledge); text-decoration: none; font-weight: 800; font-size: 0.85rem;
	transition: transform 0.12s var(--fg-ease), box-shadow 0.12s var(--fg-ease), background-color 0.2s var(--fg-ease);
}
.fg-iconbtn:hover, .fg-lang:hover { background: var(--c-butter); color: var(--fg-ink); }
.fg-iconbtn:active, .fg-lang:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-ledge); }
.fg-iconbtn .fg-icon { width: 1.3rem; height: 1.3rem; }
.fg-header__tools { gap: 0.6rem; }
.fg-cart .wc-block-mini-cart__button { height: 44px; border: 2px solid var(--fg-ink); background: var(--fg-accent); color: var(--fg-accent-ink); box-shadow: 0 3px 0 var(--c-ledge); }
.fg-cart .wc-block-mini-cart__button:hover { background: var(--fg-accent-hover); }
.fg-cart .wc-block-mini-cart__button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-ledge); }
.fg-cart .wc-block-mini-cart__badge { background: var(--fg-surface) !important; color: var(--fg-ink) !important; border-color: var(--fg-ink); }
@media (max-width: 760px) { .fg-account { display: none; } }

/* category row: picture pills */
.fg-catnav { border-top: 0; }
.fg-catnav ul { gap: 0.5rem; padding: 0.15rem 0 0.85rem; }
.fg-catnav__item { flex: none; }
.fg-catnav a, .fg-catnav__btn {
	display: inline-flex; align-items: center; gap: 0.45rem; height: 44px; padding: 0 0.95rem 0 0.3rem;
	border-radius: 999px; border: 2px solid transparent; background: var(--candy, var(--fg-tile));
	font: 700 0.95rem/1 var(--fg-body); color: var(--fg-ink); text-decoration: none; white-space: nowrap; cursor: pointer;
	transition: transform 0.25s var(--fg-spring), border-color 0.2s var(--fg-ease), box-shadow 0.2s var(--fg-ease);
}
.fg-catnav a:hover, .fg-catnav__btn:hover { background: var(--candy, var(--fg-tile)); color: var(--fg-ink); border-color: var(--fg-ink); transform: translateY(-2px) rotate(-1.5deg); }
.fg-catnav a.is-current, .fg-catnav__btn.is-current { background: var(--candy, var(--fg-tile)); color: var(--fg-ink); border-color: var(--fg-ink); box-shadow: 0 3px 0 var(--c-ledge); }
.fg-catnav__pic { width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: rgb(255 255 255 / 0.65); flex: none; display: grid; place-items: center; }
.fg-catnav__pic img { width: 120%; height: 120%; max-width: none; object-fit: cover; }
.fg-catnav__btn { padding: 0 0.9rem 0 0.85rem; background: var(--fg-ink); color: var(--fg-base); border-color: var(--fg-ink); box-shadow: 0 3px 0 var(--fg-accent); }
.fg-catnav__btn:hover, .fg-catnav__btn[aria-expanded="true"], .fg-catnav__btn.is-current { background: var(--fg-ink); color: var(--fg-base); box-shadow: 0 3px 0 var(--fg-accent); }
.fg-catnav__btn .fg-caret { width: 0.9em; height: 0.9em; transition: transform 0.25s var(--fg-ease); }
.fg-catnav__btn[aria-expanded="true"] .fg-caret { transform: rotate(180deg); }
.fg-catnav__item--lyser-i-morkret a { background: #10131C; color: #F2F4FF; }
.fg-catnav__item--lyser-i-morkret a:hover, .fg-catnav__item--lyser-i-morkret a.is-current { background: #10131C; color: #F2F4FF; border-color: var(--fg-glow); box-shadow: 0 0 14px color-mix(in srgb, var(--fg-glow) 45%, transparent); }
.fg-catnav__item--lyser-i-morkret .fg-catnav__pic { background: #000; }
html[data-mode="night"] .fg-catnav__btn { background: var(--fg-glow); color: #10131C; border-color: var(--fg-glow); }

/* the "Djur och teman" panel */
.fg-themes {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 60; /* layer: header dropdown */
	padding: 0 var(--wp--style--root--padding-left, 1rem) 1rem;
}
.fg-themes[hidden] { display: none; }
.fg-themes__in {
	margin: 0 auto; max-width: 1320px; box-sizing: border-box;
	padding: clamp(1rem, 2.5vw, 1.75rem); border-radius: 0 0 28px 28px;
	background: var(--fg-surface); border: 2px solid var(--fg-ink); border-top: 0;
	box-shadow: 0 5px 0 var(--c-ledge), 0 30px 60px -30px rgb(var(--fg-shadow-rgb) / 0.55);
	max-height: calc(100dvh - 180px); overflow-y: auto;
}
@media (prefers-reduced-motion: no-preference) { .fg-themes:not([hidden]) .fg-themes__in { animation: fg-drop 0.32s var(--fg-ease); } }
@keyframes fg-drop { from { opacity: 0; transform: translateY(-10px); } to { opacity: 1; transform: none; } }
.fg-themes__title { font-family: var(--fg-display); font-size: clamp(1.4rem, 2.4vw, 1.9rem); margin: 0 0 1rem; line-height: 1.05; }
.fg-themes__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0.75rem; }
.fg-theme a {
	display: grid; grid-template-rows: auto auto auto; justify-items: center; text-align: center; gap: 0.15rem;
	padding: 0.75rem 0.5rem 0.8rem; border-radius: 20px; background: var(--candy, var(--fg-tile));
	color: var(--fg-ink); text-decoration: none; border: 2px solid transparent;
	transition: transform 0.3s var(--fg-spring), border-color 0.2s var(--fg-ease);
}
.fg-theme a:hover { border-color: var(--fg-ink); transform: translateY(-3px) rotate(-1.5deg); color: var(--fg-ink); }
.fg-theme:nth-child(even) a:hover { transform: translateY(-3px) rotate(1.5deg); }
.fg-theme__pic { width: 72px; height: 72px; border-radius: 50%; overflow: hidden; background: rgb(255 255 255 / 0.7); display: grid; place-items: center; margin-bottom: 0.3rem; }
.fg-theme__pic img { width: 118%; height: 118%; max-width: none; object-fit: cover; }
.fg-theme__name { font-weight: 800; font-size: 0.98rem; line-height: 1.15; }
.fg-theme__count { font-size: 0.8rem; color: var(--fg-ink-soft); }
@media (max-width: 1000px) { .fg-themes__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.fg-themes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
	.fg-theme__pic { width: 56px; height: 56px; }
	.fg-theme__name { font-size: 0.86rem; }
	.fg-themes__in { border-radius: 0 0 22px 22px; }
}

/* --- sections ---------------------------------------------------------------------- */
.fg-sec__title { text-decoration: underline wavy var(--fg-accent) 3px; text-underline-offset: 0.28em; text-decoration-skip-ink: none; padding-bottom: 0.2em; }
.fg-tile a { border: 2px solid transparent; transition: background-color 0.25s var(--fg-ease), transform 0.35s var(--fg-spring), border-color 0.2s var(--fg-ease); }
.fg-tile a:hover { border-color: var(--fg-ink); transform: translateY(-3px); }
.fg-tile:nth-child(2) a { background: var(--c-pink); }
.fg-tile:nth-child(3) a { background: var(--c-mint); }
.fg-tile:nth-child(4) a { background: var(--c-sky); }
.fg-tile:nth-child(5) a { background: var(--c-butter); }
.fg-tile--feature a { border-color: var(--fg-ink); box-shadow: 0 5px 0 var(--c-ledge); }

/* "Vad gillar du?": round stickers */
.fg-stickers__list { list-style: none; margin: 0; padding: 0.5rem 0 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(1rem, 2vw, 1.75rem) clamp(0.75rem, 1.5vw, 1.25rem); }
.fg-sticker a { display: grid; justify-items: center; gap: 0.6rem; text-decoration: none; color: var(--fg-ink); }
.fg-sticker__pic {
	width: 100%; max-width: 150px; aspect-ratio: 1; border-radius: 50%; overflow: hidden; display: grid; place-items: center;
	background: var(--candy, var(--fg-tile)); border: 5px solid var(--fg-surface);
	box-shadow: 0 0 0 2px var(--fg-ink), 0 6px 0 2px var(--c-ledge);
	transform: rotate(-4deg); transition: transform 0.4s var(--fg-spring);
}
.fg-sticker:nth-child(even) .fg-sticker__pic { transform: rotate(3deg); }
.fg-sticker__pic img { width: 112%; height: 112%; max-width: none; object-fit: cover; }
.fg-sticker__name { font-weight: 800; font-size: 1.02rem; text-align: center; line-height: 1.2; }
.fg-sticker a:hover { color: var(--fg-ink); }
@media (prefers-reduced-motion: no-preference) { .fg-sticker a:hover .fg-sticker__pic { animation: fg-wiggle 0.6s var(--fg-ease); } }
@keyframes fg-wiggle { 0%, 100% { transform: rotate(0); } 25% { transform: rotate(-8deg) scale(1.05); } 60% { transform: rotate(6deg) scale(1.05); } }
@media (max-width: 1000px) { .fg-stickers__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 640px) {
	.fg-stickers__list { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 1rem;
		margin-inline: calc(var(--wp--style--root--padding-left, 1rem) * -1); padding: 0.5rem var(--wp--style--root--padding-left, 1rem) 1rem; }
	.fg-stickers__list::-webkit-scrollbar { display: none; }
	.fg-sticker { flex: 0 0 31%; scroll-snap-align: start; }
}

/* --- chips with pictures (narrowing a shelf) ------------------------------------------ */
.fg-chip { border-width: 2px; font-weight: 700; }
.fg-chip--pic { padding-left: 0.25rem; gap: 0.4rem; background: var(--candy, var(--fg-surface)); border-color: transparent; }
.fg-chip--pic:hover { border-color: var(--fg-ink); }
.fg-chip--pic.is-current { background: var(--candy, var(--fg-surface)); color: var(--fg-ink); border-color: var(--fg-ink); box-shadow: 0 3px 0 var(--c-ledge); }
.fg-chip__pic { width: 28px; height: 28px; border-radius: 50%; overflow: hidden; background: rgb(255 255 255 / 0.7); display: grid; place-items: center; flex: none; }
.fg-chip__pic img { width: 120%; height: 120%; max-width: none; object-fit: cover; }
.fg-chip__n { font-size: 0.78rem; font-weight: 700; color: var(--fg-ink-soft); }
.fg-chips + .fg-chips { margin-top: 0.75rem; }

/* --- product cards ----------------------------------------------------------------------- */
.fg-grid .wc-block-components-product-image { border-radius: 24px; border: 2px solid transparent; transition: border-color 0.2s var(--fg-ease), transform 0.35s var(--fg-spring); }
.fg-grid .wc-block-product:hover .wc-block-components-product-image { border-color: var(--fg-ink); box-shadow: 0 5px 0 var(--c-ledge); transform: translateY(-3px); }
.fg-grid .wc-block-components-product-button .wp-block-button__link,
.fg-grid .wc-block-components-product-button__button { border: 2px solid var(--fg-ink) !important; box-shadow: 0 3px 0 var(--c-ledge) !important; background: var(--fg-surface) !important; }
.fg-grid .wc-block-components-product-button .wp-block-button__link:hover,
.fg-grid .wc-block-components-product-button__button:hover { background: var(--fg-accent) !important; color: var(--fg-accent-ink) !important; border-color: var(--fg-ink) !important; }
.fg-grid .wc-block-components-product-button__button:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--c-ledge) !important; }

/* --- footer: a dark band with the three beads --------------------------------------------- */
.fg-footer { background: #1E1B3A; color: #E9EBFA; border-top: 0; border-radius: 36px 36px 0 0; padding-inline: var(--wp--style--root--padding-left, 1rem); }
.fg-footer .fg-logo, .fg-footer .fg-footer__title { color: #FFFFFF; }
.fg-footer__brand p, .fg-footer__col a, .fg-footer__company p, .fg-footer__company address, .fg-footer__base, .fg-footer__base a { color: #B9BCD8; }
.fg-footer__col a:hover { color: #FFFFFF; }
.fg-footer a[href^="mailto"] { color: #FFFFFF; }
.fg-footer__base { border-top-color: rgb(255 255 255 / 0.12); }
.fg-footer .fg-logo__i::before { box-shadow: 0 0 10px color-mix(in srgb, var(--bead) 60%, transparent); }
html[data-mode="night"] .fg-footer { background: #12152A; }

/* --- text pages: terms, privacy, FAQ ------------------------------------------------------ */
.fg-prose .fg-lede { font-size: 1.15rem; line-height: 1.55; color: var(--fg-ink-soft); }
.fg-prose h2.wp-block-heading { font-size: clamp(1.5rem, 2.6vw, 1.95rem); margin-top: 2.5rem; scroll-margin-top: 170px; }
.fg-toc { margin: 1.5rem 0 2rem; }
.fg-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; counter-reset: toc; }
.fg-toc li { counter-increment: toc; }
.fg-toc a { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.4rem 0.85rem 0.4rem 0.4rem; border-radius: 999px; background: var(--fg-surface); border: 2px solid var(--fg-line); color: var(--fg-ink); font-weight: 700; font-size: 0.9rem; text-decoration: none; }
.fg-toc a::before { content: counter(toc); display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--c-butter); font-size: 0.8rem; }
.fg-toc a:hover { border-color: var(--fg-ink); }
.fg-faq { display: grid; gap: 0.6rem; margin-top: 1rem; }
.fg-faq__item { border-radius: 20px; background: var(--fg-surface); border: 2px solid var(--fg-line); transition: border-color 0.2s var(--fg-ease), box-shadow 0.2s var(--fg-ease); }
.fg-faq__item[open] { border-color: var(--fg-ink); box-shadow: 0 4px 0 var(--c-ledge); }
.fg-faq__item summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.1rem 1rem 1.25rem; font-weight: 800; font-size: 1.05rem; }
.fg-faq__item summary::-webkit-details-marker { display: none; }
.fg-faq__item summary::after { content: "+"; flex: none; display: inline-grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--c-butter); font-size: 1.3rem; line-height: 1; transition: transform 0.3s var(--fg-spring); }
.fg-faq__item[open] summary::after { transform: rotate(45deg); background: var(--fg-accent); }
.fg-faq__item > :not(summary) { margin: 0; padding: 0 1.25rem 1.15rem; color: var(--fg-ink-soft); line-height: 1.6; }
.fg-faq__item summary:focus-visible { outline: 2px solid var(--fg-ink); outline-offset: -4px; border-radius: 18px; }
.fg-table { margin: 1.25rem 0; overflow-x: auto; }
.fg-table table { width: 100%; border-collapse: separate; border-spacing: 0; border: 2px solid var(--fg-line); border-radius: 18px; overflow: hidden; background: var(--fg-surface); }
.fg-table th, .fg-table td { text-align: left; padding: 0.7rem 0.9rem; border: 0; border-bottom: 1px solid var(--fg-line); vertical-align: top; }
.fg-table tr:last-child td { border-bottom: 0; }
.fg-table th { background: var(--fg-tile); font-size: 0.85rem; }
.fg-table--small td { font-size: 0.9rem; }
.fg-table--small td:first-child { font-family: var(--wp--preset--font-family--mono, monospace); font-size: 0.8rem; }
.fg-form-text { padding: 1rem 1.25rem; border-radius: 16px; background: var(--fg-surface); border: 2px dashed var(--fg-line-strong); line-height: 1.9; }

@media (prefers-reduced-motion: reduce) {
	.fg-catnav a, .fg-catnav__btn, .fg-theme a, .fg-tile a, .fg-sticker__pic, .fg-grid .wc-block-components-product-image { transition: none; transform: none !important; }
}

/* the category row fits on one line from about 1240px wide (narrower screens scroll it sideways) */
.fg-catnav ul { gap: 0.35rem; }
.fg-catnav a, .fg-catnav__btn { font-size: 0.9rem; gap: 0.38rem; padding-right: 0.78rem; }
.fg-catnav__btn { padding-left: 0.75rem; }
.fg-catnav__pic { width: 30px; height: 30px; }

/* --- v4.1 responsive fixes (5 Nov, evening) --------------------------------------------------
   1. Pictures in boxes: percentage heights don't resolve inside aspect-ratio boxes, so the pictures fell
      back to their own size and were cut off at the bottom (the fox under "Hitta din favorit" on phones).
      Every picture-in-a-box is now placed absolutely and centred.
   2. Category row: one line on wide screens in both languages, wraps onto a second line on tablets and
      small laptops (never slides there), and only slides on phones, with a fade that shows there is more.
   3. Section heads with a chip row (Gänget) could push the page wider than a phone.                    */

.fg-tile__img { position: relative; }
.fg-tile__img img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; object-position: center; }

.fg-catnav__pic, .fg-chip__pic, .fg-theme__pic, .fg-sticker__pic, .fg-myst__fig { position: relative; }
.fg-catnav__pic img, .fg-chip__pic img { position: absolute; left: -10%; top: -10%; width: 120%; height: 120%; max-width: none; object-fit: cover; }
.fg-theme__pic img { position: absolute; left: -9%; top: -9%; width: 118%; height: 118%; max-width: none; object-fit: cover; }
.fg-sticker__pic img { position: absolute; left: -6%; top: -6%; width: 112%; height: 112%; max-width: none; object-fit: cover; }
.fg-myst__fig img { position: absolute; left: -9%; top: -9%; width: 118%; height: 118%; max-width: none; object-fit: contain; }

.fg-catnav ul { gap: 0.3rem; }
.fg-catnav a, .fg-catnav__btn { font-size: 0.88rem; gap: 0.34rem; padding-right: 0.66rem; }
.fg-catnav__btn { padding-left: 0.7rem; }
.fg-catnav__pic { width: 28px; height: 28px; }
@media (min-width: 640px) {
	.fg-catnav ul { flex-wrap: wrap; overflow: visible; row-gap: 0.4rem; }
}
@media (max-width: 639px) {
	.fg-catnav ul { scroll-snap-type: x proximity; padding-right: 2.5rem;
		-webkit-mask-image: linear-gradient(90deg, #000 82%, transparent); mask-image: linear-gradient(90deg, #000 82%, transparent); }
	.fg-catnav__item { scroll-snap-align: start; }
}

.fg-sec__head > * { min-width: 0; max-width: 100%; }

/* phones: a slimmer sticky header once you've scrolled (the category row comes back at the top of the page) */
@media (max-width: 639px) {
	html.fg-scrolled:not(.fg-themes-open) .fg-catnav { display: none; }
	.fg-logo { font-size: 2.2rem; }
	.fg-header__bar { min-height: 0; }
}

/* English labels are longer: a touch tighter so the row still fits one line at 1280px */
html[lang="en"] .fg-catnav a, html[lang="en"] .fg-catnav__btn { font-size: 0.86rem; padding-right: 0.58rem; }
html[lang="en"] .fg-catnav ul { gap: 0.25rem; }

/* promise bar: never cut off. Mid widths drop the glow line; phones show only the free-shipping line */
@media (max-width: 1000px) { .fg-announce li:nth-child(2) { display: none; } }
@media (max-width: 760px) {
	.fg-announce li:not(:first-child) { display: none; }
	.fg-announce li:first-child { display: none; }
	.fg-announce li:last-child { display: inline-flex; }
}
/* Christmas: the order-by date outranks "made in Sweden" when there is room for only two */
@media (min-width: 761px) and (max-width: 1000px) {
	.fg-announce--jul li:first-child { display: none; }
	.fg-announce--jul li:nth-child(2) { display: inline-flex; }
}

/* ---------------------------------------------------------------- cookie box (fingili-butik analytics.php) */
/* Only shown when a Google Analytics ID is set. Yes and No look the same: declining must be as easy as accepting. */
.fg-consent {
	position: fixed; left: max(12px, env(safe-area-inset-left)); bottom: max(12px, env(safe-area-inset-bottom)); z-index: 80; /* layer: above content, below the lights veil */
	width: min(400px, calc(100vw - 24px)); padding: 1.1rem 1.2rem 1.2rem; border-radius: 22px;
	background: var(--fg-base); color: var(--fg-ink); border: 2px solid var(--fg-ink);
	box-shadow: 0 5px 0 var(--fg-ink), 0 18px 40px rgb(var(--fg-shadow-rgb) / 0.22);
}
.fg-consent[hidden] { display: none; }
.fg-consent__title { margin: 0 0 0.35rem; font-weight: 800; font-size: 1.05rem; }
.fg-consent__text { margin: 0; font-size: 0.92rem; line-height: 1.45; color: var(--fg-ink-soft); }
.fg-consent__text a { color: inherit; font-weight: 700; }
.fg-consent__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; margin-top: 0.9rem; }
.fg-consent__actions .fg-btn { justify-content: center; min-height: 44px; }
@media (prefers-reduced-motion: no-preference) { .fg-consent:not([hidden]) { animation: fg-consent-in 0.35s var(--fg-ease); } @keyframes fg-consent-in { from { opacity: 0; transform: translateY(10px); } } }
.fg-footer__consent { margin-left: 1rem; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.fg-footer__consent[hidden] { display: none; }

/* ---------------------------------------------------------------- SEO texts (home page and shop, at the bottom) */
.fg-seo-text { margin-top: clamp(2.5rem, 6vw, 5rem); }
.fg-seo-text .fg-prose { max-width: 72ch; margin-inline: auto; color: var(--fg-ink-soft); }
.fg-seo-text .fg-prose h2 { color: var(--fg-ink); font-size: clamp(1.35rem, 2.2vw, 1.75rem); margin-top: 2.2rem; }
.fg-seo-text .fg-prose h2:first-child { margin-top: 0; }
.fg-seo-text .fg-prose a { color: var(--fg-ink); font-weight: 700; }

/* ======================================================================= review round, 7 Nov 2026 */
:root { --fg-field-line: #80869A; }
html[data-mode="night"] { --fg-field-line: #69718A; }
body { overflow-x: clip; }
.screen-reader-text:not(:focus) { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* hero: the glowing picture is only fetched and shown in night mode */
html:not([data-mode="night"]) .fg-scene__night { display: none; }

/* form fields: borders that can be seen (3:1) */
.wc-block-components-text-input input, .wc-block-components-textarea, .wc-block-components-combobox .wc-block-components-combobox-control input,
.wc-blocks-components-select .wc-blocks-components-select__select, .wc-block-components-country-input select, .wc-block-components-state-input select,
.fg-contact input, .fg-contact textarea, .fg-contact select, .fg-form input:not([type=checkbox]):not([type=radio]), .fg-form textarea {
	border-color: var(--fg-field-line) !important;
}
.wp-block-search__input:focus-visible, .fg-search input:focus-visible, input[type="search"]:focus-visible {
	outline: 2px solid var(--fg-ink) !important; outline-offset: 2px; box-shadow: none !important;
}

/* mini-cart drawer: always the page colours, also after the lamp is switched; hidden drawer can't be tabbed into */
.wp-block-woocommerce-mini-cart-contents, .wc-block-mini-cart__drawer .components-modal__content { background: var(--fg-base) !important; color: var(--fg-ink) !important; }
.wc-block-components-drawer__screen-overlay--is-hidden { visibility: hidden; transition: visibility 0s 0.3s; }
.wc-block-components-drawer { max-width: 100vw; }
.wc-block-components-drawer__close { right: max(8px, env(safe-area-inset-right)); }
/* add to cart in a card: no "Visa varukorg" link that shifts the row */
.wc-block-components-product-button .added_to_cart, .fg-grid a.added_to_cart { display: none !important; }

/* lamp cord: only the koala is clickable, and it stops talking once you scroll */
.fg-cord { pointer-events: none; }
.fg-cord__pet { pointer-events: auto; cursor: grab; touch-action: none; }
.fg-cord.is-dragging .fg-cord__pet { cursor: grabbing; transition: none; }
.fg-scrolled .fg-cord__say { opacity: 0 !important; visibility: hidden; }

/* category row: one scrolling row up to tablet width */
@media (max-width: 1023px) {
	.fg-catnav ul { flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; scroll-snap-type: x proximity; }
	.fg-catnav ul::-webkit-scrollbar { display: none; }
	.fg-catnav li { flex: none; scroll-snap-align: start; }
}

/* category intro: two lines on phones, "Läs mer" opens the rest */
@media (max-width: 760px) {
	.fg-shop__desc.is-clamped { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
	.fg-shop__desc.is-clamped p { margin: 0; display: inline; }
	.fg-readmore { background: none; border: 0; padding: 0.2rem 0; font: 700 0.95rem var(--fg-body); color: var(--fg-ink); text-decoration: underline; text-underline-offset: 0.2em; cursor: pointer; }
}

/* the shop: filter chips */
.fg-shop__head .fg-chips + .fg-chips { margin-top: 0.6rem; }

/* product page: other forms of the same animal or character */
.fg-variants { margin: 1.25rem 0 0; }
.fg-variants__title { font-weight: 800; margin: 0 0 0.5rem; }
.fg-variants ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.fg-variants a { display: flex; flex-direction: column; align-items: center; gap: 0.15rem; width: 5.6rem; padding: 0.4rem 0.3rem 0.5rem; border-radius: 14px; background: var(--fg-tile); color: var(--fg-ink); text-decoration: none; font-size: 0.82rem; line-height: 1.2; text-align: center; }
.fg-variants a:hover, .fg-variants a:focus-visible { background: var(--fg-tile-hover); }
.fg-variants img { width: 3.6rem; height: 3.6rem; object-fit: contain; }
.fg-variants__price { color: var(--fg-ink-soft); font-size: 0.78rem; }
.fg-facts dd a { color: inherit; }

/* product page on phones: the price and button sooner, and a buy bar once the button scrolls away */
@media (max-width: 760px) {
	.fg-product .woocommerce-product-gallery__image img, .fg-product .woocommerce-product-gallery img { max-height: 52vh; width: auto !important; margin-inline: auto; object-fit: contain; }
	.fg-product .wp-block-columns { gap: 0.75rem !important; }
	.fg-product__title { margin-top: 0.25rem !important; }
}
.fg-buybar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem max(1rem, env(safe-area-inset-right)) calc(0.6rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); background: var(--fg-surface); border-top: 1px solid var(--fg-line); box-shadow: 0 -6px 20px rgb(var(--fg-shadow-rgb) / 0.12); transform: translateY(110%); transition: transform 0.3s var(--fg-ease); }
.fg-buybar.is-shown { transform: none; }
.fg-buybar__name { flex: 1; min-width: 0; font-weight: 700; font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fg-buybar__price { font-weight: 800; }
.fg-buybar .fg-btn { padding: 0.65rem 1.1rem; }
@media (min-width: 782px) { .fg-buybar { display: none; } }

/* free-shipping meter in the cart and the mini-cart */
.fg-ship { margin: 0 0 1rem; padding: 0.75rem 1rem; border-radius: 14px; background: var(--fg-tile); color: var(--fg-ink); font-weight: 700; font-size: 0.95rem; }
.fg-ship__bar { display: block; height: 8px; margin-top: 0.5rem; border-radius: 8px; background: var(--fg-line); overflow: hidden; }
.fg-ship__bar span { display: block; height: 100%; width: 0; border-radius: 8px; background: var(--fg-accent); transition: width 0.4s var(--fg-ease); }
.fg-ship.is-free .fg-ship__bar span { background: #1E8A3E; }
.fg-ship small { display: block; font-weight: 400; color: var(--fg-ink-soft); margin-top: 0.15rem; }
.fg-ship small.fg-ship__jul { margin-top: 0.5rem; font-weight: 600; color: var(--fg-ink); }
.fg-assure__jul { font-weight: 700; }
.fg-assure__jul .fg-icon { color: #C8301F; }

/* checkout header: logo and a trust line */
.fg-header--checkout .fg-header__bar { gap: 1rem; flex-wrap: wrap; padding-block: 0.9rem; }
.fg-checkout-trust { display: flex; flex-wrap: wrap; gap: 0.4rem 1.2rem; margin: 0; padding: 0; list-style: none; font-size: 0.9rem; color: var(--fg-ink-soft); }
.fg-checkout-trust li { display: flex; align-items: center; gap: 0.35rem; }
.fg-checkout-trust svg { width: 1.1rem; height: 1.1rem; }
.fg-checkout-title { margin: 1.25rem 0 0.5rem !important; font-family: var(--fg-display); font-size: clamp(1.8rem, 3vw, 2.4rem) !important; }

/* 404 and empty search: somewhere to go */
.fg-404 .fg-404__search { max-width: 34rem; margin: 1.25rem 0; }
.fg-404 .fg-chips { margin: 1rem 0 2rem; }
.fg-404__title { margin-top: 2.5rem !important; }
.fg-empty__chips { margin-top: 1rem; }

/* "Vad gillar du?" stickers: the first one is not cut at the edge on phones */
@media (max-width: 640px) { .fg-stickers__list { scroll-padding-inline: var(--wp--style--root--padding-left, 1rem); } }

/* services list in the privacy policy */
.fg-services { padding-left: 1.2rem; }
.fg-services li { margin-bottom: 0.35rem; }
@media (max-width: 781px) { .fg-has-buybar body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); } }
.fg-popular { margin: 1.25rem 0 1.75rem; }
.fg-popular__title { font-weight: 800; margin: 0 0 0.5rem; }
.fg-empty .fg-popular { margin-top: 0.75rem; }

/* the gallery's zoom button: the icon only, never the emoji */
.woocommerce-product-gallery__trigger > * { display: none !important; }
.woocommerce-product-gallery__trigger:focus-visible { outline: 3px solid var(--fg-ink); outline-offset: 2px; }

/* lucky bags: what you save, like a sale flag in the shop's one accent */
.fg-badge--save { background: var(--fg-accent) !important; color: var(--fg-accent-ink) !important; box-shadow: 0 0 0 2px var(--fg-ink) !important; font-weight: 800; padding-left: 0.65rem; }
.fg-badge--save + .fg-badge { top: 2.6rem; }

/* Christmas gift guide */
.fg-gifts__nav { margin: 0.5rem 0 1.5rem; }
.fg-gifts { scroll-margin-top: 7rem; }
.fg-gifts__lede { margin: -0.25rem 0 1rem; color: var(--fg-ink-soft); max-width: 60ch; }

/* one card layout everywhere: name, then price, then the spec line and the button */
.fg-grid .wc-block-product { grid-template-columns: minmax(0, 1fr) !important; grid-template-areas: "img" "title" "price" "spec" "btn" !important; grid-template-rows: auto auto auto auto 1fr !important; }
.fg-grid .wc-block-components-product-price { text-align: left !important; margin-top: 0.15rem !important; }
.fg-jk { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(1rem, 3vw, 2.5rem); align-items: center; padding: clamp(1rem, 2.5vw, 2rem); border-radius: 24px; background: var(--fg-tile); }
.fg-jk__pic img { width: 100%; height: auto; display: block; }
.fg-jk__price { font-size: 1.4rem; margin: 0.5rem 0 1rem; }
@media (max-width: 700px) { .fg-jk { grid-template-columns: 1fr; } }

/* category row: a soft fade on the right edge says "there's more, scroll" */
@media (max-width: 1100px) {
	.fg-catnav ul { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 48px), transparent); padding-right: 40px !important; }
}
.fg-catnav__item--jul a { background: #C8301F; color: #fff; }
.fg-catnav__item--jul a:hover, .fg-catnav__item--jul a.is-current { background: #A3251A; color: #fff; }
.fg-catnav__item--jul .fg-icon { width: 1.1rem; height: 1.1rem; }

/* "Nytt på hyllan" with 8 cards: no lonely last row where the grid has 3 columns */
@media (min-width: 600px) and (max-width: 1023px) { .fg-new .wc-block-product:nth-child(n+7) { display: none; } }

/* checkout: the header scrolls away, so the form keeps the screen */
body.woocommerce-checkout header.wp-block-template-part, header.wp-block-template-part:has(.fg-header--checkout) { position: static; }

/* the koala never covers the cart, and on phones it tucks into the header once the page scrolls */
body.woocommerce-cart .fg-cord, body.woocommerce-checkout .fg-cord { display: none; }
@media (max-width: 781px) { .fg-scrolled .fg-cord { height: calc(100% + 4px); } .fg-scrolled .fg-cord__pet { transform: scale(0.82); transform-origin: 50% 100%; } }
.fg-buybar__name { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 0.86rem; line-height: 1.25; }
/* mini-cart: one main button (checkout), "view cart" as a quiet outline */
.wc-block-mini-cart__footer-cart.wp-element-button, .wc-block-mini-cart__footer-actions .wc-block-mini-cart__footer-cart { background: transparent !important; color: var(--fg-ink) !important; border: 2px solid var(--fg-ink) !important; box-shadow: none !important; }
.fg-ship small a { color: var(--fg-ink); font-weight: 700; }
/* mini-cart drawer: never wider than the screen, close button inside it */
.wc-block-mini-cart__drawer.wc-block-components-drawer { box-sizing: border-box; width: min(480px, 100vw) !important; max-width: 100vw !important; }
.wc-block-mini-cart__drawer .wc-block-components-drawer__close { right: 12px !important; left: auto !important; top: 14px !important; }

/* /ganget/: the section heading is hidden there (the page has its own H1), so the section needs no gap above it */
.fg-page--wide .fg-gang { margin-top: 0; padding-top: 0; }

/* ================================================================ theme 2.0: editable header, footer and sections */
/* footer built from ordinary blocks */
.fg-footer__links { gap: 0.5rem 1.25rem; align-items: center; }
.fg-footer__links p { margin: 0; }
.fg-footer__address { line-height: 1.5; }
.fg-copyright { margin: 0; }
.fg-footer .fg-footer__col .wp-block-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 0.45rem; }
/* "Till butiken" and similar links written as a paragraph in the editor look like the old arrow links */
.fg-more { margin: 0; }
.fg-more a { display: inline-flex; align-items: center; gap: 0.4rem; font-weight: 700; color: var(--fg-ink); text-decoration: none; white-space: nowrap; }
.fg-more a::after { content: ""; width: 1.05em; height: 1.05em; background: currentColor; -webkit-mask: url(../icons/arrow-right.svg) center / contain no-repeat; mask: url(../icons/arrow-right.svg) center / contain no-repeat; transition: transform 0.3s var(--fg-ease); }
.fg-more a:hover { text-decoration: underline; text-underline-offset: 0.2em; }
.fg-more a:hover::after { transform: translateX(3px); }
/* template parts: the part's wrapper must not add space or break the layout */
.wp-block-template-part.fg-home-part { margin: 0; }
/* product page 2.0: the other forms right under the price, the chosen one marked; the lights button under the promises */
.fg-product__info .fg-variants { margin: 0.75rem 0 1rem; }
.fg-variants li.is-current a { background: transparent; box-shadow: inset 0 0 0 2px var(--fg-ink); font-weight: 700; }
.fg-product__lights { margin: 0.25rem 0 1rem; }
.fg-product__info .fg-facts { margin-top: 1rem; }
/* mini-cart: the close button stays inside the window, and the footer takes less of a phone screen */
.wc-block-mini-cart__drawer .wc-block-components-drawer__close { margin: 0 !important; top: 12px !important; right: 12px !important; width: 44px; height: 44px; display: grid; place-items: center; transform: none !important; }
@media (max-width: 600px) {
	.wc-block-mini-cart__footer { padding: 10px 16px calc(10px + env(safe-area-inset-bottom)) !important; }
	.wc-block-mini-cart__footer .wc-block-components-totals-item { margin: 0 0 4px; }
	.wc-block-mini-cart__footer-actions { display: grid !important; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px !important; }
	.wc-block-mini-cart__footer-actions .wc-block-components-button { margin: 0 !important; padding: 0.6rem 0.5rem !important; min-height: 44px; font-size: 0.92rem; }
	.wc-block-mini-cart__footer .wc-block-components-totals-item__description { font-size: 0.8rem; }
}
/* product cards: "Visa varukorg" after adding does not push the button down (the mini-cart opens instead) */
.wc-block-components-product-button .added_to_cart { display: none !important; }
/* checkout header: help links next to "Tillbaka till varukorgen" */
.fg-checkout-links { gap: 0.4rem 1.25rem; align-items: center; }
.fg-checkout-help { margin: 0; font-size: 0.9rem; color: var(--fg-ink-soft); }
.fg-checkout-help a { color: var(--fg-ink); font-weight: 700; }
@media (max-width: 600px) { .fg-checkout-help { display: none; } }
/* free-shipping meter: small things that close the gap */
.fg-ship__msg { margin: 0; font: inherit; }
.fg-ship__note { display: block; margin-top: 0.5rem; }
.fg-ship__picks { margin-top: 0.75rem; }
.fg-ship__picks p { margin: 0 0 0.4rem; font-weight: 700; font-size: 0.9rem; }
.fg-ship__picks ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.4rem; }
.fg-ship__picks li { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 0.6rem; background: var(--fg-surface); border-radius: 12px; padding: 0.3rem 0.4rem 0.3rem 0.3rem; }
.fg-ship__picks li a { display: flex; align-items: center; gap: 0.5rem; min-width: 0; color: var(--fg-ink); text-decoration: none; font-weight: 600; font-size: 0.88rem; }
.fg-ship__picks li a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fg-ship__picks img { width: 44px; height: 44px; object-fit: contain; flex: none; }
.fg-ship__price { font-weight: 800; font-size: 0.88rem; }
.fg-ship__add { min-height: 36px; padding: 0 0.8rem; border-radius: 999px; border: 2px solid var(--fg-ink); background: var(--fg-surface); color: var(--fg-ink); font-weight: 800; font-size: 0.85rem; cursor: pointer; }
.fg-ship__add:hover { background: var(--c-butter); }
.fg-ship__add:disabled { opacity: 0.5; cursor: default; }
/* product gallery: before the slider script runs, show only the main picture and keep room for the thumbnail row,
   so nothing jumps when the thumbnails appear (layout shift) */
.fg-product__media .woocommerce-product-gallery:not(:has(.flex-viewport)) .woocommerce-product-gallery__image:nth-child(n+2) { display: none; }
.fg-product__media .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)):not(:has(.flex-control-thumbs)) { padding-bottom: calc((100% - 2.4rem) / 5 + 0.75rem); }
/* "Djur och teman" panel: as wide as the page content and lined up with the button, even tiles, a link to all */
.fg-header > .fg-themes, .fg-catnav .fg-themes { max-width: none !important; margin: 0 !important; }
.fg-themes__in { max-width: var(--wp--style--global--wide-size, 1320px); }
.fg-theme { display: flex; }
.fg-theme a { width: 100%; grid-template-rows: auto 1fr auto; align-items: start; }
.fg-themes__all { margin: 1rem 0 0; text-align: right; }
/* phones: buy button first, then the promises, then the other forms (on wider screens the forms sit under the price) */
@media (max-width: 781px) {
	.fg-product__info { display: flex; flex-direction: column; }
	.fg-product__info > * { order: 10; }
	.fg-product__info > .fg-product__title { order: 1; }
	.fg-product__info > .fg-product__price { order: 2; }
	.fg-product__info > .fg-product__excerpt { order: 3; }
	.fg-product__info > .fg-product__buy { order: 4; }
	.fg-product__info > .fg-assure { order: 5; }
	.fg-product__info > .fg-product__lights { order: 6; }
	.fg-product__info > .fg-variants { order: 7; margin-top: 0.5rem; }
	.fg-product__info > .fg-facts { order: 8; }
}
/* "Finns också som": no lonely tile on a row of its own */
.fg-variants ul { display: grid; grid-template-columns: repeat(auto-fill, minmax(5.6rem, 1fr)); }
.fg-variants a { width: auto; }
/* checkout in night mode: the country label stays readable */
html[data-mode="night"] .wc-blocks-components-select__label, html[data-mode="night"] .wc-block-components-select-input label { color: var(--fg-ink-soft) !important; }

/* ================================================================ colours from Stilar
   The day colours come from Utseende, Redigerare, Stilar, Färger (the palette in theme.json): change a colour
   there and the whole shop follows. Night mode (the lamp switched off) keeps its own darker set above, except the
   button colour, which follows the palette in both modes. */
:root {
	--fg-base: var(--wp--preset--color--base, #F4F6FF);
	--fg-surface: var(--wp--preset--color--surface, #FFFFFF);
	--fg-tile: var(--wp--preset--color--tile, #E8EDFB);
	--fg-tile-hover: color-mix(in srgb, var(--fg-tile) 92%, var(--fg-ink));
	--fg-ink: var(--wp--preset--color--contrast, #1E1B3A);
	--fg-ink-soft: var(--wp--preset--color--muted, #5A5D7A);
	--fg-line: var(--wp--preset--color--line, #DCE1F2);
	--fg-line-strong: color-mix(in srgb, var(--fg-line) 70%, var(--fg-ink));
	--fg-accent: var(--wp--preset--color--accent, #FF6A13);
	--fg-accent-hover: color-mix(in srgb, var(--fg-accent) 86%, #fff);
	--fg-accent-deep: color-mix(in srgb, var(--fg-accent) 74%, #000);
	--fg-accent-ink: var(--wp--preset--color--accent-ink, #16171B);
	--fg-header-bg: color-mix(in srgb, var(--fg-base) 90%, transparent);
	--fg-hero-bg: var(--wp--preset--color--hero, #D9ECFF);
	--c-pink: var(--wp--preset--color--candy-pink, #FFD3E1);
	--c-peach: var(--wp--preset--color--candy-peach, #FFDCC6);
	--c-mint: var(--wp--preset--color--candy-mint, #C9F3D6);
	--c-sky: var(--wp--preset--color--candy-sky, #CFE6FF);
	--c-butter: var(--wp--preset--color--candy-butter, #FFF0A8);
	--c-lilac: var(--wp--preset--color--candy-lilac, #E4D9FF);
	--c-aqua: var(--wp--preset--color--candy-aqua, #C8F1EC);
	--c-lime: var(--wp--preset--color--candy-lime, #E4F6B8);
	--c-ledge: var(--fg-ink);
}
html[data-mode="night"] {
	--fg-accent: var(--wp--preset--color--accent, #FF7A2B);
	--fg-accent-hover: color-mix(in srgb, var(--fg-accent) 86%, #fff);
	--fg-accent-deep: color-mix(in srgb, var(--fg-accent) 74%, #000);
	--c-ledge: #000;
}

/* phone chip row: a short theme label so the glow shelf and the next chips are in view */
.fg-catnav__short { display: none; }
@media (max-width: 600px) {
	.fg-catnav__long { display: none; }
	.fg-catnav__short { display: inline; }
}

/* ===== Round 5 (theme 2.0.2) ===== */
/* the gallery's zoom button stays under the sticky header (it caught clicks meant for search) */
.fg-product__media .woocommerce-product-gallery__trigger, .woocommerce-product-gallery__trigger { z-index: 2 !important; }
/* night mode: the zoomed picture sits on the night card, not a white box */
.zoomImg { background: transparent !important; }
html[data-mode="night"] .zoomImg { background: color-mix(in srgb, var(--tint, var(--fg-tile)) 9%, var(--fg-tile)) !important; }
/* night mode: the quantity on the checkout summary pictures is readable */
html[data-mode="night"] .wc-block-components-order-summary-item__quantity { background: var(--fg-glow, #D8F96B) !important; color: #10131C !important; border-color: #10131C !important; box-shadow: none !important; }
/* the koala hangs in a gutter of its own instead of over the content's right edge */
@media (min-width: 782px) {
	html body { --wp--style--global--wide-size: min(1320px, calc(100vw - 104px)); }
}
/* phones: the breadcrumb ends before the koala's cord */
@media (max-width: 781px) {
	.fg-crumbs, .fg-product .woocommerce-breadcrumb { padding-right: 52px; }
}
/* phone product page: a lower gallery so the name and price are on the first screen */
@media (max-width: 760px) {
	.fg-product .woocommerce-product-gallery__image img, .fg-product .woocommerce-product-gallery img { max-height: 36vh; }
	.fg-product .flex-control-thumbs { margin-top: 0.4rem !important; }
	.fg-product .flex-control-thumbs li { width: 52px !important; }
}
/* phones: the glow button right under the buy button, then the promises */
@media (max-width: 781px) {
	.fg-product__info > .fg-product__lights { order: 5; }
	.fg-product__info > .fg-assure { order: 6; }
}
.fg-eta { display: block; margin-top: 0.15rem; color: var(--fg-ink-soft); font-size: 0.92em; }
.fg-eta[hidden] { display: none; }

/* "Finns också som": a column count that fills the rows (set by the theme from the number of forms) */
.fg-variants ul { grid-template-columns: repeat(var(--cols, 4), minmax(0, 1fr)); }
@media (max-width: 380px) { .fg-variants ul { grid-template-columns: repeat(min(var(--cols, 4), 4), minmax(0, 1fr)); } }
.fg-variants a { height: 100%; box-sizing: border-box; }
.fg-variants .fg-glowdot { position: absolute; top: 0.3rem; right: 0.35rem; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fg-glow, #D8F96B); box-shadow: 0 0 0 1.5px #10131C; }
.fg-variants li { position: relative; }

/* mini-cart: compact rows (no description, one price), the things you chose first and the picks after them */
.wc-block-mini-cart__drawer .wc-block-components-product-metadata,
.wc-block-mini-cart__drawer .wc-block-cart-item__prices { display: none !important; }
.wc-block-mini-cart__drawer .wc-block-cart-items__row { padding-block: 0.6rem !important; }
.wc-block-mini-cart__drawer .wc-block-cart-item__image img { width: 56px; height: 56px; object-fit: contain; }
.wc-block-mini-cart__drawer .wc-block-cart-items__row.is-new { background: color-mix(in srgb, var(--fg-accent) 14%, transparent); border-radius: 12px; }
.wc-block-mini-cart__drawer .fg-ship { margin: 0.25rem 0 0.5rem; padding: 0.6rem 0.85rem; }
.wc-block-mini-cart__drawer .fg-ship__picks { margin: 0.75rem 0 0.5rem; padding: 0.6rem 0.75rem; border-radius: 14px; background: var(--fg-tile); }
/* the title row is as tall as the close button, so the meter starts under both */
.wc-block-mini-cart__drawer .wc-block-mini-cart__title { min-height: 44px; display: flex; align-items: center; padding-right: 60px; margin-top: 12px !important; margin-bottom: 8px !important; }
/* the small print about VAT and shipping is shown on phones too */
.wc-block-mini-cart__footer .wc-block-components-totals-item__description { display: block !important; }
/* the shipping line under the meter at a readable size */
.fg-ship small.fg-ship__note { font-size: 0.9rem; color: var(--fg-ink); }
/* night checkout: no white corners around the country select */
html[data-mode="night"] .wc-blocks-components-select__container, html[data-mode="night"] .wc-blocks-components-select { background: transparent !important; }
/* checkout header on phones: one compact row of trust items and the help links, about half the height */
@media (max-width: 600px) {
	.fg-header--checkout .fg-header__bar { padding-block: 0.5rem; gap: 0.35rem 0.75rem; }
	.fg-header--checkout .fg-checkout-trust { order: 3; width: 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0.9rem; font-size: 0.8rem; }
	.fg-header--checkout .fg-checkout-trust::-webkit-scrollbar { display: none; }
	.fg-header--checkout .fg-checkout-trust li { white-space: nowrap; flex: none; }
	.fg-checkout-help { display: block; font-size: 0.82rem; }
	.fg-checkout-links { gap: 0.25rem 0.75rem; }
}
/* "Djur och teman" on phones and small tablets: the whole panel can be reached, scrolling inside itself */
@media (max-width: 781px) {
	.fg-themes { max-height: calc(100dvh - var(--fg-themes-top, 218px)); overflow-y: auto; overscroll-behavior: contain; box-sizing: border-box; }
	.fg-themes__list { grid-auto-rows: 1fr; }
}
/* no empty "Fler små vänner" heading when there is nothing to show */
.fg-related__title:has(+ .wp-block-woocommerce-product-collection:not(:has(.wc-block-product, li))) { display: none; }
/* rows without holes: the Gänget row takes as many columns as it has things, a 3-product shelf uses 3 columns */
@media (min-width: 1241px) {
	.fg-grid--row .wc-block-product-template:has(> li:nth-child(6):last-child) { grid-template-columns: repeat(6, minmax(0, 1fr)); }
	.fg-grid--row .wc-block-product-template:has(> li:nth-child(5):last-child) { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 782px) {
	.fg-shop .wc-block-product-template.is-flex-container:has(> li:nth-child(3):last-child),
	.fg-shop .wc-block-product-template:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; max-width: 980px; }
}
/* price bands: as many columns as there are bands */
@media (min-width: 768px) { .fg-prices__list { grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); } }
.fg-face__gloss { display: block; font-size: 0.72rem; font-weight: 400; color: var(--fg-ink-soft); line-height: 1.1; }
/* chip rows say what they choose: "Sort", "Djur och teman", "Pris" */
.fg-chips__label { align-self: center; flex: none; margin-right: 0.15rem; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; color: var(--fg-ink-soft); }
/* header search suggestions */
.fg-search .wp-block-search__inside-wrapper { position: relative; }
.fg-suggest { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 70; /* layer: above the header dropdown */ list-style: none; margin: 0; padding: 0.35rem; max-height: min(70vh, 460px); overflow-y: auto; background: var(--fg-surface); color: var(--fg-ink); border: 2px solid var(--fg-ink); border-radius: 16px; box-shadow: 0 12px 30px rgb(var(--fg-shadow-rgb) / 0.18); text-align: left; }
.fg-suggest[hidden] { display: none; }
.fg-suggest li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 0.6rem; padding: 0.4rem 0.55rem; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 0.92rem; line-height: 1.25; }
.fg-suggest li img { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: var(--fg-tile); }
.fg-suggest li small { color: var(--fg-ink-soft); font-weight: 500; white-space: nowrap; }
.fg-suggest li.is-active, .fg-suggest li:hover { background: var(--fg-tile); }
.fg-suggest__shelf { grid-template-columns: 1fr auto !important; }
.fg-suggest__shelf span::before { content: "→ "; color: var(--fg-ink-soft); }
.fg-suggest__all { grid-template-columns: 1fr !important; color: var(--fg-ink); text-decoration: underline; text-underline-offset: 2px; }
/* language: "SV | EN", the current one quiet, the other one the button */
.fg-lang.fg-lang--pair { display: inline-flex; width: auto; padding: 0 4px 0 10px; gap: 6px; align-items: center; }
.fg-lang--pair .fg-lang__cur { color: var(--fg-ink-soft); font-weight: 700; }
.fg-lang--pair .fg-lang__cur::after { content: "|"; margin-left: 6px; color: var(--fg-line-strong); }
.fg-lang--pair .fg-lang__other { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 999px; color: var(--fg-ink); text-decoration: none; font-weight: 800; }
.fg-lang--pair .fg-lang__other:hover, .fg-lang--pair .fg-lang__other:focus-visible { background: var(--c-butter); }
.fg-lang--pair:hover { background: var(--fg-surface); }
/* on the cart page the mini-cart button is hidden by WooCommerce: take its place away too, so the language switch sits at the edge */
body.woocommerce-cart .fg-cart, body.woocommerce-cart .wp-block-woocommerce-mini-cart { display: none !important; }

/* ===== Round 6 ===== */
/* chip rows start with their label in view (scroll snapping used to cut it to a letter) */
.fg-chips__label { scroll-snap-align: start; }
/* free-shipping picks: the whole name, on two lines if needed */
.fg-ship__picks li a span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; }
.fg-ship__add { padding: 0 0.65rem; font-size: 0.8rem; white-space: nowrap; }
/* night mode: the checkout quantity is a dark number on the yellow dot */
html[data-mode="night"] .wc-block-components-order-summary-item__quantity,
html[data-mode="night"] .wc-block-components-order-summary-item__quantity * { color: #10131C !important; }
/* checkout header on phones: the trust items wrap onto two short lines instead of being cut */
@media (max-width: 600px) {
	.fg-header--checkout .fg-checkout-trust { flex-wrap: wrap; overflow: visible; gap: 0.15rem 0.8rem; justify-content: center; }
	.fg-header--checkout .fg-checkout-trust li { white-space: normal; }
}
/* cart and checkout: no cut-off product descriptions under the names */
.wp-block-woocommerce-cart .wc-block-components-product-metadata__description,
.wc-block-components-order-summary-item .wc-block-components-product-metadata__description { display: none; }
/* the koala's cord hangs at least 8 px outside the content column */
@media (min-width: 782px) {
	html body { --wp--style--global--wide-size: min(1320px, calc(100vw - 132px)); }
}
/* filter chip rows: one line each, sliding sideways when they are long (on computers too), so the products start higher */
.fg-chips.fg-chips--narrow { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: thin; padding-bottom: 0.35rem; -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 2.5rem), transparent); padding-right: 2.5rem; }
.fg-chips.fg-chips--narrow > * { flex: none; }
/* night: the big orange tile on the home page is dimmed so it doesn't glare */
html[data-mode="night"] .fg-tile--feature a { background: color-mix(in srgb, var(--fg-accent) 70%, #10131C); }
/* product page on computers: the pictures stay in view while you read */
@media (min-width: 1024px) {
	.fg-product__media { position: sticky; top: calc(var(--fg-header-h) + 5.5rem); align-self: flex-start; }
	.fg-product__info { position: static; }
}
/* the glow shelf's lamp button */
.fg-shelf-lights { margin: 0.25rem 0 0.75rem; }
/* "Fler i Gänget" under a character's things */
.fg-more-gang { margin-top: clamp(2rem, 4vw, 3rem); }
/* about-€ hints and the lost-letter promise */
.fg-eur { display: block; text-align: right; font-size: 0.8rem; font-weight: 500; color: var(--fg-ink-soft); }
.fg-lostnote { margin: 0.5rem 0 0; font-size: 0.85rem; color: var(--fg-ink-soft); }
.fg-cart-trust { display: flex; align-items: center; justify-content: center; gap: 0.4rem; margin: 0.75rem 0 0; font-size: 0.85rem; color: var(--fg-ink-soft); text-align: center; }
.fg-cart-trust svg { width: 1.1em; height: 1.1em; flex: none; }
.fg-char__more { margin: 0.5rem 0 0; }
/* /ganget/: the intro text lines up with the heading (no indent) */
.wp-block-post-content:has(.fg-gang) > p, .wp-block-post-content:has(.fg-gang) > h2 { margin-left: 0 !important; }
/* contrast: the count on a chosen chip, and the highlighted search suggestion */
.fg-chip.is-current .fg-chip__n { color: var(--fg-base); opacity: 0.85; }
.fg-suggest li.is-active { background: var(--fg-ink); color: var(--fg-base); }
.fg-suggest li.is-active small { color: var(--fg-base); opacity: 0.85; }
.fg-suggest li.is-active .fg-suggest__all, .fg-suggest li.is-active span::before { color: inherit; }
/* phone shelves: the chip rows are tighter, so the first products come sooner */
@media (max-width: 600px) {
	.fg-chips { margin-top: 0.75rem; gap: 0.35rem; }
	.fg-chips + .fg-chips { margin-top: 0.4rem; }
	.fg-chips .fg-chip { min-height: 38px; padding-block: 0.2rem; font-size: 0.85rem; }
	.fg-chips .fg-chip__pic { width: 26px; height: 26px; }
}
/* the theme panel on phones scrolls as one box */
@media (max-width: 781px) { .fg-themes__list { max-height: none; overflow: visible; } }
/* tablets: a lower product picture so the buy button comes sooner */
@media (min-width: 761px) and (max-width: 1023px) {
	.fg-product .woocommerce-product-gallery__image img, .fg-product .woocommerce-product-gallery img { max-height: 46vh; width: auto; margin-inline: auto; }
}


/* ===== 27 Nov 2026: header at every width, phone menu, search behind an icon, steady buy buttons, photo zoom ===== */

/* product cards: after "Lägg i korgen" WooCommerce un-hides an empty wrapper for its "Visa varukorg" link (the theme hides
   that link); with the 12px gap in the button block it pushed the button up for good */
.wc-block-components-product-button > span { display: none !important; }

/* the two phone buttons are in the header markup but only show on phones */
.fg-menubtn, .fg-searchbtn { display: none; padding: 0; cursor: pointer; -webkit-appearance: none; appearance: none; -webkit-tap-highlight-color: transparent; }
.fg-searchbtn .fg-icon--close, .fg-search-open .fg-searchbtn .fg-icon--open { display: none; }
.fg-search-open .fg-searchbtn .fg-icon--close { display: block; }

/* desktop: logo left, search in the middle of the page, tools right, and the category row centred under it */
@media (min-width: 1024px) {
	.fg-header:not(.fg-header--checkout) .fg-header__bar { display: grid !important; grid-template-columns: minmax(9.5rem, 1fr) minmax(0, 560px) minmax(9.5rem, 1fr); align-items: center; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-logo { justify-self: start; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-search { margin: 0; width: 100%; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-header__tools { justify-self: end; }
	.fg-catnav ul { justify-content: center; -webkit-mask-image: none; mask-image: none; padding-right: 0 !important; }
}
/* the lamp cord takes 30px on the right up to 1420px: the same on the left keeps both rows in the middle of the page */
@media (min-width: 1024px) and (max-width: 1420px) {
	.fg-header:not(.fg-header--checkout) .fg-header__bar, .fg-catnav { padding-left: 30px; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-logo { margin-left: -30px; }
}
@media (min-width: 1024px) and (max-width: 1100px) {
	.fg-catnav { margin-inline: 0; }
	.fg-catnav ul { padding-inline: 0 !important; }
}

/* tablets: one centred row; when it cannot fit it starts at the left and scrolls */
@media (min-width: 761px) and (max-width: 1023px) {
	.fg-catnav ul { justify-content: safe center; -webkit-mask-image: none; mask-image: none; padding-right: 0 !important; }
}
@media (min-width: 761px) and (max-width: 900px) {
	.fg-catnav__long { display: none; }
	.fg-catnav__short { display: inline; }
	html[lang] .fg-catnav ul { gap: 0.25rem; }
	html[lang] .fg-catnav a, html[lang] .fg-catnav__btn { font-size: 0.84rem; padding-right: 0.6rem; }
}
@media (min-width: 761px) and (max-width: 820px) {
	html[lang] .fg-catnav ul { gap: 0.2rem; }
	html[lang] .fg-catnav a, html[lang] .fg-catnav__btn { font-size: 0.8rem; gap: 0.28rem; padding-right: 0.5rem; }
	.fg-catnav__pic { width: 26px; height: 26px; }
}
/* English names are longer */
@media (min-width: 761px) and (max-width: 1023px) {
	html[lang="en"] .fg-catnav__long { display: none; }
	html[lang="en"] .fg-catnav__short { display: inline; }
}
@media (min-width: 761px) and (max-width: 900px) {
	html[lang="en"] .fg-catnav ul { gap: 0.15rem; }
	html[lang="en"] .fg-catnav a, html[lang="en"] .fg-catnav__btn { font-size: 0.76rem; gap: 0.24rem; padding-right: 0.42rem; }
	html[lang="en"] .fg-catnav__pic { width: 24px; height: 24px; }
}

/* phones: one row with menu, logo, search icon, language and cart; the search field opens under it */
@media (max-width: 760px) {
	.fg-menubtn, .fg-searchbtn { display: inline-grid; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar { justify-content: flex-start !important; gap: 0.6rem; row-gap: 0.5rem; padding-block: 0.45rem 0.55rem; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-logo { margin-right: auto; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-search { display: none; }
	.fg-search-open .fg-header:not(.fg-header--checkout) .fg-header__bar .fg-search { display: block; }
	.fg-header__tools { gap: 0.5rem; }
	.fg-catnav ul { padding-top: 0.1rem; padding-bottom: 0.6rem; }
}
@media (max-width: 429px) { .fg-header__tools .fg-lang { display: none; } }
@media (max-width: 340px) { .fg-header:not(.fg-header--checkout) .fg-header__bar { gap: 0.4rem; } .fg-header:not(.fg-header--checkout) .fg-header__bar .fg-logo { font-size: 1.9rem; } }
/* without scripts the buttons could do nothing: show the search field instead */
@media (max-width: 760px) and (scripting: none) {
	.fg-menubtn, .fg-searchbtn { display: none; }
	.fg-header:not(.fg-header--checkout) .fg-header__bar .fg-search { display: block; }
	.fg-header__tools .fg-lang { display: inline-flex; }
}

/* the phone menu: a full-screen sheet with the shelves, the themes, the help pages and the language */
.fg-mnav { position: fixed; inset: 0; z-index: 100000; /* layer: full-screen menu */ display: flex; flex-direction: column; background: var(--fg-base); color: var(--fg-ink); overscroll-behavior: contain; }
.fg-mnav[hidden] { display: none; }
@media (min-width: 761px) { .fg-mnav { display: none !important; } }
html.fg-mnav-open, html.fg-mnav-open body { overflow: hidden; }
.fg-mnav__top { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: calc(0.6rem + env(safe-area-inset-top)) max(1rem, env(safe-area-inset-right)) 0.7rem max(1rem, env(safe-area-inset-left)); background: var(--fg-surface); border-bottom: 2px solid var(--fg-ink); }
.fg-mnav__title { font-family: var(--fg-display); font-size: 1.8rem; line-height: 1; }
.fg-mnav__close { display: inline-grid; padding: 0; cursor: pointer; }
.fg-mnav__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 1.1rem max(1rem, env(safe-area-inset-right)) calc(2rem + env(safe-area-inset-bottom)) max(1rem, env(safe-area-inset-left)); }
.fg-mnav ul { list-style: none; margin: 0; padding: 0; }
.fg-mnav__h { font-family: var(--fg-display); font-size: 1.3rem; line-height: 1.1; margin: 1.6rem 0 0.7rem; }
.fg-mnav__h:first-child { margin-top: 0; }
.fg-mnav__cats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.5rem; }
.fg-mnav__cats a { display: flex; align-items: center; gap: 0.55rem; min-height: 56px; padding: 0.3rem 0.8rem 0.3rem 0.4rem; border-radius: 999px; border: 2px solid transparent; background: var(--candy, var(--fg-tile)); color: var(--fg-ink); font-weight: 700; font-size: 0.98rem; line-height: 1.15; text-decoration: none; }
.fg-mnav__cats a:active, .fg-mnav__cats a.is-current { border-color: var(--fg-ink); }
.fg-mnav__cats .fg-catnav__pic { width: 44px; height: 44px; }
.fg-mnav__cats .fg-mnav__all a { justify-content: center; padding-left: 0.8rem; background: var(--fg-ink); color: var(--fg-base); }
.fg-mnav .fg-themes__list { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; }
.fg-mnav .fg-themes__all { margin: 0.8rem 0 0; text-align: left; }
.fg-mnav__links a { display: flex; align-items: center; min-height: 48px; padding: 0 0.15rem; border-bottom: 1px solid var(--fg-line); color: var(--fg-ink); font-weight: 600; text-decoration: none; }
.fg-mnav__lang { margin-top: 1.6rem; display: flex; align-items: center; gap: 0.75rem; font-weight: 700; }
.fg-mnav__lang .fg-lang { display: inline-flex; }
@media (prefers-reduced-motion: no-preference) { .fg-mnav:not([hidden]) { animation: fg-mnav-in 0.26s var(--fg-ease); } }
@keyframes fg-mnav-in { from { opacity: 0; transform: translateY(-12px); } to { opacity: 1; transform: none; } }

/* product photo: the whole photo opens the full-screen view; the hover zoom keeps the round corners */
.fg-product .woocommerce-product-gallery__image { cursor: zoom-in; border-radius: inherit; }
/* phones: the swaying koala reached a few pixels past the right edge, so the whole page could slide sideways */
html { overflow-x: clip; }

/* 28 Nov 2026: follow us on Instagram and TikTok (footer and contact page). Core social-links block, pill shape, labels on. */
.fg-follow-lead { margin: 16px 0 0; font-weight: 700; }
ul.wp-block-social-links.fg-social { display: flex; flex-wrap: wrap; gap: 10px; margin: 12px 0 18px; padding: 0; list-style: none; font-size: 16px; }
.wp-block-social-links.fg-social .wp-social-link { margin: 0; padding: 0; background: #fff !important; color: #1E1B3A !important; border: 2px solid #1E1B3A; border-bottom-width: 4px; border-radius: 999px; transition: transform .12s ease; }
.wp-block-social-links.fg-social .wp-social-link a { display: flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; color: #1E1B3A !important; text-decoration: none !important; font-weight: 700; line-height: 1.2; }
.wp-block-social-links.fg-social .wp-social-link svg { width: 22px; height: 22px; flex: none; fill: currentColor; }
ul.wp-block-social-links.fg-social .wp-social-link .wp-block-social-link-label { margin: 0 !important; font-size: 15px !important; }
.wp-block-social-links.fg-social .wp-social-link:hover { transform: translateY(-2px); }
.wp-block-social-links.fg-social .wp-social-link:active { transform: translateY(2px); border-bottom-width: 2px; }
.wp-block-social-links.fg-social .wp-social-link a:focus-visible { outline: 3px solid #FF6A13; outline-offset: 3px; border-radius: 999px; }
@media (prefers-reduced-motion: reduce) { .wp-block-social-links.fg-social .wp-social-link { transition: none; } .wp-block-social-links.fg-social .wp-social-link:hover, .wp-block-social-links.fg-social .wp-social-link:active { transform: none; } }
