/*!
 * minifabrik-child main.css
 * Ported from minifabrik-prototype-v6.html <style> block (source of truth).
 * :root below aliases theme.json design tokens; do not hard-code hex values.
 */
/* Short aliases forwarding to theme.json design tokens.
   The theme.json registers palette and fontFamilies that WP emits as
   --wp--preset--color--{slug} and --wp--preset--font-family--{slug}.
   Everything below uses the short names; update theme.json to change values. */
:root {
	--cream:           var(--wp--preset--color--cream);
	--warm-white:      var(--wp--preset--color--warm-white);
	--hero-bg:         var(--wp--preset--color--hero-bg);
	--blush:           var(--wp--preset--color--blush);
	--blush-light:     var(--wp--preset--color--blush-light);
	--sage:            var(--wp--preset--color--sage);
	--sage-dark:       var(--wp--preset--color--sage-dark);
	--sage-light:      var(--wp--preset--color--sage-light);
	--sage-pale:       var(--wp--preset--color--sage-pale);
	--terracotta:      var(--wp--preset--color--terracotta);
	--terracotta-dark: var(--wp--preset--color--terracotta-dark);
	--sky:             var(--wp--preset--color--sky);
	--sky-soft:        var(--wp--preset--color--sky-soft);
	--peach:           var(--wp--preset--color--peach);
	--charcoal:        var(--wp--preset--color--charcoal);
	--warm-gray:       var(--wp--preset--color--warm-gray);
	--light-gray:      var(--wp--preset--color--light-gray);
	--mustard:         var(--wp--preset--color--mustard);
	--dusty-rose:      var(--wp--preset--color--dusty-rose);
	--cloud:           var(--wp--preset--color--cloud);

	--font-heading: var(--wp--preset--font-family--heading);
	--font-body:    var(--wp--preset--font-family--body);
	--font-accent:  var(--wp--preset--font-family--accent);

	/* Logo text colour — charcoal. The PNG balloon carries the brand hue. */
	--logo-color: #2D2926;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
/* oi-mobile-scroll (D): horizontális túlcsordulás-clip a gyökéren.
 * `overflow-x: clip` (NEM `hidden`): nem hoz létre scroll-konténert, így a
 * `position: sticky` header ép marad, ÉS a `html`-en is hat (a `body`-only
 * `hidden` korábban hatástalan volt — a body saját scroll-konténerré vált és
 * nem propagált a viewportra, ez volt az eredeti gyökérok). Levágja a homepage
 * dekoratív bleed-jét (mf-decor-*) + defense-in-depth háló a maradékra. */
html { scroll-behavior: smooth; overflow-x: clip; }
body {
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--charcoal);
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  font-weight: 400;
  line-height: 1.55;
}
img { max-width: 100%; display: block; }
a { color: inherit; }

h1, h2, h3, h4, h5 { font-family: var(--font-heading); font-weight: 400; line-height: 1.2; letter-spacing: 0.5px; }

/* =========================================================
   HEADER - Bunny6 stílus: hamburger | logó | ikonok
   fehér háttér, alatta felhős (scalloped) elválasztó
   ========================================================= */
header {
  position: sticky; top: 0; z-index: 100;
  background: #ffffff;
}
/* The WooCommerce category/shop title bar AND the GP page-title `.entry-header`
   are BOTH <header> elements, so the bare `header` rule above leaked onto them
   (sticky + z-index:100 + white bg) — the page title stuck on scroll and slid
   OVER the site header (see legal pages), plus a stray white bar sat behind the
   title. Keep these non-sticky and transparent. */
.woocommerce-products-header,
.entry-header {
  position: static;
  z-index: auto;
  background: transparent;
  box-shadow: none;
  border: 0;
}
.header-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  max-width: 1600px;
  margin: 0 auto;
  padding: 13px 48px;
  gap: 24px;
}

/* Bal oldal: vissza-nyíl (item 6) + hamburger + Menu felirat */
.header-left { display: flex; align-items: center; gap: 8px; }
/* Back-arrow: browser-back with a homepage fallback, so visitors can leave a
   product without the search overlay's back button. Hidden on the front page. */
.mf-back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; flex-shrink: 0;
  color: var(--charcoal); text-decoration: none;
  border-radius: 50%; transition: background 0.2s, color 0.2s;
}
.mf-back-btn:hover { background: var(--light-gray); color: var(--terracotta); }
.mf-back-btn svg { width: 22px; height: 22px; }
body.home .mf-back-btn, body.page-id-front .mf-back-btn { display: none; }

.menu-toggle {
  display: flex; align-items: center; gap: 14px;
  background: none; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 500;
  font-size: 0.95rem; color: var(--charcoal);
  padding: 8px 4px;
}
.hamburger { display: flex; flex-direction: column; gap: 4px; width: 22px; }
.hamburger span {
  display: block; height: 2px; background: var(--charcoal);
  border-radius: 2px; transition: all 0.3s ease;
}
.hamburger span:nth-child(2) { width: 75%; }
.menu-toggle:hover .hamburger span { background: var(--terracotta); }

/* Középső: logó — szöveg + PNG ballon kép egymás mellett */
.logo {
  display: flex; flex-direction: row; align-items: center; justify-content: center;
  text-decoration: none; color: var(--charcoal);
  gap: 8px;
}
.logo-text {
  font-family: var(--font-heading);
  font-size: 2.2rem;
  /* was 2px — client felt the header wordmark was too airy. */
  letter-spacing: 1px;
  color: var(--logo-color);
  font-weight: 400;
  line-height: 1;
}
.logo-balloon-img {
  height: 40px;
  width: auto;
  flex-shrink: 0;
  margin-left: 6px;
  margin-top: -2px;
  display: block;
}
.logo-balloon-img.sidebar-balloon { height: 28px; margin: 0; }
.logo-balloon-img.footer-balloon  { height: 36px; margin: 0; }
/* oi-6: WC core CSS (`.woocommerce-page img { height: auto }`, specificity
 * 0,1,1) outranks `.logo-balloon-img` (0,1,0) and lets the header logo
 * render at its native pixel size on WooCommerce pages.
 * Scope to `body.woocommerce-page` (NOT `body.woocommerce`): shop/product
 * pages carry both classes, but cart/checkout/my-account get ONLY
 * `woocommerce-page` — so `body.woocommerce` missed /my-account/ and the
 * balloon rendered huge there. `woocommerce-page` covers every WC page.
 * Exclude the sidebar/footer modifier variants which carry their own height. */
body.woocommerce-page .logo-balloon-img:not(.sidebar-balloon):not(.footer-balloon) {
  height: 40px;
}
.sidebar-brand {
  font-family: var(--font-heading);
  font-size: 1.5rem;
  color: var(--logo-color);
  letter-spacing: 1.5px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1;
}
/* Wordmark + balloon on one line, tagline ("Handgemachte Babykleidung & mehr")
   centered underneath. Tagline typography is a GB Global Style (.logo-tagline). */
.logo:has(.logo-mark) { flex-direction: column; gap: 5px; }
.logo-mark { display: flex; align-items: center; gap: 6px; }

