/*
Theme Name: Mad For Skin
Theme URI: http://mad4skinlocal.local/
Description: Mad For Skin storefront theme built on Twenty Twenty-Five.
Author: Mad For Skin
Template: twentytwentyfive
Version: 0.7.8
Text Domain: mad-for-skin
*/

/* Calm palette: ivory, ink, deep green; lime only as a small accent. */
:root {
  --mfs-ivory: #e7f3e4;
  --mfs-paper: #fffdf9;
  --mfs-sand: #e9e3d8;
  --mfs-ink: #161814;
  --mfs-muted: #5a5e56;
  --mfs-line: #ddd5c8;
  --mfs-green: #17331a;
  --mfs-green-2: #24472a;
  --mfs-lime: #c6f135;
  --mfs-radius: 14px;
}

html { scroll-behavior: smooth; }
body { background: var(--mfs-ivory); color: var(--mfs-ink); }

/* ---------- header / footer ---------- */
.mfs-site-header { border-bottom: 1px solid var(--mfs-line); position: sticky; top: 0; z-index: 20; }
.mfs-brand { letter-spacing: -0.03em; line-height: 1; }
.mfs-brand a { text-decoration: none; color: var(--mfs-ink); }
.mfs-nav a, .mfs-footer a { text-decoration: none; }
.mfs-nav a:hover, .mfs-footer a:hover { text-decoration: underline; text-underline-offset: 0.25em; }
/* header product search: next to the menu on desktop, own full-width row on mobile */
.mfs-site-header { gap: 12px 24px; }
.mfs-search { flex: 1 1 260px; max-width: 420px; margin: 0; }
/* 0.7.4 option B: one oval; the Cauta button is the full-height rounded right end of the bar; the outline is an outer ring (box-shadow), so the button reaches the real edge */
.mfs-search .wp-block-search__inside-wrapper { border: 0; border-radius: 999px; background: var(--mfs-paper); padding: 0; overflow: hidden; box-shadow: 0 0 0 1px var(--mfs-line); }
.mfs-search .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 0 0 2px var(--mfs-ink); }
.mfs-search .wp-block-search__input { border: 0; background: transparent; color: var(--mfs-ink); padding: 0.45rem 0.9rem 0.45rem 1.15rem; min-height: calc(2.5rem + 8px); font-size: 1rem; }
.mfs-search .wp-block-search__input::placeholder { color: var(--mfs-muted); opacity: 1; }
/* no separate oval around the text field: the bar ring above shows focus */
.mfs-search .wp-block-search__input:focus, .mfs-search .wp-block-search__input:focus-visible { outline: none; }
.mfs-search .wp-block-search__button { margin: 0; border: 0; border-radius: 999px; background: var(--mfs-green); color: var(--mfs-paper); padding: 0 1.35rem 0 1.4rem; font-weight: 600; white-space: nowrap; cursor: pointer; }
.mfs-search .wp-block-search__button:hover { background: var(--mfs-green-2); }
.mfs-search .wp-block-search__button:focus-visible { outline: 2px solid var(--mfs-ink); outline-offset: -4px; }
@media (max-width: 1300px) {
  .mfs-site-header { flex-wrap: wrap !important; }
  .mfs-search { order: 3; flex: 1 0 100%; max-width: none; }
}
@media (max-width: 781px) {
  .mfs-site-header { column-gap: 12px; }
}
@media (min-width: 1301px) and (max-width: 1440px) {
  .mfs-site-header { column-gap: 18px; }
  .mfs-search { flex: 1 1 200px; max-width: 300px; }
}
/* dark header and footer: flat #03150c fallback with a diagonal satin sheen; transparent PNG logo */
:root { --mfs-satin: linear-gradient(115deg, #03150c 0%, #0b2613 22%, #1c3d20 38%, #0d2a15 52%, #03150c 70%, #12301a 88%, #03150c 100%); }
.mfs-site-header { --mfs-header-bg: #03150c; background-color: var(--mfs-header-bg) !important; background-image: var(--mfs-satin); color: var(--mfs-paper); border-bottom-color: rgba(255, 253, 249, 0.12); }
.mfs-brand--logo { margin: 0; line-height: 0; flex: 0 0 auto; }
.mfs-brand--logo a { display: inline-block; border-radius: 4px; }
.mfs-site-header .mfs-logo__img { display: block; height: 44px; width: auto; max-width: 100%; }
.mfs-site-header .mfs-nav, .mfs-site-header .mfs-nav a, .mfs-site-header .wp-block-navigation-item__content,
.mfs-site-header .wc-block-customer-account a, .mfs-site-header .wc-block-mini-cart__button { color: var(--mfs-paper); }
.mfs-site-header .wp-block-navigation__responsive-container.is-menu-open { background-color: var(--mfs-header-bg) !important; color: var(--mfs-paper) !important; }
.mfs-site-header a:focus-visible, .mfs-site-header button:focus-visible { outline: 2px solid var(--mfs-lime); outline-offset: 3px; }
.mfs-site-header .mfs-search .wp-block-search__inside-wrapper { box-shadow: none; }
.mfs-site-header .mfs-search .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 0 0 2px var(--mfs-lime); }
.mfs-site-header .mfs-search .wp-block-search__button { background: var(--mfs-lime); color: var(--mfs-ink); }
.mfs-site-header .mfs-search .wp-block-search__button:hover { background: #d6f76a; }
.mfs-site-header .mfs-search .wp-block-search__button:focus-visible { outline: 2px solid var(--mfs-ink); outline-offset: -4px; }
@media (max-width: 781px) { .mfs-site-header .mfs-logo__img { height: 34px; } }
@media (max-width: 400px) { .mfs-site-header .mfs-logo__img { height: 30px; } }
/* header hover (satca, option B): logo grows 6% from its left edge; menu links rise 2px and a lime line slides in from the left.
   transform only, so the header layout does not shift; not inside the open phone menu; off for reduced motion */
.mfs-site-header .mfs-brand--logo a { transition: transform 0.2s ease; transform-origin: left center; }
.mfs-site-header .mfs-nav .wp-block-navigation-item__content { position: relative; transition: transform 0.18s ease; }
.mfs-site-header .mfs-nav .wp-block-navigation-item__content::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: var(--mfs-lime); transform: scaleX(0); transform-origin: left center; transition: transform 0.22s ease; pointer-events: none; }
.mfs-site-header .mfs-brand--logo a:focus-visible { transform: scale(1.06); }
.mfs-site-header .mfs-nav .wp-block-navigation-item__content:focus-visible { transform: translateY(-2px); text-decoration: none; }
.mfs-site-header .mfs-nav .wp-block-navigation-item__content:focus-visible::after { transform: scaleX(1); }
@media (hover: hover) {
  .mfs-site-header .mfs-brand--logo a:hover { transform: scale(1.06); }
  .mfs-site-header .mfs-nav .wp-block-navigation-item__content:hover { transform: translateY(-2px); text-decoration: none; }
  .mfs-site-header .mfs-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
}
.mfs-site-header .is-menu-open .wp-block-navigation-item__content { transform: none !important; }
.mfs-site-header .is-menu-open .wp-block-navigation-item__content::after { display: none; }
@media (prefers-reduced-motion: reduce) {
  .mfs-site-header .mfs-brand--logo a, .mfs-site-header .mfs-nav .wp-block-navigation-item__content,
  .mfs-site-header .mfs-nav .wp-block-navigation-item__content::after { transition: none; }
  .mfs-site-header .mfs-brand--logo a:hover, .mfs-site-header .mfs-brand--logo a:focus-visible,
  .mfs-site-header .mfs-nav .wp-block-navigation-item__content:hover, .mfs-site-header .mfs-nav .wp-block-navigation-item__content:focus-visible { transform: none; }
}
/* footer: same satin sheen as the header */
.mfs-footer { background-color: #03150c; background-image: var(--mfs-satin); color: var(--mfs-paper); }
.mfs-footer .mfs-brand--logo { margin: 0 0 14px; }
.mfs-footer .mfs-logo__img { display: block; height: 52px; width: auto; max-width: 100%; }
.mfs-footer a:focus-visible { outline: 2px solid var(--mfs-lime); outline-offset: 3px; }
@media (max-width: 781px) { .mfs-footer .mfs-logo__img { height: 40px; } }
.mfs-footer a { color: var(--mfs-paper); }
.mfs-footer .mfs-muted { color: #d9e3d2; }

/* brand name in copy: <span class="mfs-name">MAD <b>4</b> SKIN</span>
   Style A (chosen): whole name bold. For "only the 4 bold" set .mfs-name to inherit and .mfs-name b to 800. */
.mfs-name { font-weight: 700; white-space: nowrap; }
.mfs-name b { font-weight: inherit; }

/* ---------- shared ---------- */
.mfs-kicker {
  display: inline-flex; align-items: center; gap: 0.6em;
  letter-spacing: 0.16em; text-transform: uppercase; font-size: 0.75rem; font-weight: 600; color: var(--mfs-muted);
  margin: 0 0 0.75rem;
}
.mfs-kicker::before { content: ""; width: 0.55em; height: 0.55em; border-radius: 50%; background: var(--mfs-lime); box-shadow: 0 0 0 1px rgba(22,24,20,.25); }
.mfs-display { letter-spacing: -0.035em; line-height: 1.02; }
.mfs-lead { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--mfs-muted); max-width: 38rem; }
.mfs-section { padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px); }
.mfs-section--paper { background: var(--mfs-ivory); border-top: 1px solid var(--mfs-line); border-bottom: 1px solid var(--mfs-line); }
.mfs-section-title { font-size: clamp(2rem, 4.4vw, 3.6rem); margin: 0 0 clamp(24px, 3vw, 40px); }

.mfs-button .wp-block-button__link {
  min-height: 3rem; display: inline-flex; align-items: center; padding: 0.8rem 1.4rem;
  background: var(--mfs-green); color: var(--mfs-paper); border: 1px solid var(--mfs-green); border-radius: 999px;
  font-weight: 600; text-decoration: none; transition: background-color 150ms ease, color 150ms ease, transform 150ms ease;
}
.mfs-button .wp-block-button__link:hover { background: var(--mfs-ink); border-color: var(--mfs-ink); transform: translateY(-1px); }
.mfs-button--outline .wp-block-button__link { background: transparent; color: var(--mfs-ink); border-color: var(--mfs-ink); }
.mfs-button--outline .wp-block-button__link:hover { background: var(--mfs-ink); color: var(--mfs-paper); }
a:focus-visible, .wp-block-button__link:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: 3px; }

/* ---------- hero ---------- */
.mfs-hero { padding: clamp(40px, 7vw, 96px) clamp(20px, 4vw, 48px) clamp(48px, 7vw, 88px);
  /* light satin: the header/footer diagonal bands in pale greens */
  background: linear-gradient(115deg, #f4f7f0 0%, #e6eee1 22%, #d6e3cf 38%, #e8efe3 52%, #f4f7f0 70%, #dde8d7 88%, #f4f7f0 100%); }
.mfs-hero-grid { gap: clamp(28px, 5vw, 72px); }
.mfs-hero-title { font-size: clamp(2.8rem, 6.6vw, 5.8rem); margin: 0 0 1.25rem; }
.mfs-hero-actions { margin-top: 1.75rem; gap: 0.75rem; }
.mfs-hero-photos { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); align-items: start; }
.mfs-hero-photo { margin: 0; }
.mfs-hero-photo--offset { margin-top: clamp(32px, 6vw, 80px); }
.mfs-hero-photo img, .mfs-tile img, .mfs-feature-photo img {
  width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--mfs-radius); display: block; background: var(--mfs-paper);
}
.mfs-hero-photo figcaption { margin-top: 0.6rem; font-size: 0.85rem; color: var(--mfs-muted); text-align: left; }

/* ---------- trust strip ---------- */
.mfs-trust-strip { gap: 0.5rem clamp(20px, 5vw, 64px); padding: 16px clamp(20px, 4vw, 48px);
  background: var(--mfs-green); color: var(--mfs-paper); font-size: 0.9rem; font-weight: 500; }
.mfs-trust-strip p { margin: 0; }
.mfs-trust-strip a { color: var(--mfs-paper); }

/* ---------- category tiles ---------- */
.mfs-tiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: clamp(12px, 1.6vw, 20px); }
.mfs-tile { position: relative; margin: 0; overflow: hidden; border-radius: var(--mfs-radius); }
.mfs-tile img { transition: transform 300ms ease; }
.mfs-tile a:hover img { transform: scale(1.04); }
.mfs-tile figcaption {
  position: absolute; left: 10px; right: 10px; bottom: 10px; margin: 0; padding: 0.55rem 0.8rem;
  background: rgba(255, 253, 249, 0.94); color: var(--mfs-ink); border-radius: 999px; font-weight: 600; font-size: 0.92rem; text-align: center;
  pointer-events: none;
}

/* ---------- products (WooCommerce shortcode) ---------- */
.mfs-section-head { gap: 1rem; margin-bottom: clamp(16px, 2vw, 28px); }
.mfs-section-head .mfs-section-title { margin-bottom: 0; }
.mfs-link-arrow a { font-weight: 600; color: var(--mfs-ink); text-underline-offset: 0.25em; }
.mfs-link-arrow a::after { content: " ->"; }
.mfs-home .woocommerce ul.products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 28px); margin: 0; padding: 0; list-style: none; }
.mfs-home .woocommerce ul.products::before, .mfs-home .woocommerce ul.products::after { display: none; }
.mfs-home .woocommerce ul.products li.product { width: auto; margin: 0; float: none; padding: 0; text-align: left; }
.mfs-home .woocommerce ul.products li.product img { aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--mfs-radius); margin-bottom: 0.75rem; background: var(--mfs-ivory); }
.mfs-home .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: 1rem; font-weight: 500; line-height: 1.3; padding: 0; margin: 0 0 0.35rem; font-family: inherit; }
.mfs-home .woocommerce ul.products li.product .price { color: var(--mfs-ink); font-weight: 600; font-size: 1rem; }
.mfs-home .woocommerce ul.products li.product a { text-decoration: none; color: inherit; }