/* Jobb oldal: ikonok - háttér nélkül, ahogy kérted */
.header-icons {
  display: flex; justify-content: flex-end; gap: 22px; align-items: center;
}
.header-icons button,
.header-icons a {
  background: none; border: none; cursor: pointer;
  color: var(--charcoal); text-decoration: none;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.25s;
  position: relative;
}
.header-icons button:hover,
.header-icons a:hover { color: var(--terracotta); }
.header-icons svg { width: 22px; height: 22px; stroke-width: 1.6; }

.icon-badge {
  position: absolute; top: -4px; right: -6px;
  background: var(--terracotta); color: white;
  font-size: 0.62rem; font-weight: 600;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-body);
}

/* =========================================================
   SIDEBAR MENÜ - hamburgerre csúszik be balról
   Megoldja a 18-as pontot: nincs dropdown hover issue
   ========================================================= */
.sidebar-overlay {
  position: fixed; inset: 0;
  background: rgba(45,41,38,0.5);
  opacity: 0; visibility: hidden;
  transition: all 0.35s ease;
  z-index: 200;
}
.sidebar-overlay.open { opacity: 1; visibility: visible; }

.sidebar-menu {
  position: fixed; top: 0; left: 0;
  width: 420px; max-width: 92vw; height: 100vh;
  background: #ffffff;
  transform: translateX(-100%);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 201;
  overflow-y: auto;
  padding: 32px 36px 40px;
}
.sidebar-menu.open { transform: translateX(0); }

.sidebar-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 32px; padding-bottom: 20px;
  border-bottom: 1px solid var(--light-gray);
}
.sidebar-title { font-family: var(--font-heading); font-size: 1.4rem; color: var(--charcoal); }
.sidebar-close {
  background: none; border: none; cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal); font-size: 1.4rem;
  transition: color 0.2s;
}
.sidebar-close:hover { color: var(--terracotta); }

.sidebar-nav { list-style: none; }
.sidebar-nav > li > a,
.sidebar-nav > li > .cat-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 14px 4px;
  text-decoration: none; color: var(--charcoal);
  font-family: var(--font-body); font-size: 1rem; font-weight: 500;
  background: none; border: none; cursor: pointer;
  text-align: left;
  transition: color 0.2s;
}
.sidebar-nav > li > a:hover,
.sidebar-nav > li > .cat-toggle:hover { color: var(--terracotta); }
.cat-toggle .chev {
  transition: transform 0.3s;
  font-size: 1.4rem;
  line-height: 1;
  font-weight: 400;
  color: var(--warm-gray);
}
.cat-toggle.active .chev { transform: rotate(90deg); }

.sub-list {
  list-style: none;
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease;
  padding-left: 14px;
}
.sub-list.open { max-height: 500px; padding-bottom: 12px; }
.sub-list li a {
  display: block; padding: 10px 4px;
  text-decoration: none; color: var(--warm-gray);
  font-size: 0.92rem;
  transition: color 0.2s, padding-left 0.2s;
}
.sub-list li a:hover {
  color: var(--terracotta); padding-left: 8px;
}
/* Nested category toggle inside a sub-list — a second-level category that is
   itself a parent (e.g. Softshell-Latzhose under Kleidung, Bettschlangen under
   Babyzimmer). The `.cat-toggle` reset only covers top-level toggles
   (`.sidebar-nav > li >`), so a nested one fell back to the browser's default
   grey <button> background. Match the sub-list leaf-link appearance. */
.sub-list .cat-toggle {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  padding: 10px 4px;
  background: none; border: none; cursor: pointer;
  text-align: left;
  color: var(--warm-gray);
  font-family: var(--font-body); font-size: 0.92rem; font-weight: 500;
  transition: color 0.2s;
}
.sub-list .cat-toggle:hover { color: var(--terracotta); }

.sidebar-footer {
  margin-top: 36px;
  padding-top: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.sidebar-bear {
  width: 72px;
  height: 80px;
  animation: peek 4s ease-in-out infinite;
}

/* =========================================================
   SEARCH OVERLAY - a header alá lecsúszó kis panel
   ========================================================= */
.search-overlay {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 250;
  background: white;
  border-bottom: 1px solid var(--light-gray);
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  transform: translateY(-100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  padding: 22px 48px;
}
.search-overlay.open { transform: translateY(0); }
.search-overlay-backdrop {
  position: fixed; inset: 0;
  background: rgba(45,41,38,0.15);
  z-index: 249;
  opacity: 0; visibility: hidden;
  transition: all 0.3s;
}
.search-overlay-backdrop.open { opacity: 1; visibility: visible; }

.search-box-wrap {
  max-width: 640px;
  margin: 0 auto;
  display: flex; align-items: center; gap: 16px;
  position: relative;
}
.search-input-wrap {
  flex: 1;
  position: relative;
  border-bottom: 2px solid var(--charcoal);
}
.search-input-wrap input {
  width: 100%;
  border: none; background: transparent;
  padding: 10px 48px 10px 8px;
  font-family: var(--font-body);
  font-size: 1.1rem;
  color: var(--charcoal);
  outline: none;
}
.search-input-wrap input::placeholder { color: var(--warm-gray); }
.search-submit {
  position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer;
  color: var(--charcoal);
  padding: 6px;
}
.search-submit svg { width: 20px; height: 20px; }
.search-close {
  background: none; border: none; cursor: pointer;
  color: var(--charcoal); font-size: 1.4rem;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.2s, color 0.2s;
  flex-shrink: 0;
}
.search-close:hover { transform: rotate(90deg); color: var(--terracotta); }


/* =========================================================
   PHASE 1.5a — Homepage section CSS migrated to GB Pro Global Styles
   (mf-* entries in inc/global-styles-seed.php). The .site-scallop and
   .page-breadcrumb classes below stay because they're used by GP
   Elements and the Rólunk page-header pattern respectively. The 6
   @keyframes definitions stay because Global Style entries reference
   them via the `animation` prop.
   ========================================================= */

/* Site-wide scallop — rendered by the 'minifabrik scallop' GP Element on
   every page, right below the header (wp_body_open priority 11). The SVG's
   top 10px are solid white, extending the header background; the scallop
   curves then bite into the body's cream background. */
.site-scallop {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 1920 / 74;   /* natural cloud proportion — deep, crisp scallops at any width */
  line-height: 0;
  margin-top: -1px;      /* eliminate a subpixel seam between header and scallop */
  z-index: 99;           /* under the sticky header (z-index:100), above content */
  pointer-events: none;
  background-image: url(../images/cloud-edge.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% 100%;
}
.site-scallop svg { display: none; }

/* Homepage hero pulled up under the cloud so the scalloped edge dips into the
   tops of the hero images (per the redesign). Scallop is z-99, hero z-1 → the
   white cloud overlaps the image tops. */
.mf-hero-section {
  margin-top: -52px;
  position: relative;
  z-index: 1;
}

/* Mobile: the cloud reads poorly on narrow screens — drop it and leave a clean
   straight edge under the header. */
@media (max-width: 768px) {
  .site-scallop {
    aspect-ratio: auto;
    height: 0;
    background: none;
    border-top: 1px solid var(--light-gray, #E8E2DC);
  }
  .mf-hero-section { margin-top: 0; }
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes twinkle { 0%, 100% { opacity: 0.6; transform: scale(1); } 50% { opacity: 1; transform: scale(1.15); } }
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin-slow { to { transform: rotate(360deg); } }
@keyframes sway { 0%, 100% { transform: rotate(10deg); } 50% { transform: rotate(-5deg); } }
@keyframes peek { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-8px) rotate(2deg); } }
.page-breadcrumb {
  font-size: 0.88rem;
  color: var(--warm-gray);
  margin-bottom: 28px;
  letter-spacing: 0.3px;
}
.page-breadcrumb a {
  color: var(--warm-gray);
  text-decoration: none;
  transition: color 0.2s;
}
.page-breadcrumb a:hover { color: var(--terracotta); }
.page-breadcrumb span { color: var(--charcoal); }
/* =========================================================
   FOOTER - Buny4 alapú, 3 oszlop, newsletter NÉLKÜL
   ========================================================= */
.footer-decor-line {
  position: absolute;
  top: -60px; left: 50%; transform: translateX(-50%);
  width: 115px; height: 124px;
  opacity: 0.5;
  pointer-events: none;
}
/* Footer styles now live in GB Global Style entries (gblocks_styles):
   .site-footer/.footer-inner/-contact/-center/-logo/-logo-sub/-links/-social/-nav/-bottom
   — editable from the GB Style panel. (.footer-decor-line above stays here.) */

/* =========================================================
   BACK TO TOP - felhő alakú zöld gomb "TOP" felirattal
   ========================================================= */
.back-to-top {
  position: fixed;
  bottom: 32px; right: 32px;
  width: 70px; height: 58px;
  cursor: pointer;
  z-index: 90;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px);
  transition: all 0.3s ease;
  background: none; border: none;
  padding: 0;
}
.back-to-top.visible { opacity: 1; visibility: visible; transform: translateY(0); }
.back-to-top:hover { transform: translateY(-4px); }
.back-to-top .cloud-shape {
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 30% 55%, var(--sage-dark) 20%, transparent 21%),
    radial-gradient(circle at 55% 35%, var(--sage-dark) 26%, transparent 27%),
    radial-gradient(circle at 80% 50%, var(--sage-dark) 22%, transparent 23%),
    radial-gradient(circle at 55% 65%, var(--sage-dark) 30%, transparent 31%);
  filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15));
}
.back-to-top .top-text {
  position: relative;
  color: white;
  font-family: var(--font-heading);
  font-size: 0.85rem;
  letter-spacing: 1.5px;
  display: flex; align-items: center; justify-content: center;
  height: 100%;
  padding-top: 4px;
}

/* =========================================================
   TERMÉKOLDAL - lenti demó részhez
   ========================================================= */
.pd-section {
  padding: 60px 48px 90px;
  background: var(--warm-white);
}
.pd-label {
  text-align: center;
  margin-bottom: 40px;
}
.pd-label h2 {
  font-family: var(--font-heading);
  font-size: 2rem; letter-spacing: 1px;
}
.pd-label p {
  color: var(--warm-gray);
  font-size: 0.9rem;
  margin-top: 6px;
}

.pd-wrap {
  max-width: 1200px; margin: 0 auto;
  background: white;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  border: 1px solid var(--light-gray);
}
.pd-gallery { display: grid; grid-template-columns: 80px 1fr; gap: 16px; }
.pd-thumbnails { display: flex; flex-direction: column; gap: 10px; }
.pd-thumb {
  width: 80px; height: 80px;
  border-radius: 10px; overflow: hidden;
  border: 2px solid transparent;
  background: var(--cloud);
  cursor: pointer;
  transition: border-color 0.2s;
}
.pd-thumb.active { border-color: var(--terracotta); }
.pd-thumb img,
.pd-thumb .pd-thumb-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.pd-main {
  border-radius: 16px; overflow: hidden;
  background: var(--cloud);
  aspect-ratio: 4/5;
  position: relative;
}
.pd-main img,
.pd-main .pd-main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* These 10 moccasin photos are landscape and wider than the default 4:5 crop,
   which clipped the right shoe. Give ONLY these products a ~3:2 frame matching
   the photo and `contain` the image on white, so the full pair shows with no
   crop and minimal letterbox. Every other product keeps the default 4:5 frame. */
body.postid-765 .pd-main, body.postid-629 .pd-main, body.postid-681 .pd-main,
body.postid-687 .pd-main, body.postid-695 .pd-main, body.postid-684 .pd-main,
body.postid-653 .pd-main, body.postid-622 .pd-main, body.postid-614 .pd-main,
body.postid-741 .pd-main {
  aspect-ratio: 3 / 2;
  background: #ffffff;
}
body.postid-765 .pd-main img, body.postid-629 .pd-main img, body.postid-681 .pd-main img,
body.postid-687 .pd-main img, body.postid-695 .pd-main img, body.postid-684 .pd-main img,
body.postid-653 .pd-main img, body.postid-622 .pd-main img, body.postid-614 .pd-main img,
body.postid-741 .pd-main img { object-fit: contain; object-position: center; }

.pd-info { padding: 4px 0; }
.pd-breadcrumb {
  font-size: 0.82rem; color: var(--warm-gray);
  margin-bottom: 16px;
}
.pd-breadcrumb a { color: var(--warm-gray); text-decoration: none; }
.pd-breadcrumb a:hover { color: var(--terracotta); }
.pd-brand {
  font-size: 0.7rem; color: var(--sage-dark);
  letter-spacing: 2px; text-transform: uppercase;
  font-weight: 600; margin-bottom: 8px;
}
.pd-title {
  font-family: var(--font-heading);
  font-size: 1.9rem; letter-spacing: 1px;
  color: var(--charcoal); margin-bottom: 14px;
}
.pd-price {
  font-size: 1.6rem; font-weight: 700;
  color: var(--terracotta); margin-bottom: 22px;
}
.pd-desc {
  color: var(--warm-gray);
  font-size: 0.92rem; line-height: 1.75;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--light-gray);
}

.pd-option-label {
  font-size: 0.85rem; font-weight: 600;
  margin-bottom: 10px; color: var(--charcoal);
  display: block;
}
.pd-sizes { display: flex; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.pd-size {
  padding: 10px 22px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  font-size: 0.85rem;
  cursor: pointer;
  background: white;
  font-weight: 500;
  font-family: var(--font-body);
  transition: all 0.2s;
}
.pd-size.active, .pd-size:hover {
  border-color: var(--sage);
  background: var(--sage-pale);
  color: var(--sage-dark);
}

/* Dropdown (select) - Moccasin méret + Babafészek add-onok + WC native variation select-ek (pa_szin, ha 'pd-size-btn-wrap'-ot nem kap) */
.pd-select,
.pd-attribute-row select {
  width: 100%;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 20px;
  background: white;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%238A807A' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  outline: none;
  font-weight: 500;
}
.pd-select:focus,
.pd-attribute-row select:focus { border-color: var(--sage); }

/* Szín és minta swatchek - Babafészek */
.pd-swatches {
  display: flex; gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.pd-swatch {
  width: 48px; height: 48px;
  border-radius: 10px;
  border: 2px solid var(--light-gray);
  cursor: pointer;
  transition: all 0.2s;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.58rem;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,0.25);
  font-weight: 600;
  font-family: var(--font-body);
  position: relative;
}
.pd-swatch.active,
.pd-swatch:hover {
  border-color: var(--terracotta);
  transform: scale(1.08);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.pd-swatch.swatch-pattern {
  color: var(--charcoal);
  text-shadow: none;
  font-size: 0.6rem;
}
.pd-swatch.swatch-pattern::before {
  /* rácsos minta, hogy látszódjon hogy "minta" nem csak szín */
  content: '';
  position: absolute; inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255,255,255,0.3) 0 3px, transparent 3px 6px);
}
.pd-swatch span, .pd-swatch.swatch-pattern { position: relative; z-index: 1; }