/* ---------- lines ---------- */
/* section: satin sheen like the header/footer; cards: variant B (glowing lime edge, faded number, lime tag, whole card clickable) */
.mfs-lines { background-color: #03150c; background-image: var(--mfs-satin); color: var(--mfs-paper); padding: clamp(56px, 8vw, 104px) clamp(20px, 4vw, 48px); }
.mfs-lines .mfs-kicker { color: #d9e3d2; }
.mfs-line-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); counter-reset: mfs-line; }
.mfs-line-card { counter-increment: mfs-line; position: relative; overflow: hidden; display: flex; flex-direction: column;
  padding: clamp(20px, 2.4vw, 32px); border-radius: 18px; border: 1px solid transparent;
  background: linear-gradient(160deg, #0d2a15, #061b10) padding-box,
              linear-gradient(140deg, rgba(198, 241, 53, 0.8), rgba(255, 253, 249, 0.1) 35%, rgba(255, 253, 249, 0.06) 65%, rgba(198, 241, 53, 0.35)) border-box;
  transition: transform 0.25s ease, box-shadow 0.25s ease; }
.mfs-line-card::before { content: counter(mfs-line, decimal-leading-zero); position: absolute; right: 14px; top: 4px; pointer-events: none;
  font-family: Georgia, ui-serif, serif; font-size: clamp(64px, 6vw, 86px); font-weight: 500; line-height: 1; color: rgba(198, 241, 53, 0.09); }
.mfs-line-card:hover, .mfs-line-card:focus-within { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(198, 241, 53, 0.35); }
.mfs-line-card .mfs-line-tag { align-self: flex-start; margin: 0 0 1rem; padding: 6px 10px; border-radius: 999px; background: var(--mfs-lime); color: var(--mfs-ink);
  font-size: 11px; font-weight: 600; line-height: 1; letter-spacing: 0.14em; text-transform: uppercase; }
.mfs-line-card h3 { position: relative; margin: 0 0 0.75rem; font-size: 1.5rem; }
.mfs-line-card p { position: relative; color: #e5ece0; margin: 0 0 1rem; }
.mfs-line-card .mfs-line-link { margin-top: auto; position: static; }
.mfs-line-card .mfs-line-link a { color: var(--mfs-lime); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; }
.mfs-line-card .mfs-line-link a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor; transform: rotate(45deg); transition: transform 0.25s ease; }
.mfs-line-card:hover .mfs-line-link a::after { transform: translateX(4px) rotate(45deg); }
.mfs-line-card .mfs-line-link a::before { content: ""; position: absolute; inset: 0; z-index: 1; } /* whole card opens the line */
.mfs-line-card .mfs-line-link a:focus-visible { outline: 2px solid var(--mfs-lime); outline-offset: 3px; border-radius: 4px; }
@media (prefers-reduced-motion: reduce) { .mfs-line-card, .mfs-line-card .mfs-line-link a::after { transition: none; } }

/* ---------- feature / size / about ---------- */
.mfs-feature { gap: clamp(28px, 5vw, 72px); }
.mfs-feature-photo { margin: 0; }
.mfs-size-grid { gap: clamp(20px, 3vw, 40px); }
.mfs-size-table table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; background: var(--mfs-paper); }
.mfs-size-table th, .mfs-size-table td { border: 0; border-bottom: 1px solid var(--mfs-line); padding: 0.55rem 0.5rem; text-align: left; }
.mfs-size-table thead th { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mfs-muted); border-bottom: 2px solid var(--mfs-ink); }
.mfs-size-table tbody td:first-child { font-weight: 700; }
.mfs-size-table td.mfs-na::before { content: "-"; color: var(--mfs-muted); }
.mfs-measure li { margin-bottom: 0.6rem; }
.mfs-about { text-align: left; }

/* ---------- WooCommerce buttons and product form (site-wide) ---------- */
/* List buttons (shortcode loops and product blocks): solid, full card width, one line */
.woocommerce ul.products li.product .button,
.mfs-home .woocommerce ul.products li.product .button,
.wc-block-components-product-button__button,
.wp-block-button.wc-block-components-product-button .wp-block-button__link {
  display: flex !important; align-items: center; justify-content: center; width: 100%; box-sizing: border-box;
  min-height: 2.75rem; margin-top: 0.75rem; padding: 0.6rem 0.5rem !important;
  /* satin sheen like the header/footer; flat dark green underneath as fallback */
  background-color: #03150c !important; background-image: var(--mfs-satin) !important;
  background-size: 220% 100% !important; background-position: 0% 50% !important; background-repeat: no-repeat !important;
  color: var(--mfs-paper) !important;
  border: 1px solid #03150c !important; border-radius: 999px !important;
  font-size: 0.9rem !important; font-weight: 700; line-height: 1.2; white-space: nowrap;
  text-decoration: none !important; box-shadow: 0 1px 2px rgba(22, 24, 20, 0.12);
  cursor: pointer; transition: background-position 450ms ease, border-color 150ms ease, transform 150ms ease;
}
/* hover: the sheen slides across the button */
.woocommerce ul.products li.product .button:hover,
.mfs-home .woocommerce ul.products li.product .button:hover,
.wc-block-components-product-button__button:hover,
.wp-block-button.wc-block-components-product-button .wp-block-button__link:hover {
  background-position: 100% 50% !important; color: var(--mfs-paper) !important; transform: translateY(-1px);
}
@media (prefers-reduced-motion: reduce) {
  .woocommerce ul.products li.product .button,
  .mfs-home .woocommerce ul.products li.product .button,
  .wc-block-components-product-button__button,
  .wp-block-button.wc-block-components-product-button .wp-block-button__link { transition: none; }
}
.woocommerce ul.products li.product .button:focus-visible,
.wc-block-components-product-button__button:focus-visible { outline: 3px solid var(--mfs-lime); outline-offset: 2px; }
.wc-block-components-product-button { width: 100%; }

/* Product page: options + full-width dark green add-to-cart */
.wc-block-add-to-cart-form .variations_form, .single-product form.cart { max-width: 30rem; }
.single-product .variations { width: 100%; border: 0; margin: 0 0 1rem; }
.single-product .variations tr { display: block; margin-bottom: 0.9rem; }
.single-product .variations th, .single-product .variations td { display: block; padding: 0; border: 0; text-align: left; }
.single-product .variations th.label label { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mfs-muted); }
.single-product .variations select {
  width: 100%; min-height: 3rem; margin-top: 0.35rem; padding: 0.6rem 2.5rem 0.6rem 0.9rem;
  border: 1px solid var(--mfs-line); border-radius: 10px; background-color: var(--mfs-paper); color: var(--mfs-ink); font-size: 1rem;
}
.single-product .variations select:focus { outline: 3px solid var(--mfs-green); outline-offset: 2px; border-color: var(--mfs-green); }
.single-product .reset_variations { display: inline-block; margin-top: 0.4rem; font-size: 0.85rem; color: var(--mfs-muted); }
.single-product .woocommerce-variation-price .price { font-size: 1.4rem; font-weight: 700; color: var(--mfs-ink); }
.single-product .woocommerce-variation-availability .stock { font-weight: 600; }
.single-product .woocommerce-variation-add-to-cart,
.single-product form.cart:not(.variations_form) { display: flex; gap: 0.6rem; align-items: stretch; flex-wrap: wrap; }
.single-product form.cart .quantity input.qty {
  width: 4.5rem; min-height: 3.4rem; border: 1px solid var(--mfs-line); border-radius: 999px; text-align: center; font-size: 1rem; background: var(--mfs-paper);
}
.single-product .single_add_to_cart_button {
  flex: 1 1 14rem; min-height: 3.4rem; padding: 0.8rem 1.5rem !important;
  background: var(--mfs-green) !important; color: var(--mfs-paper) !important; border: 0 !important; border-radius: 999px !important;
  font-size: 1rem !important; font-weight: 700; letter-spacing: 0.02em; cursor: pointer; transition: background-color 150ms ease, transform 150ms ease;
}
.single-product .single_add_to_cart_button:hover { background: var(--mfs-ink) !important; transform: translateY(-1px); }
.single-product .single_add_to_cart_button.disabled,
.single-product .single_add_to_cart_button:disabled { opacity: 0.45; cursor: not-allowed; transform: none; }
.single-product .single_add_to_cart_button:focus-visible { outline: 3px solid var(--mfs-lime); outline-offset: 3px; }
.mfs-price-from { font-weight: 400; color: var(--mfs-muted); font-size: 0.9em; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .mfs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .mfs-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfs-home .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 781px) {
  .mfs-hero-photo--offset { margin-top: 32px; }
  .mfs-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfs-home .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mfs-nav { gap: 0.75rem; font-size: 0.9rem; }
}
@media (max-width: 480px) {
  .mfs-line-grid { grid-template-columns: 1fr; }
  .mfs-trust-strip { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mfs-button .wp-block-button__link, .mfs-tile img { transition: none; }
  .mfs-tile a:hover img { transform: none; }
}

/* ---------- shop view controls and backorder note ---------- */
.mfs-view-controls { display: flex; flex-wrap: wrap; gap: 0.5rem 1.25rem; align-items: center; font-size: 0.88rem; }
.mfs-view-group { display: inline-flex; align-items: center; gap: 0.3rem; }
.mfs-view-label { color: var(--mfs-muted); margin-right: 0.2rem; }
.mfs-view-opt { display: inline-flex; align-items: center; min-height: 2.25rem; padding: 0.25rem 0.75rem; border: 1px solid var(--mfs-line); border-radius: 999px; color: var(--mfs-ink); text-decoration: none; background: var(--mfs-paper); }
.mfs-view-opt:hover { border-color: var(--mfs-ink); }
.mfs-view-opt[aria-current="true"] { background: var(--mfs-ink); border-color: var(--mfs-ink); color: var(--mfs-paper); font-weight: 600; }
.wp-block-woocommerce-catalog-sorting { display: flex; flex-wrap: wrap; gap: 0.75rem 1.5rem; align-items: center; }
.mfs-backorder-note { margin: 0.2rem 0 0; font-size: 0.8rem; font-weight: 600; color: var(--mfs-green); }
@media (max-width: 600px) {
  .wc-block-product-template.columns-2 { grid-template-columns: 1fr !important; }
  .wc-block-product-template.columns-3, .wc-block-product-template.columns-4 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
}

/* Related products: 4 per row instead of 5 cramped tiles */
@media (min-width: 600px) {
  [data-collection="woocommerce/product-collection/related"] .wc-block-product-template.columns-5 > li { width: calc(25% - 0.9375em) !important; }
}
[data-collection="woocommerce/product-collection/related"] .wc-block-product-template > li:nth-child(n+5) { display: none; }

/* ---------- product page: colour and size buttons (assets/variation-buttons.js) ---------- */
.mfs-vb-ready .mfs-vb-select { position: absolute !important; width: 1px !important; min-width: 0 !important; max-width: 1px !important; height: 1px !important; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0 !important; padding: 0 !important; margin: -1px !important; opacity: 0; pointer-events: none; }
.mfs-vb-ready table.variations, .mfs-vb-ready table.variations tbody, .mfs-vb-ready table.variations tr, .mfs-vb-ready table.variations th, .mfs-vb-ready table.variations td { display: block; width: 100%; padding: 0; border: 0; text-align: left; }
.mfs-vb-ready table.variations tr { margin-bottom: 1.1rem; }
.mfs-vb-ready table.variations th.label { margin-bottom: 0.5rem; }
.mfs-vb-ready table.variations th.label label { font-weight: 600; }
.mfs-vb-current { font-weight: 400; color: var(--mfs-muted); }
.mfs-vb { display: flex; flex-wrap: wrap; gap: 8px; }
.mfs-vb__btn { position: relative; display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; margin: 0; font: inherit; color: var(--mfs-ink); background: var(--mfs-paper); border: 1px solid var(--mfs-line); cursor: pointer; transition: border-color 0.15s; }
.mfs-vb__btn:hover { border-color: var(--mfs-muted); }
.mfs-vb__btn.is-selected { border-color: var(--mfs-ink); box-shadow: inset 0 0 0 1px var(--mfs-ink); }
.mfs-vb__btn:focus-visible { outline: 2px solid var(--mfs-green); outline-offset: 2px; }
.mfs-vb--size .mfs-vb__btn { min-width: 2.75rem; min-height: 2.75rem; padding: 0 0.8rem; border-radius: 10px; font-size: 0.95rem; font-weight: 700; }
.mfs-vb--colour .mfs-vb__btn { width: 72px; padding: 4px 4px 6px; border-radius: 8px; }
.mfs-vb__img { display: block; width: 64px; height: 80px; object-fit: cover; border-radius: 5px; background: transparent; } /* transparent photos: the button's green tint shows through */
.mfs-vb--colour .mfs-vb__text { font-size: 0.72rem; line-height: 1.15; max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.mfs-vb__btn.is-unavailable { color: var(--mfs-muted); border-style: dashed; }
.mfs-vb__btn.is-unavailable .mfs-vb__img { opacity: 0.4; }
.mfs-vb--size .mfs-vb__btn.is-unavailable { text-decoration: line-through; }
.mfs-vb--colour .mfs-vb__btn.is-unavailable::after { content: ""; position: absolute; left: 8px; right: 8px; top: 44px; border-top: 1px solid var(--mfs-muted); transform: rotate(-38deg); }
.mfs-vb-ready .reset_variations { display: inline-block; margin-top: 0.25rem; font-size: 0.85rem; }
@media (prefers-reduced-motion: reduce) { .mfs-vb__btn { transition: none; } }
/* size + colour picker buttons (satca): green satin tint and sheen like the product cards; on hover the sheen slides
   and the button grows 4% like the Lenjerie tehnica photo. Selected/unavailable/focus rules above stay in charge of the edge. */
.mfs-vb { gap: 10px; }
.mfs-vb__btn {
  background-color: #eef4ea; background-image: var(--mfs-card-tint); background-size: 220% 220%; background-position: 0% 0%; background-repeat: no-repeat;
  border-color: var(--mfs-card-edge);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.15s ease, background-position 0.9s ease;
}
.mfs-vb__btn.is-selected { border-color: var(--mfs-ink); }
.mfs-vb__btn.is-unavailable { border-color: var(--mfs-muted); }
@media (hover: hover) {
  .mfs-vb__btn:hover { background-position: 100% 100%; border-color: rgba(23, 51, 26, 0.28); }
  .mfs-vb__btn.is-selected:hover { border-color: var(--mfs-ink); }
  .mfs-vb__btn:not(.is-unavailable):hover { transform: scale(1.04); box-shadow: 0 8px 18px rgba(23, 51, 26, 0.12); }
}
.mfs-vb__btn:not(.is-unavailable):focus-visible { transform: scale(1.04); background-position: 100% 100%; }
@media (prefers-reduced-motion: reduce) {
  .mfs-vb__btn { transition: none; }
  .mfs-vb__btn:hover, .mfs-vb__btn:focus-visible { transform: none !important; background-position: 0% 0%; }
}

/* ---------- checkout: "Inapoi la cos" as an outline button (secondary to "Plaseaza comanda") ---------- */
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button {
  display: inline-flex; align-items: center; justify-content: center; box-sizing: border-box;
  min-height: 3.5rem; padding: 0.6rem 1.25rem 0.6rem calc(1.25rem + 24px);
  background: transparent; color: var(--mfs-ink); border: 1px solid var(--mfs-ink); border-radius: 999px;
  font-weight: 600; line-height: 1.2; white-space: nowrap; text-decoration: none;
  transition: background-color 150ms ease, color 150ms ease;
}
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button svg { left: 1rem; }
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button:hover { background: var(--mfs-ink); color: var(--mfs-paper); }
.wc-block-checkout .wc-block-components-checkout-return-to-cart-button:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .wc-block-checkout .wc-block-components-checkout-return-to-cart-button { transition: none; } }

/* ---------- product page: quantity with "-" and "+" buttons (assets/quantity-stepper.js) ---------- */
.single-product form.cart .quantity.mfs-qty {
  display: inline-flex; align-items: stretch; box-sizing: border-box; min-height: 3.4rem; padding: 3px;
  border: 1px solid var(--mfs-line); border-radius: 999px; background: var(--mfs-paper);
}
.single-product form.cart .quantity.mfs-qty input.qty {
  width: 2.75rem; min-height: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  text-align: center; font-size: 1rem; font-weight: 600; color: var(--mfs-ink); -moz-appearance: textfield; appearance: textfield;
}
.single-product form.cart .quantity.mfs-qty input.qty::-webkit-inner-spin-button,
.single-product form.cart .quantity.mfs-qty input.qty::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.single-product form.cart .quantity.mfs-qty input.qty:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: 2px; border-radius: 6px; }
.mfs-qty__btn {
  display: inline-flex; align-items: center; justify-content: center; width: 2.75rem; padding: 0; margin: 0;
  border: 0; border-radius: 999px; background: transparent; color: var(--mfs-ink); cursor: pointer; transition: background-color 150ms ease;
}
.mfs-qty__btn:hover:not(:disabled) { background: var(--mfs-sand); }
.mfs-qty__btn:disabled { color: var(--mfs-muted); opacity: 0.45; cursor: not-allowed; }
.mfs-qty__btn:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: 2px; }
.mfs-qty--off .mfs-qty__btn { display: none; }
@media (prefers-reduced-motion: reduce) { .mfs-qty__btn { transition: none; } }
/* the wider stepper must not push "Adauga in cos" to its own row on phones */
.single-product form.cart .quantity.mfs-qty ~ .single_add_to_cart_button { flex-basis: 9rem; }