/* Radio list (felirat opcióhoz) */
.pd-radio-group { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.pd-radio {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 0.9rem;
}
.pd-radio.active, .pd-radio:hover {
  border-color: var(--sage);
  background: rgba(197,212,188,0.15);
}
.pd-radio-dot {
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
  position: relative; flex-shrink: 0;
}
.pd-radio.active .pd-radio-dot { border-color: var(--sage); }
.pd-radio.active .pd-radio-dot::after {
  content: '';
  position: absolute; top: 3px; left: 3px;
  width: 8px; height: 8px;
  background: var(--sage);
  border-radius: 50%;
}

.pd-text-input {
  width: 100%; padding: 12px 16px;
  border: 2px solid var(--light-gray);
  border-radius: 10px;
  font-family: var(--font-body);
  font-size: 0.9rem;
  margin-bottom: 24px;
  outline: none;
  transition: border-color 0.3s;
}
.pd-text-input:focus { border-color: var(--sage); }
.pd-text-input.hidden { display: none; }

.pd-add-row { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.qty-control {
  display: flex; align-items: center;
  border: 2px solid var(--light-gray);
  border-radius: 50px;
  overflow: hidden;
}
.qty-control button {
  width: 42px; height: 42px;
  border: none; background: none;
  font-size: 1.1rem; cursor: pointer;
  color: var(--charcoal);
  transition: background 0.2s;
}
.qty-control button:hover { background: var(--cloud); }
.qty-control span {
  width: 36px; text-align: center;
  font-weight: 600; font-family: var(--font-body);
}
.pd-add-cart {
  flex: 1; padding: 13px 32px;
  background: var(--terracotta);
  color: white; border: none;
  border-radius: 50px;
  font-size: 0.95rem; font-weight: 500;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
  letter-spacing: 0.5px;
}
.pd-add-cart:hover {
  background: var(--terracotta-dark);
  transform: translateY(-1px);
}

/* Szívecske gomb a kosárba tevés mellett - kívánságlistához adás */
.pd-wishlist {
  width: 48px; height: 48px;
  border-radius: 50%;
  border: 2px solid var(--light-gray);
  background: white;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: var(--charcoal);
  transition: all 0.25s;
  flex-shrink: 0;
  padding: 0;
}
.pd-wishlist:hover {
  border-color: var(--terracotta);
  color: var(--terracotta);
  transform: translateY(-1px);
}
.pd-wishlist.active {
  background: var(--terracotta);
  border-color: var(--terracotta);
  color: white;
}
.pd-wishlist svg { width: 20px; height: 20px; stroke-width: 1.8; }

.pd-meta {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--light-gray);
  font-size: 0.88rem;
  color: var(--warm-gray);
  line-height: 2;
}
.pd-meta strong { color: var(--charcoal); }


/* =========================================================
   RESPONSIVE - tablet + mobil (Phase 1.5b + Phase 2 scope only;
   homepage @media rules now lived in mf-* Global Style entries via
   the GB Pro v2 compile-er atRule bucket — see global-styles-seed.php)
   ========================================================= */
@media (max-width: 1024px) {
  .header-main { padding: 18px 32px; }
  .logo-text { font-size: 1.9rem; }

  .pd-wrap { grid-template-columns: 1fr; padding: 32px; gap: 40px; }

}

@media (max-width: 768px) {
  /* oi-mobile-scroll (A): header-chrome zsugorítás — a hamburger + logó + 4
   * ikon min-content igénye (~389px) elfért 375px-en (content-box 335px) →
   * ~40px túllógás. Csökkentett oldal-padding + gap + logó + ikon-méret, hogy
   * 375/360px-en kifér (a kosár-ikon NEM vágódik le). 320px scope-on kívül. */
  .header-main { padding: 14px 14px; gap: 8px; }
  /* The logo column is only ~135px wide at 375px — too narrow for a readable
     tagline. On mobile the tagline drops to its own full-width line under the
     header row (positioned by its GB Global Style), so make room for it. */
  .header-main:has(.logo-tagline) { position: relative; padding-bottom: 32px; }
  .menu-toggle span.menu-text { display: none; }
  .logo-text { font-size: 1.35rem; letter-spacing: 1px; }
  .logo-sub { font-size: 0.75rem; }
  .logo-balloon-img { height: 34px; margin-left: 4px; }
  .header-icons { gap: 12px; }
  .header-icons button, .header-icons a { width: 30px; }
  .header-icons svg { width: 20px; height: 20px; }


  .back-to-top { bottom: 20px; right: 20px; width: 60px; height: 50px; }
  .back-to-top .top-text { font-size: 0.75rem; }

  .pd-section { padding: 40px 20px 70px; }
  .pd-wrap { padding: 24px; }
  .pd-gallery { grid-template-columns: 1fr; }
  .pd-thumbnails { flex-direction: row; overflow-x: auto; }
  .pd-title { font-size: 1.5rem; }
  .pd-price { font-size: 1.35rem; }

  .sidebar-menu { width: 320px; padding: 24px 24px 40px; }

  .search-box-wrap h3 { font-size: 1.4rem; }
  .search-input-wrap input { font-size: 1.1rem; }
  .search-close { top: 20px; right: 20px; }
}

/* ------------------------------------------------------------------ */
/* Variation size buttons — rendered via                               */
/* `woocommerce_dropdown_variation_attribute_options_html` filter,     */
/* see inc/wc-size-button.php. Styled to match the v8 .pd-size pill.   */
/* ------------------------------------------------------------------ */
.pd-variation-attributes { margin: 16px 0 8px; }
.pd-attribute-row { margin-bottom: 24px; }
.pd-attribute-row .pd-option-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--charcoal);
  margin-bottom: 10px;
}
.pd-size-btn-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.pd-size-btn {
  padding: 10px 22px;
  border: 2px solid var(--light-gray);
  border-radius: 8px;
  background: white;
  color: var(--charcoal);
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  outline: none;
  transition: all 0.2s;
}
.pd-size-btn:hover {
  border-color: var(--sage);
  background: white;
  color: var(--charcoal);
}
.pd-size-btn--active,
.pd-size-btn[aria-pressed="true"] {
  border-color: var(--sage);
  background: var(--sage-pale);
  color: var(--sage-dark);
}
/* Sold-out size (limited-stock products, inc/stock-limits.php): greyed out,
   dashed, not clickable, with a small "ausverkauft" note. */