/* ---------- sticky header ----------
   The sticky rule must sit on WordPress's template-part wrapper: .mfs-site-header alone is as tall
   as its wrapper, so it has no room to stick. Below the admin bar when logged in; on phones
   (<=600px) the admin bar scrolls away, so stick to the very top there. */
.wp-site-blocks > .wp-block-template-part:has(> .mfs-site-header) {
  position: sticky; top: var(--wp-admin--admin-bar--height, 0px); z-index: 100;
}
@media (max-width: 600px) { .wp-site-blocks > .wp-block-template-part:has(> .mfs-site-header) { top: 0; } }

/* ---------- shop toolbar (results count, view controls, sorting) below 1100px ----------
   WooCommerce's row is flex "nowrap": on phones it pushed sorting off-screen and squeezed
   the results count to 5 lines. Let it wrap: count on its own line, controls and sorting below. */
@media (max-width: 1099px) {
  .wp-block-group.is-nowrap:has(> .wp-block-woocommerce-product-results-count) { flex-wrap: wrap !important; row-gap: 0.75rem; }
  .wp-block-group:has(> .wp-block-woocommerce-product-results-count) > .wp-block-woocommerce-product-results-count { flex: 1 1 100%; margin: 0; }
  .wp-block-group:has(> .wp-block-woocommerce-product-results-count) > * { min-width: 0; max-width: 100%; }
}

/* ---------- product cards: price + button pinned to the card bottom ----------
   Grid rows already stretch every card to the row height; a column flexbox plus
   margin-top:auto moves price and button down, so a 1- or 2-line title no longer
   shifts them. Titles stay complete. */
.wc-block-product-template > li.wc-block-product { display: flex; flex-direction: column; }
.wc-block-product-template > li.wc-block-product > .wp-block-woocommerce-product-price { margin-top: auto; }
.wc-block-product-template > li.wc-block-product:not(:has(> .wp-block-woocommerce-product-price)) > .wc-block-components-product-button { margin-top: auto; }
/* home [products] grid: WordPress wraps price + button in a trailing <p> */
.woocommerce ul.products li.product { display: flex; flex-direction: column; }
.woocommerce ul.products li.product > p:last-of-type { margin-top: auto; }

/* ---------- home slider (.mfs-slider in the front-page template; controls: assets/home-slider.js) ----------
   Equal height is pure CSS: slides are flex items of one row, so each stretches to the tallest. */
.mfs-slider { position: relative; margin-top: 0 !important; margin-bottom: 0 !important; }
.mfs-slider__track {
  display: flex !important; flex-wrap: nowrap; align-items: stretch; gap: 0;
  overflow-x: auto; overflow-y: hidden; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none;
}
.mfs-slider__track::-webkit-scrollbar { display: none; }
.mfs-slider__track > .mfs-slide {
  flex: 0 0 100%; min-width: 0; margin: 0 !important; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; flex-direction: column;
}
/* the section inside fills the slide (its background too) and centres its content vertically */
.mfs-slide > * {
  flex: 1 1 auto; margin: 0 !important; box-sizing: border-box;
  display: flex !important; flex-direction: column; justify-content: center;
  padding-top: clamp(28px, 4vw, 56px) !important; padding-bottom: clamp(28px, 4vw, 56px) !important;
}
.mfs-slide > * > * { width: 100%; box-sizing: border-box; }
.mfs-slide .mfs-section-title { margin-bottom: clamp(16px, 2vw, 28px); }
@media (max-width: 600px) {
  /* phone: 2 line cards per row inside the slider keeps that slide close to one screen */
  .mfs-slide .mfs-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mfs-slider__bar {
  display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; justify-content: center;
  padding: 0.75rem 1rem; background: var(--mfs-ivory); border-bottom: 1px solid var(--mfs-line);
}
.mfs-slider__arrow, .mfs-slider__pause {
  display: inline-flex; align-items: center; justify-content: center; min-width: 2.75rem; height: 2.75rem; padding: 0 0.9rem;
  border: 1px solid var(--mfs-ink); border-radius: 999px; background: transparent; color: var(--mfs-ink);
  font: inherit; font-size: 0.9rem; font-weight: 600; cursor: pointer;
}
.mfs-slider__arrow { font-size: 1.4rem; line-height: 1; padding: 0; }
.mfs-slider__dots { display: flex; flex-wrap: wrap; gap: 0.35rem; justify-content: center; }
.mfs-slider__dot {
  height: 2.75rem; padding: 0 0.8rem; border: 1px solid transparent; border-radius: 999px; background: transparent;
  color: var(--mfs-ink); font: inherit; font-size: 0.85rem; cursor: pointer;
}
.mfs-slider__dot[aria-current="true"] { border-color: var(--mfs-ink); font-weight: 700; }
.mfs-slider__arrow:hover, .mfs-slider__pause:hover, .mfs-slider__dot:hover { background: var(--mfs-sand); }
.mfs-slider__arrow:focus-visible, .mfs-slider__pause:focus-visible, .mfs-slider__dot:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: 2px; }
@media (max-width: 700px) {
  .mfs-slider__dot { width: 2.75rem; padding: 0; font-size: 0; }
  .mfs-slider__dot::after { content: ""; display: block; width: 9px; height: 9px; margin: auto; border-radius: 5px; background: var(--mfs-muted); }
  .mfs-slider__dot[aria-current="true"] { border-color: transparent; }
  .mfs-slider__dot[aria-current="true"]::after { width: 22px; background: var(--mfs-ink); }
}
/* reserve the control bar's space in CSS, so adding the controls with JS does not move the page */
.mfs-slider { padding-bottom: 4.25rem; background: var(--mfs-ivory); border-bottom: 1px solid var(--mfs-line); }
.mfs-slider__bar { position: absolute; left: 0; right: 0; bottom: 0; min-height: 4.25rem; box-sizing: border-box; border-bottom: 0; flex-wrap: nowrap; }
/* phone: arrows, 4 dots and pause on one line, inside the reserved 4.25rem */
.mfs-slider__dots { flex-wrap: nowrap; }
@media (max-width: 700px) {
  .mfs-slider__bar { gap: 0.35rem; padding: 0.75rem 0.5rem; }
  .mfs-slider__dots { gap: 0.15rem; }
  .mfs-slider__dot { width: 1.9rem; }
  .mfs-slider__pause { padding: 0 0.7rem; }
}

/* ---------- home page cut-out photos (transparent WebP): no box of their own, they sit on the section background ---------- */
.mfs-home .mfs-hero-photo img, .mfs-home .mfs-tile img, .mfs-home .mfs-feature-photo img { background: transparent; }

/* ---------- category tiles: name under the photo instead of a pill over it (photo stays fully visible) ---------- */
.mfs-tile { overflow: visible; }
.mfs-tile a { display: block; overflow: hidden; border-radius: var(--mfs-radius); }
.mfs-tile figcaption {
  position: static; margin: 0.6rem 0 0; padding: 0; background: none; border-radius: 0;
  color: var(--mfs-ink); font-weight: 600; font-size: 0.95rem; line-height: 1.3; text-align: center;
}
/* the photo's link also covers the name under it: its ::after is positioned against the figure (the link
   itself is not positioned), so the whole tile is one click/tap target with a single link */
.mfs-tile { position: relative; }
.mfs-tile a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.mfs-tile:has(a:hover) figcaption { text-decoration: underline; text-underline-offset: 3px; }
.mfs-tile a:focus-visible { outline: none; }
.mfs-tile:has(a:focus-visible) { outline: 3px solid var(--mfs-green); outline-offset: 3px; border-radius: var(--mfs-radius); }

/* ---------- home slider on phones: every slide fits one screen under the sticky header ----------
   (the sections further down the page keep their full size and text) */
@media (max-width: 600px) {
  .mfs-slide > * { padding-top: 20px !important; padding-bottom: 20px !important; }
  .mfs-slide .mfs-section-title { font-size: 1.6rem; margin-bottom: 0.75rem; }
  .mfs-slide .wp-block-buttons { flex-wrap: nowrap; gap: 0.5rem; margin-top: 1rem; }
  .mfs-slide .wp-block-buttons > .wp-block-button { flex: 1 1 0; min-width: 0; width: auto; }
  .mfs-slide .wp-block-buttons .wp-block-button__link { width: 100%; padding: 0.7rem 0.6rem; font-size: 0.9rem; }

  /* hero: smaller title, the two photos square and side by side */
  .mfs-slide .mfs-hero-grid { gap: 1rem; }
  .mfs-slide .mfs-hero-title { font-size: 2.1rem; margin-bottom: 0.6rem; }
  .mfs-slide .mfs-hero .mfs-lead { font-size: 0.95rem; margin: 0; }
  .mfs-slide .mfs-hero-photo--offset { margin-top: 0; }
  .mfs-slide .mfs-hero-photo img { aspect-ratio: 1 / 1; }
  .mfs-slide .mfs-hero-photo figcaption { display: none; }

  /* categorii: 3 x 2 small square tiles */
  .mfs-slide .mfs-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 8px; }
  .mfs-slide .mfs-tile img { aspect-ratio: 1 / 1; }
  .mfs-slide .mfs-tile figcaption { margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.2; }

  /* liniile IMPETUS: 2 x 2 cards, description cut to 3 lines (full text in the section below) */
  .mfs-slide .mfs-line-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .mfs-slide .mfs-line-card { padding: 14px; }
  .mfs-slide .mfs-line-card h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
  .mfs-slide .mfs-line-card p:not(.mfs-line-link) {
    margin-bottom: 0.5rem; font-size: 0.85rem; line-height: 1.35;
    display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
  }
  .mfs-slide .mfs-line-card .mfs-line-link { font-size: 0.85rem; margin: 0; }

  /* lenjerie menstruala: wide, cropped photo */
  .mfs-slide .mfs-feature { gap: 1rem; }
  .mfs-slide .mfs-feature-photo img { aspect-ratio: 7 / 4; }
  .mfs-slide .mfs-feature .mfs-lead { font-size: 0.95rem; margin: 0; }
}

/* IMPETUS line cards: drop WordPress's flow-layout top margin (the grid gap already spaces them); it pushed cards 2-4 down */
.mfs-line-grid > .mfs-line-card { margin-block: 0 !important; }
.mfs-line-grid { grid-auto-rows: 1fr; } /* every row as tall as the tallest card: all cards equal */
@media (max-width: 600px) {
  /* inside the phone slider the 2 x 2 cards are small: no tag, smaller faded number, so the slide still fits one screen */
  .mfs-slide .mfs-line-grid .mfs-line-card p.mfs-line-tag { display: none; } /* beats the 3-line clamp rule above (0,3,1) */
  .mfs-slide .mfs-line-card::before { font-size: 48px; right: 8px; top: 2px; }
  .mfs-slide .mfs-line-card { border-radius: 14px; }
}

/* ---------- home slider: no control bar on phones (swipe + auto-advance), no pause button anywhere ---------- */
@media (max-width: 600px) {
  .mfs-slider { padding-bottom: 0; }
  .mfs-slider__bar { display: none; }
}

/* ---------- hero: 3 trimmed cut-out photos ----------
   desktop: one tall photo + two stacked, the block exactly as tall as the text (tops and bottoms aligned).
   The photos are absolutely positioned inside their cells, so the text column alone decides the height. */