.pd-size-btn--soldout,
.pd-size-btn--soldout:hover {
  border-color: var(--light-gray);
  border-style: dashed;
  background: #faf8f6;
  color: #a39d98;
  cursor: not-allowed;
}
.pd-size-soldout {
  display: block;
  margin-top: 2px;
  font-size: 0.7rem;
  letter-spacing: 0.5px;
  color: var(--terracotta);
}
/* Whole product sold out: disabled button in place of qty + add-to-cart. */
.pd-add-cart--soldout,
.pd-add-cart--soldout:hover {
  background: var(--light-gray);
  color: #8a837d;
  cursor: not-allowed;
  transform: none;
}

/* ------------------------------------------------------------------ */
/* :focus-visible — UA-default focus rings replaced with a v8 sage     */
/* outline. Applied across all interactive single-product controls    */
/* so keyboard navigation has clear, on-brand state indication while  */
/* mouse-clicks don't flash a stray outline.                           */
/* ------------------------------------------------------------------ */
.pd-size-btn:focus,
.pd-size:focus,
.pd-swatch:focus,
.pd-radio:focus,
.pd-select:focus,
.pd-text-input:focus,
.pd-add-cart:focus,
.pd-wishlist:focus,
.qty-control button:focus {
  outline: none;
}
.pd-size-btn:focus-visible,
.pd-size:focus-visible,
.pd-swatch:focus-visible,
.pd-radio:focus-visible,
.pd-select:focus-visible,
.pd-text-input:focus-visible,
.pd-add-cart:focus-visible,
.pd-wishlist:focus-visible,
.qty-control button:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}

/* L66 — Featured-products Looper-Loop Item: name-link „mintha sima text” */
.mf-heading-card a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s;
  position: relative;
  z-index: 2;
}
.mf-heading-card a:hover {
  color: var(--terracotta, #C67B5C);
}

/* L66 — Looper wrapper transparent (a 4 article a .mf-grid-products
 * direct-child-jaként viselkedik a grid-szabálynak). */
.mf-products-loop-wrap {
  display: contents;
}

/* L66 — Termékkép img-szabály a .mf-product-image-en belül */
.mf-product-image-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  position: absolute;
  inset: 0;
}

/* L66 — Egész-kártya link-overlay (a .mf-product-card-szabály-szabály-szabály
 * felületét lefedi, alacsonyabb z-index mint a szív/szem gombok). */
.mf-card-link-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  text-decoration: none;
  /* hozzáférhetőségi okból visible-focus state */
}
.mf-card-link-overlay:focus-visible {
  outline: 2px solid var(--sage, #8aa28a);
  outline-offset: -2px;
}

/* L66 — szív + szem gombok a card-overlay felett kell hogy maradjanak */
.mf-product-actions {
  z-index: 2;
}

/* L66 — name + price-block layout (a card-overlay link engedi a click-et) */
.mf-product-info {
  position: relative;
  z-index: 2;
  pointer-events: none; /* tartalmán át a card-overlay-link kap kattintást */
}
.mf-product-info .mf-heading-card a,
.mf-product-info .mf-product-actions {
  pointer-events: auto; /* a name-link és gombok megint elkapják */
}

/* ================================================================== */
/* Phase G — WC product archive card styling (CSS-only, v0.10.1)       */
/*                                                                     */
/* Maps the WC native .products .product markup (Element 296           */
/* [products] shortcode-output on /shop/ + default archive-loop on     */
/* /product-category/*/) to homepage mf-product-card visual parity.    */
/*                                                                     */
/* The homepage card uses GB Global Style entries (#155-167, #91) as   */
/* design tokens. Since globalClasses is GB-block-only and the WC      */
/* native markup carries woocommerce-* / .product / .price classes,    */
/* we replicate the token values directly on WC selectors here.        */
/*                                                                     */
/* /shop/ duplikáció-suppress is handled by the existing rule at       */
/* style.css:13-15 (`.woocommerce-shop .content-area { display: none }`*/
/* hides the entire default content-area on /shop/, while Element 296  */
/* renders OUTSIDE content-area via generate_inside_container hook).   */
/* Phase G adds NO new duplikáció-suppress — the mechanism already     */
/* works.                                                              */
/*                                                                     */
/* Scope:                                                              */
/*   /shop/                  — Element 296 renders Termékeink h2 +     */
/*                             [products] outside content-area; gets   */
/*                             card-styling from selectors below.      */
/*   /product-category/*/    — Element 294 (Layout) sets body class    */
/*                             full-width-content + no-sidebar; the    */
/*                             default archive-loop renders alone in   */
/*                             content-area, gets card-styling.        */
/* ================================================================== */

/* Full-width override + sidebar suppress.                             */
/* Defensive — /shop/ body has `no-sidebar` already, /product-category */
/* has `full-width-content` from Element 294. Explicit CSS keeps       */
/* Phase G robust against admin edits to those Elements.               */
.archive.post-type-archive-product .site-content,
.archive.tax-product_cat .site-content {
  max-width: none;
}
.archive.post-type-archive-product #left-sidebar,
.archive.post-type-archive-product #right-sidebar,
.archive.tax-product_cat #left-sidebar,
.archive.tax-product_cat #right-sidebar {
  display: none;
}

/* Grid wrapper — mf-grid-products parity (GS #155).                   */
/* Targets ALL .products grids on archive pages: the shortcode-output  */
/* nested inside .gb-element-* (Element 296) on /shop/, AND the        */
/* default-loop direct child of main.site-main on /product-category/*/.*/
.archive.woocommerce ul.products {
  max-width: 1400px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  list-style: none;
  padding: 0;
}
@media (max-width: 1024px) {
  .archive.woocommerce ul.products {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}

/* Card wrapper — mf-product-card parity (GS #156).                    */
/* WC li.product carries vendor width via inline style / float — force */
/* grid-cell behaviour with !important.                                */
.archive.woocommerce ul.products li.product {
  background-color: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  list-style: none;
  margin: 0;
  padding: 0;
  width: auto !important;
  float: none !important;
  text-align: left;
}
.archive.woocommerce ul.products li.product:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.08);
}
.archive.woocommerce ul.products li.product > a {
  display: block;
  text-decoration: none;
  color: inherit;
}

/* Image wrapper — mf-product-image parity (GS #157).                  */
/* Phase G.1 (v0.10.2): the WC native markup nests an .inside-wc-      */
/* product-image div between .wc-product-image (aspect-ratio wrapper)  */
/* and the <img>. Without explicit positioning the inside-div has no   */
/* height and the img collapses to its native aspect (e.g. 225×300),   */
/* leaving cloud-grey background visible around it. Solution: inside   */
/* div absolute-fills the wrapper, img !important-overrides the WC    */
/* width/height HTML attributes for a 100% × 100% object-fit:cover     */
/* fill of the square.                                                 */
.archive.woocommerce ul.products li.product .wc-product-image {
  position: relative;
  aspect-ratio: 1;
  background-color: var(--wp--preset--color--cloud, #F0EBE5);
  overflow: hidden;
  width: 100%;
}
.archive.woocommerce ul.products li.product .wc-product-image .inside-wc-product-image {
  position: absolute;
  inset: 0;
}
.archive.woocommerce ul.products li.product .wc-product-image img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover;
  display: block;
}