@media (min-width: 782px) {
  .mfs-hero .mfs-hero-grid { align-items: stretch !important; }
  .mfs-hero .mfs-hero-grid > .wp-block-column { align-self: stretch !important; }
  .mfs-hero .mfs-hero-grid > .wp-block-column:first-child { display: flex; flex-direction: column; justify-content: center; }
  .mfs-hero .mfs-hero-grid > .wp-block-column:first-child > * { margin-top: 0; }
  .mfs-hero .mfs-hero-grid > .wp-block-column:last-child { display: flex; }
  .mfs-hero .mfs-hero-photos {
    flex: 1 1 auto; display: grid; grid-template-columns: 1.15fr 1fr; grid-template-rows: 1fr 1fr;
    gap: clamp(10px, 1.4vw, 18px); align-items: stretch; min-height: 0;
  }
  .mfs-hero .mfs-hero-photos > .mfs-hero-photo { margin: 0 !important; display: flex; flex-direction: column; min-height: 0; }
  .mfs-hero .mfs-hero-photos > .mfs-hero-photo:first-child { grid-row: 1 / 3; }
  .mfs-hero .mfs-hero-photo > a { position: relative; display: block; flex: 1 1 auto; min-height: 0; }
  .mfs-hero .mfs-hero-photo img { position: absolute; inset: 0; width: 100%; height: 100%; aspect-ratio: auto; object-fit: contain; border-radius: 0; }
  .mfs-hero .mfs-hero-photo figcaption { flex: none; margin-top: 0.35rem; text-align: center; }
}
/* tablet and phone: the 3 photos side by side under the text */
@media (max-width: 781px) {
  .mfs-hero .mfs-hero-photos { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mfs-hero .mfs-hero-photo { margin: 0 !important; }
  .mfs-hero .mfs-hero-photo img { aspect-ratio: 1 / 1; object-fit: contain; border-radius: 0; }
  .mfs-hero .mfs-hero-photo figcaption { font-size: 0.8rem; text-align: center; }
}

/* ==========================================================================
   Home sections, direction A "soft green" (satca's choice, preview MAD/working/home-modern/).
   Scoped to the home page (.mfs-home). Pale satin and white cards; the dark satin stays only in Selectia.
   ========================================================================== */
.mfs-home {
  --mfs-soft: var(--mfs-ivory); --mfs-card-line: #e6e1d6; --mfs-glow: radial-gradient(80% 80% at 50% 38%, #ffffff 0%, #e6eee1 62%, #d6e3cf 100%);
  --mfs-satin-light: linear-gradient(115deg, #f4f7f0 0%, #e6eee1 22%, #d6e3cf 38%, #e8efe3 52%, #f4f7f0 70%, #dde8d7 88%, #f4f7f0 100%);
  background: var(--mfs-soft);
}
/* sections sit flush (no block-gap strips between coloured sections) */
.mfs-home > * { margin-block: 0; }

/* section labels: pill with a lime dot */
.mfs-home .mfs-kicker { gap: 8px; padding: 6px 12px 6px 10px; border-radius: 999px; background: rgba(23, 51, 26, 0.07);
  color: var(--mfs-green); font-size: 11px; line-height: 1; margin-bottom: 14px; }
.mfs-home .mfs-kicker::before { width: 7px; height: 7px; box-shadow: 0 0 0 3px rgba(198, 241, 53, 0.28); }
.mfs-home .mfs-lines .mfs-kicker { background: rgba(255, 253, 249, 0.1); color: #d9e3d2; }

/* outline "see all" link: pill with a chevron */
.mfs-home .mfs-link-arrow a { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 18px; border: 1px solid var(--mfs-ink);
  border-radius: 999px; text-decoration: none; white-space: nowrap; transition: background-color 0.2s ease, color 0.2s ease; }
.mfs-home .mfs-link-arrow a::after { content: ""; width: 7px; height: 7px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.25s ease; }
.mfs-home .mfs-link-arrow a:hover { background: var(--mfs-ink); color: var(--mfs-paper); }
.mfs-home .mfs-link-arrow a:hover::after { transform: translateX(4px) rotate(45deg); }

/* categories: light satin section, photo on a soft green glow, name with chevron under it, lift on hover */
.mfs-home .mfs-section:has(> .mfs-tiles) { background: var(--mfs-ivory); }
.mfs-home .mfs-tile { transition: transform 0.25s ease; }
.mfs-home .mfs-tile a { border-radius: 22px; background: var(--mfs-glow); transition: box-shadow 0.25s ease; }
.mfs-home .mfs-tile img { background: transparent; border-radius: 0; }
.mfs-home .mfs-tile figcaption { display: flex; align-items: center; justify-content: center; gap: 8px; }
.mfs-home .mfs-tile figcaption::after { content: ""; flex: none; width: 6px; height: 6px; border-top: 2px solid currentColor; border-right: 2px solid currentColor;
  transform: rotate(45deg); transition: transform 0.25s ease; }
.mfs-home .mfs-tile:has(a:hover) { transform: translateY(-4px); }
.mfs-home .mfs-tile:has(a:hover) a { box-shadow: 0 16px 34px rgba(23, 51, 26, 0.16); }
.mfs-home .mfs-tile:has(a:hover) figcaption { text-decoration: none; }
.mfs-home .mfs-tile:has(a:hover) figcaption::after { transform: translateX(4px) rotate(45deg); }
.mfs-home .mfs-tile:has(a:focus-visible) { border-radius: 22px; }
@media (max-width: 600px) {
  /* 3 small tiles per row in the phone slider: no room for the chevron next to "Lenjerie tehnica" */
  .mfs-home .mfs-slide .mfs-tile figcaption::after { display: none; }
}

/* "In stoc acum": tinted product cards (same as every product list) on the soft background */
.mfs-home .mfs-section--paper:not(.mfs-size) { background: var(--mfs-soft); border-color: transparent; }
.mfs-home .woocommerce ul.products li.product { padding: 10px 10px 14px; background: var(--mfs-card-tint); border: 1px solid var(--mfs-card-edge); border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease; }
.mfs-home .woocommerce ul.products li.product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 51, 26, 0.12); border-color: rgba(23, 51, 26, 0.28); }
.mfs-home .woocommerce ul.products li.product img { border-radius: 14px; background: #fff; margin-bottom: 12px; }
.mfs-home .woocommerce ul.products li.product .woocommerce-loop-product__title { padding: 0 4px; }
.mfs-home .woocommerce ul.products li.product .price { display: block; padding: 0 4px; font-weight: 700; }
.mfs-home .woocommerce ul.products li.product .price .mfs-price-from { font-weight: 500; color: var(--mfs-muted); }

/* Lenjerie tehnica: one rounded light-satin panel, photo on a glow, chips */
.mfs-home .mfs-section:has(.mfs-feature) { background: var(--mfs-soft); }
.mfs-home .mfs-feature { padding: clamp(18px, 3vw, 36px); border-radius: 28px; background: var(--mfs-satin-light); }
/* the photo is a transparent cut-out: no box or glow behind it (satca), it sits directly on the panel */
.mfs-home .mfs-feature-photo a { display: block; background: none; }
.mfs-home .mfs-feature-photo img { background: transparent; border-radius: 0; }
.mfs-home .mfs-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 0; }
.mfs-home .mfs-chips span { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(23, 51, 26, 0.25); background: rgba(255, 253, 249, 0.6);
  color: var(--mfs-green); font-size: 13px; font-weight: 600; line-height: 1.2; }
/* inside the slider the feature stays compact (no panel padding, no chips): that slide sets the slider height */
.mfs-home .mfs-slide .mfs-feature { padding: 0; background: none; border-radius: 0; }
.mfs-home .mfs-slide .mfs-chips { display: none; }

/* size guide: pale green section, every column a white card, tables with a pale header and striped rows, numbered steps */
.mfs-home .mfs-size { background: var(--mfs-ivory); border-color: transparent; }
.mfs-home .mfs-size-grid > .wp-block-column { padding: 18px clamp(14px, 1.6vw, 22px) 20px; background: #fff; border: 1px solid var(--mfs-card-line); border-radius: 20px; }
.mfs-home .mfs-size-grid h3 { margin: 0 0 12px; font-size: 1.25rem; }
.mfs-home .mfs-size-table { margin: 0; }
.mfs-home .mfs-size-table table { background: transparent; }
.mfs-home .mfs-size-table thead th { background: #e3ecdd; color: var(--mfs-green); border-bottom: 0; padding: 10px 12px; font-size: 0.72rem; letter-spacing: 0.14em; }
.mfs-home .mfs-size-table thead th:first-child { border-radius: 10px 0 0 10px; }
.mfs-home .mfs-size-table thead th:last-child { border-radius: 0 10px 10px 0; }
.mfs-home .mfs-size-table td { padding: 9px 12px; border-bottom: 1px solid #eef0ea; }
.mfs-home .mfs-size-table tbody tr:nth-child(even) td { background: #f7f9f4; }
.mfs-home .mfs-measure { list-style: none; margin: 0; padding: 0; counter-reset: mfs-step; }
.mfs-home .mfs-measure li { counter-increment: mfs-step; display: flex; gap: 12px; align-items: flex-start; margin: 0; padding: 12px 0; border-top: 1px solid #eef0ea;
  color: var(--mfs-muted); font-size: 0.95rem; }
.mfs-home .mfs-measure li:first-child { border-top: 0; padding-top: 4px; }
.mfs-home .mfs-measure li::before { content: counter(mfs-step, decimal-leading-zero); flex: none; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; background: var(--mfs-lime); color: var(--mfs-ink); font-size: 12px; font-weight: 600; }
.mfs-home .mfs-measure li strong { color: var(--mfs-ink); font-weight: 600; }

/* Despre: closing white card */
.mfs-home > .mfs-about { box-sizing: border-box; width: min(1320px, calc(100% - 2 * clamp(20px, 4vw, 48px))); margin: clamp(8px, 2vw, 24px) auto clamp(56px, 8vw, 96px);
  padding: clamp(32px, 5vw, 64px) clamp(20px, 4vw, 56px); border-radius: 28px; background: #fff; border: 1px solid var(--mfs-card-line); }

@media (prefers-reduced-motion: reduce) {
  .mfs-home .mfs-tile, .mfs-home .mfs-tile a, .mfs-home .mfs-tile figcaption::after, .mfs-home .woocommerce ul.products li.product,
  .mfs-home .mfs-link-arrow a, .mfs-home .mfs-link-arrow a::after { transition: none; }
  .mfs-home .mfs-tile:has(a:hover), .mfs-home .woocommerce ul.products li.product:hover { transform: none; }
}

/* ==========================================================================
   Product cards everywhere (shop, categories, search, related products; the home grid uses the same values above):
   soft green tint, fine edge, rounded corners, lift on hover (satca).
   ========================================================================== */
/* option A (satca): light satin bands like the hero; the sheen slides across the card on hover, like the satin buttons */
:root { --mfs-card-tint: linear-gradient(115deg, #f6f9f2 0%, #e7efe2 18%, #d5e2cd 32%, #eaf1e5 46%, #f6f9f2 60%, #dce7d5 78%, #f6f9f2 100%); --mfs-card-edge: #dbe5d4; }
.wc-block-product-template > li.wc-block-product {
  box-sizing: border-box; padding: 10px 10px 14px; background: var(--mfs-card-tint); border: 1px solid var(--mfs-card-edge); border-radius: 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.wc-block-product-template > li.wc-block-product:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(23, 51, 26, 0.12); border-color: rgba(23, 51, 26, 0.28); }
.wc-block-product-template > li.wc-block-product .wc-block-components-product-image { margin-bottom: 12px; border-radius: 14px; overflow: hidden; background: #fff; }
.wc-block-product-template > li.wc-block-product .wc-block-components-product-image img { border-radius: 14px; }
.wc-block-product-template > li.wc-block-product .wp-block-post-title { padding: 0 4px; }
.wc-block-product-template > li.wc-block-product .wc-block-components-product-button { margin-bottom: 0; }
@media (max-width: 600px) {
  /* two narrow cards per row on phones: less padding so the list button keeps one line */
  .wc-block-product-template > li.wc-block-product, .mfs-home .woocommerce ul.products li.product { padding: 6px 6px 10px; border-radius: 16px; }
  .wc-block-product-template > li.wc-block-product .wc-block-components-product-image,
  .wc-block-product-template > li.wc-block-product .wc-block-components-product-image img, .mfs-home .woocommerce ul.products li.product img { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  .wc-block-product-template > li.wc-block-product { transition: none; }
  .wc-block-product-template > li.wc-block-product:hover { transform: none; }
}
/* satin sheen on every product card (block lists and the home grid): bands 220% wide, moved on hover */
.wc-block-product-template > li.wc-block-product,
.mfs-home .woocommerce ul.products li.product {
  background-size: 220% 220%; background-position: 0% 0%; background-repeat: no-repeat;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease, background-position 0.9s ease;
}
.wc-block-product-template > li.wc-block-product:hover,
.mfs-home .woocommerce ul.products li.product:hover { background-position: 100% 100%; }
@media (prefers-reduced-motion: reduce) {
  .wc-block-product-template > li.wc-block-product, .mfs-home .woocommerce ul.products li.product { transition: none; }
}
/* home grid card insides like the shop cards (satca): square photo, serif centered name, light centered price, space under the button */
.mfs-home .woocommerce ul.products li.product img { aspect-ratio: 1 / 1; margin-bottom: 12px; }
.mfs-home .woocommerce ul.products li.product .woocommerce-loop-product__title { font-family: var(--wp--preset--font-family--display); font-size: var(--wp--preset--font-size--medium); line-height: 1.4; text-align: center; margin: 0 0 12px; }
.mfs-home .woocommerce ul.products li.product .price { padding: 0; margin: 0; text-align: center; font-size: 14px; font-weight: 300; line-height: 1.5; }
.mfs-home .woocommerce ul.products li.product .price .mfs-price-from { font-weight: 400; }
.mfs-home .woocommerce ul.products li.product .button { margin: 28px 0 16px; }
/* the home template's auto-paragraphs wrap price + button in a <p>, add an empty <p> under the photo and <br>s: drop those extra lines and margins */
.mfs-home .woocommerce ul.products li.product br { display: none; }
.mfs-home .woocommerce ul.products li.product .woocommerce-LoopProduct-link > p { margin: 0; }
.mfs-home .woocommerce ul.products li.product > p:last-of-type { margin-bottom: 0; }
/* Lenjerie tehnica panel (satca): the photo grows on hover; the button gets the satin sheen of the "Alege marimea" list buttons */
.mfs-home .mfs-feature-photo img { transition: transform 0.3s ease; }
.mfs-home .mfs-feature:has(a:hover) .mfs-feature-photo img, .mfs-home .mfs-feature-photo a:focus-visible img { transform: scale(1.04); }
.mfs-home .mfs-feature .mfs-button .wp-block-button__link {
  background-color: #03150c; background-image: var(--mfs-satin); background-size: 220% 100%; background-position: 0% 50%; background-repeat: no-repeat;
  border-color: #03150c; color: var(--mfs-paper); box-shadow: 0 1px 2px rgba(22, 24, 20, 0.12);
  transition: background-position 450ms ease, border-color 150ms ease, transform 150ms ease;
}
.mfs-home .mfs-feature .mfs-button .wp-block-button__link:hover { background-color: #03150c; background-position: 100% 50%; border-color: #03150c; color: var(--mfs-paper); transform: translateY(-1px); }
@media (prefers-reduced-motion: reduce) {
  .mfs-home .mfs-feature-photo img, .mfs-home .mfs-feature .mfs-button .wp-block-button__link { transition: none; }
  .mfs-home .mfs-feature:has(a:hover) .mfs-feature-photo img, .mfs-home .mfs-feature-photo a:focus-visible img { transform: none; }
}
/* category tiles + line cards (satca, option B): today's look at rest; on hover a soft light band sweeps once across the card.
   Tiles: a::after is already the whole-tile link, so the band is the figure's ::before, sized like the photo (4:5, square in the phone slider). */
.mfs-home .mfs-tile::before, .mfs-line-card::after {
  content: ""; position: absolute; z-index: 2; pointer-events: none;
  background-image: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.55) 50%, transparent 65%);
  background-size: 250% 100%; background-position: 120% 0; background-repeat: no-repeat;
}
.mfs-home .mfs-tile::before { top: 0; left: 0; right: 0; aspect-ratio: 4 / 5; border-radius: 22px; }
.mfs-line-card::after { inset: 0; background-image: linear-gradient(115deg, transparent 35%, rgba(198, 241, 53, 0.16) 50%, transparent 65%); }
.mfs-home .mfs-tile:has(a:hover)::before, .mfs-home .mfs-tile:has(a:focus-visible)::before,
.mfs-line-card:hover::after, .mfs-line-card:focus-within::after { background-position: -20% 0; transition: background-position 0.9s ease; }
@media (max-width: 600px) { .mfs-home .mfs-slide .mfs-tile::before { aspect-ratio: 1 / 1; } }
@media (prefers-reduced-motion: reduce) { .mfs-home .mfs-tile::before, .mfs-line-card::after { display: none; } }

/* ---------- shop filters (satca, variant A: tick-box lists): Pentru, Marime, Culoare in a left column; "Filtreaza produsele" panel under 782px ---------- */
.mfs-shop-layout { gap: clamp(20px, 3vw, 40px); margin-top: 0.5rem; }
.mfs-shop-layout > .wp-block-column { min-width: 0; }
.mfs-filters { font-family: var(--wp--preset--font-family--sans); font-size: 15px; line-height: 1.4; color: var(--mfs-ink);
  --wc-product-filter-block-spacing: 0; --wc-product-filter-checkbox-list-option-element: #fff; --wc-product-filter-checkbox-list-option-element-border: #8b9286;
  --wc-product-filter-checkbox-list-option-element-selected: var(--mfs-paper); }
.mfs-filters .mfs-filters__title { margin: 0 0 10px; font-family: inherit; font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mfs-green); }
.mfs-filters .wp-block-woocommerce-product-filter-attribute, .mfs-filters .wp-block-woocommerce-product-filter-taxonomy { padding: 12px 0; border-top: 1px solid var(--mfs-line); }
.mfs-filters .wp-block-woocommerce-product-filter-attribute h3, .mfs-filters .wp-block-woocommerce-product-filter-taxonomy h3 { margin: 0 0 8px; font-family: inherit; font-size: 15px; font-weight: 600; letter-spacing: 0; }
.mfs-filters .wc-block-product-filter-checkbox-list__items { display: grid; gap: 7px; max-height: 232px; overflow-y: auto; overscroll-behavior: contain; padding: 2px 4px 2px 2px; }
.mfs-filters .wc-block-product-filter-checkbox-list__label { font-size: 14px; font-weight: 400; cursor: pointer; }
.mfs-filters .wc-block-product-filter-checkbox-list__text-wrapper { font-size: 1em; }
.mfs-filters .wc-block-product-filter-checkbox-list__count { color: var(--mfs-muted); font-size: 12px; }
.mfs-filters .wc-block-product-filter-checkbox-list__input-wrapper::before { display: none; }
.mfs-filters input[type=checkbox].wc-block-product-filter-checkbox-list__input { width: 16px; height: 16px; border-radius: 4px; }
.mfs-filters input[type=checkbox].wc-block-product-filter-checkbox-list__input:checked { background: var(--mfs-green); border-color: var(--mfs-green); }
.mfs-filters svg.wc-block-product-filter-checkbox-list__mark { width: 16px; height: 16px; padding: 3px; }
.mfs-filters input[type=checkbox].wc-block-product-filter-checkbox-list__input:focus-visible { outline: 2px solid var(--mfs-green); outline-offset: 2px; }
/* active filters: small pills + "Sterge filtrele" text button */
.mfs-filters .wp-block-woocommerce-product-filter-active { padding: 0 0 12px; }
.mfs-filters .wc-block-product-filter-removable-chips__items { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 0; list-style: none; }
.mfs-filters .wc-block-product-filter-removable-chips__item { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border: 0; border-radius: 999px; background: #e3ecdd; font-size: 12px; }
.mfs-filters .wc-block-product-filters__clear-button .wp-block-button__link { padding: 0; border: 0; background: none; color: var(--mfs-green); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
/* phones/tablets: the block's "Filtreaza produsele" button opens the panel; satin pill like the list buttons */
.mfs-filters .wc-block-product-filters__open-overlay { gap: 6px; padding: 10px 18px 10px 14px; border: 1px solid #03150c; border-radius: 999px; color: var(--mfs-paper);
  background-color: #03150c; background-image: var(--mfs-satin); font-family: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.mfs-filters .wc-block-product-filters__overlay-content { padding: 4px 20px 16px; }
@media (max-width: 781px) { .mfs-filters .wc-block-product-filters__overlay-content .wc-block-product-filter-checkbox-list__items { max-height: none; overflow: visible; } }
.mfs-filters .wc-block-product-filters__apply { min-height: 2.75rem; border: 0; border-radius: 999px; background: #03150c; color: var(--mfs-paper); font-family: inherit; font-weight: 700; cursor: pointer; }
.mfs-filters .wc-block-product-filters__open-overlay:focus-visible, .mfs-filters .wc-block-product-filters__apply:focus-visible { outline: 3px solid var(--mfs-lime); outline-offset: 2px; }
@media (max-width: 781px) { .mfs-shop-layout { gap: 12px; } .mfs-shop-filters { flex-basis: auto !important; } }
/* desktop filter column: every option label on one line (satca 2026-11-18); ellipsis only as a guard for future longer names */
@media (min-width: 782px) { .mfs-filters .wc-block-product-filter-checkbox-list__label { white-space: nowrap; min-width: 0; }
  .mfs-filters .wc-block-product-filter-checkbox-list__text-wrapper { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } }

/* footer: Jolidon-like structure, variant B (brand + company data | Servicii clienti | Centru de ajutor; bottom bar with payment and ANPC SAL) */
.mfs-footer__cols { gap: clamp(24px, 4vw, 56px); }
.mfs-footer__title { margin: 0 0 12px; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mfs-lime); }
.mfs-footer__list { list-style: none; margin: 0; padding: 0; }
.mfs-footer__list li { margin: 0 0 8px; }
.mfs-footer__list a { display: inline-block; padding: 2px 0; }
.mfs-footer .mfs-todo { background: #fff3a8; color: #2b2a00; border-radius: 3px; padding: 0 4px; }
.mfs-footer__bar { gap: 14px 28px; }
.mfs-footer__bar p { margin: 0; }
.mfs-footer__pay { color: #d9e3d2; }
.mfs-footer__badge { display: inline-block; margin-left: 6px; padding: 3px 9px; border: 1px solid rgba(255, 253, 249, 0.35); border-radius: 6px; color: var(--mfs-paper); }
.mfs-footer__sal { display: inline-block; line-height: 0; border-radius: 4px; }
.mfs-footer__sal img { display: block; width: 250px; height: 50px; object-fit: contain; background: #fff; border-radius: 4px; }
@media (max-width: 781px) {
  .mfs-footer__cols { display: grid !important; grid-template-columns: 1fr 1fr; }
  .mfs-footer__cols > .mfs-footer__brand { grid-column: 1 / -1; }
}

/* ---------- phone navigation (satca, option D): category bar + "Mai mult" drawer ----------
   Phones (<=600px, where core Navigation switched to its hamburger): the core menu is hidden and
   .mfs-mnav (parts/header.html) shows Barbati / Femei / Copii / Mai mult as a row under the search.
   "Mai mult" opens a native <dialog> from the right (assets/mobile-nav.js). Tablets and desktop are unchanged. */
.mfs-mnav { display: none; }
@media (max-width: 600px) {
  .mfs-site-header .mfs-nav { display: none !important; }
  /* The bar hangs under the header (absolute, 58px) and the header wrapper keeps 58px of space for it,
     so hiding it while scrolling down (assets/mobile-nav.js adds .is-mnav-hidden) never moves the page. */
  .wp-site-blocks > .wp-block-template-part:has(> .mfs-site-header) { margin-bottom: 58px; }
  .mfs-site-header { border-bottom-width: 0; }
  .mfs-mnav {
    display: block; position: absolute; top: 100%; left: 0; right: 0; box-sizing: border-box; height: 58px;
    padding: 2px clamp(20px, 4vw, 56px) 12px; background-color: #03150c; background-image: var(--mfs-satin);
    border-bottom: 1px solid rgba(255, 253, 249, 0.12);
    clip-path: inset(0 0 0 0); transition: clip-path 0.2s ease, visibility 0s linear 0s;
  }
  .mfs-site-header.is-mnav-hidden .mfs-mnav { clip-path: inset(0 0 100% 0); visibility: hidden; transition: clip-path 0.2s ease, visibility 0s linear 0.2s; }
  .mfs-mnav__bar {
    display: flex; gap: 6px; margin: 0; padding: 2px 0; list-style: none;
    overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
  }
  .mfs-mnav__bar::-webkit-scrollbar { display: none; }
  .mfs-mnav__bar > li { flex: 1 0 auto; margin: 0; } /* chips share the row; it scrolls only below ~330px or if links are added */
  .mfs-mnav__chip {
    box-sizing: border-box; display: flex; align-items: center; justify-content: center; gap: 4px; width: 100%; min-height: 2.75rem; padding: 0 10px;
    border: 1px solid rgba(255, 253, 249, 0.35); border-radius: 999px; background: transparent;
    color: var(--mfs-paper); font: inherit; font-size: 0.9rem; font-weight: 600; line-height: 1;
    text-decoration: none; white-space: nowrap; cursor: pointer;
  }
  .mfs-mnav__chip:hover { border-color: var(--mfs-lime); }
  .mfs-mnav__chip[aria-current="page"] { background: var(--mfs-lime); border-color: var(--mfs-lime); color: var(--mfs-ink); }
  .mfs-mnav__more svg { flex: 0 0 auto; }
}
/* drawer (top layer, so the header's colours do not apply) */
.mfs-mnav__drawer {
  box-sizing: border-box; position: fixed; inset: 0 0 0 auto; width: min(84vw, 340px); height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--mfs-ivory); color: var(--mfs-ink); visibility: visible;
  box-shadow: -6px 0 24px rgba(0, 0, 0, 0.2);
}
.mfs-mnav__drawer[open] { display: flex; flex-direction: column; animation: mfs-mnav-in 0.22s ease-out; }
.mfs-mnav__drawer::backdrop { background: rgba(3, 21, 12, 0.55); }
@keyframes mfs-mnav-in { from { transform: translateX(100%); } to { transform: none; } }
.mfs-mnav__head {
  display: flex; align-items: center; justify-content: space-between; padding: 10px 10px 10px 20px;
  background-color: #03150c; background-image: var(--mfs-satin); color: var(--mfs-paper);
}
.mfs-mnav__title { margin: 0; font-weight: 700; font-size: 1rem; }
.mfs-mnav__close {
  display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px;
  border: 0; border-radius: 10px; background: transparent; color: var(--mfs-paper); cursor: pointer;
}
.mfs-mnav__close:hover { background: rgba(255, 253, 249, 0.1); }
.mfs-mnav__list { margin: 0; padding: 6px 0; list-style: none; overflow-y: auto; }
.mfs-mnav__list li { margin: 0; border-bottom: 1px solid var(--mfs-line); }
.mfs-mnav__list a { display: block; padding: 14px 20px; color: var(--mfs-ink); font-weight: 600; text-decoration: none; }
.mfs-mnav__list a:hover { background: var(--mfs-sand); }
.mfs-site-header .mfs-mnav__chip:focus-visible, .mfs-site-header .mfs-mnav__close:focus-visible { outline: 2px solid var(--mfs-lime); outline-offset: 2px; }
.mfs-site-header .mfs-mnav__list a:focus-visible { outline: 2px solid var(--mfs-green); outline-offset: -3px; }
html:has(.mfs-mnav__drawer[open]) { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { .mfs-mnav__drawer[open] { animation: none; } .mfs-mnav, .mfs-site-header.is-mnav-hidden .mfs-mnav { transition: none; } }

/* ---------- product page on phones: title, photo, thumbnails, colour, size, price + add to cart, then description ----------
   The two columns and the add-to-cart form are flattened (display: contents) so every block can be re-ordered
   inside .wp-block-columns. Desktop (782px and up) keeps the two-column layout untouched. */
@media (max-width: 781px) {
  /* row + wrap: every block takes a full line, except price and delivery time which share one line */
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 0 1rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-add-to-cart-form,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) form.variations_form,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) form.variations_form .single_variation_wrap { display: contents; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column > *,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) form.variations_form > *,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .single_variation_wrap > * { flex: 0 0 100%; margin-block: 0; min-width: 0; max-width: 100%; box-sizing: border-box; }

  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) h1.wp-block-post-title { order: 1; margin-bottom: 0.75rem; font-size: 1.5rem; line-height: 1.2; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-woocommerce-product-image-gallery { order: 2; margin-bottom: 1rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) table.variations { order: 3; margin-bottom: 0.5rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-woocommerce-product-price { order: 4; flex: 0 0 auto; margin-bottom: 0.25rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column > .wpced { order: 4; flex: 1 1 auto; margin-bottom: 0.25rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .single_variation { order: 5; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .woocommerce-variation-add-to-cart { order: 6; margin-top: 0.5rem; }
  /* simple products: price sits right above the (unflattened) form */
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-add-to-cart-form > form.cart:not(.variations_form) { order: 6; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-woocommerce-product-meta { order: 8; margin-top: 1rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-woocommerce-product-price .price,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-woocommerce-product-price .wc-block-components-product-price { font-size: 1.4rem; font-weight: 700; }

  /* main photo: at most 40% of the screen height, whole photo visible */
  .single-product .woocommerce-product-gallery .woocommerce-product-gallery__image img { width: 100%; max-height: 40vh; object-fit: contain; }
  /* thumbnails: one row of 60px tiles, swipe sideways */
  .single-product .woocommerce-product-gallery .flex-control-thumbs {
    display: flex; flex-wrap: nowrap; gap: 8px; margin: 8px 0 0; padding: 0 0 4px;
    overflow-x: auto !important; overflow-y: hidden !important; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch;
  }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li { flex: 0 0 60px; width: 60px !important; float: none !important; margin: 0 !important; }
  .single-product .woocommerce-product-gallery .flex-control-thumbs li img { width: 60px; height: 60px; object-fit: cover; border-radius: 6px; }
}

/* ---------- product page, all widths: one description (the Descriere tab), tighter option labels ---------- */
.single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-post-excerpt { display: none; }
.mfs-vb-ready table.variations th.label { padding: 0 !important; margin: 0 0 6px !important; line-height: 1.3 !important; }
.mfs-vb-ready table.variations th.label label { display: inline-block; margin: 0 !important; line-height: 1.3; }
/* desktop: price and delivery time on one line under the title */
@media (min-width: 782px) {
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:has(> .wp-block-woocommerce-product-price) { display: flex; flex-wrap: wrap; align-items: center; align-content: flex-start; gap: 1.2rem 1rem; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column:has(> .wp-block-woocommerce-product-price) > * { flex: 0 0 100%; min-width: 0; margin-block: 0; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column > .wp-block-woocommerce-product-price,
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column > .wpced { flex: 0 0 auto; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) > .wp-block-column > .wpced { margin-block-start: 0; }
}

/* ---------- shop and category toolbar: "Pe pagina" / "Afisare" dropdowns next to "Sortare" (functions.php) ---------- */
.mfs-view-controls { display: flex; flex-wrap: nowrap; gap: 0.75rem; align-items: center; font-size: 0.88rem; }
.mfs-view-group { display: inline-flex; align-items: center; gap: 0.4rem; white-space: nowrap; }
.mfs-view-label { margin: 0; color: var(--mfs-muted); }
.mfs-view-select,
.wp-block-woocommerce-catalog-sorting select.orderby {
  min-height: 2.5rem; padding: 0.35rem 2rem 0.35rem 0.75rem; border: 1px solid var(--mfs-line); border-radius: 999px;
  background-color: var(--mfs-paper); color: var(--mfs-ink); font: inherit; font-size: 0.88rem; cursor: pointer;
}
.mfs-view-select:focus-visible,
.wp-block-woocommerce-catalog-sorting select.orderby:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: 2px; }
.wp-block-woocommerce-catalog-sorting .woocommerce-ordering { margin: 0; }
.mfs-view-links { display: inline-flex; flex-wrap: wrap; gap: 0.3rem; }

/* phones and small tablets: "Filtre", Sortare, Pe pagina and Afisare in one row; the row scrolls sideways when it is wider than the screen */
@media (max-width: 781px) {
  .mfs-shop-layout { flex-wrap: wrap !important; align-items: center; gap: 0 0.6rem !important; }
  .mfs-shop-layout > .mfs-shop-products,
  .mfs-shop-layout > .mfs-shop-products > .wp-block-group:has(> .wp-block-woocommerce-catalog-sorting) { display: contents; }
  .mfs-shop-layout > .mfs-shop-filters { order: 1; flex: 0 0 auto !important; width: auto; margin: 0; }
  .wp-block-columns.mfs-shop-layout:not(.is-not-stacked-on-mobile) > .wp-block-column.mfs-shop-filters { flex-basis: auto !important; }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting {
    order: 2; flex: 1 1 0; min-width: 0; margin: 0; flex-wrap: nowrap; gap: 0.6rem; justify-content: flex-start;
    overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; padding: 4px 2px;
  }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting::-webkit-scrollbar { display: none; }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting > * { flex: 0 0 auto; }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting select.orderby { max-width: 11rem; }
  .mfs-shop-layout .wp-block-woocommerce-product-results-count { order: 3; flex: 0 0 100% !important; margin: 0.6rem 0 0; font-size: 0.85rem; }
  .mfs-shop-layout > .mfs-shop-products > .wp-block-woocommerce-product-collection { order: 4; flex: 0 0 100%; min-width: 0; margin-top: 0.75rem; }
  /* the sorting dropdown comes first in the scroll row, the view dropdowns after it */
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting .mfs-view-controls { order: 2; }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting .woocommerce-ordering { order: 1; }
  /* short visible label "Filtre"; the full "Filtreaza produsele" text stays for screen readers */
  .mfs-shop-filters .wc-block-product-filters__open-overlay { min-height: 2.5rem; padding: 0.35rem 0.9rem 0.35rem 0.6rem; border-radius: 999px; }
  .mfs-shop-filters .wc-block-product-filters__open-overlay > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mfs-shop-filters .wc-block-product-filters__open-overlay::after { content: "Filtre"; content: "Filtre" / ""; }
}

/* desktop header menu: the current section gets the same lime pill as the phone chips */
.mfs-site-header .mfs-nav .wp-block-navigation-item__content[aria-current="page"] {
  margin: -0.3em -0.75em; padding: 0.3em 0.75em; border-radius: 999px; background: var(--mfs-lime); color: var(--mfs-ink) !important;
}
.mfs-site-header .mfs-nav .wp-block-navigation-item__content[aria-current="page"]::after { display: none; }

/* visually hidden but read by screen readers and search engines (shop/category H1, templates/archive-product.html) */
.mfs-sr-only { position: absolute !important; width: 1px !important; height: 1px !important; margin: -1px !important; padding: 0 !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; border: 0 !important; }

/* ---------- shop toolbar dropdowns in the "Filtre" button style: dark satin pill, white bold text, light arrow ---------- */
.mfs-view-select,
.wp-block-woocommerce-catalog-sorting select.orderby {
  -webkit-appearance: none; appearance: none;
  border: 1px solid #03150c; color: var(--mfs-paper); font-weight: 700 !important; font-size: 14px;
  background-color: #03150c;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23fffdf9' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"), var(--mfs-satin);
  background-repeat: no-repeat, no-repeat; background-position: right 0.75rem center, 0 0; background-size: 14px 14px, 100% 100%;
}
.mfs-view-select option,
.wp-block-woocommerce-catalog-sorting select.orderby option { background: var(--mfs-paper); color: var(--mfs-ink); font-weight: 400; }
.mfs-view-select:focus-visible,
.wp-block-woocommerce-catalog-sorting select.orderby:focus-visible { outline: 3px solid var(--mfs-lime); outline-offset: 2px; }

/* ---------- phones: no "Pe pagina" dropdown; "Incarca mai multe produse" replaces the page numbers (assets/view-controls.js) ---------- */
.mfs-loadmore { display: none; }
@media (max-width: 781px) {
  .mfs-view-group:has(> select[data-mfs-view="pe_pagina"]) { display: none; }
  .mfs-loadmore-ready .mfs-shop-products .wp-block-query-pagination { display: none; }
  .mfs-loadmore-ready .mfs-shop-layout .mfs-loadmore { order: 5; flex: 0 0 100%; display: flex; flex-direction: column; align-items: center; gap: 0.4rem; margin: 1.25rem 0 0.5rem; }
  .mfs-loadmore-ready .mfs-shop-products:not(:has(.wp-block-query-pagination-next)) .mfs-loadmore { display: none; }
  .mfs-loadmore__btn {
    display: inline-flex; align-items: center; justify-content: center; width: 100%; max-width: 22rem; min-height: 3rem; padding: 0.6rem 1.25rem;
    border: 1px solid #03150c; border-radius: 999px; color: var(--mfs-paper); background-color: #03150c; background-image: var(--mfs-satin);
    font-family: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
  }
  .mfs-loadmore__btn:disabled { opacity: 0.7; cursor: progress; }
  .mfs-loadmore__btn:focus-visible { outline: 3px solid var(--mfs-lime); outline-offset: 2px; }
  .mfs-loadmore__status { margin: 0; font-size: 0.8rem; color: var(--mfs-muted); min-height: 1em; }
}

/* phones: tighter gaps small photos -> "Culoare" and colour cards -> "Marime" */
@media (max-width: 781px) {
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .wp-block-woocommerce-product-image-gallery { margin-bottom: 14px; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .woocommerce-product-gallery { margin-bottom: 0 !important; }
  .mfs-vb-ready table.variations tr { margin-bottom: 14px; }
  .mfs-vb-ready table.variations td.value { padding-bottom: 0 !important; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) table.variations { margin-bottom: 0 !important; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .single_variation, .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .single_variation p.stock { margin: 0 !important; }
  .single-product .wp-block-columns:has(.wp-block-woocommerce-product-image-gallery) .woocommerce-variation-add-to-cart { margin-top: 10px !important; }
}

/* product page, all widths: no "Anuleaza" (clear selection) link; a colour and a size are always preselected */
.single-product .reset_variations { display: none !important; }

/* Twenty Twenty-Five draws a 2px dark outline on every focused element, also after a mouse click or tap
   (the black square on photos and cards). Keep the outline only for keyboard focus (:focus-visible). */
.wp-site-blocks :focus:not(:focus-visible) { outline: none; }

/* phones: Filtre + Sortare + Mari/Medii/Mici on one line, no sideways scrolling; no visible "Afisare" label
   (it stays for screen readers as the dropdown's name) */
@media (max-width: 781px) {
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting { overflow: visible; padding: 0; gap: 8px; }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting .woocommerce-ordering { flex: 1 1 auto; min-width: 0; }
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting select.orderby { width: 100%; max-width: none; }
  .mfs-shop-layout .mfs-view-controls { flex: 0 0 auto; gap: 0; }
  .mfs-shop-layout .mfs-view-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .mfs-shop-layout .mfs-view-select,
  .mfs-shop-layout .wp-block-woocommerce-catalog-sorting select.orderby { font-size: 13px; padding-left: 0.7rem; padding-right: 1.9rem; background-position: right 0.65rem center, 0 0; }
  .mfs-shop-filters .wc-block-product-filters__open-overlay { padding-right: 0.75rem; }
}

/* ---------- transparent product photos on cards (satca, 2026-11-17) ----------
   The card covers are now cut-outs (<name>.webp with alpha). No white/ivory box behind any card photo,
   so the product sits on the green card. Soft shadow follows the product outline (drop-shadow uses the
   alpha), applied only to real cut-outs: .webp files that are not the .jpg.webp speed copies. */
.wc-block-product-template > li.wc-block-product .wc-block-components-product-image,
.wc-block-product-template > li.wc-block-product .wc-block-components-product-image img,
.mfs-home .woocommerce ul.products li.product img { background: transparent; }
.wc-block-product-template > li.wc-block-product .wc-block-components-product-image img[src$=".webp"]:not([src$=".jpg.webp"]),
.mfs-home .woocommerce ul.products li.product img[src$=".webp"]:not([src$=".jpg.webp"]) {
  filter: drop-shadow(0 6px 8px rgba(23, 51, 26, 0.18)) drop-shadow(0 0 1px rgba(23, 51, 26, 0.25));
}

/* Review form (Recenzii tab): fields use the page font and size instead of browser defaults (13px monospace/Arial). */
#review_form input[type="text"],
#review_form input[type="email"],
#review_form textarea {
  font: inherit; color: var(--mfs-ink); background: var(--mfs-paper);
  border: 1px solid var(--mfs-line); border-radius: 10px;
  padding: 0.6rem 0.8rem; width: 100%; max-width: 100%; box-sizing: border-box;
}
#review_form textarea { min-height: 8em; resize: vertical; }
#review_form input[type="text"]:focus-visible,
#review_form input[type="email"]:focus-visible,
#review_form textarea:focus-visible { outline: 2px solid var(--mfs-green); outline-offset: 2px; border-color: var(--mfs-ink); }

/* Product card rating (functions.php, render_block_core/post-title): stars + review count under the name,
   only for products with approved reviews. Same star size as the home grid. */
.wc-block-product-template > li.wc-block-product .mfs-card-rating { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 0 0 0.6rem; line-height: 1; }
.wc-block-product-template > li.wc-block-product .mfs-card-rating .star-rating { float: none; margin: 0; font-size: 0.857em; }
.wc-block-product-template > li.wc-block-product .mfs-card-rating__count { font-family: Georgia, ui-serif, serif; font-size: 0.85em; color: var(--mfs-ink, #161814); white-space: nowrap; }
.wc-block-product-template > li.wc-block-product .mfs-card-rating { flex-wrap: wrap; row-gap: 4px; } /* narrow phone cards: count drops under the stars as one piece */

/* Stars everywhere (cards, home grid, product page, review list) - satca 2026-11-17:
   solid stars; empty part = same dark green faded, filled part = the satin of the "Alege marimea" button.
   Box width = exactly 5 star glyphs (5.25em, no letter-spacing) so a 4.67 average fills 4 2/3 stars, not more. */
.star-rating,
.wc-block-components-product-rating__stars { width: 5.25em !important; letter-spacing: 0; color: #03150c; }
.star-rating::before,
.wc-block-components-product-rating__stars::before { content: "SSSSS" !important; color: #03150c !important; opacity: 0.2 !important; white-space: nowrap; }
.star-rating span::before,
.wc-block-components-product-rating__stars span::before { color: #03150c !important; white-space: nowrap; } /* nowrap: else the 5th (partial) star drops to a hidden 2nd line */
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .star-rating span::before,
  .wc-block-components-product-rating__stars span::before {
    background-image: var(--mfs-satin); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  }
}

/* Hover zoom on product photos (2026-11-18): WooCommerce paints .zoomImg white (#fff) so the
   normal photo under it does not show through. Make the zoom layer transparent and hide the
   normal photo while the zoom is visible, so cut-outs stay transparent with no double image.
   Mouse devices only; jquery.zoom fades .zoomImg in over 120ms. */
@media (hover: hover) and (pointer: fine) {
  .woocommerce div.product div.images .woocommerce-product-gallery__wrapper .zoomImg { background-color: transparent; }
  .woocommerce-product-gallery__image:has(> .zoomImg) > a > img { transition: opacity .12s ease; }
  .woocommerce-product-gallery__image:has(> .zoomImg):hover > a > img { opacity: 0; }
}

/* Site background: one color everywhere, including the mini-cart drawer. */
.wc-block-components-drawer.wc-block-mini-cart__drawer, .wc-block-mini-cart__drawer .components-modal__content { background: var(--mfs-ivory); }
/* ---------- home slider: only 2 big arrows over the slide's bottom corners (no labelled dots, no bar strip);
   phones keep no controls (rule further up, max-width 600px). Home page: no gap under the sticky header. ---------- */
.wp-site-blocks > main.mfs-home { margin-top: 0 !important; }
@media (min-width: 601px) {
  .mfs-slider { padding-bottom: 0; }
  .mfs-slider__bar {
    position: absolute; left: 0; right: 0; bottom: 16px; min-height: 0; padding: 0 16px;
    justify-content: space-between; background: transparent; border: 0; pointer-events: none;
  }
  .mfs-slider__bar .mfs-slider__arrow {
    pointer-events: auto; width: 3.5rem; min-width: 3.5rem; height: 3.5rem; padding: 0 0 0.2rem;
    font-size: 2.4rem; font-weight: 400; line-height: 1;
    background: var(--mfs-paper); color: var(--mfs-ink); border: 1px solid var(--mfs-ink);
    box-shadow: 0 4px 14px rgba(3, 21, 12, 0.22);
  }
  .mfs-slider__bar .mfs-slider__arrow:hover { background: var(--mfs-lime); }
  /* position dots: small circles just left of the right arrow, on a light pill so they show on the dark slide too */
  .mfs-slider__bar .mfs-slider__dots {
    pointer-events: auto; margin-left: auto; margin-right: 12px; display: flex; flex-wrap: nowrap; align-items: center; gap: 0;
    height: 3.5rem; padding: 0 12px; box-sizing: border-box; border-radius: 999px; /* as tall as the arrows */
    background: var(--mfs-paper); border: 1px solid var(--mfs-ink); box-shadow: 0 4px 14px rgba(3, 21, 12, 0.22);
  }
  .mfs-slider__bar .mfs-slider__dot {
    width: 2.5rem; height: 100%; padding: 0; border: 0; border-radius: 999px; background: transparent; font-size: 0; cursor: pointer;
  }
  .mfs-slider__bar .mfs-slider__dot::after {
    content: ""; display: block; width: 14px; height: 14px; margin: auto; border-radius: 7px; background: var(--mfs-muted);
    transition: width .25s ease, background-color .25s ease;
  }
  .mfs-slider__bar .mfs-slider__dot:hover { background: transparent; }
  .mfs-slider__bar .mfs-slider__dot:hover::after { background: var(--mfs-ink); }
  .mfs-slider__bar .mfs-slider__dot[aria-current="true"] { border-color: transparent; }
  .mfs-slider__bar .mfs-slider__dot[aria-current="true"]::after { width: 32px; background: var(--mfs-ink); }
  .mfs-slider__bar .mfs-slider__dot:focus-visible { outline: 3px solid var(--mfs-green); outline-offset: -3px; }
  /* keep slide content clear of the arrows: 16px offset + 56px arrow + 16px air */
  .mfs-slide > * { padding-bottom: 88px !important; }
}
/* ---------- home kickers (section labels): a full-width pill on the section's content width, so its left edge lines up
   with the heading on wide screens and its right edge ends where the section content ends; bigger lime dot.
   Labels in a text column (hero, Lenjerie tehnica) span that column. ---------- */
.mfs-home .mfs-kicker { display: flex; box-sizing: border-box; }
.mfs-home .mfs-kicker::before { flex: 0 0 auto; width: 10px; height: 10px; box-shadow: 0 0 0 4px rgba(198, 241, 53, 0.28); }
/* In stoc acum: the label sits above the heading + "Vezi tot magazinul" row and runs to the end of that link */
.mfs-home .mfs-section-head > .wp-block-group:has(> .mfs-kicker) { display: contents; }
.mfs-home .mfs-section-head > .wp-block-group > .mfs-kicker { flex: 1 0 100%; margin-bottom: calc(14px - 1rem); } /* 14px to the heading after the row's 1rem gap; a wrapped link keeps its 1rem */
/* Despre: the label spans the whole card from its left padding edge, not the centred 880px text column */
.mfs-home .mfs-about.is-layout-constrained > .mfs-kicker { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; }
/* Lenjerie tehnica: 14px from the label to the photo + text card, like the other sections (no block gap) */
.mfs-home .mfs-section > .mfs-kicker + .mfs-feature { margin-top: 0 !important; }
/* ---------- home slider: every slide starts at the top (no vertical centring), so the label sits at the same height and
   the same left edge on every slide while they slide; smaller top padding moves the content up ---------- */
.mfs-slide > * { justify-content: flex-start !important; padding-top: clamp(16px, 2vw, 28px) !important; }
.mfs-home .mfs-slide .mfs-hero > .mfs-hero-grid { max-width: 1320px; }
/* hero: the label now sits above the text + photos row and spans the slide's content width (1320px like the other slides) */
.mfs-home .mfs-slide .mfs-hero > .mfs-kicker { max-width: 1320px; }
.mfs-home .mfs-hero > .mfs-kicker + .mfs-hero-grid { margin-top: 0 !important; }
/* ---------- home slider fill (preview approved 2026-11-18): every slide fills the same height on tablet/desktop,
   the slider gets shorter and the arrows sit right under the content ---------- */
@media (min-width: 782px) {
  .mfs-home .mfs-slide { --mfs-fill: clamp(430px, 40vw, 540px); }
  .mfs-home .mfs-slide > * { padding-bottom: 84px !important; } /* 16px offset + 56px arrow + 12px air */
  /* hero: the 3 photos are one audience tile each (Barbati / Femei / Copii), equal columns, full fill height */
  .mfs-home .mfs-slide .mfs-hero-grid { min-height: var(--mfs-fill); }
  .mfs-home .mfs-slide .mfs-hero .mfs-hero-photos { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; grid-template-rows: 1fr !important; gap: 16px !important; }
  .mfs-home .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:first-child { grid-row: auto !important; }
  .mfs-home .mfs-slide .mfs-hero .mfs-hero-photo a { position: relative; flex: 1 1 auto; border-radius: 22px; background: var(--mfs-glow); overflow: hidden; }
  .mfs-home .mfs-slide .mfs-hero .mfs-hero-photo a img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; padding: 14px; box-sizing: border-box; transition: transform .3s ease; }
  .mfs-home .mfs-slide .mfs-hero .mfs-hero-photo a:hover img { transform: scale(1.04); }
  .mfs-home .mfs-slide .mfs-hero .mfs-hero-photo figcaption { display: block !important; margin: 10px 0 0 !important; text-align: center; font-weight: 700; font-size: 0.95rem; color: var(--mfs-ink); }
  /* Categorii: 12 categories in 2 rows of 6, square photos */
  .mfs-home .mfs-slide .mfs-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .mfs-home .mfs-slide .mfs-tile img { aspect-ratio: 1 / 1; object-fit: contain; }
  .mfs-home .mfs-slide .mfs-section-title { margin-bottom: 20px; }
  /* Lenjerie tehnica: photo capped at the fill height, chips shown again next to it */
  .mfs-home .mfs-slide .mfs-feature-photo img { height: var(--mfs-fill); width: 100%; aspect-ratio: auto; object-fit: contain; }
  .mfs-home .mfs-slide .mfs-feature .mfs-chips { display: flex !important; }
  .mfs-home .mfs-slide .mfs-feature > .wp-block-column:last-child > .wp-block-buttons { margin-top: 18px; }
}
@media (min-width: 782px) and (max-width: 1180px) {
  .mfs-home .mfs-slide .mfs-tile figcaption { font-size: 0.8rem; line-height: 1.2; white-space: normal; text-align: center; }
  .mfs-home .mfs-slide .mfs-tile figcaption::after { display: none; }
}
/* phones and small tablets: the slider keeps 6 category tiles and no product row, so each slide still fits one screen */
@media (max-width: 781px) {
  .mfs-home .mfs-slide .mfs-tiles > .mfs-tile:nth-child(n+7) { display: none; }
  .mfs-home .mfs-slide .mfs-tehnica-products { display: none; }
}
/* Lenjerie tehnica: 3 products from the category as compact cards (the whole card links to the product) */
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 16px 0 0 !important; padding: 0; }
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products::before, .mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products::after { display: none; }
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products li.product { width: auto !important; margin: 0 !important; float: none !important; padding: 10px !important; }
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products li.product img { height: clamp(72px, 6.5vw, 96px) !important; width: 100% !important; object-fit: contain; margin: 0 0 6px !important; aspect-ratio: auto !important; }
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce-loop-product__title { font-size: 0.8rem !important; line-height: 1.25 !important; padding: 0 !important; margin: 0 0 4px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.5em; }
.mfs-home .mfs-feature .mfs-tehnica-products .price { font-size: 0.9rem !important; margin: 0 !important; }
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products li.product .button,
.mfs-home .mfs-feature .mfs-tehnica-products .woocommerce ul.products li.product .added_to_cart,
.mfs-home .mfs-feature .mfs-tehnica-products .star-rating, .mfs-home .mfs-feature .mfs-tehnica-products .mfs-review-count { display: none !important; }
/* Lenjerie tehnica photo is a trimmed cut-out (no empty margin): never crop it, cap its height instead */
.mfs-home .mfs-feature-photo img { aspect-ratio: auto !important; height: auto !important; object-fit: contain; max-height: 420px; }
.mfs-home .mfs-feature-photo { display: flex; justify-content: center; }
@media (min-width: 782px) {
  .mfs-home .mfs-slide .mfs-feature-photo img { max-height: clamp(240px, 23vw, 330px); width: 100%; }
  .mfs-home .mfs-slide .mfs-feature { align-items: center !important; }
}
@media (max-width: 781px) { .mfs-home .mfs-slide .mfs-feature-photo img { max-height: 190px; } }
/* no prices on the product cards inside the slider (the section further down keeps them) */
.mfs-home .mfs-slide .mfs-tehnica-products .price { display: none !important; }
/* ---------- Lenjerie tehnica: two overlapping products (pattern 3810, group .mfs-duo). Active look: .mfs-duo--a (diagonal).
   Switch the look by changing the group class to mfs-duo--b (card + overlap) or mfs-duo--c (fanned cards). ---------- */
.mfs-home .mfs-duo { position: relative; width: 100%; height: clamp(300px, 34vw, 460px); isolation: isolate; margin: 0 !important; }
.mfs-home .mfs-slide .mfs-duo { height: clamp(300px, 30vw, 430px); }
.mfs-home .mfs-duo::before { content: ""; position: absolute; z-index: -1; border-radius: 50%; }
.mfs-home .mfs-duo > .mfs-duo__item { position: absolute; margin: 0 !important; transition: transform .35s ease; }
.mfs-home .mfs-duo__item a { display: block; }
.mfs-home .mfs-duo__item img { display: block; width: 100% !important; height: auto !important; aspect-ratio: auto !important; object-fit: contain !important; max-height: none !important;
  background: none !important; border-radius: 0 !important; filter: drop-shadow(0 18px 24px rgba(3, 21, 12, .22)); }
.mfs-home .mfs-duo__item figcaption { position: absolute; margin: 0 !important; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--mfs-paper); color: #03150c; font-size: 12px; font-weight: 700; line-height: 1; letter-spacing: .04em; text-transform: uppercase;
  box-shadow: 0 6px 16px rgba(3, 21, 12, .16); white-space: nowrap; pointer-events: none; }
.mfs-home .mfs-duo__item figcaption::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mfs-lime); box-shadow: 0 0 0 3px rgba(198, 241, 53, .3); }
/* A: diagonal duo on a lime glow */
.mfs-home .mfs-duo--a::before { inset: 8% 10%; background: radial-gradient(closest-side, rgba(198, 241, 53, .55), rgba(198, 241, 53, .12) 60%, transparent); }
.mfs-home .mfs-duo--a > .mfs-duo__item--back { width: 62%; left: 2%; top: 4%; transform: rotate(-8deg); }
.mfs-home .mfs-duo--a > .mfs-duo__item--front { width: 66%; right: 0; bottom: 6%; transform: rotate(6deg); z-index: 2; }
.mfs-home .mfs-duo--a > .mfs-duo__item--back figcaption { left: 6%; top: -6%; }
.mfs-home .mfs-duo--a > .mfs-duo__item--front figcaption { right: 4%; bottom: -10%; }
.mfs-home .mfs-duo--a > .mfs-duo__item--back:hover { transform: rotate(-8deg) translateY(-6px); }
.mfs-home .mfs-duo--a > .mfs-duo__item--front:hover { transform: rotate(6deg) translateY(-6px); }
/* B: back product on a satin card, front product overlapping the card edge */
.mfs-home .mfs-duo--b::before { left: 0; top: 4%; width: 68%; height: 82%; border-radius: 28px; background: var(--mfs-satin-light); box-shadow: inset 0 0 0 1px rgba(22, 24, 20, .06); }
.mfs-home .mfs-duo--b > .mfs-duo__item--back { width: 56%; left: 6%; top: 14%; }
.mfs-home .mfs-duo--b > .mfs-duo__item--front { width: 60%; right: 0; bottom: 2%; z-index: 2; }
.mfs-home .mfs-duo--b > .mfs-duo__item--back figcaption { left: 4%; top: -14%; }
.mfs-home .mfs-duo--b > .mfs-duo__item--front figcaption { right: 6%; bottom: -8%; background: #03150c; color: var(--mfs-paper); }
.mfs-home .mfs-duo--b > .mfs-duo__item:hover { transform: translateY(-6px); }
/* C: two white cards fanned out */
.mfs-home .mfs-duo--c > .mfs-duo__item { width: 54%; padding: 7% 6% 13%; box-sizing: border-box; border-radius: 24px; background: #fff; box-shadow: 0 18px 40px rgba(3, 21, 12, .16); }
.mfs-home .mfs-duo--c .mfs-duo__item img { filter: none; }
.mfs-home .mfs-duo--c > .mfs-duo__item--back { left: 4%; top: 6%; transform: rotate(-7deg); }
.mfs-home .mfs-duo--c > .mfs-duo__item--front { right: 4%; bottom: 4%; transform: rotate(5deg); z-index: 2; }
.mfs-home .mfs-duo--c .mfs-duo__item figcaption { left: 50%; bottom: 5%; transform: translateX(-50%); box-shadow: none; background: var(--mfs-ivory); }
.mfs-home .mfs-duo--c > .mfs-duo__item--back:hover { transform: rotate(-7deg) translateY(-6px); }
.mfs-home .mfs-duo--c > .mfs-duo__item--front:hover { transform: rotate(5deg) translateY(-6px); }
@media (max-width: 781px) {
  .mfs-home .mfs-slide .mfs-duo { height: 220px; }
  .mfs-home .mfs-duo__item figcaption { font-size: 10px; padding: 5px 9px; }
}
@media (prefers-reduced-motion: reduce) { .mfs-home .mfs-duo > .mfs-duo__item { transition: none; } }
/* ---------- home slider: slide backgrounds B (light / dark / light / dark): 1 Hero light, 2 Categorii dark, 3 Selectia light, 4 Lenjerie tehnica dark.
   Only the slides inside the slider change; the sections further down the page keep their own backgrounds. ---------- */
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(odd) > .mfs-hero,
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(odd) > .mfs-lines { background-color: #f4f7f0 !important; background-image: var(--mfs-satin-light) !important; }
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(even) > .mfs-section { background-color: #03150c !important; background-image: var(--mfs-satin) !important; }
/* Selectia on light: section text dark, the line cards keep their own dark look */
.mfs-home .mfs-slider__track > .mfs-slide > .mfs-lines .mfs-line-card { color: #fffdf9; }
.mfs-home .mfs-slider__track > .mfs-slide > .mfs-lines :is(h1, h2, .mfs-lead):not(.mfs-line-card *) { color: #161814 !important; }
.mfs-home .mfs-slider__track > .mfs-slide > .mfs-lines .mfs-kicker { background: rgba(23, 51, 26, 0.07) !important; color: #17331a !important; }
/* Categorii and Lenjerie tehnica on dark */
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(even) > .mfs-section :is(h1, h2, .mfs-lead, .mfs-tile figcaption):not(li.product *) { color: #fffdf9 !important; }
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(even) > .mfs-section .mfs-kicker { background: rgba(255, 253, 249, 0.1) !important; color: #d9e3d2 !important; }
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(even) > .mfs-section .mfs-chips span { background: rgba(255, 253, 249, 0.12) !important; color: #fffdf9 !important; border-color: rgba(255, 253, 249, 0.25) !important; }
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(even) > .mfs-section .mfs-button--outline .wp-block-button__link { color: #fffdf9 !important; border-color: #fffdf9 !important; background: transparent !important; }
.mfs-home .mfs-slider__track > .mfs-slide:nth-child(even) > .mfs-section .mfs-button:not(.mfs-button--outline) .wp-block-button__link { background: #c6f135 !important; color: #03150c !important; border-color: #c6f135 !important; }
/* Origin label "Fabricat in Portugalia" (satca, 2026-11-18): lime pill, dark green text, small PT circle. Markup: mfs_origin_label() in functions.php. */
.mfs-origin { display: inline-flex; align-items: center; gap: 7px; font-family: inherit; line-height: 1.25; color: #03150c; background: #c6f135; border-radius: 999px; white-space: nowrap; }
.mfs-origin__ic { width: 18px; height: 18px; flex: none; color: currentColor; }
.mfs-origin__t b { font-weight: 700; }
/* HS: fixed on the home slider frame (the slides move underneath) */
.mfs-home .mfs-slider > .mfs-origin--hs { position: absolute; z-index: 20; top: clamp(12px, 2vw, 26px); right: clamp(12px, 3.6vw, 52px); font-size: clamp(13px, 1.05vw, 15px); padding: 9px 16px 9px 12px; box-shadow: 0 3px 14px rgba(3, 21, 12, 0.16); pointer-events: none; }
.mfs-home .mfs-slider > .mfs-origin--hs .mfs-origin__ic { width: 20px; height: 20px; }
@media (min-width: 782px) { .mfs-home .mfs-slider .mfs-slide .mfs-display { padding-right: clamp(240px, 22vw, 300px); box-sizing: border-box; } }
@media (max-width: 781px) { .mfs-home .mfs-slider > .mfs-origin--hs { position: relative; top: auto; right: auto; display: flex; width: max-content; max-width: calc(100% - 40px); margin: 12px 20px 4px; white-space: normal; } }
/* B1: breadcrumb line on product pages */
.mfs-origin-host--b1 { display: flex !important; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; }
.mfs-origin--b1 { font-size: 14px; padding: 4px 12px 4px 7px; }
/* ---------- hero heading "Confort de la primul strat.": back to two lines at its normal size. The origin-pill padding above squeezed it into 4-5 lines;
   the hero heading sits in the left column, away from the pill (top-right), so it does not need that padding ---------- */
@media (min-width: 782px) {
  .mfs-home .mfs-slider .mfs-slide .mfs-hero-grid .mfs-display { padding-right: 0 !important; }
}
/* ---------- hero F3: three full-figure people stand freely (no boxes) on a lime glow; Barbati / Copii (a step back) / Femei.
   Photos: attachments 5734, 5735, 5736 (trimmed to the person). Phones keep the small tiles. ---------- */
@media (min-width: 782px) {
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos { --h: clamp(380px, 38vw, 540px); position: relative !important; display: block !important; height: var(--h) !important; width: 100%; isolation: isolate; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: 30px; height: 26%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(198, 241, 53, .55), rgba(198, 241, 53, .14) 62%, transparent); }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo { position: absolute !important; margin: 0 !important; bottom: 0; width: 48% !important; height: 92% !important; min-height: 0 !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end; pointer-events: none; grid-row: auto !important; transform: none !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a { position: static !important; flex: 1 1 auto !important; min-height: 0; width: 100% !important; height: auto !important; display: flex !important; align-items: flex-end; justify-content: center;
    background: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; aspect-ratio: auto !important; pointer-events: none; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a img { position: static !important; display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important;
    aspect-ratio: auto !important; object-fit: contain !important; padding: 0 !important; margin: 0 !important; background: none !important; border-radius: 0 !important; pointer-events: auto;
    filter: drop-shadow(0 16px 18px rgba(3, 21, 12, .22)); transition: transform .3s ease; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a:hover img, .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a:focus-visible img { transform: translateY(-8px) scale(1) !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo figcaption { position: static !important; transform: none !important; flex: none; margin: 8px 0 0 !important; padding: 6px 14px !important; border-radius: 999px;
    background: #fffdf9 !important; color: #03150c !important; font-weight: 700; font-size: .85rem !important; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 16px rgba(3, 21, 12, .16); pointer-events: none; }
  /* person centres at 20% / 50% / 80% (figure left = centre - 24%); the middle one (child) is smaller and a step back */
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(1) { left: -4%; z-index: 3; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(2) { left: 26%; height: 62% !important; bottom: 29%; z-index: 1; }
  /* soft lime halo behind the child, so it reads as placed on purpose between the two adults */
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(2)::before { content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; top: 8%; bottom: 14%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(198, 241, 53, .42), rgba(198, 241, 53, .12) 65%, transparent); pointer-events: none; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(3) { left: 56%; z-index: 3; }
}
@media (min-width: 782px) and (max-width: 1365px) {
  /* tablets and small laptops: people further apart so the three labels do not touch */
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(1) { left: -8%; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(3) { left: 60%; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo figcaption { font-size: .78rem !important; padding: 5px 10px !important; }
}
@media (prefers-reduced-motion: reduce) { .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a img { transition: none; } }
/* ---------- no gap under the header on the home page: the origin label is now the slider's first child, so the track got the 19px block gap ---------- */
.mfs-home .mfs-slider > .mfs-slider__track { margin-top: 0 !important; margin-block-start: 0 !important; }

/* ---------- phone home fixes (satca 2026-11-19), below 782px only:
   1 Hero: the 3 buttons sit in the same 3 columns as the photos, one line each, equal height.
   2 Lenjerie tehnica: the tilted two-photo collage is smaller and kept inside its box, so it no longer touches
     the label above or the heading below (slider copy and section copy). ---------- */
@media (max-width: 781px) {
  .mfs-home .mfs-hero .mfs-hero-actions { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .mfs-home .mfs-hero .mfs-hero-actions > .wp-block-button { width: auto !important; margin: 0 !important; }
  .mfs-home .mfs-hero .mfs-hero-actions .wp-block-button__link { width: 100%; box-sizing: border-box; justify-content: center; white-space: nowrap; padding: 11px 4px !important; font-size: 13px !important; letter-spacing: 0 !important; }
  .mfs-home .mfs-duo { height: 260px; }
  .mfs-home .mfs-slide .mfs-duo { height: 200px; }
  .mfs-home .mfs-duo--a > .mfs-duo__item--back { width: 50%; left: 4%; top: 12%; }
  .mfs-home .mfs-duo--a > .mfs-duo__item--front { width: 54%; right: 3%; bottom: 10%; }
  .mfs-home .mfs-duo--a > .mfs-duo__item--back figcaption { left: 4%; top: -4%; }
  .mfs-home .mfs-duo--a > .mfs-duo__item--front figcaption { right: 4%; bottom: -4%; }
}

/* ---------- phone hero + origin label (satca 2026-11-19), below 782px only:
   1 Hero: heading, text, then the 3 photos (Barbati / Copii / Femei, as on PC) taller (2:3),
     each button right under its own photo (buttons follow the photo order via their category link).
   2 "Fabricat in Portugalia, UE": no own row any more; top-right over the slide label pills on every slide, like on PC. ---------- */
@media (max-width: 781px) {
  .mfs-home .mfs-slide .mfs-hero-grid > .wp-block-column:first-child { display: contents; }
  .mfs-home .mfs-slide .mfs-hero-grid > .wp-block-column:first-child > * { flex: 0 0 100%; margin: 0 !important; }
  .mfs-home .mfs-slide .mfs-hero-grid > .wp-block-column:first-child > .mfs-hero-actions { order: 3; }
  .mfs-home .mfs-slide .mfs-hero-grid > .wp-block-column:last-child { order: 2; }
  .mfs-home .mfs-slide .mfs-hero-grid { row-gap: 10px !important; }
  .mfs-home .mfs-hero .mfs-hero-actions > .wp-block-button:has(a[href*="/barbati/"]) { order: 1; }
  .mfs-home .mfs-hero .mfs-hero-actions > .wp-block-button:has(a[href*="/copii/"]) { order: 2; }
  .mfs-home .mfs-hero .mfs-hero-actions > .wp-block-button:has(a[href*="/femei/"]) { order: 3; }
  /* like PC: fixed top-right over the end of every slide's label pill, on all slides; full text on two lines */
  .mfs-home .mfs-slider > .mfs-origin--hs { position: absolute; top: 12px; right: 20px; left: auto; margin: 0; width: 112px; max-width: none; white-space: normal; font-size: 10.5px; line-height: 13px; padding: 5px 10px 5px 7px; gap: 5px; border-radius: 16px; }
  .mfs-home .mfs-slider > .mfs-origin--hs .mfs-origin__ic { width: 16px; height: 16px; }
  /* slide label pills keep their text clear of the origin label and wrap as plain text (dot kept on the left) */
  .mfs-home .mfs-slider .mfs-slide .mfs-kicker { display: block !important; position: relative; padding-left: 28px !important; padding-right: 128px !important; line-height: 15px !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-kicker::before { position: absolute; left: 10px; top: 50%; margin-top: -5px !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-kicker .mfs-name { display: inline !important; }
}

/* ---------- phone hero like PC (satca 2026-11-19): the F3 free-standing people (adults tall, child smaller and a step back in the middle)
   also below 782px; figures 40% wide centred over the 3 buttons (Barbati / Copii / Femei); photo labels hidden because the buttons name them. ---------- */
@media (max-width: 781px) {
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos { --h: clamp(230px, 64vw, 290px); position: relative !important; display: block !important; height: var(--h) !important; width: 100%; isolation: isolate; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos::before { content: ""; position: absolute; z-index: -1; left: 8%; right: 8%; bottom: 30px; height: 26%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(198, 241, 53, .55), rgba(198, 241, 53, .14) 62%, transparent); }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo { position: absolute !important; margin: 0 !important; bottom: 0; width: 48% !important; height: 92% !important; min-height: 0 !important;
    display: flex !important; flex-direction: column; align-items: center; justify-content: flex-end; pointer-events: none; grid-row: auto !important; transform: none !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a { position: static !important; flex: 1 1 auto !important; min-height: 0; width: 100% !important; height: auto !important; display: flex !important; align-items: flex-end; justify-content: center;
    background: none !important; border-radius: 0 !important; box-shadow: none !important; overflow: visible !important; aspect-ratio: auto !important; pointer-events: none; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a img { position: static !important; display: block; width: auto !important; height: auto !important; max-width: 100% !important; max-height: 100% !important;
    aspect-ratio: auto !important; object-fit: contain !important; padding: 0 !important; margin: 0 !important; background: none !important; border-radius: 0 !important; pointer-events: auto;
    filter: drop-shadow(0 16px 18px rgba(3, 21, 12, .22)); transition: transform .3s ease; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a:hover img, .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo a:focus-visible img { transform: translateY(-8px) scale(1) !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo figcaption { position: static !important; transform: none !important; flex: none; margin: 8px 0 0 !important; padding: 6px 14px !important; border-radius: 999px;
    background: #fffdf9 !important; color: #03150c !important; font-weight: 700; font-size: .85rem !important; line-height: 1.2; white-space: nowrap; box-shadow: 0 6px 16px rgba(3, 21, 12, .16); pointer-events: none; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo figcaption { display: none !important; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo { width: 40% !important; }
  /* person centres at 20% / 50% / 80% (figure left = centre - 24%); the middle one (child) is smaller and a step back */
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(1) { left: -3.3%; z-index: 3; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(2) { left: 30%; height: 64% !important; bottom: 22%; z-index: 1; }
  /* soft lime halo behind the child, so it reads as placed on purpose between the two adults */
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(2)::before { content: ""; position: absolute; z-index: -1; left: 14%; right: 14%; top: 8%; bottom: 14%; border-radius: 50%;
    background: radial-gradient(closest-side, rgba(198, 241, 53, .42), rgba(198, 241, 53, .12) 65%, transparent); pointer-events: none; }
  .mfs-home .mfs-slider .mfs-slide .mfs-hero .mfs-hero-photos > .mfs-hero-photo:nth-child(3) { left: 63.3%; z-index: 3; }
}

/* ---------- PC/tablet (satca 2026-11-19): "Fabricat in Portugalia, UE" centred on the middle line of the slide label pills.
   Pill top = clamp(16px, 2vw, 28px), pill height 23px, so its middle is that + 11.5px; the label centres on it whatever its own height. ---------- */
@media (min-width: 782px) {
  .mfs-home .mfs-slider > .mfs-origin--hs { top: calc(clamp(16px, 2vw, 28px) + 11.5px); transform: translateY(-50%); }
}

/* ---------- home: lower page fades from the light green into the footer, seamless (satca 2026-11-19, v2; v1 painted each section
   separately and ended darker than the footer).
   - The footer's satin (same colours and 115deg angle) is painted once behind the whole page (.wp-site-blocks) as a repeating
     gradient, and the footer itself is transparent on the home page, so page and footer are one surface: no seam, same nuances.
     Period ~ the footer's own gradient length (0.906 x width + 0.423 x footer height), so the bands keep the footer's scale.
   - main carries one light-green layer that fades from opaque under the slider to fully transparent at the footer.
   - The lower sections are transparent (no per-section slices). Selectia keeps its own dark band; white cards keep their colours.
   - Text that ends up on the dark part turns light. Backups: archive/2026-11-19-home-bottom-fade (v1), -v2 (this). ---------- */
.wp-site-blocks:has(> main.mfs-home) {
  --mfs-satin-p: calc(90.6vw + 180px);
  background: #03150c repeating-linear-gradient(115deg, #03150c 0, #0b2613 calc(var(--mfs-satin-p) * .22), #1c3d20 calc(var(--mfs-satin-p) * .38),
    #0d2a15 calc(var(--mfs-satin-p) * .52), #03150c calc(var(--mfs-satin-p) * .70), #12301a calc(var(--mfs-satin-p) * .88), #03150c var(--mfs-satin-p));
}
@media (max-width: 781px) { .wp-site-blocks:has(> main.mfs-home) { --mfs-satin-p: calc(90.6vw + 300px); } }
/* footer separation A (satca 2026-11-19): the footer keeps its own satin and starts with a thin lime line across the full width */
.wp-site-blocks:has(> main.mfs-home) > footer .mfs-footer { border-top: 2px solid rgba(198, 241, 53, 0.75); }
.wp-site-blocks:has(> main.mfs-home) > footer { margin-block-start: 0 !important; }
.wp-site-blocks > main.mfs-home { display: flow-root; }
.mfs-home {
  background: linear-gradient(180deg, #e7f3e4 0%, #e7f3e4 8%, rgba(214, 232, 208, .98) 24%, rgba(178, 207, 170, .9) 45%,
    rgba(90, 130, 88, .55) 68%, rgba(46, 86, 50, .22) 86%, rgba(46, 86, 50, 0) 100%) !important;
}
.mfs-home > .mfs-section:has(.mfs-tiles),
.mfs-home > .mfs-section--paper:not(.mfs-size),
.mfs-home > .mfs-section:has(.mfs-feature),
.mfs-home > .mfs-size,
.mfs-home > .mfs-about { background: transparent !important; border-color: transparent !important; }
/* text that sits directly on the dark part */
.mfs-home > .mfs-section:has(.mfs-feature) > .mfs-kicker,
.mfs-home > .mfs-size > .mfs-kicker,
.mfs-home > .mfs-about > .mfs-kicker { background: rgba(255, 253, 249, 0.1) !important; color: #d9e3d2 !important; }
.mfs-home > .mfs-size :is(h2, h3, p):not(.mfs-kicker):not(.mfs-size-grid *),
.mfs-home > .mfs-about :is(h2, h3) { color: var(--mfs-paper) !important; }
.mfs-home > .mfs-about :is(p, .mfs-name, .mfs-name b):not(.mfs-kicker) { color: #d9e3d2 !important; }
/* Lenjerie tehnica label sits on the mid-green part: full paper white keeps it above 4.5:1 (was 4.3 with #d9e3d2) */
.mfs-home > .mfs-section:has(.mfs-feature) > .mfs-kicker { color: var(--mfs-paper) !important; }

/* Photo zoom (PhotoSwipe lightbox, 2026-11-19): page green instead of PhotoSwipe's black,
   dark icons and counter so they stay visible on the light background. PhotoSwipe's CSS
   loads in the footer after this file, so every rule is scoped under .pswp to win. */
.pswp .pswp__bg { background: var(--mfs-ivory); }
.pswp .pswp__top-bar, .pswp .pswp__caption { background: transparent !important; }
.pswp .pswp__button, .pswp .pswp__button--arrow--left::before, .pswp .pswp__button--arrow--right::before { filter: invert(1); }
.pswp .pswp__counter, .pswp .pswp__caption__center { color: var(--mfs-ink); opacity: 1; }

/* Header search: live results preview (assets/search-preview.js), 0.7.2 */
.mfs-search.mfs-sp-host { position: relative; }
.mfs-sp { position: absolute; top: calc(100% + 8px); left: 0; right: 0; min-width: min(360px, calc(100vw - 32px)); z-index: 200; background: var(--mfs-paper); color: var(--mfs-ink); border: 1px solid var(--mfs-line); border-radius: var(--mfs-radius); box-shadow: 0 18px 40px rgba(3, 21, 12, 0.22); max-height: min(70vh, 540px); overflow-y: auto; overscroll-behavior: contain; padding: 6px; text-align: left; }
.mfs-sp[hidden] { display: none; }
.mfs-sp.is-loading { opacity: 0.6; }
.mfs-sp__list { list-style: none; margin: 0; padding: 0; }
.mfs-sp__item { display: flex; align-items: center; gap: 12px; padding: 8px; border-radius: 10px; color: var(--mfs-ink); text-decoration: none; }
.mfs-sp__item:hover, .mfs-sp__item[aria-selected="true"] { background: var(--mfs-ivory); }
.mfs-sp__img { flex: 0 0 48px; width: 48px; height: 60px; border-radius: 8px; background: var(--mfs-ivory); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mfs-sp__img img { width: 100%; height: 100%; object-fit: contain; display: block; }
.mfs-sp__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mfs-sp__name { font-size: 0.95rem; line-height: 1.3; font-weight: 500; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.mfs-sp__price { font-size: 0.9rem; color: var(--mfs-muted); }
.mfs-sp__price del { opacity: 0.7; }
.mfs-sp__price ins { text-decoration: none; }
.mfs-sp__all { display: block; margin-top: 4px; padding: 10px 8px; border-top: 1px solid var(--mfs-line); color: var(--mfs-green); font-weight: 600; text-decoration: none; border-radius: 0 0 10px 10px; }
.mfs-sp__all:hover, .mfs-sp__all[aria-selected="true"] { background: var(--mfs-ivory); text-decoration: underline; }
.mfs-sp__none { padding: 12px 8px; color: var(--mfs-muted); }
.mfs-sp__status { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip-path: inset(50%) !important; white-space: nowrap !important; }

/* Phone search drawer (parts/header.html .mfs-sbtn + #mfs-sdrawer, assets/mobile-nav.js), 0.7.3.
   <=600px: the search row is replaced by a magnifier between the logo and the account icon; it opens
   the search in a drawer from the left (mirror of "Mai mult"). Wider screens keep the header search bar. */
.mfs-sbtn-wrap { display: none; }
@media (max-width: 600px) {
  .mfs-site-header > .mfs-search { display: none; }
  .mfs-site-header > .wp-block-site-title { margin-right: auto; }
  .mfs-site-header { column-gap: 8px; } /* logo + 3 icons on one row down to 360px */
  .mfs-sbtn-wrap { display: block; }
  .mfs-sbtn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--mfs-paper); cursor: pointer; }
  .mfs-sbtn:hover { background: rgba(255, 253, 249, 0.1); }
  .mfs-site-header .mfs-sbtn:focus-visible { outline: 2px solid var(--mfs-lime); outline-offset: 2px; }
}
.mfs-mnav__drawer.mfs-sdrawer { inset: 0 auto 0 0; box-shadow: 6px 0 24px rgba(0, 0, 0, 0.2); }
.mfs-mnav__drawer.mfs-sdrawer[open] { animation-name: mfs-sdrawer-in; }
@keyframes mfs-sdrawer-in { from { transform: translateX(-100%); } to { transform: none; } }
.mfs-sdrawer__body { flex: 1 1 auto; overflow-y: auto; overscroll-behavior: contain; padding: 16px; }
.mfs-sdrawer .mfs-search { display: block; width: 100%; max-width: none; margin: 0; }
.mfs-site-header .mfs-sdrawer .mfs-search .wp-block-search__inside-wrapper { box-shadow: 0 0 0 1px var(--mfs-line); }
.mfs-site-header .mfs-sdrawer .mfs-search .wp-block-search__inside-wrapper:focus-within { box-shadow: 0 0 0 2px var(--mfs-ink); }
.mfs-site-header .mfs-sdrawer .mfs-search .wp-block-search__button { background: var(--mfs-green); color: var(--mfs-paper); }
.mfs-site-header .mfs-sdrawer .mfs-search .wp-block-search__button:hover { background: var(--mfs-green-2); }
.mfs-site-header .mfs-sdrawer .mfs-search .wp-block-search__button:focus-visible { outline: 2px solid var(--mfs-paper); outline-offset: -4px; }
.mfs-sdrawer .mfs-sp { position: static; min-width: 0; margin-top: 12px; padding: 0; border: 0; border-radius: 0; box-shadow: none; background: transparent; max-height: none; overflow: visible; }
@media (prefers-reduced-motion: reduce) { .mfs-mnav__drawer.mfs-sdrawer[open] { animation: none; } }