/* Title — mf-heading-card parity (GS #91).                            */
.archive.woocommerce ul.products li.product .woocommerce-loop-product__title {
  font-family: var(--wp--preset--font-family--heading);
  font-size: 1.05rem;
  letter-spacing: 1px;
  color: var(--wp--preset--color--charcoal, #2D2926);
  font-weight: normal;
  margin: 0;
  padding: 20px 22px 10px;
}
@media (max-width: 767px) {
  .archive.woocommerce ul.products li.product .woocommerce-loop-product__title {
    font-size: 0.95rem;
  }
}

/* Price — mf-product-price parity (GS #167).                          */
/* Phase G.1 (v0.10.2): WC vendor CSS rules `.woocommerce ul.products  */
/* li.product .price` (specificity 0,4,2) outweigh the previous        */
/* Phase G `.archive.woocommerce ul.products li.product .price` selector (0,3,1),    */
/* so the homepage-token mapping was being overridden — price showed   */
/* up in vendor default size/colour. Strengthen specificity to (0,5,2) */
/* by chaining the body class with .woocommerce, plus the inner        */
/* .woocommerce-Price-amount span needs explicit inherit to prevent    */
/* vendor-amount typography from leaking through.                      */
.archive.woocommerce ul.products li.product .price {
  font-family: var(--wp--preset--font-family--body);
  font-weight: 600;
  font-size: 1rem;
  color: var(--wp--preset--color--terracotta, #C67B5C);
  display: block;
  margin: 0;
  padding: 0 22px 24px;
}
.archive.woocommerce ul.products li.product .price .woocommerce-Price-amount,
.archive.woocommerce ul.products li.product .price .woocommerce-Price-amount bdi,
.archive.woocommerce ul.products li.product .price .woocommerce-Price-currencySymbol {
  color: inherit;
  font-weight: inherit;
  font-size: inherit;
  font-family: inherit;
}

/* Hide WC native elements absent from homepage mf-product-card.       */
/* The home card omits star-rating and add-to-cart-button entirely.    */
.archive.woocommerce ul.products li.product .star-rating,
.archive.woocommerce ul.products li.product .button.add_to_cart_button,
.archive.woocommerce ul.products li.product .button.product_type_simple,
.archive.woocommerce ul.products li.product .button.product_type_variable,
.archive.woocommerce ul.products li.product > a + a.button {
  display: none !important;
}

/* ------------------------------------------------------------------ */
/* Phase G.1 (v0.10.2) — Section margin parity.                        */
/*                                                                     */
/* Homepage "Népszerű darabjaink" uses .mf-products-section            */
/* (GS #153: padding 90px 48px desktop / 60px 20px mobile, warm-white  */
/* bg) wrapping .mf-products-section-inner (GS #154: max-width 1400px, */
/* centered). WC archives need parity so the "Termékeink" h2 ↔ result- */
/* count ↔ grid ↔ pagination vertical rhythm matches.                  */
/*                                                                     */
/* /shop/ — Element 296 renders inside .gb-element-053465c2 (its       */
/* outer GB-element wrapper from the post_content). Pad that wrapper.  */
/* /product-category/*/ — default WC archive renders inside            */
/* main.site-main inside .site-content. Pad .site-content.             */
/* ------------------------------------------------------------------ */
.archive.post-type-archive-product .gb-element-053465c2 {
  padding: 90px 48px;
}
.archive.tax-product_cat .site-content {
  padding: 90px 48px;
}
@media (max-width: 767px) {
  .archive.post-type-archive-product .gb-element-053465c2,
  .archive.tax-product_cat .site-content {
    padding: 60px 20px;
  }
}

/* Inner max-width — top-level children of main.site-main on           */
/* /product-category/*/ get centered 1400px (#154 parity). The grid    */
/* itself (.products) already has max-width:1400px from the Phase G    */
/* grid rule above; this normalises the header / result-count /        */
/* ordering / pagination siblings to the same content-width.           */
.archive.tax-product_cat main.site-main > .woocommerce-products-header,
.archive.tax-product_cat main.site-main > .woocommerce-notices-wrapper,
.archive.tax-product_cat main.site-main > .woocommerce-result-count,
.archive.tax-product_cat main.site-main > .woocommerce-ordering,
.archive.tax-product_cat main.site-main > nav.woocommerce-pagination {
  max-width: 1400px;
  margin-left: auto;
  margin-right: auto;
}

/* Vertical rhythm — h2/h1 → result-count → ordering → grid →          */
/* pagination spacing. Tokens picked to feel close to homepage         */
/* mf-section-head + grid spacing without introducing per-element      */
/* explicit Global Styles (would be over-engineering for visual rhythm */
/* on a different markup tree).                                        */
.archive.post-type-archive-product .gb-element-053465c2 h2.gb-text {
  margin: 0 0 24px;
}
.archive.tax-product_cat .woocommerce-products-header {
  margin: 0 0 24px;
  padding: 0;
  background: transparent;
}
.archive.tax-product_cat .woocommerce-products-header h1.page-title {
  margin: 0;
}
.archive .woocommerce-result-count {
  margin: 0 0 16px;
}
.archive .woocommerce-ordering {
  margin: 0 0 32px;
}
.archive .woocommerce-pagination {
  margin: 48px 0 0;
}

/* ------------------------------------------------------------------ */
/* Phase G.1.1 (v0.10.2) — .site-content flex-anomália fix.            */
/*                                                                     */
/* GP `.site-content { display: flex }` (parent main.css:1176) is a    */
/* sidebar-layout default: with a sidebar present the flex children    */
/* (content-area + widget-area) share the row. On .no-sidebar archives */
/* the single flex child (296 Element wrapper) shrinks to content-     */
/* width (default flex: 0 1 auto, no flex-grow), leaving ~209px of     */
/* unused flex-area to the right.                                       */
/*                                                                     */
/* No multi-column layout is needed on no-sidebar — flatten to block.   */
/* ------------------------------------------------------------------ */
.no-sidebar .site-content {
  display: block;
}

/* ------------------------------------------------------------------ */
/* Minifabrik Mini Cart — slide-out flyout-pattern.                    */
/* Markup: inc/mini-cart.php (wp_footer-en). JS: assets/js/mini-cart.js */
/* Trigger: a header-en lévő <a href="#cart"> ikon kattintása.         */
/* ------------------------------------------------------------------ */
.minifabrik-mini-cart-flyout {
  position: fixed;
  top: 0;
  right: 0;
  width: 380px;
  max-width: 90vw;
  height: 100vh;
  background: white;
  z-index: 10001;
  transform: translateX(100%);
  transition: transform 0.3s ease;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.minifabrik-mini-cart-flyout.is-open {
  transform: translateX(0);
}
.minifabrik-mini-cart-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  z-index: 10000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s, visibility 0.3s;
}
.minifabrik-mini-cart-backdrop.is-open {
  opacity: 1;
  visibility: visible;
}
.minifabrik-mini-cart-flyout__header {
  padding: 20px 24px;
  border-bottom: 2px solid var(--light-gray);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-shrink: 0;
  min-height: 64px;
  background: white;
  position: relative;
  z-index: 1;
}
.minifabrik-mini-cart-flyout__title {
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  line-height: 1.4;
  white-space: nowrap;
  flex: 1 1 auto;
  margin: 0;
  padding-right: 16px;
}
.minifabrik-mini-cart-flyout__close {
  background: none;
  border: none;
  font-size: 28px;
  line-height: 1;
  color: var(--charcoal);
  cursor: pointer;
  padding: 0 4px;
  outline: none;
}
.minifabrik-mini-cart-flyout__close:focus-visible {
  outline: 2px solid var(--sage);
  outline-offset: 2px;
}
.minifabrik-mini-cart-flyout__body {
  padding: 20px 24px;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
}
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart {
  margin: 0;
  padding: 0;
  list-style: none;
}
/* NOTE: these use the flyout's #id prefix on purpose. On the single-product
 * page WooCommerce's full stylesheet loads and its `.woocommerce
 * .widget_shopping_cart .cart_list li {padding}` (specificity 0,3,1) beat the
 * plain-class version of the item rule below — so the 84px image gutter
 * collapsed to 0 and the thumbnail (which WC floats/positions to the left)
 * slid UNDER the product name. The #id lifts these to (1,1,x) so they win
 * everywhere, and `left:auto` cancels any left offset so the image stays right. */
#minifabrikMiniCartFlyout .woocommerce-mini-cart-item {
  padding: 12px 84px 12px 0;
  border-bottom: 1px solid var(--light-gray);
  position: relative;
  min-height: 80px;
}
#minifabrikMiniCartFlyout .woocommerce-mini-cart-item img,
#minifabrikMiniCartFlyout .woocommerce-mini-cart-item .attachment-woocommerce_thumbnail {
  position: absolute;
  top: 12px;
  right: 0;
  left: auto;
  float: none;
  margin: 0;
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 4px;
  display: block;
}
/* Product name / link (and any stray item text) must wrap, otherwise a long
 * unbroken name slides UNDER the right-absolute thumbnail — same overflow cause
 * as the .variation row below. The item already reserves the 64px image gutter
 * via padding-right:84px; wrapping keeps the text inside that box. */
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart-item,
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart-item a {
  overflow-wrap: anywhere;
  word-break: break-word;
}
/* item 1 — free-shipping progress notice (mini-cart flyout + block cart page).
 * NB: normal text flow (NOT flex) — in the narrow mini-cart a flex row turned
 * every word run into its own shrinking flex item, so "Nur noch" / "bis zu"
 * broke mid-phrase. Block flow lets the sentence wrap naturally. */
.mf-freeship {
  font-family: var(--font-body);
  font-size: 0.88rem;
  line-height: 1.4;
  color: var(--charcoal);
  background: #F3EEE6;
  border: 1px solid var(--light-gray);
  border-radius: 10px;
  padding: 10px 12px;
  margin: 6px 0 14px;
}
.mf-freeship--unlocked {
  background: #E7F0E4;
  border-color: #cfe0c8;
  color: var(--sage-dark, #4a6b3f);
}
.mf-freeship__icon { margin-right: 5px; }
.mf-freeship strong { font-weight: 600; white-space: nowrap; }
.mf-freeship .woocommerce-Price-amount { white-space: nowrap; }
.mf-freeship-cart { margin: 0 0 16px; }

/* MFPO add-on / variation meta-sor (dl.variation a woocommerce_get_item_data-bol).
 * Kompakt inline cimke:ertek + overflow-wrap, hogy a hosszu felirat-ertek NE
 * csorduljon a jobbra abszolut thumbnail ala (ez okozta a kep<->nev atfedest). */
.minifabrik-mini-cart-flyout__body .variation {
  margin: 4px 0 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--mid-gray, #8a807a);
  overflow-wrap: anywhere;
  word-break: break-word;
}
.minifabrik-mini-cart-flyout__body .variation dt {
  display: inline;
  float: none;
  margin: 0 4px 0 0;
  font-weight: 600;
}
.minifabrik-mini-cart-flyout__body .variation dd {
  display: inline;
  margin: 0;
}
.minifabrik-mini-cart-flyout__body .variation dd p {
  display: inline;
  margin: 0;
}
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart__total {
  padding: 14px 0;
  border-top: 2px solid var(--charcoal);
  font-weight: 600;
  margin-top: 12px;
}
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart__buttons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart__buttons .button {
  display: block;
  text-align: center;
  padding: 12px 16px;
  text-decoration: none;
  border-radius: 8px;
}
.minifabrik-mini-cart-flyout__body .woocommerce-mini-cart__empty-message {
  text-align: center;
  padding: 20px 0;
  color: var(--mid-gray, #8a807a);
}
/* Body scroll-lock while open — optional polish */
body.minifabrik-mini-cart-open {
  overflow: hidden;
}

/* ───────── Product accordion (Produktbeschreibung / Gut zu wissen) ───────── */
.mf-product-acc {
  border-top: 1px solid var(--wp--preset--color--light-gray, #E8E2DC);
  margin: 0;
}
.mf-product-acc:last-of-type {
  border-bottom: 1px solid var(--wp--preset--color--light-gray, #E8E2DC);
}
.mf-product-acc > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 1.1rem 0.25rem;
  font-family: var(--font-heading, "Fredoka", sans-serif);
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--wp--preset--color--charcoal, #2D2926);
}
.mf-product-acc > summary::-webkit-details-marker { display: none; }
.mf-product-acc > summary::after {
  content: "+";
  font-size: 1.6rem;
  line-height: 1;
  color: var(--wp--preset--color--terracotta, #C67B5C);
}
.mf-product-acc[open] > summary::after { content: "\2013"; }
.mf-product-acc > *:not(summary) {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--wp--preset--color--warm-gray, #5a534e);
}
.mf-product-acc > *:not(summary):last-child { margin-bottom: 1.1rem; }
.mf-product-acc h4 {
  font-family: var(--font-heading, "Fredoka", sans-serif);
  color: var(--wp--preset--color--charcoal, #2D2926);
  margin: .35rem 0 .85rem;
}

/* ───────── Grössentabelle (size chart) — trigger + modal ───────── */
.mf-sizechart { margin: 10px 0 2px; }
.mf-sizechart-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font-body);
  font-size: .95rem;
  font-weight: 500;
  color: var(--wp--preset--color--terracotta, #C67B5C);
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.mf-sizechart-trigger:hover {
  color: var(--wp--preset--color--terracotta-dark, #A85F42);
  background: none;
}
.mf-sizechart-trigger svg { width: 17px; height: 17px; flex: none; }

.mf-sizechart-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.mf-sizechart-modal[hidden] { display: none; }
.mf-sizechart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(45, 41, 38, .5);
}
.mf-sizechart-dialog {
  position: relative;
  width: 100%;
  max-width: 420px;
  max-height: 85vh;
  overflow-y: auto;
  background: var(--wp--preset--color--warm-white, #FBF8F4);
  border-radius: 18px;
  padding: 1.6rem 1.5rem 1.3rem;
  box-shadow: 0 18px 50px rgba(45, 41, 38, .25);
}
.mf-sizechart-close {
  position: absolute;
  top: 10px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.7rem;
  line-height: 1;
  color: var(--wp--preset--color--charcoal, #2D2926);
  cursor: pointer;
  padding: 4px;
}
.mf-sizechart-close:hover {
  background: none;
  color: var(--wp--preset--color--terracotta, #C67B5C);
}
.mf-sizechart-title {
  font-family: var(--font-heading, "Fredoka", sans-serif);
  font-size: 1.3rem;
  color: var(--wp--preset--color--charcoal, #2D2926);
  margin: 0 0 .25rem;
}
.mf-sizechart-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .95rem;
  margin: .85rem 0 .9rem;
}
.mf-sizechart-table th {
  text-align: left;
  font-family: var(--font-heading, "Fredoka", sans-serif);
  font-weight: 500;
  color: var(--wp--preset--color--charcoal, #2D2926);
  border-bottom: 1.5px solid var(--wp--preset--color--light-gray, #E8E2DC);
  padding: 7px 8px;
}
.mf-sizechart-table td {
  padding: 7px 8px;
  border-bottom: 1px solid var(--wp--preset--color--light-gray, #E8E2DC);
  color: var(--wp--preset--color--warm-gray, #5a534e);
}
.mf-sizechart-table tr:last-child td { border-bottom: none; }
.mf-sizechart-hint {
  font-size: .85rem;
  line-height: 1.6;
  color: var(--wp--preset--color--warm-gray, #5a534e);
  margin: .5rem 0 0;
}

/* ───────── Personalisierung illustration (embroidery preview) ───────── */
.mfpo-addon-field__illustration-wrap {
  margin: 0 0 14px;
  max-width: 340px;
}
.mfpo-addon-field__illustration {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

/* ───────── Swatch hover-zoom (enlarged pattern/colour preview) ───────── */
.mf-swatch-zoom {
  position: fixed;
  z-index: 10000;
  width: 190px;
  height: 190px;
  border-radius: 14px;
  background-size: cover;
  background-position: center;
  background-color: var(--wp--preset--color--warm-white, #FBF8F4);
  border: 3px solid #fff;
  box-shadow: 0 12px 34px rgba(45, 41, 38, .30);
  pointer-events: none;
  overflow: hidden;
}
.mf-swatch-zoom[hidden] { display: none; }
.mf-swatch-zoom__name {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 5px 8px;
  font-family: var(--font-body);
  font-size: .8rem;
  line-height: 1.25;
  color: #fff;
  background: rgba(45, 41, 38, .55);
  text-align: center;
}
.mf-swatch-zoom__name:empty { display: none; }

/* ───────── Homepage hero title — darker for readability ───────── */
.mf-hero-title.mf-hero-title {
  color: #4a3526;
  text-shadow: 0 1px 12px rgba(255, 255, 255, .5);
}

/* Hero "Entdecken" CTA: keep the label white on hover. The GS `.mf-btn-primary:hover`
   only darkens the background; GeneratePress's generic `a:hover{color:var(--contrast)}`
   (dark) then wins the text colour → dark-on-dark, unreadable. Doubled class raises
   specificity above that rule. */
.mf-btn-primary.mf-btn-primary:hover,
.mf-btn-primary.mf-btn-primary:focus,
.mf-btn-primary.mf-btn-primary:active {
  color: #ffffff;
}

/* ───────── Homepage hero — flush images (no gap, no rounding), per redesign ───────── */
.mf-hero-inner.mf-hero-inner {
  gap: 0;
  padding-left: 0;
  padding-right: 0;
}
.mf-hero-inner .mf-hero-product-img {
  border-radius: 0;
}
/* Entdecken CTA: sits low in the hero but lifted ~2-3cm from the very bottom so
   it's visible on arrival without scrolling (client request). */
.mf-hero-center.mf-hero-center {
  top: 75%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
/* Left hero photo (girl): shift the crop up so more hair and less of the book
   (bottom of the frame) shows. */
.mf-hero-inner .gb-media-mfhilm {
  object-fit: cover;
  object-position: center 22%;
}

/* ───────── "Darum lieben wir sie" — portrait left + landscape right, smaller ───────── */
@media (min-width: 769px) {
  .mf-why-grid.mf-why-grid {
    gap: 0;
    align-items: center;
    margin-bottom: 72px;
    max-width: 1200px;
  }
  .mf-why-grid > * { position: relative; }
  .mf-why-grid > *:first-child { z-index: 2; }
  .mf-why-grid > *:last-child {
    z-index: 1;
    transform: translateY(120px);
    margin-left: -48px;
  }
  /* Left = portrait, right-aligned toward the gap; capped so the full height
     stays visible in the viewport while scrolling. */
  .mf-why-grid > *:first-child .mf-why-img {
    aspect-ratio: 4 / 5;
    max-width: 470px;
    margin-left: auto;
  }
  /* Right = landscape. Bumped up (was 380/460) to fill the empty space in this
     section without dominating it (client request). */
  .mf-why-grid > *:last-child .mf-why-img {
    aspect-ratio: 3 / 2;
    max-width: 560px;
  }
}
/* Pink rainbow peeking out from behind the landscape (right) image, like the
   reference. Sits behind the image (z-index 0) so only the arc peeks. Replaces
   the old feather decoration in that corner. */
.mf-decor-rainbow {
  position: absolute;
  z-index: 0;
  width: 104px;
  right: -30px;
  bottom: -26px;
  pointer-events: none;
}
.mf-why-img-wrap .mf-decor-feather { display: none; }
@media (max-width: 768px) {
  .mf-decor-rainbow { right: 6px; bottom: -22px; width: 82px; }
}

/* ───────── Extra-warm badge (winter overalls) ───────── */
.mf-product-badge-extra_warm {
  background-color: var(--wp--preset--color--sky, #A8D4DC);
  color: var(--wp--preset--color--charcoal, #2D2926);
}

/* ───────── Über uns image decorations (sun + heart) ───────── */
/* Image sits ABOVE the decorations so they peek out from BEHIND it. */
.mf-about-img-wrap .mf-image-rounded {
  position: relative;
  z-index: 1;
}
.mf-about-img-wrap .mf-about-sun,
.mf-about-img-wrap .mf-about-heart {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}
.mf-about-img-wrap .mf-about-sun {
  top: -34px;
  left: -34px;
  width: 96px;
}
.mf-about-img-wrap .mf-about-heart {
  right: -28px;
  bottom: -28px;
  width: 84px;
}

/* Über uns: promoted subtitle is now the H1 — give it heading size */
h1.mf-page-subtitle {
  font-size: clamp(1.5rem, 1rem + 1.8vw, 2.1rem);
  line-height: 1.25;
}

/* Narrow phones (≤400px, e.g. 360px Androids): on pages with the back arrow the
   header row needed ~394px, so the cart icon was clipped off the right edge.
   Tighten the gaps / back button / wordmark just enough to fit. */
@media (max-width: 400px) {
  .header-main { gap: 6px; }
  .header-left { gap: 2px; }
  .mf-back-btn { width: 30px; }
  .header-icons { gap: 6px; }
  .logo-text { font-size: 1.25rem; }
  .logo-balloon-img,
  body.woocommerce-page .logo-balloon-img:not(.sidebar-balloon):not(.footer-balloon) { height: 30px; }
}

