/* ==========================================================================
   The Mobile Factory — "from the workbench" (docs/UX-PLAN.md)
   1. Tokens: the only place colours, type, spacing, shape and motion are set
   ========================================================================== */

@font-face {
  font-family: "Archivo";
  src: url("../fonts/archivo-var-latin.woff2") format("woff2");
  font-weight: 600 800;
  font-stretch: 100% 125%;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-var-latin.woff2") format("woff2");
  font-weight: 400 600;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Mono";
  src: url("../fonts/plex-mono-500-latin.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}
/* Metric-matched fallbacks to keep the font swap from shifting layout */
@font-face { font-family: "Archivo Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 104%; ascent-override: 90%; descent-override: 22%; line-gap-override: 0%; }
@font-face { font-family: "Hanken Fallback"; src: local("Arial"), local("Helvetica"); size-adjust: 97%; ascent-override: 100%; descent-override: 26%; line-gap-override: 0%; }

:root {
  /* Colour (UX-PLAN §2) */
  --ink: #0e0e10;
  --graphite: #2a2b2f;
  --steel: #8a8d94;
  --mist: #e7e5e0;
  --paper: #f7f5f0;
  --card: #ffffff;
  --gold: #c9a23a;
  --gold-hover: #b58f2a;
  --gold-ink: #8c6a12;         /* gold used as text on light backgrounds (AA) */
  --cream: #fbf6e9;
  --success: #1f7a4d;
  --warning: #a86b00;
  --error: #b42318;
  /* Derived roles */
  --text: var(--ink);
  --text-2: #55575d;           /* secondary text, AA on paper/card (Steel is kept for rules and large text) */
  --rule: var(--mist);
  --on-ink: #f3f1ec;
  --on-ink-2: #b9bbc1;
  --success-tint: #e8f3ec;
  --warning-tint: #fbf1de;
  --error-tint: #fbeae8;
  --info-tint: #eeeeec;

  /* Type */
  --f-head: "Archivo", "Archivo Fallback", system-ui, sans-serif;
  --f-body: "Hanken Grotesk", "Hanken Fallback", system-ui, sans-serif;
  --f-mono: "IBM Plex Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
  --fs-xs: 0.75rem;
  --fs-sm: 0.875rem;
  --fs-md: clamp(1rem, 0.97rem + 0.15vw, 1.0625rem);
  --fs-lg: 1.1875rem;
  --fs-xl: clamp(1.375rem, 1.2rem + 0.6vw, 1.625rem);
  --fs-2xl: clamp(1.625rem, 1.3rem + 1.3vw, 2.25rem);
  --fs-3xl: clamp(2.125rem, 1.4rem + 3.2vw, 3.75rem);
  --lh: 1.6;
  --measure: 70ch;

  /* Space (8px grid) */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px; --s9: 96px;
  --gutter: 16px;
  --max: 1680px;
  --sec: 24px;                 /* gap between page sections (32 on tablet, 48 on desktop) */

  /* Shape and depth */
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-pill: 999px;
  --r-card: var(--r-md);
  --r-btn: var(--r-pill);
  --r-chip: var(--r-pill);
  --glass: rgba(255, 255, 255, .72);
  --glass-strong: rgba(255, 255, 255, .82);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .6);
  --lift: 0 8px 24px rgba(14, 14, 16, .08);

  /* Motion */
  --ease: cubic-bezier(.2, .7, .3, 1);
  --t-fast: 150ms;
  --t: 240ms;
  --t-hdr: 240ms;
  --ib: 44px;                  /* icon button size */
}
/* Astra's global palette mapped to brand tokens (no default blue leaking through) */
:root {
  --ast-global-color-0: #8c6a12; --ast-global-color-1: #6f540e; --ast-global-color-2: #0e0e10; --ast-global-color-3: #2a2b2f;
  --ast-global-color-4: #f7f5f0; --ast-global-color-5: #ffffff; --ast-global-color-6: #e7e5e0; --ast-global-color-7: #2a2b2f; --ast-global-color-8: #55575d;
}
@media (min-width: 600px) { :root { --gutter: 24px; --sec: 32px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; --sec: 48px; } }
@media (prefers-reduced-motion: reduce) {
  :root { --t-fast: 0ms; --t: 0ms; }
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ==========================================================================
   2. Base
   ========================================================================== */

html { scroll-padding-top: 140px; background: var(--paper); }
body, body.ast-plain-container, body.ast-separate-container {
  background: var(--paper);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .entry-title, .product_title, .woocommerce-products-header__title {
  font-family: var(--f-head);
  font-stretch: 110%;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.18;
}
h1, .entry-title { font-size: var(--fs-2xl); }
h2 { font-size: var(--fs-xl); }
h3 { font-size: var(--fs-lg); font-weight: 600; }
p { margin: 0 0 var(--s4); }
a { color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 1.5px; text-underline-offset: 3px; transition: color var(--t-fast) var(--ease), text-decoration-color var(--t-fast) var(--ease); }
a:hover { color: var(--graphite); text-decoration-color: var(--ink); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
img { max-width: 100%; height: auto; }
.screen-reader-text:not(:focus) { clip: rect(1px, 1px, 1px, 1px); position: absolute !important; height: 1px; width: 1px; overflow: hidden; white-space: nowrap; }
.mf-mono { font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0; }
.mf-meta { font-family: var(--f-mono); font-weight: 500; font-size: var(--fs-xs); letter-spacing: .04em; }
.price, .amount, .mf-buybar__price, .mf-cart-count, .wc-block-components-formatted-money-amount,
.wc-block-components-totals-item__value, .mf-count, .woocommerce-order-overview { font-variant-numeric: tabular-nums; }
.mf-icon { display: inline-block; flex: 0 0 auto; width: 1.15em; height: 1.15em; stroke-width: 1.75; vertical-align: -0.2em; }

/* Section heading with the short gold rule */
.mf-h, .entry-content > h2, .related > h2, .upsells > h2, .woocommerce-Tabs-panel > h2, .cart-collaterals h2 {
  position: relative;
  padding-bottom: var(--s2);
  margin: 0 0 var(--s4);
  font-size: var(--fs-xl);
}
.mf-h::after, .entry-content > h2::after, .related > h2::after, .upsells > h2::after, .woocommerce-Tabs-panel > h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px;
  height: 2px;
  background: var(--gold);
}

/* Fluid container */
.mf-wrap, .ast-container {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.site-content > .ast-container { display: flex; flex-wrap: wrap; gap: var(--s5); padding-block: var(--s4) var(--sec); }
#primary { flex: 1 1 0; min-width: 0; margin: 0 !important; padding: 0 !important; width: auto; border: 0 !important; }
.ast-separate-container .ast-article-single, .ast-separate-container .ast-article-post, .ast-separate-container .ast-woocommerce-container { background: transparent; padding: 0; }
.ast-plain-container .site-content > .ast-container, .ast-page-builder-template .site-content > .ast-container { max-width: var(--max); }
.page .entry-header { margin-bottom: var(--s4); }
.mf-updated { font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); margin-top: var(--s5); }

/* ==========================================================================
   3. Controls: one button system, one input style, links
   ========================================================================== */

.mf-btn,
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit,
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce .mf-buy-now,
.wp-block-button__link, .wc-block-components-button:not(.is-link), .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-height: 48px;
  padding: 0 var(--s5);
  border: 1.5px solid var(--gold);
  border-radius: var(--r-pill);
  background: var(--gold);
  color: var(--ink) !important;
  font-family: var(--f-body);
  font-size: var(--fs-md);
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.mf-btn:hover, .woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce a.button.alt:hover,
.woocommerce button.button.alt:hover, .wp-block-button__link:hover, .wc-block-components-button:not(.is-link):hover, .button:hover {
  background: var(--gold-hover);
  border-color: var(--gold-hover);
  color: var(--ink) !important;
}
.mf-btn:active, .button:active, .woocommerce button.button:active, .wc-block-components-button:not(.is-link):active { transform: translateY(1px); }
.mf-btn:focus-visible, .button:focus-visible, .wc-block-components-button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.mf-btn[disabled], .button:disabled, .button.disabled, .woocommerce button.button:disabled, .woocommerce button.button.disabled, .wc-block-components-button:disabled {
  background: var(--mist) !important; border-color: var(--mist) !important; color: var(--text-2) !important; cursor: not-allowed; transform: none; opacity: 1;
}
/* Secondary: Ink outline */
.mf-btn--outline, .woocommerce div.product form.cart .single_add_to_cart_button, .woocommerce a.button.wc-backward,
.is-style-outline .wp-block-button__link {
  background: transparent;
  border-color: var(--ink);
  color: var(--ink) !important;
}
.mf-btn--outline:hover, .woocommerce div.product form.cart .single_add_to_cart_button:hover {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--on-ink) !important;
}
.button.is-loading, .mf-btn.is-loading { pointer-events: none; opacity: .7; }
.button.is-added, .mf-btn.is-added { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }
.button.is-added::before { content: ""; width: 14px; height: 8px; border: solid currentColor; border-width: 0 0 2px 2px; transform: rotate(-45deg) translate(1px, -2px); }
.mf-textlink { font-weight: 600; text-decoration-thickness: 2px; }
.mf-linkbtn { background: none; border: 0; padding: var(--s3); min-height: 44px; font: inherit; font-weight: 600; color: var(--text); text-decoration: underline; text-decoration-color: var(--gold); cursor: pointer; }

input[type="text"], input[type="email"], input[type="tel"], input[type="number"], input[type="password"], input[type="search"], textarea, select,
.woocommerce form .form-row input.input-text, .woocommerce form .form-row textarea, .woocommerce form .form-row select {
  min-height: 48px;
  padding: var(--s3) var(--s4);
  border: 1px solid #cfccc4;
  border-radius: var(--r-sm);
  background: var(--card);
  color: var(--text);
  font-family: var(--f-body);
  font-size: var(--fs-md);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
textarea { min-height: 128px; }
input:focus, textarea:focus, select:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(201, 162, 58, .45); outline: none; }
input[aria-invalid="true"], textarea[aria-invalid="true"], .woocommerce-invalid input.input-text { border-color: var(--error) !important; }
label { font-weight: 600; font-size: var(--fs-sm); }

/* ==========================================================================
   4. Header, brand rail, phone drawer
   ========================================================================== */

.mf-header { position: sticky; top: 0; z-index: 50; color: var(--ink); pointer-events: none; }
.mf-header__inner { pointer-events: auto; transition: transform var(--t-hdr) ease-out; }
.mf-header__top { position: relative; z-index: 2; background: var(--card); }
.mf-header__top::before { content: ""; position: absolute; inset: 0; z-index: -1; box-shadow: 0 6px 18px rgba(14, 14, 16, .09); opacity: 0; transition: opacity var(--t-hdr) ease-out; pointer-events: none; }
.mf-header__top::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--rule); opacity: 0; transition: opacity var(--t-hdr) ease-out; }
.mf-header.is-compact .mf-header__inner { transform: translateY(-6px); }
.mf-header.is-compact .mf-header__top::before, .mf-header.is-compact .mf-header__top::after { opacity: 1; }
@media (min-width: 1024px) { .mf-header.is-compact .mf-header__inner { transform: translateY(-10px); } }
.admin-bar .mf-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .mf-header { top: 0; } }
.mf-header__bar { display: flex; align-items: center; gap: var(--s2); height: 64px; }
.mf-logo { display: inline-flex; align-items: center; flex: 0 0 auto; margin-right: auto; text-decoration: none; }
.mf-logo__img { display: block; width: auto; height: 40px; transform-origin: left center; transition: transform var(--t-hdr) ease-out; }
.mf-header.is-compact .mf-logo__img { transform: scale(.86); }
.mf-header__actions { display: flex; align-items: center; gap: var(--s1); }
.mf-hlink, .mf-iconbtn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  min-width: 44px;
  min-height: 44px;
  padding: 0 var(--s2);
  border: 0;
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--ink) !important;
  font: inherit;
  font-size: var(--fs-sm);
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--t-fast) var(--ease);
}
.mf-hlink:hover, .mf-iconbtn:hover { background: var(--paper); color: var(--gold-ink) !important; }
.mf-hlink .mf-icon, .mf-iconbtn .mf-icon { width: 22px; height: 22px; }
.mf-hlink--track, .mf-hlink--account span, .mf-hlink__text { display: none; }
.mf-cart-count {
  position: absolute; top: 3px; left: 24px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: var(--r-chip);
  background: var(--gold); color: var(--ink);
  font-family: var(--f-body); font-weight: 700; font-size: 12px; line-height: 20px; text-align: center;
}
.mf-cart-count.is-empty { visibility: hidden; }
.mf-cart-count.is-bump { animation: mf-tick var(--t) var(--ease); }
@keyframes mf-tick { 0% { transform: translateY(-40%); opacity: 0; } 100% { transform: none; opacity: 1; } }

.mf-search { position: relative; display: flex; width: 100%; }
.mf-search input[type="search"] {
  width: 100%; min-height: 52px; padding: 0 56px 0 var(--s4);
  border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--paper);
}
.mf-search input[type="search"]:focus { border-color: var(--gold); box-shadow: 0 0 0 3px rgba(201, 162, 58, .5); }
.mf-search__btn.mf-icon-btn { position: absolute; right: 4px; top: 50%; margin-top: -22px; }
.mf-header__search--desk { display: none; }
.mf-header__search--mob { padding-bottom: var(--s3); border-bottom: 1px solid var(--rule); }

.mf-rail { display: none; position: relative; z-index: 1; background: var(--card); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); transition: transform var(--t-hdr) ease-out, opacity var(--t-hdr) ease-out; }
.mf-header.is-compact.is-rail-hidden .mf-rail { transform: translateY(-100%); opacity: 0; pointer-events: none; }
.mf-rail__list { display: flex; gap: var(--s1); margin: 0 auto; list-style: none; overflow-x: auto; scrollbar-width: none; }
.mf-rail__list::-webkit-scrollbar { display: none; }
.mf-rail__list a {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--s3);
  color: var(--text-2); font-size: var(--fs-sm); font-weight: 600; white-space: nowrap; text-decoration: none;
  position: relative;
  transition: color var(--t-fast) var(--ease);
}
.mf-rail__list a::after { content: ""; position: absolute; left: var(--s3); right: var(--s3); bottom: 0; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; transition: transform var(--t) var(--ease); }
.mf-rail__list a:hover::after, .mf-rail__list a[aria-current]::after { transform: scaleX(1); }
.mf-rail__list a:hover, .mf-rail__list a[aria-current] { color: var(--gold-ink); }
.mf-rail__end { margin-left: auto; }

@media (min-width: 600px) {
  .mf-logo__img { height: 46px; }
  .mf-hlink--account span, .mf-hlink__text { display: inline; }
  .mf-cart-count { position: static; }
}
@media (min-width: 1024px) {
  .mf-menu-open { display: none; }
  .mf-header__bar { height: 80px; gap: var(--s5); }
  .mf-logo__img { height: 56px; }
  .mf-header.is-compact .mf-logo__img { transform: scale(.72); }
  .mf-logo { margin-right: 0; }
  .mf-header__search--desk { display: block; flex: 1 1 auto; }
  .mf-header__search--mob { display: none; }
  .mf-hlink--track { display: inline-flex; }
  .mf-rail { display: block; }
}

/* Drawers (menu, filters, mini-cart) */
.mf-drawer, .mf-minicart { position: fixed; inset: 0; z-index: 90; }
.mf-drawer__scrim, .mf-minicart__scrim, .mf-scrim { position: absolute; inset: 0; background: rgba(14, 14, 16, .5); opacity: 0; transition: opacity var(--t) var(--ease); }
.mf-drawer__panel, .mf-minicart__panel {
  position: absolute; top: 0; bottom: 0; display: flex; flex-direction: column;
  width: min(380px, 90vw); overflow-y: auto; background: var(--paper); box-shadow: var(--lift);
  transition: transform var(--t) var(--ease);
}
.mf-drawer__panel { left: 0; transform: translateX(-100%); }
.mf-minicart__panel { right: 0; transform: translateX(100%); }
.mf-menu-open-state .mf-drawer__panel, .mf-minicart-open .mf-minicart__panel { transform: none; }
.mf-menu-open-state .mf-drawer__scrim, .mf-minicart-open .mf-minicart__scrim { opacity: 1; }
.mf-drawer-head {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  min-height: 60px; padding: 0 var(--s4); border-bottom: 1px solid var(--rule);
  font-family: var(--f-head); font-stretch: 110%; font-size: var(--fs-lg);
}
.mf-drawer-head strong { display: inline-flex; align-items: center; gap: var(--s2); }
.mf-drawer-head .mf-iconbtn { color: var(--ink) !important; }
.mf-drawer-head .mf-iconbtn:hover { background: var(--mist); }
.mf-drawer__label { margin: var(--s5) var(--s4) var(--s2); color: var(--text-2); }
.mf-drawer__list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mf-drawer__list a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s4); border-bottom: 1px solid var(--rule); color: var(--text); text-decoration: none; font-weight: 500; }
.mf-drawer__list a:hover { background: var(--card); }

/* Breadcrumbs: small, Steel separators, current page not linked, ellipsis on phones */
.mf-breadcrumb { display: flex; align-items: center; gap: var(--s2); min-width: 0; margin: 0 0 var(--s4); color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; }
.mf-crumb { flex: 0 0 auto; }
.mf-crumb:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.mf-breadcrumb a { color: var(--text-2); text-decoration: none; }
.mf-breadcrumb a:hover { color: var(--ink); text-decoration: underline; }
.mf-crumb-sep { flex: 0 0 auto; color: var(--steel); }
@media (min-width: 1024px) { .mf-breadcrumb { flex-wrap: wrap; white-space: normal; } }

/* ==========================================================================
   5. Bench Ticket (Condition & warranty box)
   ========================================================================== */


.mf-ticket {
  position: relative;
  margin: var(--s4) 0;
  padding: var(--s4) var(--s4) var(--s3);
  background: var(--cream);
  border: 1px solid #ece3c8;
  border-radius: 0 0 var(--r-lg) var(--r-lg);
  /* notched top edge */
  -webkit-mask: radial-gradient(circle 6px at 12px 0, transparent 5.5px, #000 6px) 0 0 / 24px 100% repeat-x;
          mask: radial-gradient(circle 6px at 12px 0, transparent 5.5px, #000 6px) 0 0 / 24px 100% repeat-x;
}
.mf-js .mf-ticket { animation: mf-print var(--t) var(--ease) both; }
@keyframes mf-print { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.mf-ticket__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s2); padding-bottom: var(--s2); margin-bottom: var(--s1); border-bottom: 1px dashed #d8cda9; color: var(--graphite); }
.mf-ticket__title { margin: 0; font-size: var(--fs-lg); }
.mf-ticket__check { color: var(--success); font-size: var(--fs-sm); font-weight: 600; }
.mf-ticket__name { margin: var(--s2) 0; font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-lg); line-height: 1.25; }
.mf-ticket__name a { text-decoration: none; }
.mf-ticket__rows { margin: 0; }
.mf-ticket__row { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid #efe6cc; }
.mf-ticket__row:last-child { border-bottom: 0; }
.mf-ticket__row dt { margin: 0; color: var(--text-2); font-weight: 500; }
.mf-ticket__row dd { margin: 0; font-weight: 600; }
.mf-ticket__link { margin-left: var(--s2); font-size: var(--fs-sm); font-weight: 500; }
.mf-ticket__box { margin: 0; padding: 0; list-style: none; font-weight: 500; }
.mf-ticket__box li + li { margin-top: 2px; }
.mf-ticket__seller { margin: var(--s3) 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-ticket__price { margin: var(--s3) 0 0; font-family: var(--f-head); font-stretch: 110%; font-size: var(--fs-xl); font-weight: 700; }
.mf-ticket--compact { margin: 0; color: var(--ink); }
.mf-admin-hint { margin: var(--s3) 0 0; padding: var(--s2) var(--s3); border-radius: 6px; background: var(--warning-tint); color: #5c3b00; font-size: var(--fs-xs); }

/* ==========================================================================
   6. Product cards and grid (2 / 3 / 3 / 4)
   ========================================================================== */

.woocommerce ul.products, .woocommerce-page ul.products, .woocommerce ul.products[class*="columns-"], ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: var(--s3);
  margin: 0 0 var(--s5) !important;
  padding: 0;
  list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
@media (min-width: 600px) { .woocommerce ul.products, .woocommerce ul.products[class*="columns-"], ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: var(--s4); } }
@media (min-width: 1440px) { .woocommerce ul.products, .woocommerce ul.products[class*="columns-"], ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: var(--s5); } }
@media (min-width: 1024px) { .mf-phones ul.products, .mf-phones ul.products[class*="columns-"] { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; } }
@media (min-width: 1600px) { .woocommerce ul.products, .woocommerce ul.products[class*="columns-"], ul.products, .mf-phones ul.products { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }

.woocommerce ul.products li.product {
  position: relative; display: flex; flex-direction: column;
  width: auto !important; margin: 0 !important; padding: 0 !important; float: none !important;
  border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--card);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
@media (hover: hover) {
  .woocommerce ul.products li.product:hover { transform: translateY(-2px); box-shadow: var(--lift); }
  .woocommerce ul.products li.product:hover .mf-card__alt { opacity: 1; }
}
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; padding: 0 0 var(--s4); color: inherit; text-decoration: none; }
.woocommerce ul.products li.product .woocommerce-LoopProduct-link:focus-visible { outline-offset: -2px; }
.astra-shop-thumbnail-wrap, .astra-shop-summary-wrap { display: contents; }
.mf-card__media {
  position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden;
  margin: 6px 6px 0; border-radius: var(--r-sm); background: var(--paper);
}
.mf-card__media img, .woocommerce ul.products li.product .mf-card__media img {
  position: absolute; inset: 0; width: 100%; height: 100% !important; margin: 0 !important; object-fit: contain; padding: var(--s3);
}
.mf-card__alt { opacity: 0; transition: opacity var(--t) var(--ease); background: var(--paper); }
.mf-js .mf-card__media img:not(.mf-card__alt) { opacity: 0; transition: opacity var(--t) var(--ease); }
.mf-js .mf-card__media.is-loaded img:not(.mf-card__alt) { opacity: 1; }
.mf-js .mf-card__media:not(.is-loaded) { background: linear-gradient(100deg, var(--paper) 30%, #fdfcf9 50%, var(--paper) 70%) 0 0 / 300% 100%; animation: mf-shimmer 1.4s linear infinite; }
@keyframes mf-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.mf-noimg { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: var(--s2); color: var(--text-2); font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); }
.mf-noimg svg { width: 64px; height: 80px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title {
  margin: var(--s3) var(--s4) var(--s1); padding: 0;
  font-family: var(--f-body); font-stretch: 100%; font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; letter-spacing: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 2.7em;
}
@media (min-width: 1024px) { .woocommerce ul.products li.product .woocommerce-loop-product__title { font-size: var(--fs-md); } }
.mf-card__meta { display: grid; gap: var(--s2); margin: 0 var(--s4) var(--s3); }
.mf-card__variant { color: var(--text-2); font-size: var(--fs-sm); }
.mf-card__battery { font-size: var(--fs-sm); color: var(--graphite); }
.woocommerce ul.products li.product .price {
  display: block; margin: auto var(--s4) 0; color: var(--ink);
  font-family: var(--f-head); font-stretch: 110%; font-size: var(--fs-lg); font-weight: 700;
}
.mf-card__gst { margin: 0 var(--s4); color: var(--text-2); font-size: var(--fs-xs); }
.mf-ticket__price .mf-card__gst { margin: 0; font-family: var(--f-body); font-weight: 400; }
.woocommerce ul.products li.product .button, .woocommerce ul.products li.product .ast-woo-product-category, .woocommerce ul.products li.product .star-rating { display: none; }

/* Shop header, results bar, pagination */
.woocommerce-products-header { margin-bottom: var(--s4); }
.woocommerce-products-header__title { margin: 0; font-size: var(--fs-2xl); }
.mf-count { margin-left: var(--s2); color: var(--text-2); vertical-align: middle; }
.term-description { color: var(--text-2); max-width: var(--measure); }
.woocommerce .woocommerce-result-count { margin: 0; color: var(--text-2); font-size: var(--fs-sm); line-height: 44px; }
.woocommerce .woocommerce-ordering { margin: 0 0 var(--s4); }
.woocommerce .woocommerce-ordering select { min-height: 44px; padding-block: 0; }
.woocommerce nav.woocommerce-pagination ul { display: flex; justify-content: center; gap: var(--s2); border: 0; }
.woocommerce nav.woocommerce-pagination ul li { border: 0; }
.woocommerce nav.woocommerce-pagination ul li a, .woocommerce nav.woocommerce-pagination ul li span {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--card);
}
.woocommerce nav.woocommerce-pagination ul li span.current { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ==========================================================================
   7. Filters: ruled groups on desktop, drawer on phones/tablets, sticky bar
   ========================================================================== */

#secondary { width: 100%; margin: 0; padding: 0; border: 0 !important; }
#secondary .sidebar-main { padding: 0; background: transparent; }
#secondary .widget { margin: 0; padding: 0; }
#secondary .wp-block-details { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; }
#secondary .widget:last-of-type .wp-block-details { border-bottom: 1px solid var(--rule); }
#secondary .wp-block-details > summary {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 48px; padding: 0; list-style: none; cursor: pointer;
  font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0;
}
#secondary .wp-block-details > summary::-webkit-details-marker { display: none; }
#secondary .wp-block-details > summary::after { content: ""; width: 8px; height: 8px; border: solid var(--graphite); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform var(--t) var(--ease); }
#secondary .wp-block-details[open] > summary::after { transform: rotate(-135deg); }
#secondary .wp-block-details > :not(summary) { margin: 0 0 var(--s4); }
#secondary .wp-block-details[open] > :not(summary) { animation: mf-ease-in var(--t) var(--ease); }
@keyframes mf-ease-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
#secondary .wc-block-components-checkbox { margin-top: var(--s2); }
#secondary .wc-block-components-checkbox label { min-height: 32px; align-items: center; font-weight: 500; }
#secondary .wc-block-active-filters { margin-bottom: var(--s4); }
#secondary .wc-block-active-filters .wc-block-active-filters__title, #secondary h3 { font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0; }
.wc-block-components-chip { border-radius: var(--r-chip) !important; background: var(--card) !important; border: 1px solid var(--rule) !important; }
.mf-brand-filter { list-style: none; margin: 0; padding: 0; }
.mf-brand-filter a { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; }
.mf-brand-filter a:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.mf-brand-filter a[aria-current="page"] { font-weight: 700; }
.mf-brand-filter .count { font-family: var(--f-mono); font-size: var(--fs-xs); color: var(--text-2); }

.mf-shopbar { display: none; }
.mf-drawer-foot { display: none; }
@media (max-width: 1023.98px) {
  .mf-shopbar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: 1fr 1fr;
    background: var(--card); border-top: 1px solid var(--rule); box-shadow: var(--lift);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .mf-shopbar__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
    min-height: 52px; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
  }
  .mf-shopbar__btn + .mf-shopbar__btn { border-left: 1px solid var(--rule); }
  .woocommerce-shop .site-content, .tax-product_brand .site-content, .tax-product_cat .site-content, .search .site-content { padding-bottom: 56px; }
  .woocommerce #secondary {
    position: fixed; inset: 0 auto 0 0; z-index: 95;
    width: min(400px, 100vw); display: flex; flex-direction: column;
    background: var(--paper); box-shadow: var(--lift); overflow-y: auto;
    transform: translateX(-102%); visibility: hidden;
    transition: transform var(--t) var(--ease), visibility 0s linear var(--t);
  }
  .woocommerce #secondary .sidebar-main { flex: 1; padding: var(--s4); }
  .mf-filters-open #secondary { transform: none; visibility: visible; transition: transform var(--t) var(--ease); }
  .mf-scrim { position: fixed; z-index: 94; pointer-events: none; }
  .mf-filters-open .mf-scrim { opacity: 1; pointer-events: auto; }
  #secondary .mf-drawer-head { position: sticky; top: 0; z-index: 1; background: var(--paper); }
  .mf-drawer-foot { display: block; position: sticky; bottom: 0; padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
  .mf-drawer-foot .mf-btn { width: 100%; }
}
@media (min-width: 1024px) {
  #secondary .mf-drawer-head { display: none; }
  .woocommerce #secondary {
    order: -1; flex: 0 0 280px; width: 280px;
    position: sticky; top: 140px; align-self: flex-start;
    max-height: calc(100vh - 160px); overflow-y: auto; padding-right: var(--s2);
  }
}

/* ==========================================================================
   8. Product page
   ========================================================================== */

.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.single-product div.product .woocommerce-product-gallery, .single-product div.product .summary { width: 100% !important; float: none !important; margin: 0 !important; }
@media (min-width: 1024px) {
  .single-product div.product { grid-template-columns: minmax(0, 55fr) minmax(0, 45fr); gap: var(--s6); align-items: start; }
  .single-product div.product .woocommerce-product-gallery { position: sticky; top: 140px; }
  .single-product div.product > :not(.woocommerce-product-gallery):not(.summary) { grid-column: 1 / -1; }
}
.woocommerce-product-gallery { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-card); padding: var(--s4); }
.woocommerce-product-gallery__image img { aspect-ratio: 4 / 5; object-fit: contain; background: var(--paper); border-radius: 6px; transition: opacity var(--t) var(--ease); }
.woocommerce div.product div.images .flex-control-thumbs { display: flex; gap: var(--s2); margin-top: var(--s3); overflow-x: auto; }
.woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 64px; width: 64px; }
.woocommerce div.product div.images .flex-control-thumbs img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain; background: var(--card); border: 1px solid var(--rule); border-radius: 6px; opacity: .8; transition: opacity var(--t-fast) var(--ease); }
.woocommerce div.product div.images .flex-control-thumbs img.flex-active, .woocommerce div.product div.images .flex-control-thumbs img:hover { opacity: 1; border-color: var(--ink); }
.woocommerce-product-gallery .mf-noimg { position: relative; aspect-ratio: 4 / 5; background: var(--paper); }
.mf-pdp__brand { margin: 0 0 var(--s2); color: var(--text-2); }
.single-product .summary .product_title { margin: 0; font-size: clamp(1.5rem, 1.2rem + 1vw, 2.125rem); }
.mf-pdp__variant { margin: var(--s2) 0 var(--s4); color: var(--text-2); }
.woocommerce div.product p.price, .woocommerce div.product span.price { margin: 0; color: var(--ink); font-family: var(--f-head); font-stretch: 110%; font-size: clamp(1.875rem, 1.5rem + 1vw, 2.5rem); font-weight: 700; }
.mf-price-note { margin: var(--s1) 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.single-product .summary .woocommerce-product-details__short-description { color: var(--text-2); }
.mf-delivery { margin: 0 0 var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.mf-delivery p { margin: 0; }
.mf-delivery .mf-mono { margin-bottom: var(--s1); color: var(--graphite); }
.woocommerce div.product form.cart { display: flex; flex-wrap: wrap; gap: var(--s3); margin: 0 0 var(--s4); }
.woocommerce div.product form.cart .quantity { display: none; }
.woocommerce div.product form.cart .button { flex: 1 1 200px; min-height: 52px; font-size: var(--fs-lg); }
.woocommerce div.product form.cart .mf-buy-now { order: -1; }
.woocommerce div.product .stock { font-weight: 600; margin-bottom: var(--s3); }
.woocommerce div.product .stock.in-stock { color: var(--success); }
.woocommerce div.product .stock.out-of-stock { color: var(--error); }
.mf-assure { list-style: none; margin: 0 0 var(--s4); padding: 0; border-top: 1px solid var(--rule); }
.mf-assure li { padding: var(--s3) 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.mf-assure a { text-decoration: none; }
.mf-assure a:hover { text-decoration: underline; }
.product_meta { color: var(--text-2); font-size: var(--fs-sm); }
.product_meta > span { display: block; }
.woocommerce div.product .woocommerce-tabs { margin-top: var(--s5); }
.woocommerce div.product .woocommerce-tabs ul.tabs {
  position: sticky; top: 132px; z-index: 5; display: flex; gap: var(--s1); margin: 0 0 var(--s5); padding: 0;
  background: var(--paper); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none;
}
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { display: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li { margin: 0; padding: 0; border: 0; border-radius: 0; background: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s4); color: var(--text-2); font-weight: 600; white-space: nowrap; text-decoration: none; border-bottom: 2px solid transparent; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-bottom-color: var(--gold); }
.woocommerce div.product .woocommerce-tabs .panel { max-width: var(--measure); animation: mf-ease-in var(--t) var(--ease); }
.woocommerce table.shop_attributes { border: 0; border-top: 1px solid var(--rule); }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { padding: var(--s3) 0; border: 0; border-bottom: 1px solid var(--rule); background: none !important; font-style: normal; }
.woocommerce table.shop_attributes th { width: 160px; font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0; color: var(--graphite); }
.related.products, .upsells.products { margin-top: var(--sec); }

/* Sticky buy bar on phones */
.mf-buybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; align-items: center; gap: var(--s2);
  padding: var(--s2) var(--gutter) calc(var(--s2) + env(safe-area-inset-bottom));
  background: var(--card); border-top: 1px solid var(--rule); box-shadow: var(--lift);
  transform: translateY(110%); transition: transform var(--t) var(--ease);
}
.mf-buybar.is-on { transform: none; }
.mf-buybar__info { display: grid; min-width: 0; flex: 1; }
.mf-buybar__price { font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-lg); line-height: 1.2; }
.mf-buybar__note { color: var(--text-2); font-size: var(--fs-xs); }
.mf-buybar .mf-btn { min-height: 44px; padding: 0 var(--s4); }
@media (min-width: 1024px) { .mf-buybar { display: none; } }

/* ==========================================================================
   9. Notices and messages: full-width tinted bars, icon + text
   ========================================================================== */

.woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner {
  position: relative;
  margin: 0 0 var(--s4) !important;
  padding: var(--s3) var(--s4) var(--s3) 44px !important;
  border: 0 !important;
  border-radius: var(--r-sm) !important;
  background: var(--info-tint) !important;
  color: var(--ink) !important;
  font-size: var(--fs-sm);
  list-style: none;
  animation: mf-slide-down var(--t) var(--ease);
}
@keyframes mf-slide-down { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.woocommerce-message { background: var(--success-tint) !important; }
.woocommerce-error { background: var(--error-tint) !important; }
.wc-block-components-notice-banner.is-success { background: var(--success-tint) !important; }
.wc-block-components-notice-banner.is-error { background: var(--error-tint) !important; }
.wc-block-components-notice-banner.is-warning { background: var(--warning-tint) !important; }
.woocommerce-message::before, .woocommerce-info::before, .woocommerce-error::before { top: 50% !important; left: 14px !important; transform: translateY(-50%); font-size: 18px; }
.woocommerce-message::before { color: var(--success) !important; }
.woocommerce-error::before { color: var(--error) !important; }
.woocommerce-info::before { color: var(--graphite) !important; }
.wc-block-components-notice-banner > svg { position: absolute; left: 12px; top: 12px; }
.woocommerce-message .button, .woocommerce-info .button, .woocommerce-error .button { float: right; min-height: 36px; margin-left: var(--s3); padding: 0 var(--s3); font-size: var(--fs-sm); }
.mf-alert { display: flex; gap: var(--s2); margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); font-size: var(--fs-sm); animation: mf-slide-down var(--t) var(--ease); }
.mf-alert--ok { background: var(--success-tint); }
.mf-alert--ok::before { content: "Done"; font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); color: var(--success); padding-top: 2px; }
.mf-alert--error { background: var(--error-tint); }
.mf-alert--error::before { content: "Problem"; font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); color: var(--error); padding-top: 2px; }
.mf-field-error { display: block; margin-top: var(--s1); color: var(--error); font-size: var(--fs-sm); animation: mf-ease-in var(--t) var(--ease); }
.mf-toast {
  position: fixed; left: 50%; bottom: 72px; z-index: 99; max-width: min(520px, calc(100vw - 32px));
  padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: var(--ink); color: var(--on-ink); font-size: var(--fs-sm);
  transform: translateX(-50%); animation: mf-slide-up var(--t) var(--ease);
}
@keyframes mf-slide-up { from { opacity: 0; transform: translate(-50%, 8px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ==========================================================================
   10. Cart, checkout, confirmation, account
   ========================================================================== */

.wc-block-cart, .wc-block-checkout { font-family: var(--f-body); }
.wc-block-cart .wc-block-cart-items, .wc-block-cart .wc-block-cart-items th, .wc-block-cart .wc-block-cart-items td { border-color: var(--rule) !important; }
.wc-block-cart-items__row { animation: mf-ease-in var(--t) var(--ease); }
.wc-block-components-product-name { font-weight: 600; color: var(--ink); text-decoration: none; }
.wc-block-components-product-metadata { color: var(--text-2); font-size: var(--fs-sm); }
@media (min-width: 1024px) { .wc-block-components-sidebar-layout .wc-block-components-sidebar { position: sticky; top: 140px; align-self: flex-start; } }
.wc-block-components-totals-wrapper { border-color: var(--rule) !important; }
.wc-block-components-totals-footer-item .wc-block-components-totals-item__label, .wc-block-components-totals-footer-item .wc-block-components-totals-item__value { font-family: var(--f-head); font-stretch: 110%; font-weight: 700; }
.wc-block-components-checkout-step { border-top: 1px solid var(--rule); padding-top: var(--s5); animation: mf-ease-in var(--t) var(--ease) both; }
.wc-block-components-checkout-step__title { font-family: var(--f-head) !important; font-stretch: 110%; font-weight: 700 !important; }
.wc-block-components-checkout-step__container::after { display: none !important; }
.wc-block-components-text-input input, .wc-block-components-combobox .wc-block-components-combobox-control input, .wc-blocks-components-select__select, .wc-block-components-textarea { border-radius: var(--r-sm) !important; border-color: #cfccc4 !important; }
.wc-block-components-text-input input:focus, .wc-blocks-components-select__select:focus { border-color: var(--ink) !important; box-shadow: 0 0 0 3px rgba(201, 162, 58, .45) !important; }
.wc-block-components-validation-error { color: var(--error) !important; animation: mf-ease-in var(--t) var(--ease); }
.wc-block-components-radio-control__option, .wc-block-components-radio-control-accordion-option { border-color: var(--rule) !important; }
.wc-block-components-checkout-place-order-button, .wc-block-cart__submit-button { width: 100%; min-height: 52px !important; }
.mf-checkout-trust { margin: var(--s3) 0 0; color: var(--text-2); font-size: var(--fs-sm); text-align: center; }

/* Order confirmation */
.woocommerce-order .woocommerce-thankyou-order-received, .woocommerce-notice--success.woocommerce-thankyou-order-received {
  display: grid; justify-items: start; gap: var(--s2); margin: 0 0 var(--s6) !important; padding: 0 !important; background: none !important; animation: none;
}
.woocommerce-thankyou-order-received::before { display: none !important; }
.mf-checkmark { color: var(--success); }
.mf-checkmark circle { stroke-dasharray: 151; stroke-dashoffset: 151; animation: mf-draw 500ms var(--ease) forwards; }
.mf-checkmark path { stroke-dasharray: 40; stroke-dashoffset: 40; animation: mf-draw 300ms var(--ease) 400ms forwards; }
@keyframes mf-draw { to { stroke-dashoffset: 0; } }
@media (prefers-reduced-motion: reduce) { .mf-checkmark circle, .mf-checkmark path { stroke-dashoffset: 0; } }
.mf-thanks__title { font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-2xl); line-height: 1.2; }
.mf-thanks__no { color: var(--text-2); font-family: var(--f-mono); font-size: var(--fs-sm); }
.woocommerce ul.order_details {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 0; margin: 0 0 var(--s6); padding: var(--s4) var(--s5);
  background: var(--cream); border: 1px solid #ece3c8; border-radius: var(--r-card);
}
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none; }
.woocommerce ul.order_details li { margin: 0; padding: var(--s2) 0; border: 0; font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); color: var(--graphite); }
.woocommerce ul.order_details li strong { display: block; margin-top: var(--s1); font-family: var(--f-body); font-size: var(--fs-md); letter-spacing: 0; text-transform: none; color: var(--ink); }
.mf-rows { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mf-rows > li, .mf-rows > div { border-bottom: 1px solid var(--rule); }
.mf-next { margin-top: var(--s5); }
.mf-next__steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: var(--s3); padding: var(--s4) 0; }
.mf-next__steps p { margin: 0; }
.mf-next__steps .mf-mono { color: var(--gold-ink); padding-top: 3px; }
.mf-next__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s5); }
.woocommerce table.shop_table { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; }
.woocommerce table.shop_table th, .woocommerce table.shop_table td { border-color: var(--rule) !important; }

/* Account */
.woocommerce-account .woocommerce { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s5); }
.woocommerce-account .woocommerce-MyAccount-navigation, .woocommerce-account .woocommerce-MyAccount-content { float: none !important; width: auto !important; }
.woocommerce-MyAccount-navigation ul { display: flex; gap: var(--s1); margin: 0; padding: 0; list-style: none; overflow-x: auto; border-bottom: 1px solid var(--rule); scrollbar-width: none; }
.woocommerce-MyAccount-navigation ul li a { display: flex; align-items: center; min-height: 48px; padding: 0 var(--s3); white-space: nowrap; color: var(--text-2); font-weight: 600; text-decoration: none; border-bottom: 2px solid transparent; }
.woocommerce-MyAccount-navigation ul li.is-active a { color: var(--ink); border-bottom-color: var(--gold); }
@media (min-width: 1024px) {
  .woocommerce-account.logged-in .woocommerce { grid-template-columns: 240px minmax(0, 1fr); align-items: start; gap: var(--s6); }
  .woocommerce-MyAccount-navigation ul { display: block; border-bottom: 0; border-top: 1px solid var(--rule); }
  .woocommerce-MyAccount-navigation ul li a { border-bottom: 1px solid var(--rule); padding: 0; }
  .woocommerce-MyAccount-navigation ul li.is-active a { border-bottom-color: var(--rule); box-shadow: inset 0 -2px 0 var(--gold); }
}
.woocommerce form.login, .woocommerce form.register, .woocommerce form.checkout_coupon, .woocommerce form.lost_reset_password, .woocommerce form.track_order {
  margin: 0; padding: var(--s5) 0 0; border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent;
}
.woocommerce-account:not(.logged-in) .u-columns { display: grid; gap: var(--s6); }
@media (min-width: 900px) { .woocommerce-account:not(.logged-in) .u-columns { grid-template-columns: 1fr 1fr; } }
.woocommerce-account .u-columns .col-1, .woocommerce-account .u-columns .col-2 { width: auto; float: none; }

/* Mini-cart */
.mf-minicart .widget_shopping_cart_content { flex: 1; overflow-y: auto; padding: var(--s4); }
.mf-minicart .woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mf-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: var(--s4) 0; font-weight: 600; }
.mf-minicart .woocommerce-mini-cart__buttons { display: grid; gap: var(--s2); margin: 0; }
.mf-minicart .mf-icon--circle-check { color: var(--success); }
.mf-minicart__continue { margin: 0 var(--s4) var(--s4); }

/* ==========================================================================
   11. Home
   ========================================================================== */

.home .site-content > .ast-container { max-width: none; padding: 0; display: block; }
.home .entry-header { display: none; }
.home .entry-content > .mf-home { max-width: none; }
.mf-open { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--rule); padding-block: clamp(24px, 3.5vw, 48px); }
.mf-open__inner { display: grid; gap: var(--s5); align-items: center; }
@media (min-width: 1024px) { .mf-open__inner { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: var(--s6); } }
.mf-open__kicker { margin: 0 0 var(--s4); color: var(--gold-ink); }
.mf-open h1 { margin: 0 0 var(--s3); max-width: 22ch; color: var(--ink); font-size: var(--fs-3xl); line-height: 1.06; }
.mf-open__lead { max-width: 48ch; margin: 0 0 var(--s4); color: var(--text-2); font-size: var(--fs-lg); }
.mf-open__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s5); margin: 0; }
.mf-open__ticket { display: none; }
@media (min-width: 1024px) { .mf-open__ticket { display: block; } }
.mf-open__ticket:empty { display: none; }

.mf-sec { width: 100%; max-width: var(--max); margin: var(--sec) auto 0; padding-inline: var(--gutter); }
.mf-sec--tight { margin-top: calc(var(--sec) * .75); }
.mf-sec:last-child { margin-bottom: var(--sec); }
.mf-sec__head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: var(--s3); }
.mf-sec__intro { max-width: 40ch; color: var(--text-2); }
@media (min-width: 1024px) { .mf-sec--split { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--s6); align-items: start; } }

.mf-brands-wrap { position: relative; }
.mf-brands { display: flex; gap: var(--s6); margin: 0; padding: 0 0 var(--s3); list-style: none; overflow-x: auto; scroll-snap-type: x proximity; scrollbar-width: thin; }
.mf-brands li { flex: 0 0 auto; scroll-snap-align: start; }
.mf-brands a { display: grid; gap: var(--s1); padding: var(--s2) 0; text-decoration: none; color: var(--ink); }
.mf-brands__name { font-family: var(--f-head); font-stretch: 115%; font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 2vw, 3rem); line-height: 1.05; transition: color var(--t-fast) var(--ease); }
.mf-brands a:hover .mf-brands__name { color: var(--gold-ink); }
.mf-brands__count { color: var(--text-2); }
@media (max-width: 1023.98px) { .mf-brands-wrap::after { content: ""; position: absolute; top: 0; right: 0; bottom: 12px; width: 40px; background: linear-gradient(90deg, rgba(247, 245, 240, 0), var(--paper)); pointer-events: none; } }

.mf-budget li a { display: grid; grid-template-columns: minmax(0, 1fr) auto 24px; align-items: center; gap: var(--s4); min-height: 56px; color: var(--ink); text-decoration: none; }
.mf-budget .mf-rows__main { transition: transform var(--t) var(--ease); }
.mf-budget li a:hover .mf-rows__main { transform: translateX(6px); }
.mf-rows__main { font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-xl); }
.mf-rows__meta { color: var(--text-2); }
.mf-rows__arrow .mf-icon { width: 22px; height: 22px; transition: transform var(--t) var(--ease); }
.mf-budget li a:hover .mf-rows__arrow .mf-icon { transform: translateX(4px); }

.mf-more { margin-top: var(--s4); }
.mf-facts > div { display: grid; grid-template-columns: 1fr; gap: var(--s1); padding: var(--s3) 0; }
@media (min-width: 600px) { .mf-facts > div { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s5); } }
.mf-facts dt { color: var(--graphite); padding-top: 3px; }
.mf-facts dd { margin: 0; }

/* Accordions (FAQ and content) */
.wp-block-details { border: 0; border-bottom: 1px solid var(--rule); background: transparent; }
.mf-faq { border-top: 1px solid var(--rule); }
.wp-block-details > summary { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); min-height: 48px; padding: var(--s2) 0; font-weight: 600; cursor: pointer; list-style: none; }
.wp-block-details > summary::-webkit-details-marker { display: none; }
.wp-block-details > summary::after { content: ""; flex: 0 0 auto; width: 9px; height: 9px; border: solid var(--ink); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); transition: transform var(--t) var(--ease); }
.wp-block-details[open] > summary::after { transform: rotate(-135deg); }
.wp-block-details > :not(summary) { margin: 0 0 var(--s4); color: var(--text-2); max-width: var(--measure); }
.wp-block-details[open] > :not(summary) { animation: mf-ease-in var(--t) var(--ease); }

/* Content is visible by default; the fade only runs once the script has marked the page ready. */
.mf-reveal-ready .mf-reveal:not(.is-in) { opacity: 0; transform: translateY(12px); }
.mf-reveal-ready .mf-reveal { transition: opacity 300ms var(--ease), transform 300ms var(--ease); }

/* ==========================================================================
   12. Text pages: 70ch column, sticky contents list, ruled identity blocks
   ========================================================================== */

body.page:not(.home):not(.woocommerce-page) .entry-content { max-width: var(--measure); }
@media (min-width: 1024px) {
  .mf-has-toc .entry-content { display: grid; grid-template-columns: minmax(0, 70ch) 240px; column-gap: var(--s6); max-width: none !important; }
  .mf-has-toc .entry-content > * { grid-column: 1; }
  .mf-has-toc .entry-content > .mf-toc { grid-column: 2; grid-row: 1 / span 400; align-self: start; position: sticky; top: 140px; }
}
.mf-toc { display: none; }
@media (min-width: 1024px) { .mf-toc { display: block; } }
.mf-toc p { margin: 0 0 var(--s2); color: var(--text-2); }
.mf-toc ol { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--rule); }
.mf-toc a { display: block; padding: var(--s2) 0; border-bottom: 1px solid var(--rule); color: var(--text-2); font-size: var(--fs-sm); text-decoration: none; }
.mf-toc a:hover, .mf-toc a[aria-current="true"] { color: var(--ink); }
.mf-identity { display: grid; margin: 0 0 var(--s5); border-top: 1px solid var(--rule); }
.mf-identity > div { display: grid; grid-template-columns: 1fr; gap: 0; padding: var(--s3) 0; border-bottom: 1px solid var(--rule); }
@media (min-width: 600px) { .mf-identity > div { grid-template-columns: 180px minmax(0, 1fr); gap: var(--s4); } }
.mf-identity dt { font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0; color: var(--graphite); padding-top: 3px; }
.mf-identity dd { margin: 0; }
.mf-brand-line { font-weight: 600; }
.mf-contact { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--s2); }
.mf-contact li { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: var(--s2); }
.mf-k { font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); color: var(--text-2); padding-top: 3px; }
.mf-placeholder { padding: var(--s3) var(--s4); border: 1.5px dashed var(--error); border-radius: var(--r-sm); background: var(--error-tint); color: var(--error); font-weight: 600; }
.mf-form-wrap { max-width: 640px; }
.mf-form p { margin: 0 0 var(--s4); }
.mf-form label { display: block; margin-bottom: var(--s1); }
.mf-form input:not([type="hidden"]), .mf-form textarea { width: 100%; }
.mf-form__note { color: var(--text-2); font-size: var(--fs-sm); }
.mf-hp { position: absolute !important; left: -9999px !important; }
.mf-empty { padding: var(--s5) 0; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); margin-bottom: var(--s5); }
.mf-empty__title { margin: 0 0 var(--s2); font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: var(--fs-xl); }
.mf-404 { padding-block: var(--s5); max-width: 720px; }
.mf-404__code { color: var(--gold-ink); margin: 0 0 var(--s3); }
.mf-404__title { font-size: var(--fs-3xl); }
.mf-404 .mf-search { margin: var(--s5) 0; }
.mf-404 .mf-search input[type="search"] { background: var(--card); border-color: #cfccc4; }
.mf-404__brands { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); list-style: none; margin: 0; padding: var(--s4) 0 0; border-top: 1px solid var(--rule); }
.mf-404__brands a { display: inline-flex; min-height: 44px; align-items: center; font-weight: 600; }
.wp-block-columns.mf-wide { gap: var(--s6); }

/* ==========================================================================
   13. Footer
   ========================================================================== */

.mf-footer { margin-top: var(--sec); background: var(--mist); color: var(--text-2); font-size: var(--fs-sm); }
.mf-footer a { color: var(--ink); text-decoration: none; }
.mf-footer a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--gold); }
.mf-footer__grid { display: grid; padding-block: var(--s5) var(--s4); }
.mf-fcol { border-bottom: 1px solid rgba(14, 14, 16, .12); }
.mf-fcol__h { display: flex; justify-content: space-between; align-items: center; min-height: 52px; color: var(--ink); font-family: var(--f-body); font-weight: 600; font-size: var(--fs-sm); letter-spacing: 0; cursor: pointer; list-style: none; }
.mf-fcol__h::-webkit-details-marker { display: none; }
.mf-fcol__h::after { content: ""; width: 8px; height: 8px; border: solid var(--graphite); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); transition: transform var(--t) var(--ease); }
.mf-fcol[open] .mf-fcol__h::after { transform: rotate(-135deg); }
.mf-fcol__body { padding-bottom: var(--s4); }
.mf-footer__list { list-style: none; margin: 0; padding: 0; }
.mf-footer__list a { display: inline-flex; align-items: center; min-height: 40px; }
.mf-footer .mf-k { color: var(--text-2); }
@media (min-width: 600px) {
  .mf-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s6); padding-block: var(--s6) var(--s4); }
  .mf-fcol { border: 0; }
  .mf-fcol__h { pointer-events: none; min-height: 0; margin-bottom: var(--s3); }
  .mf-fcol__h::after { display: none; }
}
@media (min-width: 1024px) { .mf-footer__grid { grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, 1.3fr); } }
.mf-footer__strip { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s4); padding-block: var(--s4); border-top: 1px solid rgba(14, 14, 16, .12); }
.mf-footer__statement { margin: 0; max-width: 78ch; }
.mf-footer__pay { display: flex; flex-wrap: wrap; gap: var(--s4); margin: 0; padding: 0; list-style: none; }
.mf-footer__pay li { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); }
.mf-footer__pay .mf-icon { color: var(--gold-ink); }
.mf-footer__legal { padding-block: var(--s3) var(--s4); border-top: 1px solid rgba(14, 14, 16, .12); }
.mf-footer__legal p { margin: 0 0 var(--s2); }
.mf-footer__small { font-size: var(--fs-xs); }
.mf-footer__copy { font-family: var(--f-mono); font-size: var(--fs-xs); letter-spacing: .06em; color: var(--ink); }

/* Astra parts replaced by ours */
.ast-mobile-header-wrap, .ast-desktop-header, .ast-primary-header-bar, .site-footer:not(.mf-footer), #ast-scroll-top { display: none !important; }
.single-product .summary .single-product-category, .single-product .summary .ast-woo-product-category { display: none; }

/* ==========================================================================
   14. Home banner carousel (UX-PLAN Home 0)
   ========================================================================== */

.mf-banners { position: relative; aspect-ratio: 3 / 1; overflow: hidden; background: var(--ink); }
@media (max-width: 599.98px) { .mf-banners--phone { aspect-ratio: 4 / 5; } }
.mf-banners__track { position: absolute; inset: 0; }
.mf-banner { position: absolute; inset: 0; opacity: 0; visibility: hidden; transform: scale(1.02); transition: opacity 400ms var(--ease), transform 600ms var(--ease), visibility 0s linear 400ms; }
.mf-banner.is-active { opacity: 1; visibility: visible; transform: none; transition: opacity 400ms var(--ease), transform 600ms var(--ease); }
.mf-banner a, .mf-banner picture { display: block; width: 100%; height: 100%; }
.mf-banner__img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mf-banners__dots { position: absolute; left: 50%; bottom: var(--s2); display: flex; transform: translateX(-50%); }
.mf-banners__dot { width: 44px; height: 32px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.mf-banners__dot::before { content: ""; display: block; width: 28px; height: 4px; margin: 0 auto; border-radius: 2px; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px rgba(14, 14, 16, .45); transition: background-color var(--t) var(--ease), transform var(--t) var(--ease); }
.mf-banners__dot[aria-current="true"]::before { transform: scaleX(1.3); background: var(--card); box-shadow: 0 0 0 1px rgba(14, 14, 16, .8); }
.mf-banners__arrow.mf-icon-btn { position: absolute; top: 50%; margin-top: -22px; opacity: 0; transition: opacity var(--t) var(--ease), transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease); }
.mf-banners__arrow:focus-visible { opacity: 1; }
.mf-banners__prev { left: var(--gutter); }
.mf-banners__next { right: var(--gutter); }
.mf-banners:hover .mf-banners__arrow { opacity: 1; }
@media (hover: none) { .mf-banners__arrow { display: none; } }

/* Guard: flex/grid children never grow past the viewport */
#primary { min-width: 0 !important; max-width: 100%; }
.single-product div.product > * { min-width: 0; max-width: 100%; }

/* Filters form (server-rendered) */
.mf-filters .wp-block-details { border: 0; border-top: 1px solid var(--rule); border-radius: 0; background: transparent; }
.mf-checks { display: grid; gap: 2px; }
.mf-check { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: var(--s2); min-height: 40px; font-weight: 500; cursor: pointer; }
.mf-check input { width: 18px; height: 18px; min-height: 0; margin: 0; accent-color: var(--ink); }
.mf-check .count, .mf-brand-filter .count { color: var(--text-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mf-price-range { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s2); }
.mf-price-range label { display: grid; gap: var(--s1); font-weight: 500; }
.mf-price-range input { width: 100%; min-height: 44px; }
.mf-filters__actions { display: flex; align-items: center; gap: var(--s4); padding: var(--s3) 0; border-top: 1px solid var(--rule); }
@media (max-width: 1023.98px) { .mf-filters__actions { position: sticky; bottom: 0; background: var(--paper); padding-bottom: calc(var(--s3) + env(safe-area-inset-bottom)); } .mf-filters__apply { flex: 1; } }
#primary.is-updating ul.products { opacity: .55; transition: opacity var(--t-fast) var(--ease); }

@media (max-width: 359.98px) { .mf-logo__img { height: 34px; } .mf-header__bar, .mf-header__actions { gap: var(--s1); } }

/* Card order: photo, name, variant, battery, price, tax note (Astra splits these into two wrappers) */
.woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: contents; }
.woocommerce ul.products li.product { padding-bottom: var(--s4) !important; }
.woocommerce ul.products li.product .mf-card__media { order: 1; }
.woocommerce ul.products li.product .ast-loop-product__link { order: 2; color: var(--ink); text-decoration: none; }
.woocommerce ul.products li.product .ast-loop-product__link:hover .woocommerce-loop-product__title { text-decoration: underline; text-decoration-color: var(--gold); }
.woocommerce ul.products li.product .mf-card__meta { order: 3; }
.woocommerce ul.products li.product .ast-shop-product-out-of-stock { order: 3; position: static; margin: 0 var(--s4) var(--s2); padding: 0; background: none; color: var(--error); font-size: var(--fs-sm); font-weight: 600; text-transform: none; }
.woocommerce ul.products li.product .price { order: 4; margin-top: auto; }
.woocommerce ul.products li.product .mf-card__gst { order: 5; }
.woocommerce ul.products li.product .ast-on-card-button { display: none; }

.single-product .summary > .woocommerce-breadcrumb, .single-product .summary > .mf-breadcrumb { display: none; }
.woocommerce div.product form.cart .button { margin: 0 !important; }
.mf-alert--info { background: var(--info-tint); }

/* Icon buttons: icons centred, no inherited WordPress/Astra button styles */
.mf-iconbtn, .mf-hlink, .mf-search__btn, .mf-shopbar__btn, .mf-banners__dot { -webkit-appearance: none; appearance: none; box-shadow: none; text-shadow: none; }
.mf-iconbtn { display: inline-grid; place-items: center; padding: 0; line-height: 0; }
.mf-iconbtn .mf-icon, .mf-hlink .mf-icon { display: block; vertical-align: 0; }
.mf-hlink { line-height: 1; }
.mf-iconbtn:focus, .mf-banners__dot:focus { background-color: transparent; }
@media (min-width: 1024px) { .mf-header .mf-menu-open { display: none; } }
.entry-content .mf-brands a, .entry-content .mf-budget a, .entry-content .mf-ticket__name a, .mf-brands a, .mf-budget a { text-decoration: none; }
.entry-content .mf-brands a:hover .mf-brands__name, .entry-content .mf-budget a:hover .mf-rows__main { text-decoration: underline; text-decoration-color: var(--gold); text-decoration-thickness: 2px; }

/* ==========================================================================
   15. Shared round icon button (back to top, slider arrows, close, search)
   ========================================================================== */

.mf-icon-btn {
  all: unset;
  box-sizing: border-box;
  display: grid;
  place-items: center;
  width: var(--ib);
  height: var(--ib);
  padding: 0;
  border: 1px solid var(--rule);
  border-radius: 50%;
  background: var(--card);
  color: var(--ink);
  line-height: 0;
  box-shadow: 0 2px 8px rgba(14, 14, 16, .10);
  cursor: pointer;
  transition: transform var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease), opacity var(--t) var(--ease);
}
.mf-icon-btn svg, .mf-icon-btn .mf-icon { display: block; width: 20px; height: 20px; margin: 0; }
.mf-icon-btn:hover { transform: translateY(-1px); border-color: var(--gold); }
.mf-icon-btn:active { transform: scale(.96); }
.mf-icon-btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-drawer-head .mf-icon-btn { box-shadow: none; }

/* Back to top: 48px, bottom-right, above sticky bars on phones; fades and slides in after 600px */
.mf-top.mf-icon-btn {
  --ib: 48px;
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 35;
  opacity: 0; transform: translateY(8px); pointer-events: none;
  transition: opacity var(--t) ease-out, transform var(--t) ease-out, border-color var(--t-fast) var(--ease);
}
.mf-top.mf-icon-btn.is-on { opacity: 1; transform: none; pointer-events: auto; }
.mf-top.mf-icon-btn.is-on:hover { transform: translateY(-1px); }
.mf-top.mf-icon-btn.is-on:active { transform: scale(.96); }
body:has(.mf-help-launch) .mf-top.mf-icon-btn { bottom: calc(80px + env(safe-area-inset-bottom)); }
@media (max-width: 1023.98px) {
  body:has(.mf-shopbar) .mf-top.mf-icon-btn, body:has(.mf-buybar.is-on) .mf-top.mf-icon-btn { bottom: calc(72px + env(safe-area-inset-bottom)); }
  body:has(.mf-shopbar):has(.mf-help-launch) .mf-top.mf-icon-btn, body:has(.mf-buybar.is-on):has(.mf-help-launch) .mf-top.mf-icon-btn { bottom: calc(136px + env(safe-area-inset-bottom)); }
}

/* ==========================================================================
   16. Collapsible sections (filters, phone menu, account menu)
   ========================================================================== */

.mf-coll { border-top: 1px solid var(--rule); }
.mf-coll:last-of-type { border-bottom: 1px solid var(--rule); }
.mf-coll__h { margin: 0; padding: 0; font: inherit; }
.mf-coll__h::after { display: none; }
.mf-coll__btn {
  all: unset; box-sizing: border-box;
  display: flex; align-items: center; gap: var(--s2);
  width: 100%; min-height: 48px; cursor: pointer;
  font-family: var(--f-body); font-size: var(--fs-md); font-weight: 600; color: var(--ink);
}
.mf-coll__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.mf-coll__title { flex: 1; }
.mf-coll__count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-chip); background: var(--ink); color: var(--card); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mf-coll__chev { flex: 0 0 auto; color: var(--graphite); transition: transform var(--t) ease-out; }
.mf-coll__btn[aria-expanded="true"] .mf-coll__chev { transform: rotate(180deg); }
.mf-coll__panel { display: grid; grid-template-rows: 1fr; transition: grid-template-rows var(--t) ease-out; }
.mf-coll__inner { min-height: 0; overflow: hidden; }
.mf-coll__inner > :last-child { margin-bottom: var(--s3); }
.mf-js .mf-coll[data-open="false"] .mf-coll__panel { grid-template-rows: 0fr; }
.mf-js .mf-coll[data-open="false"] .mf-coll__inner { visibility: hidden; transition: visibility 0s linear var(--t); }
.mf-js .mf-check.is-extra { display: none; }
.mf-js .mf-coll.is-all .mf-check.is-extra { display: grid; }
.mf-showall { padding: var(--s2) 0; min-height: 40px; font-size: var(--fs-sm); }
.mf-check--radio input { border-radius: 50%; }
.mf-filters__note { margin: var(--s1) 0 var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
.mf-drawer .mf-coll { border-top: 1px solid var(--rule); }
.mf-drawer .mf-coll__btn { padding: 0 var(--s4); }
.mf-drawer .mf-coll .mf-drawer__list { border-top: 0; }
.mf-drawer .mf-coll .mf-drawer__list a { padding-left: var(--s6); }
.mf-drawer__direct { margin-top: var(--s2); }
.mf-drawer__direct a { gap: var(--s3); }
.mf-drawer__direct .mf-icon { width: 20px; height: 20px; }
.mf-acc-toggle { display: none; }
@media (max-width: 1023.98px) {
  .woocommerce-MyAccount-navigation.is-collapsible .mf-acc-toggle { display: flex; }
  .woocommerce-MyAccount-navigation.is-collapsible ul { display: grid; border-bottom: 0; }
  .woocommerce-MyAccount-navigation.is-collapsible .mf-acc-panel { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--t) ease-out; border-bottom: 1px solid var(--rule); }
  .woocommerce-MyAccount-navigation.is-collapsible.is-open .mf-acc-panel { grid-template-rows: 1fr; }
  .woocommerce-MyAccount-navigation.is-collapsible .mf-acc-panel > ul { min-height: 0; overflow: hidden; }
  .woocommerce-MyAccount-navigation.is-collapsible ul li a { border-bottom: 1px solid var(--rule); }
}

/* ==========================================================================
   17. Help & WhatsApp widget
   ========================================================================== */

.mf-help-launch {
  all: unset; box-sizing: border-box;
  position: fixed; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 36;
  display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; box-shadow: 0 4px 14px rgba(14, 14, 16, .22); cursor: pointer;
  animation: mf-help-in 260ms ease-out 1.5s both;
  transition: transform var(--t-fast) var(--ease);
}
.mf-help-launch svg { display: block; }
.mf-help-launch:hover { transform: translateY(-1px); }
.mf-help-launch:active { transform: scale(.96); }
.mf-help-launch:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.mf-help-launch.is-deferred { visibility: hidden; animation: none; opacity: 0; }
@keyframes mf-help-in { from { opacity: 0; transform: scale(.8); } to { opacity: 1; transform: none; } }
@media (max-width: 1023.98px) {
  body:has(.mf-shopbar) .mf-help-launch, body:has(.mf-buybar.is-on) .mf-help-launch { bottom: calc(72px + env(safe-area-inset-bottom)); }
}
.mf-help { position: fixed; inset: 0; z-index: 96; pointer-events: none; }
.mf-help.is-open { pointer-events: auto; }
.mf-help__scrim { position: absolute; inset: 0; background: rgba(14, 14, 16, .35); opacity: 0; transition: opacity var(--t) ease-out; }
.mf-help.is-open .mf-help__scrim { opacity: 1; }
.mf-help__panel {
  position: absolute; left: 0; right: 0; bottom: 0; max-height: 90vh;
  display: flex; flex-direction: column; background: var(--card); border-radius: 16px 16px 0 0; box-shadow: var(--lift);
  opacity: 0; transform: translateY(24px); transition: opacity var(--t) ease-out, transform var(--t) ease-out;
}
.mf-help.is-open .mf-help__panel { opacity: 1; transform: none; }
@media (min-width: 600px) {
  .mf-help__scrim { background: transparent; }
  .mf-help__panel { left: auto; right: 16px; bottom: 88px; width: 360px; max-height: min(520px, calc(100vh - 104px)); border-radius: 16px; border: 1px solid var(--rule); }
}
.mf-help__head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--s3); padding: var(--s4); border-bottom: 1px solid var(--rule); }
.mf-help__title { margin: 0; font-size: var(--fs-lg); }
.mf-help__hours { margin: 2px 0 0; color: var(--text-2); font-size: var(--fs-sm); }
.mf-help__body { flex: 1; overflow-y: auto; padding: var(--s3) var(--s4); overscroll-behavior: contain; }
.mf-help__search input { width: 100%; min-height: 44px; }
.mf-help__ctx { display: grid; gap: var(--s2); margin-top: var(--s3); }
.mf-help__ctx-link { display: flex; align-items: center; min-height: 44px; padding: 0 var(--s3); border: 1px solid var(--rule); border-radius: var(--r-sm); font-weight: 600; text-decoration: none; }
.mf-help__ctx-text { margin: 0; font-size: var(--fs-sm); }
.mf-help__chips { display: flex; flex-wrap: wrap; gap: var(--s2); margin: var(--s3) 0 0; padding: 0; list-style: none; }
.mf-help__chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 0 var(--s3); border: 1px solid var(--rule); border-radius: var(--r-chip); background: var(--paper); color: var(--ink); font-size: var(--fs-sm); text-decoration: none; }
.mf-help__chips a:hover { border-color: var(--gold); }
.mf-help__sub { margin: var(--s4) 0 var(--s1); font-size: var(--fs-md); }
.mf-help__faq { border-bottom: 1px solid var(--rule); }
.mf-help__faq summary { min-height: 44px; display: flex; align-items: center; font-weight: 600; font-size: var(--fs-sm); cursor: pointer; }
.mf-help__faq p { margin: 0 0 var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
.mf-help__wa { display: flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 52px; margin: var(--s3) var(--s4) var(--s4); border-radius: var(--r-sm); background: #1f7a4d; color: #fff !important; font-weight: 700; text-decoration: none; }
.mf-help__wa svg { width: 22px; height: 22px; }
.mf-help__wa:hover { background: #18663f; }

/* ==========================================================================
   18. Popover (shared): never shifts layout
   ========================================================================== */

.mf-pop { position: relative; display: inline-flex; }
.mf-pop__btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s1); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.mf-pop__btn .mf-icon { width: 20px; height: 20px; color: var(--gold-ink); }
.mf-pop__btn span { text-decoration: underline; text-decoration-style: dotted; text-decoration-color: var(--steel); text-underline-offset: 4px; }
.mf-pop__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 4px; }
.mf-pop__body {
  position: absolute; left: 0; top: calc(100% + 4px); z-index: 30; width: max-content; max-width: min(280px, calc(100vw - 32px));
  padding: var(--s3); border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--lift);
  color: var(--text); font-size: var(--fs-sm); font-weight: 400; line-height: 1.5;
  display: none;
}
.mf-pop.is-left .mf-pop__body { left: auto; right: 0; }
.mf-pop.is-open .mf-pop__body { display: block; animation: mf-pop-in var(--t-fast) ease-out; }
@keyframes mf-pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }
.mf-pop__body a { display: inline-block; margin-top: var(--s1); font-weight: 600; }
.mf-iconrow { display: flex; flex-wrap: wrap; gap: var(--s1) var(--s3); margin: 0 0 var(--s4); padding: 0; list-style: none; }
.mf-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 768px) { .mf-strip { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.mf-strip li { display: flex; padding: var(--s2) var(--s3); border: 1px solid var(--rule); border-radius: var(--r-card); background: var(--card); }
.mf-strip .mf-pop__btn span { text-decoration: none; }
.mf-delivery-line { display: flex; align-items: center; gap: var(--s2); margin: 0 0 var(--s3); font-size: var(--fs-sm); }
.mf-delivery-line .mf-icon { width: 20px; height: 20px; color: var(--graphite); }
.mf-ticket__more { border-top: 1px solid #efe6cc; }
.mf-ticket__more summary { display: flex; justify-content: space-between; align-items: center; min-height: 40px; color: var(--text-2); font-weight: 500; cursor: pointer; list-style: none; }
.mf-ticket__more summary::-webkit-details-marker { display: none; }
.mf-ticket__more summary::after { content: "›"; font-size: 1.2em; transition: transform var(--t) ease-out; }
.mf-ticket__more[open] summary::after { transform: rotate(90deg); }
.mf-ticket__more > div { padding: 0 0 var(--s2); font-weight: 500; }
@media (min-width: 600px) { .mf-ticket__rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s5); } .mf-ticket__row { grid-template-columns: 96px minmax(0, 1fr); } .mf-ticket__row--wide { grid-column: 1 / -1; } }
.mf-taxnote { margin: 0 0 var(--s3); color: var(--text-2); font-size: var(--fs-xs); }
.mf-also { margin: 0 0 var(--s4); }
.mf-also__h { font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin: 0 0 var(--s2); letter-spacing: 0; }
.mf-also__list { display: flex; gap: var(--s2); list-style: none; margin: 0; padding: 2px 2px 6px; overflow-x: auto; scrollbar-width: none; }
.mf-also__list::-webkit-scrollbar { display: none; }
.mf-also__list > li { flex: 0 0 auto; margin: 0; }
.mf-opt { display: flex; flex-direction: column; gap: 2px; min-width: 112px; min-height: 44px; padding: var(--s2) var(--s3); border-radius: var(--r-sm); background: var(--card); box-shadow: 0 1px 2px rgba(14,14,16,.06), 0 4px 12px rgba(14,14,16,.06); color: var(--text); text-decoration: none; line-height: 1.3; transition: box-shadow var(--t-fast, .15s) ease, transform var(--t-fast, .15s) ease; }
a.mf-opt:hover { box-shadow: 0 0 0 2px var(--gold), 0 6px 16px rgba(14,14,16,.08); }
a.mf-opt:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(201,162,58,.6); }
.mf-opt.is-current { background: var(--cream); box-shadow: 0 0 0 2px var(--gold); }
.mf-opt__main { font-weight: 700; font-size: var(--fs-sm); }
.mf-opt__sub { font-size: var(--fs-xs); color: var(--text-2); }
.mf-opt__price { font-family: var(--f-head); font-weight: 700; font-size: var(--fs-sm); margin-top: 2px; }
.mf-opt__price .woocommerce-Price-amount { color: inherit; }
.mf-specchips { display: flex; flex-wrap: wrap; align-items: flex-start; gap: var(--s2); list-style: none; margin: 0 0 var(--s3); padding: 0; }
.mf-specchips li { margin: 0 !important; padding: 6px 12px !important; line-height: 1.35; border-radius: 999px; background: var(--info-tint); font-size: var(--fs-sm); color: var(--graphite); }
.mf-scarce { margin: 0 0 var(--s2); color: var(--warning); font-size: var(--fs-sm); font-weight: 600; }
.mf-sold { margin: var(--s1) 0 0; color: var(--text-2); font-size: var(--fs-sm); }

.mf-more-q > summary { display: flex; align-items: center; min-height: 48px; color: var(--gold-ink); font-weight: 600; cursor: pointer; list-style: none; }
.mf-more-q > summary::-webkit-details-marker { display: none; }
.mf-more-q[open] > summary { display: none; }
.mf-pop--info .mf-pop__btn span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ==========================================================================
   19. Rounder shapes, glass on floating surfaces, quiet horizontal scrollers
   ========================================================================== */

.woocommerce ul.products li.product, .mf-brands a, .mf-strip li, .woocommerce-product-gallery { border-radius: var(--r-md); }
.mf-drawer__panel, .mf-minicart__panel { border-radius: 0; }
@media (min-width: 600px) { .mf-minicart__panel { border-radius: var(--r-lg) 0 0 var(--r-lg); } .mf-drawer__panel { border-radius: 0 var(--r-lg) var(--r-lg) 0; } }
.mf-help__panel { border-radius: var(--r-lg) var(--r-lg) 0 0; }
@media (min-width: 600px) { .mf-help__panel { border-radius: var(--r-lg); } }
.mf-fcol, .mf-alert, .woocommerce-message, .woocommerce-info, .woocommerce-error, .wc-block-components-notice-banner { border-radius: var(--r-sm) !important; }
.mf-check input { border-radius: 4px; }
.mf-search__btn.mf-icon-btn { right: 4px; }
@media (min-width: 1024px) {
  .mf-banners { margin: var(--s4) var(--gutter) 0; border-radius: var(--r-lg); }
}

/* Glass: only small fixed or overlay surfaces (never content cards or scrolling lists) */
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail { background: var(--glass); -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.mf-header.is-compact .mf-header__top::after { background: rgba(14, 14, 16, .06); }
.mf-shopbar, .mf-buybar { background: var(--glass) !important; -webkit-backdrop-filter: saturate(160%) blur(14px); backdrop-filter: saturate(160%) blur(14px); }
.mf-minicart__panel, .mf-help__panel, .mf-pop__body, .mf-drawer__panel { background: var(--glass-strong); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: var(--lift), var(--glass-edge); }
@media (max-width: 1023.98px) { .woocommerce #secondary { background: var(--glass-strong); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); } #secondary .mf-drawer-head, .mf-filters__actions { background: transparent; } }
.mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn { background: rgba(255, 255, 255, .75); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); box-shadow: 0 2px 10px rgba(14, 14, 16, .14), var(--glass-edge); }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail, .mf-shopbar, .mf-buybar, .mf-minicart__panel, .mf-help__panel, .mf-pop__body, .mf-drawer__panel, .woocommerce #secondary, .mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn { background: var(--card) !important; }
}
@media (prefers-reduced-transparency: reduce) {
  .mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail, .mf-shopbar, .mf-buybar, .mf-minicart__panel, .mf-help__panel, .mf-pop__body, .mf-drawer__panel, .woocommerce #secondary, .mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn { background: var(--card) !important; -webkit-backdrop-filter: none; backdrop-filter: none; }
}

/* Horizontal scrollers: no visible scrollbar, still scrollable by touch, trackpad, Shift+wheel and keyboard */
.mf-hscroll, .mf-brands, .mf-rail__list, .woocommerce div.product .woocommerce-tabs ul.tabs, .woocommerce div.product div.images .flex-control-thumbs, .woocommerce-MyAccount-navigation ul, .mf-recent__list {
  overflow-x: auto; scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch;
}
.mf-hscroll::-webkit-scrollbar, .mf-brands::-webkit-scrollbar, .mf-rail__list::-webkit-scrollbar, .woocommerce div.product .woocommerce-tabs ul.tabs::-webkit-scrollbar, .woocommerce div.product div.images .flex-control-thumbs::-webkit-scrollbar, .woocommerce-MyAccount-navigation ul::-webkit-scrollbar, .mf-recent__list::-webkit-scrollbar { display: none; }
.is-ovf-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 40px), transparent); }
.is-ovf-l { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px); mask-image: linear-gradient(90deg, transparent, #000 40px); }
.is-ovf-l.is-ovf-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.mf-brands-wrap::after { display: none !important; }
@media (min-width: 1024px) { .woocommerce-MyAccount-navigation ul { overflow-x: visible; scroll-snap-type: none; } }

/* Shop by budget: tiles that read as a ladder */
.mf-budget-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s3); margin: 0; padding: 0; list-style: none; }
@media (max-width: 1023.98px) { .mf-budget-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599.98px) { .mf-budget-tiles { display: flex; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 2px var(--gutter) var(--s2); } .mf-bt { flex: 0 0 70%; scroll-snap-align: start; } }
.mf-bt a {
  position: relative; display: grid; grid-template-rows: auto auto 1fr; min-height: 148px; padding: var(--s4); overflow: hidden;
  border: 1px solid var(--rule); border-radius: var(--r-lg); background: var(--card); color: var(--ink); text-decoration: none;
  transition: transform var(--t) ease-out, box-shadow var(--t) ease-out;
}
.mf-bt--1 a { background: #fbf6e9; }
.mf-bt--2 a { background: #f5ead0; border-color: #ead9ae; }
.mf-bt--3 a { background: #2a2b2f; border-color: #2a2b2f; color: #fff; }
.mf-bt a:hover { transform: translateY(-2px); box-shadow: var(--lift); color: inherit; }
.mf-bt--3 a:hover { color: #fff; }
.mf-bt__label { font-family: var(--f-head); font-stretch: 110%; font-weight: 700; font-size: clamp(1.375rem, 1.1rem + 1vw, 1.875rem); line-height: 1.1; }
.mf-bt__count { margin-top: var(--s1); font-size: var(--fs-sm); color: var(--text-2); }
.mf-bt--3 .mf-bt__count { color: #d6d7db; }
.mf-bt__thumbs { position: relative; align-self: end; height: 52px; margin-top: var(--s3); }
.mf-bt__thumb {
  position: absolute; left: calc(var(--k) * 26px); bottom: 0; display: grid; place-items: center; width: 44px; height: 52px; overflow: hidden;
  border: 2px solid var(--card); border-radius: 10px; background: var(--paper); color: var(--steel);
  transform: rotate(calc((var(--k) - 1) * 6deg)); transition: transform var(--t) ease-out;
}
.mf-bt__thumb img { width: 100%; height: 100%; object-fit: contain; }
.mf-bt a:hover .mf-bt__thumb { transform: translateX(calc(var(--k) * 6px)) rotate(calc((var(--k) - 1) * 9deg)); }
.mf-bt__go { position: absolute; right: var(--s3); bottom: var(--s3); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--card); color: var(--ink); border: 1px solid var(--rule); }
.mf-reveal-ready .mf-reveal:not(.is-in) .mf-bt { opacity: 0; transform: translateY(8px); }
.mf-reveal-ready .mf-reveal .mf-bt { transition: opacity 300ms ease-out, transform 300ms ease-out; transition-delay: calc(var(--d) * 60ms); }

/* Recently viewed */
.mf-recent { margin-top: var(--sec); }
.mf-recent__list { display: flex; gap: var(--s3); margin: 0; padding: 0 0 var(--s2); list-style: none; }
.mf-recent__list li { flex: 0 0 140px; scroll-snap-align: start; }
.mf-recent__list a { display: grid; gap: var(--s1); padding: var(--s2); border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--card); color: var(--ink); text-decoration: none; font-size: var(--fs-sm); }
.mf-recent__list img { width: 100%; height: 110px; object-fit: contain; border-radius: var(--r-sm); background: var(--paper); }
.mf-recent__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; }
.mf-recent__price { font-weight: 700; font-variant-numeric: tabular-nums; }

/* Narrow cards: nothing may push the card wider */
.mf-card__meta { min-width: 0; }
.mf-strip li { min-width: 0; }
.mf-banners { overflow: clip; contain: paint; }

.entry-content a.mf-btn, .entry-content .mf-bt a, .entry-content .mf-bt a span, a.mf-btn, .mf-help__chips a, .mf-strip a { text-decoration: none; }
.mf-brands, .mf-budget-tiles { scroll-padding-inline: var(--gutter); }

/* Slider arrows: positions scoped so the shared button reset cannot move them */
.mf-banners .mf-banners__arrow.mf-icon-btn { position: absolute; top: 50%; margin-top: -22px; z-index: 2; }
.mf-banners .mf-banners__prev.mf-icon-btn { left: 16px; right: auto; }
.mf-banners .mf-banners__next.mf-icon-btn { right: 16px; left: auto; }
/* Compact header: light glass that stays clear over dark banners; logo never under 36px */
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail { background: rgba(255, 255, 255, .86); }
.mf-header.is-compact .mf-logo__img { transform: scale(.9); }
@media (min-width: 600px) { .mf-header.is-compact .mf-logo__img { transform: scale(.8); } }
@media (min-width: 1024px) { .mf-header.is-compact .mf-logo__img { transform: scale(.72); } }
.mf-progress { display: flex; gap: var(--s2); margin: 0 0 var(--s4); padding: 0; list-style: none; font-size: var(--fs-sm); color: var(--text-2); }
.mf-progress li { display: inline-flex; align-items: center; gap: var(--s2); }
.mf-progress li + li::before { content: "›"; color: var(--steel); }
.mf-progress .is-current { color: var(--ink); font-weight: 700; }
.mf-progress a { color: var(--text-2); }

/* Popover triggers: identical in every state (no inherited button fills) */
.mf-pop__btn .mf-icon { color: var(--gold-ink); fill: none; }
.mf-pop.is-open .mf-pop__btn span { text-decoration-color: var(--gold-ink); }
@media (hover: hover) { .mf-pop__btn:hover span { text-decoration-color: var(--ink); } }
.mf-pop__btn:focus-visible { outline: 2px solid var(--gold) !important; outline-offset: 2px; }

/* Product tabs and the "Additional information" spec sheet */
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus { outline: none; }
.woocommerce div.product .woocommerce-tabs ul.tabs li a:focus-visible { outline: 2px solid var(--gold); outline-offset: -2px; border-radius: 6px; }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a { border-bottom: 3px solid var(--gold); }
.woocommerce table.shop_attributes {
  width: 100%; margin: 0; border: 1px solid var(--rule) !important; border-collapse: separate; border-spacing: 0;
  border-radius: var(--r-md); overflow: hidden; background: var(--card);
}
.woocommerce table.shop_attributes tr { background: transparent !important; }
.woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td {
  padding: 12px var(--s4) !important; border: 0 !important; border-top: 1px solid var(--rule) !important; background: transparent !important; vertical-align: top; text-align: left;
}
.woocommerce table.shop_attributes tr:first-child th, .woocommerce table.shop_attributes tr:first-child td { border-top: 0 !important; }
.woocommerce table.shop_attributes th { width: 35%; font-family: var(--f-body); font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--text-2); }
.woocommerce table.shop_attributes td { font-size: 15px; color: var(--ink); font-style: normal; }
.woocommerce table.shop_attributes td p { margin: 0; padding: 0; }
@media (max-width: 599.98px) {
  .woocommerce table.shop_attributes, .woocommerce table.shop_attributes tbody, .woocommerce table.shop_attributes tr, .woocommerce table.shop_attributes th, .woocommerce table.shop_attributes td { display: block; width: auto; }
  .woocommerce table.shop_attributes th { padding-bottom: 0 !important; }
  .woocommerce table.shop_attributes td { border-top: 0 !important; padding-top: 2px !important; }
}

/* Our lists never inherit the content-list indent */
.entry-content ul.mf-strip, .entry-content ul.mf-budget-tiles, .entry-content ul.mf-brands, .entry-content ul.mf-iconrow, .entry-content ul.mf-recent__list, .entry-content ol.mf-progress { margin-left: 0; padding-left: 0; }
.mf-help__search input { border-radius: var(--r-pill); padding-inline: var(--s4); }

/* ==========================================================================
   20. Sort listbox and filter drawer polish
   ========================================================================== */

.mf-shop-tools, .woocommerce .woocommerce-ordering { margin: 0; }
.woocommerce-result-count { float: none !important; }
.woocommerce .woocommerce-result-count + .woocommerce-ordering, .woocommerce .woocommerce-ordering { float: none !important; }
.mf-sort { position: relative; display: inline-block; }
.mf-sort__btn { all: unset; box-sizing: border-box; display: inline-flex; align-items: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--card); color: var(--ink); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; }
.mf-sort__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-sort__k { color: var(--text-2); font-weight: 500; }
.mf-sort__list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; display: none; min-width: 240px; margin: 0; padding: var(--s2); list-style: none;
  border: 1px solid var(--rule); border-radius: var(--r-md); background: var(--glass-strong); -webkit-backdrop-filter: saturate(160%) blur(16px); backdrop-filter: saturate(160%) blur(16px); box-shadow: var(--lift), var(--glass-edge); outline: none; }
.mf-sort.is-open .mf-sort__list { display: block; animation: mf-pop-in var(--t-fast) ease-out; }
.mf-sort__list [role="option"] { position: relative; display: flex; align-items: center; min-height: 44px; padding: 0 var(--s3) 0 36px; border-radius: var(--r-sm); font-size: var(--fs-sm); cursor: pointer; }
.mf-sort__list [role="option"].is-active { background: var(--paper); }
.mf-sort__list [role="option"][aria-selected="true"] { background: #fbf3dc; font-weight: 700; }
.mf-sort__list [role="option"][aria-selected="true"]::before { content: ""; position: absolute; left: 14px; top: 50%; width: 10px; height: 5px; margin-top: -5px; border: solid var(--gold-ink); border-width: 0 0 2px 2px; transform: rotate(-45deg); }
.mf-sort__scrim { display: none; }
@media (max-width: 1023.98px) {
  .mf-sort.is-open .mf-sort__scrim { display: block; position: fixed; inset: 0; z-index: 97; background: rgba(14, 14, 16, .35); }
  .mf-sort__list { position: fixed; left: 0; right: 0; top: auto; bottom: 0; z-index: 98; min-width: 0; padding: var(--s3) var(--s3) calc(var(--s3) + env(safe-area-inset-bottom)); border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--card); }
}

/* Filter row: count and sort on one tidy line */
.ast-woocommerce-container > .woocommerce-result-count, .woocommerce-result-count { display: inline-flex; align-items: center; min-height: 44px; margin: 0 var(--s3) var(--s3) 0 !important; }
.woocommerce .woocommerce-ordering { display: inline-flex; float: right !important; margin: 0 0 var(--s3) !important; }
@media (max-width: 1023.98px) { .woocommerce .woocommerce-ordering { float: none !important; } }

/* Filter drawer: solid body, glass only on its head and footer; standard close button; dim page */
@media (max-width: 1023.98px) {
  .woocommerce #secondary { background: var(--paper) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  #secondary .mf-drawer-head { padding: var(--s3) var(--s4); background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
  .mf-filters__actions { background: var(--glass-strong) !important; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); margin-inline: calc(-1 * var(--s4)); padding-inline: var(--s4); }
  .mf-scrim { background: rgba(14, 14, 16, .35); }
}
.mf-coll__title { display: grid; gap: 2px; }
.mf-coll__sum { color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; }
.mf-rupee { position: relative; display: block; }
.mf-rupee::before { content: "₹"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--text-2); pointer-events: none; }
.mf-price-range input { padding-left: 28px; border: 1px solid var(--rule); border-radius: var(--r-sm); background: var(--card); }

/* The filter scrim never blocks clicks unless the drawer is open */
.mf-scrim { position: fixed; pointer-events: none; }
.mf-filters-open .mf-scrim { pointer-events: auto; }
@media (min-width: 1024px) { .mf-scrim { display: none; } }

/* ==========================================================================
   21. Global resets: component buttons and WooCommerce tables
   ========================================================================== */

/*
 * One root cause: Astra styles bare `button` and `button:hover, button:focus` with palette fills
 * (dark gold, white text). Every component button of ours (class mf-..., except .mf-btn) starts
 * transparent in every state. A component that wants a fill sets --btn-bg / --btn-bg-h / --btn-fg /
 * --btn-shadow instead of `background`, so no state can fall back to Astra's colours.
 */
button[class*="mf-"]:not(.mf-btn, .button),
button[class*="mf-"]:not(.mf-btn, .button):is(:hover, :focus, :focus-visible, :active, [aria-expanded="true"]) {
  background-color: var(--btn-bg, transparent);
  background-image: none;
  color: var(--btn-fg, inherit);
  box-shadow: var(--btn-shadow, none);
  text-shadow: none;
}
button[class*="mf-"]:not(.mf-btn, .button):is(:hover, :focus-visible) { background-color: var(--btn-bg-h, var(--btn-bg, transparent)); }

.mf-icon-btn { --btn-bg: var(--card); --btn-fg: var(--ink); }
.mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn { --btn-bg: rgba(255, 255, 255, .75); --btn-shadow: 0 2px 10px rgba(14, 14, 16, .14), var(--glass-edge); }
.mf-sort__btn { --btn-bg: var(--card); --btn-fg: var(--ink); }
.mf-sort__btn .mf-sort__k { color: var(--text-2); }
.mf-help-launch { --btn-bg: #25d366; --btn-fg: #fff; --btn-shadow: 0 4px 14px rgba(14, 14, 16, .22); }
.mf-iconbtn { --btn-fg: var(--ink); --btn-bg-h: var(--paper); }
.mf-drawer-head .mf-iconbtn { --btn-bg-h: var(--mist); }
.mf-pop__btn, .mf-coll__btn, .mf-shopbar__btn { --btn-fg: var(--ink); }
.mf-linkbtn { --btn-fg: var(--text); }

/* WooCommerce tables everywhere (order details, account orders, cart fallbacks):
   ruled rows only, no vertical borders, no outer box, no zebra. */
.woocommerce table.shop_table, .woocommerce-page table.shop_table, .woocommerce table.woocommerce-table, .woocommerce table.my_account_orders {
  width: 100%; margin: 0; border: 0 !important; border-radius: 0 !important; border-collapse: collapse; background: transparent;
}
.woocommerce table.shop_table :is(th, td), .woocommerce-page table.shop_table :is(th, td), .woocommerce table.woocommerce-table :is(th, td) {
  padding: var(--s3) 0; border: 0 !important; border-top: 1px solid var(--rule) !important; background: transparent !important; vertical-align: top; text-align: left;
}
.woocommerce table.shop_table thead :is(th, td) { border-top: 0 !important; padding-top: 0; color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.woocommerce table.shop_table :is(th, td):last-child:not(:first-child) { text-align: right; padding-left: var(--s3); font-variant-numeric: tabular-nums; }

/* Item meta: one muted line everywhere ("Refurbished · 6-month warranty"); WooCommerce's <dl class="variation"> is never shown */
.mf-item-meta { display: block; margin-top: 2px; color: var(--text-2); font-size: var(--fs-xs); font-weight: 500; line-height: 1.4; }
dl.variation, .wc-item-meta { display: none !important; }

/* Order details: one rounded card (order received, My account → View order) */
.woocommerce-order-details, .woocommerce-customer-details {
  margin: 0 0 var(--s5); padding: 20px; border: 1px solid var(--mist); border-radius: var(--r-md); background: var(--card);
}
.woocommerce-order-details:has(+ .woocommerce-customer-details) { margin-bottom: 0; border-bottom: 0; border-radius: var(--r-md) var(--r-md) 0 0; padding-bottom: var(--s2); }
.woocommerce-order-details + .woocommerce-customer-details { border-top: 1px solid var(--rule); border-radius: 0 0 var(--r-md) var(--r-md); }
.woocommerce-order-details__title, .woocommerce-customer-details .woocommerce-column__title, .woocommerce-customer-details > h2 {
  margin: 0 0 var(--s3); padding: 0; border: 0; background: none; font-family: var(--f-body); font-size: var(--fs-md); font-weight: 700; color: var(--ink);
}
.woocommerce-customer-details .woocommerce-column__title, .woocommerce-customer-details > h2 { font-size: var(--fs-sm); margin-bottom: var(--s2); }
.woocommerce-table--order-details .product-name a { color: var(--ink); font-weight: 600; text-decoration: none; }
.woocommerce-table--order-details .product-quantity { color: var(--text-2); font-weight: 500; }
.woocommerce-table--order-details tfoot th { font-weight: 500; color: var(--text-2); }
.woocommerce-table--order-details tfoot td { text-align: right; font-variant-numeric: tabular-nums; }
.woocommerce-table--order-details tfoot tr:has(.mf-grand) :is(th, td) { color: var(--ink); font-size: var(--fs-md); font-weight: 700; border-top: 1px solid var(--ink) !important; }
.woocommerce-table--order-details tfoot small, .woocommerce-table--order-details .includes_tax { display: block; color: var(--text-2); font-size: var(--fs-xs); font-weight: 400; }
.woocommerce-customer-details .woocommerce-columns--addresses { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s4); margin: 0; }
.woocommerce-customer-details .woocommerce-columns--addresses::before, .woocommerce-customer-details .woocommerce-columns--addresses::after { display: none; }
.woocommerce-customer-details .woocommerce-column { width: auto !important; float: none !important; margin: 0 !important; padding: 0 !important; }
.woocommerce-customer-details address { margin: 0; padding: 0 !important; border: 0 !important; font-style: normal; font-size: var(--fs-sm); line-height: 1.55; color: var(--text); }
.woocommerce-customer-details address p { margin: var(--s1) 0 0; padding: 0 !important; }
.woocommerce-customer-details address p::before { display: none !important; }
@media (max-width: 599.98px) { .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: 1fr; } }

/* Shop cards: one fixed structure so every card in a row lines up */
.mf-card__meta { gap: 2px; margin-bottom: var(--s3); }
.mf-card__variant, .mf-card__status, .mf-card__battery { display: block; min-height: 1.45em; line-height: 1.45; font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-card__status { color: var(--error); font-weight: 600; }
.woocommerce ul.products li.product .ast-shop-product-out-of-stock { display: none !important; }
.woocommerce ul.products li.product .price { margin-top: auto !important; }

/* ==========================================================================
   22. Mini-cart drawer: solid body, scrolling list, sticky footer
   ========================================================================== */

.mf-minicart__panel { overflow: hidden; background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mf-minicart .mf-drawer-head { flex: 0 0 auto; display: flex; align-items: center; justify-content: space-between; gap: var(--s3); padding: var(--s3) var(--s4); border-bottom: 1px solid var(--rule); background: var(--glass-strong); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.mf-minicart .mf-drawer-head strong { font-size: var(--fs-md); }
.mf-mc__count { color: var(--text-2); font-weight: 600; }
.mf-mc__count:empty { display: none; }
.mf-minicart .widget_shopping_cart_content { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.mf-minicart .woocommerce-mini-cart { flex: 1 1 auto; min-height: 0; margin: 0; padding: 0 var(--s4); list-style: none; border: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: none; }
.mf-minicart .woocommerce-mini-cart::-webkit-scrollbar { display: none; }
.mf-minicart .mini_cart_item { position: static; display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; align-items: start; gap: var(--s3); padding: 12px 0; border-bottom: 1px solid var(--rule); }
.mf-minicart .mini_cart_item:last-child { border-bottom: 0; }
.mf-mc__thumb { display: block; width: 64px; height: 64px; overflow: hidden; border-radius: var(--r-sm); background: var(--paper); }
.mf-minicart .mf-mc__thumb img { display: block; width: 64px !important; height: 64px !important; margin: 0 !important; object-fit: contain; border-radius: 0; float: none !important; }
.mf-mc__body { display: grid; gap: 2px; min-width: 0; }
.mf-minicart .mf-mc__name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--ink); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; text-decoration: none; }
.mf-minicart .mf-mc__name:hover { text-decoration: underline; text-decoration-color: var(--gold); }
.mf-minicart .mf-item-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-minicart .mf-mc__price { display: block; margin: 0; color: var(--ink); font-weight: 700; font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.mf-minicart .mini_cart_item a.mf-mc__remove { position: static; display: grid; place-items: center; width: 36px; height: 36px; margin: -4px 0 0; border: 1px solid var(--rule); border-radius: 50%; background: var(--card); color: var(--text-2) !important; font-size: 0; line-height: 1; text-decoration: none; }
.mf-minicart .mini_cart_item a.mf-mc__remove:hover { border-color: var(--ink); color: var(--ink) !important; background: var(--card); }
.mf-mc__foot { flex: 0 0 auto; display: grid; gap: var(--s2); padding: var(--s3) var(--s4) calc(var(--s3) + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); background: var(--card); }
.mf-minicart .woocommerce-mini-cart__total { display: flex; justify-content: space-between; align-items: baseline; margin: 0; padding: 0; border: 0; font-weight: 600; font-variant-numeric: tabular-nums; }
.mf-minicart .woocommerce-mini-cart__total strong { font-weight: 500; color: var(--text-2); }
.mf-minicart .woocommerce-mini-cart__buttons { display: grid; gap: var(--s1); margin: 0; padding: 0; }
.mf-minicart .woocommerce-mini-cart__buttons .mf-btn { width: 100%; margin: 0; }
.mf-mc__links { display: flex; justify-content: space-between; gap: var(--s2); }
.mf-mc__links .mf-linkbtn { padding: var(--s2) 0; min-height: 44px; }
.mf-minicart .woocommerce-mini-cart__empty-message { margin: 0; padding: var(--s5) var(--s4); color: var(--text-2); }
.mf-minicart__continue { margin: 0; }

/* Block cart and checkout summary: the "Condition:" label is hidden; only the short line shows */
.wc-block-components-product-details__condition .wc-block-components-product-details__name { display: none; }
.wc-block-components-product-details { margin: 2px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: var(--fs-xs); }
.wc-block-components-product-details__condition .wc-block-components-product-details__value { font-weight: 500; }

/* Card price on one line: the reference price small and inline, the current price last */
.woocommerce ul.products li.product .price { display: flex; flex-wrap: nowrap; align-items: baseline; gap: 6px; white-space: nowrap; overflow: hidden; }
.woocommerce ul.products li.product .price del { order: 0; color: var(--text-2); font-family: var(--f-body); font-size: var(--fs-xs); font-weight: 500; opacity: 1; }
.woocommerce ul.products li.product .price ins { order: 1; text-decoration: none; }
.mf-minicart .mini_cart_item::before, .mf-minicart .mini_cart_item::after { display: none !important; content: none !important; }
.mf-minicart .mf-mc__thumb img { position: static !important; }
.mf-minicart .mini_cart_item a.mf-mc__remove { position: relative; }
.mf-minicart .mini_cart_item a.mf-mc__remove::before, .mf-minicart .mini_cart_item a.mf-mc__remove::after { display: none !important; content: none !important; }
.mf-minicart .mf-mc__thumb img { top: auto !important; transform: none !important; }
.mf-minicart .woocommerce-mini-cart .mini_cart_item { padding: 12px 0 !important; margin: 0 !important; }
.mf-minicart ul.woocommerce-mini-cart { padding: 0 var(--s4) !important; }
.woocommerce-order-details__title, .woocommerce-customer-details h2, .woocommerce-customer-details .woocommerce-column__title { border: 0 !important; background: none !important; padding: 0 !important; }

/* ==========================================================================
   23. Floating glass (owner rule): warm translucent surfaces, only on floating
   elements that have content moving behind them. Never on cards, prices,
   checkout, forms, order details, account content or policy pages.
   Tokens: --glass-bg, --glass-blur, --glass-edge (docs/UX-PLAN.md §2).
   ========================================================================== */

:root {
  --glass-bg: rgba(251, 246, 233, .66);          /* cream base on light content */
  --glass-bg-strong: rgba(251, 246, 233, .84);   /* over photos and dark banners: keeps text at AA */
  --glass-solid: rgba(251, 246, 233, .96);       /* fallback: no blur, low-end devices, reduced transparency */
  --glass-blur: blur(14px) saturate(160%);
  --glass-edge: inset 0 1px 0 rgba(255, 255, 255, .7), 0 0 0 1px rgba(14, 14, 16, .06);
  --glass-border: 1px solid rgba(255, 255, 255, .45);
  --glass-shadow: 0 8px 24px rgba(14, 14, 16, .08);
  --ease-lift: cubic-bezier(.2, .7, .2, 1);
}

/* Where glass goes */
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail,
.mf-buybar, .mf-shopbar,
.mf-banners__dots,
.mf-toast,
.mf-help__head,
.mf-pop__body,
#secondary .mf-drawer-head, .mf-filters__actions {
  background: var(--glass-bg) !important;
  -webkit-backdrop-filter: var(--glass-blur) !important;
  backdrop-filter: var(--glass-blur) !important;
}
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail { background: var(--glass-bg-strong) !important; }
.mf-buybar, .mf-shopbar, .mf-toast, .mf-pop__body { border: var(--glass-border); box-shadow: var(--glass-edge), var(--glass-shadow) !important; }
.mf-buybar, .mf-shopbar { border-width: 1px 0 0; }

/* Glass buttons: banner arrows, back-to-top, Help launcher */
.mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn, .mf-help-launch {
  --btn-bg: var(--glass-bg-strong);
  --btn-fg: var(--ink);
  --btn-shadow: var(--glass-edge), var(--glass-shadow);
  border: var(--glass-border);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
}
.mf-help-launch svg path { fill: #1a8f4c; }
.mf-banners__arrow.mf-icon-btn:active, .mf-top.mf-icon-btn:active, .mf-help-launch:active { transform: scale(.97); }
.mf-banners__dots { padding: 0 var(--s1); border-radius: var(--r-pill); box-shadow: var(--glass-edge); }
.mf-banners__dot::before { background: rgba(14, 14, 16, .28); box-shadow: none; }
.mf-banners__dot[aria-current="true"]::before { background: var(--ink); box-shadow: none; }

/* Solid surfaces (options areas, drawers, mini-cart, sort list, help body) */
.mf-sort__list { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mf-drawer__panel, .mf-help__panel { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mf-minicart .mf-drawer-head, .mf-drawer .mf-drawer-head { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mf-help__panel { overflow: hidden; }

/* Motion: lift in with transform and opacity only */
.mf-buybar { opacity: 0; transition: transform 260ms var(--ease-lift), opacity 260ms var(--ease-lift); }
.mf-buybar.is-on { opacity: 1; }
.mf-toast { transition: transform 240ms var(--ease-lift), opacity 240ms var(--ease-lift); }
@media (prefers-reduced-motion: reduce) { .mf-buybar, .mf-toast { transition: none; } }

/* Fallbacks: no backdrop-filter support, reduced transparency, low-end devices */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail, .mf-buybar, .mf-shopbar, .mf-banners__dots, .mf-toast, .mf-help__head, .mf-pop__body, #secondary .mf-drawer-head, .mf-filters__actions { background: var(--glass-solid) !important; }
  .mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn, .mf-help-launch { --btn-bg: var(--glass-solid); }
}
@media (prefers-reduced-transparency: reduce) {
  .mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail, .mf-buybar, .mf-shopbar, .mf-banners__dots, .mf-toast, .mf-help__head, .mf-pop__body, #secondary .mf-drawer-head, .mf-filters__actions { background: var(--glass-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn, .mf-help-launch { --btn-bg: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
html.mf-lowfx :is(.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail, .mf-buybar, .mf-shopbar, .mf-banners__dots, .mf-toast, .mf-help__head, .mf-pop__body, #secondary .mf-drawer-head, .mf-filters__actions) { background: var(--glass-solid) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
html.mf-lowfx :is(.mf-banners__arrow.mf-icon-btn, .mf-top.mf-icon-btn, .mf-help-launch) { --btn-bg: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==========================================================================
   24. No visible scrollbars anywhere (owner rule). Scrolling still works by
   wheel, touch, trackpad, keyboard and focus; only the bar is hidden.
   ========================================================================== */
html, body, *, *::before, *::after { scrollbar-width: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar, *::-webkit-scrollbar { display: none; width: 0; height: 0; }
html { scrollbar-gutter: auto; }

/* Scroll affordance: a soft fade at the bottom of a scrolling panel while there is more below */
.mf-fade-b.is-more { -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 28px), transparent); }

/* ==========================================================================
   25. Soft cards, not outlined boxes (owner rule). Content groups sit on a white
   surface with the radius token, no (or an almost invisible) border and a very
   soft shadow. Titles are small headings, never a bordered strip. Form fields
   keep their visible edge.
   ========================================================================== */

:root {
  --soft-edge: rgba(14, 14, 16, .06);
  --soft-shadow: 0 1px 2px rgba(14, 14, 16, .05), 0 6px 18px rgba(14, 14, 16, .05);
}

.woocommerce-order-details, .woocommerce-customer-details,
.woocommerce ul.order_details, .woocommerce-order-overview,
.wp-block-woocommerce-checkout-order-summary-block,
.wc-block-components-order-summary.is-large,
.wp-block-woocommerce-cart-order-summary-block,
.woocommerce-MyAccount-content .woocommerce-Address,
.woocommerce .cart-collaterals .cart_totals {
  border: 1px solid var(--soft-edge) !important;
  border-radius: var(--r-md) !important;
  background: var(--card) !important;
  box-shadow: var(--soft-shadow);
}
.woocommerce-order-details:has(+ .woocommerce-customer-details) { border-bottom: 0 !important; box-shadow: 0 1px 2px rgba(14, 14, 16, .04); }
.woocommerce-order-details + .woocommerce-customer-details { border-top: 1px solid var(--rule) !important; border-radius: 0 0 var(--r-md) var(--r-md) !important; }

/* Order overview on the thank-you page: one card, items as label/value pairs, no dashed lines */
.woocommerce ul.order_details, .woocommerce-order-overview { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: var(--s3) var(--s4); margin: 0 0 var(--s5) !important; padding: 20px !important; list-style: none; }
.woocommerce ul.order_details::before, .woocommerce ul.order_details::after { display: none !important; }
.woocommerce ul.order_details li { float: none !important; margin: 0 !important; padding: 0 !important; border: 0 !important; color: var(--text-2); font-family: var(--f-mono, 'IBM Plex Mono', monospace); font-size: 11px; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; }
.woocommerce ul.order_details li strong { display: block; margin-top: 2px; color: var(--ink); font-family: var(--f-body); font-size: var(--fs-sm); font-weight: 600; letter-spacing: 0; text-transform: none; }

/* Address display: name 600, lines in Graphite, phone and email on their own rows with small icons; no italics */
.woocommerce-customer-details address, .woocommerce-MyAccount-content address, .wc-block-components-address-card address { font-style: normal !important; color: var(--graphite); line-height: 1.55; border: 0 !important; padding: 0 !important; background: none !important; }
.woocommerce-customer-details address::first-line { color: var(--ink); font-weight: 600; }
.woocommerce-customer-details address p.woocommerce-customer-details--phone,
.woocommerce-customer-details address p.woocommerce-customer-details--email { position: relative; margin: var(--s1) 0 0 !important; padding-left: 24px !important; }
.woocommerce-customer-details address p.woocommerce-customer-details--phone::before,
.woocommerce-customer-details address p.woocommerce-customer-details--email::before {
  content: "" !important; display: block !important; position: absolute; left: 0; top: .2em; width: 16px; height: 16px; background: var(--steel);
  -webkit-mask: var(--mf-ico) center / contain no-repeat; mask: var(--mf-ico) center / contain no-repeat;
}
.woocommerce-customer-details--phone { --mf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 16.92v3a2 2 0 0 1-2.18 2 19.79 19.79 0 0 1-8.63-3.07 19.5 19.5 0 0 1-6-6 19.79 19.79 0 0 1-3.07-8.67A2 2 0 0 1 4.11 2h3a2 2 0 0 1 2 1.72 12.84 12.84 0 0 0 .7 2.81 2 2 0 0 1-.45 2.11L8.09 9.91a16 16 0 0 0 6 6l1.27-1.27a2 2 0 0 1 2.11-.45 12.84 12.84 0 0 0 2.81.7A2 2 0 0 1 22 16.92z'/%3E%3C/svg%3E"); }
.woocommerce-customer-details--email { --mf-ico: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='16' x='2' y='4' rx='2'/%3E%3Cpath d='m22 7-8.97 5.7a1.94 1.94 0 0 1-2.06 0L2 7'/%3E%3C/svg%3E"); }
@media (min-width: 768px) { .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767.98px) { .woocommerce-customer-details .woocommerce-columns--addresses { grid-template-columns: 1fr; } }

/* Notices: soft tinted cards without the side or top line */
.woocommerce-info, .woocommerce-message, .woocommerce-error, .woocommerce-notice, .wc-block-components-notice-banner {
  border: 0 !important; border-radius: var(--r-sm) !important; box-shadow: none !important;
}
.woocommerce-info, .woocommerce-message { background: #fbf3dc !important; color: var(--ink) !important; }
.woocommerce-error { background: #fdecea !important; color: var(--ink) !important; }
.woocommerce-info::before, .woocommerce-message::before, .woocommerce-error::before { color: var(--gold-ink) !important; }
p.woocommerce-notice--success { padding: var(--s3) var(--s4); background: #eaf5ee !important; color: var(--ink); }

/* Containers that must not draw a box */
.ast-woocommerce-container, .woocommerce fieldset, .woocommerce-MyAccount-content fieldset, .widget, .woocommerce .woocommerce-form-coupon-toggle .woocommerce-info,
.wc-block-components-panel, .wc-block-checkout__actions, .wc-block-components-checkout-step, .wp-block-woocommerce-checkout-fields-block fieldset {
  border-left: 0 !important; border-right: 0 !important;
}
.woocommerce fieldset, .woocommerce-MyAccount-content fieldset { border: 0 !important; padding: 0 !important; margin: var(--s4) 0 0 !important; }
.woocommerce fieldset legend { padding: 0; font-weight: 700; font-size: var(--fs-md); }
.wc-block-components-address-card { border: 0 !important; border-radius: var(--r-sm) !important; background: var(--paper) !important; }
.wc-block-components-totals-wrapper, .wc-block-components-panel, .wc-block-components-order-summary-item { border-color: var(--rule) !important; }
.wc-block-components-totals-coupon, .wc-block-components-totals-coupon__form { border: 0 !important; }
.woocommerce form.checkout_coupon, .woocommerce form.login, .woocommerce form.register, .woocommerce form.lost_reset_password {
  border: 1px solid var(--soft-edge) !important; border-radius: var(--r-md) !important; background: var(--card); box-shadow: var(--soft-shadow);
}

/* ==========================================================================
   26. Compact header below 1024px: ONE row [menu | logo (mark on phones) | search | icons].
   Transform-only: the inner block slides up by the bar height, the bar's items slide down
   into the search row, the pill is clipped and shifted to make room (widths come from JS
   as --cl / --cr). The page below never moves (no layout shift).
   ========================================================================== */
@media (max-width: 1023.98px) {
  .mf-hlink--track { display: inline-flex; }
  .mf-hlink--track span, .mf-hlink--account span, .mf-hlink__text { display: none !important; }
  .mf-header__search--mob { padding-top: 6px; padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
  .mf-header__bar > *, .mf-header__search--mob .mf-search, .mf-header__search--mob .mf-search__btn { transition: transform var(--t-hdr) ease-out, opacity var(--t-hdr) ease-out, clip-path var(--t-hdr) ease-out; }
  .mf-header__search--mob .mf-search { clip-path: inset(0 0 0 0 round 999px); }
  .mf-header.is-compact .mf-header__inner { transform: translateY(-64px); }
  .mf-header.is-compact .mf-header__bar > * { transform: translateY(64px); }
  .mf-header.is-compact .mf-logo__img { transform: scale(.8); }
  .mf-header.is-compact .mf-header__search--mob .mf-search { transform: translateX(var(--cl, 0px)); clip-path: inset(0 calc(var(--cl, 0px) + var(--cr, 0px)) 0 0 round 999px); }
  .mf-header.is-compact .mf-header__search--mob .mf-search__btn { transform: translateX(calc(-1 * (var(--cl, 0px) + var(--cr, 0px)))); }
  .mf-header.is-compact .mf-header__search--mob input[type="search"] { border-color: rgba(14, 14, 16, .1); }
}
@media (max-width: 599.98px) {
  .mf-hlink--track { display: none !important; }
  .mf-logo__img { clip-path: inset(0 0 0 0); transition: transform var(--t-hdr) ease-out, clip-path var(--t-hdr) ease-out; }
  .mf-header.is-compact .mf-logo__img { clip-path: inset(0 67% 0 0); }
  .mf-header.is-compact .mf-hlink--account { opacity: 0; pointer-events: none; }
}
@media (prefers-reduced-motion: reduce) {
  .mf-header__bar > *, .mf-header__search--mob .mf-search, .mf-header__search--mob .mf-search__btn, .mf-logo__img { transition: none !important; }
}
@media (max-width: 1023.98px) {
  .mf-header.is-compact .mf-header__search--mob input[type="search"] { padding-right: calc(56px + var(--cl, 0px) + var(--cr, 0px)); }
}
@media (max-width: 599.98px) { .mf-header.is-compact .mf-logo__img { clip-path: inset(0 63% 0 0); } }

/* ==========================================================================
   27. Password show/hide: our round button inside the field (WooCommerce's toggle hidden)
   ========================================================================== */
.show-password-input, .woocommerce form .show-password-input, .woocommerce-page form .show-password-input { display: none !important; }
.mf-pw { position: relative; display: block; }
.mf-pw input { width: 100%; padding-right: 52px !important; transition: color 110ms ease-out; }
.mf-pw.is-fading input { color: transparent; }
.mf-pw__btn { position: absolute; right: 6px; top: 50%; width: 36px; height: 36px; margin-top: -18px; padding: 0; border: 0; border-radius: 50%; display: grid; place-items: center; cursor: pointer; --btn-fg: var(--steel); }
.mf-pw__btn:hover { --btn-fg: var(--ink); }
.mf-pw__btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.mf-eye__lid { transform-origin: 12px 12px; transform-box: view-box; }
.mf-pw__btn.is-blink .mf-eye__lid { animation: mf-blink 220ms ease-in-out; }
@keyframes mf-blink { 0%, 100% { transform: scaleY(1); } 45% { transform: scaleY(.1); } }
.mf-eye__slash { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 200ms ease-out; }
.mf-pw.is-shown .mf-eye__slash { stroke-dashoffset: 0; }
@media (prefers-reduced-motion: reduce) {
  .mf-pw input, .mf-eye__slash { transition: none; }
  .mf-pw__btn.is-blink .mf-eye__lid { animation: none; }
}

/* ==========================================================================
   28. Browser defaults in our language
   ========================================================================== */
::selection { background: #f3e3b3; color: var(--ink); }
html { -webkit-tap-highlight-color: rgba(201, 162, 58, .18); }
/* Autofill: no yellow; a soft inner fill in our paper tone */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, textarea:-webkit-autofill, select:-webkit-autofill {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px #fbf8ef inset !important; box-shadow: 0 0 0 1000px #fbf8ef inset !important;
  transition: background-color 9999s ease-out 0s;
}
input:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 1000px #fbf8ef inset, 0 0 0 3px rgba(201, 162, 58, .45) !important; box-shadow: 0 0 0 1000px #fbf8ef inset, 0 0 0 3px rgba(201, 162, 58, .45) !important; }
/* Number inputs: no spinners (steppers are ours where needed) */
input[type="number"] { -moz-appearance: textfield; appearance: textfield; }
input[type="number"]::-webkit-inner-spin-button, input[type="number"]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
/* One focus ring: gold, 2px, for every focusable element without its own */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
/* Glass with small grey text (buy bar note, shop bar, toasts) uses the stronger tint so text-2 keeps AA even over dark photos */
.mf-buybar, .mf-shopbar, .mf-toast { background: var(--glass-bg-strong) !important; }
html.mf-lowfx :is(.mf-buybar, .mf-shopbar, .mf-toast) { background: var(--glass-solid) !important; }
@media (prefers-reduced-transparency: reduce) { .mf-buybar, .mf-shopbar, .mf-toast { background: var(--glass-solid) !important; } }
/* Over dark banners the compact header and the slider dots stay light (owner: no muddy grey) */
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail { background: rgba(251, 246, 233, .92) !important; }
.mf-banners__dots { background: var(--glass-bg-strong) !important; }

/* ==========================================================================
   29. Block cart and checkout: our gutters, soft option cards, no boxed outlines
   ========================================================================== */
.entry-content > .wp-block-woocommerce-checkout.alignwide, .entry-content > .wp-block-woocommerce-cart.alignwide,
.entry-content > .wp-block-woocommerce-checkout, .entry-content > .wp-block-woocommerce-cart { margin-left: 0 !important; margin-right: 0 !important; max-width: 100% !important; width: auto !important; }
/* Shipping and payment choices: soft cards; the chosen one gets a gold edge and a light gold tint */
.wc-block-components-radio-control--highlight-checked, .wc-block-components-radio-control-accordion-option, .wc-block-components-radio-control__option,
.wc-block-checkout__shipping-option .wc-block-components-radio-control__option { border-color: var(--soft-edge) !important; }
.wc-block-components-radio-control--highlight-checked::after { border: 0 !important; }
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option,
.wc-block-components-radio-control--highlight-checked > .wc-block-components-radio-control__option {
  border-radius: var(--r-sm) !important; background: var(--card); box-shadow: var(--soft-shadow);
}
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control-accordion-option--checked-option-highlighted,
.wc-block-components-radio-control--highlight-checked .wc-block-components-radio-control__option--checked-option-highlighted {
  box-shadow: inset 0 0 0 1.5px var(--gold), var(--soft-shadow) !important; background: #fdf8ea !important; border-radius: var(--r-sm) !important;
}
.wc-block-components-radio-control--highlight-checked { border: 0 !important; border-radius: var(--r-sm) !important; box-shadow: none !important; }
.wc-block-components-radio-control__input:checked { border-color: var(--gold-ink) !important; }
.wc-block-components-radio-control__input:checked::before { background: var(--gold-ink) !important; }
.wp-block-woocommerce-checkout-order-summary-block, .wp-block-woocommerce-cart-order-summary-block { padding: var(--s1) var(--s4) !important; }
.wc-block-components-order-summary.is-large { border: 0 !important; box-shadow: none !important; background: transparent !important; }
/* Cart and checkout lines show name, condition line and price; the product's short description is not repeated */
.wc-block-components-product-metadata__description { display: none !important; }


/* ==========================================================================
   30. Loading language: no splash; a 2px gold line on navigation, quick view
   transitions, skeletons in card geometry, busy buttons that keep their width
   ========================================================================== */
.mf-navline { position: fixed; left: 0; top: 0; z-index: 100; width: 100%; height: 2px; background: var(--gold); transform: scaleX(0); transform-origin: left; opacity: 0; pointer-events: none; }
.mf-navline.is-on { opacity: 1; transform: scaleX(.8); transition: transform 4s cubic-bezier(.1, .7, .2, 1), opacity 120ms linear; }
.mf-navline.is-done { opacity: 1; transform: scaleX(1); transition: transform 160ms ease-out; }
.admin-bar .mf-navline { top: 32px; }

@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  .mf-header { view-transition-name: mf-header; }
  ::view-transition-old(root) { animation: mf-vt-out 140ms ease-in both; }
  ::view-transition-new(root) { animation: mf-vt-in 200ms cubic-bezier(.2, .7, .2, 1) both; }
}
@keyframes mf-vt-out { to { opacity: 0; } }
@keyframes mf-vt-in { from { opacity: 0; transform: translateY(6px); } }
@media (prefers-reduced-motion: reduce) { .mf-navline.is-on { transition: none; } }

/* Busy buttons: label hidden, a small ring in the button's own colour, width kept */
.mf-btn.is-loading, .button.is-loading, .wc-block-components-button.is-loading { position: relative; color: transparent !important; pointer-events: none; opacity: 1; }
.mf-btn.is-loading::after, .button.is-loading::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px;
  border: 2px solid var(--ink); border-right-color: transparent; border-radius: 50%; animation: mf-spin .7s linear infinite;
}
.mf-btn.is-added { position: relative; }
@keyframes mf-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .mf-btn.is-loading::after, .button.is-loading::after { animation-duration: 2s; } }
/* WooCommerce block spinner in our style */
.wc-block-components-spinner::after { border-color: var(--ink) !important; border-right-color: transparent !important; border-width: 2px !important; animation: mf-spin .7s linear infinite !important; }

/* Skeletons: paper blocks with a slow warm sweep (transform-based), in the real geometry */
#primary.is-updating ul.products li.product { overflow: hidden; pointer-events: none; }
#primary.is-updating ul.products li.product::before { content: ""; position: absolute; inset: 0; z-index: 3; background: var(--card); }
#primary.is-updating ul.products li.product::after {
  content: ""; position: absolute; inset: 0; z-index: 4;
  background:
    linear-gradient(var(--paper), var(--paper)) 12px 12px / calc(100% - 24px) 58% no-repeat,
    linear-gradient(var(--paper), var(--paper)) 12px calc(58% + 28px) / 80% 14px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 12px calc(58% + 52px) / 50% 12px no-repeat,
    linear-gradient(var(--paper), var(--paper)) 12px calc(100% - 28px) / 40% 18px no-repeat;
}
#primary.is-updating ul.products { position: relative; }
#primary.is-updating ul.products::after {
  content: ""; position: absolute; inset: 0; z-index: 5; pointer-events: none;
  background: linear-gradient(100deg, transparent 35%, rgba(251, 246, 233, .75) 50%, transparent 65%);
  animation: mf-sweep 1.4s linear infinite;
}
@keyframes mf-sweep { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
#primary.is-updating ul.products { overflow: hidden; }
@media (prefers-reduced-motion: reduce) { #primary.is-updating ul.products::after { animation: none; display: none; } }
/* WooCommerce block skeletons in the same look */
.wc-block-components-skeleton__element, .wc-block-components-skeleton__element--static { background: var(--paper) !important; border-radius: var(--r-sm) !important; }

/* Product gallery: reserve its final size before the slider starts (no jump on slow networks).
   Before init the wrapper is a direct child: clip it to one 4:5 photo and reserve the thumbnail row. */
.woocommerce-product-gallery > .woocommerce-product-gallery__wrapper { aspect-ratio: 4 / 5; overflow: hidden; }
.woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: calc(var(--s4) + var(--s3) + 81px); }
.woocommerce div.product div.images .flex-control-thumbs { min-height: 79px; }
.woocommerce-product-gallery .flex-viewport { aspect-ratio: 4 / 5; height: auto !important; overflow: hidden; }
.woocommerce button.button.is-loading, .woocommerce a.button.is-loading, .woocommerce .mf-btn.is-loading, .mf-btn.is-loading { color: transparent !important; }
.woocommerce button.button.is-loading::after { border-color: var(--ink); border-right-color: transparent; }
:where(button, .button, a, input):focus:not(:focus-visible) { outline: none; }
.woocommerce div.product form.cart .single_add_to_cart_button.is-loading, .woocommerce div.product form.cart .mf-buy-now.is-loading { color: transparent !important; }
.woocommerce div.product form.cart .button:focus, .mf-btn:focus, .button:focus { border-style: solid !important; }
@media (max-width: 1023.98px) { .mf-header__search--mob { overflow-x: clip; } }

/* ==========================================================================
   31. Header: one row on desktop. A "Brands" button opens a glass panel;
   the brand rail stays only on the home page.
   ========================================================================== */
.mf-header__inner { position: relative; }
.mf-hlink--brands { display: none; }
@media (min-width: 1024px) {
  .mf-hlink--brands { display: inline-flex; }
  .mf-hlink--brands .mf-icon:last-child { width: 16px; height: 16px; transition: transform var(--t-fast) var(--ease); }
  .mf-hlink--brands[aria-expanded="true"] .mf-icon:last-child { transform: rotate(180deg); }
  body:not(.home) .mf-rail { display: none !important; }
}
.mf-brandpanel { position: absolute; left: 0; right: 0; top: 100%; z-index: 60; border-bottom: 1px solid var(--soft-edge); background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur); box-shadow: var(--glass-edge), var(--glass-shadow); animation: mf-pop-in var(--t-fast) ease-out; }
.mf-brandpanel[hidden] { display: none; }
.mf-brandpanel__inner { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--s6, 48px); padding-top: var(--s5); padding-bottom: var(--s5); }
.mf-brandpanel__h { margin: 0 0 var(--s2); color: var(--text-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.mf-brandpanel__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 0 var(--s4); margin: 0; padding: 0; list-style: none; }
.mf-brandpanel__list a, .mf-brandpanel__guide a { display: block; padding: 8px 0; color: var(--ink); font-weight: 600; text-decoration: none; }
.mf-brandpanel__list a:hover, .mf-brandpanel__guide a:hover { color: var(--gold-ink); text-decoration: underline; text-decoration-color: var(--gold); }
.mf-brandpanel__guide { margin: var(--s3) 0 0; }
html.mf-lowfx .mf-brandpanel { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }

/* ==========================================================================
   32. Product page density: everything needed to decide and buy above the fold
   ========================================================================== */
.single-product .site-content > .ast-container { padding-top: var(--s2); }
.single-product .mf-breadcrumb, .single-product .woocommerce-breadcrumb { margin: 0 0 var(--s2); min-height: 28px; font-size: 13px; }
.single-product .mf-pdp__brand { display: none; }

/* Details column: one compact flow */
.single-product div.product .summary { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: var(--s2); }
.single-product div.product .summary > * { flex: 0 0 100%; min-width: 0; order: 9; }
.single-product div.product .summary .product_title {
  order: 1; margin: 0 0 var(--s2); font-size: clamp(1.5rem, 1.2rem + .9vw, 2.1rem); line-height: 1.15; text-wrap: balance;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.single-product div.product .summary > .price { order: 2; flex: 0 0 auto; margin: 0; font-size: clamp(1.6rem, 1.3rem + .8vw, 2.1rem); line-height: 1.2; }
.single-product div.product .summary > .mf-price-note { order: 2; flex: 0 0 auto; margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
.single-product div.product .summary > .mf-pdp__variant { order: 3; margin: var(--s1) 0 var(--s3); color: var(--graphite); font-size: var(--fs-sm); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.single-product div.product .summary > .mf-ticket { order: 4; }
.single-product div.product .summary > .mf-stockline { order: 5; }
.single-product div.product .summary > form.cart { order: 6; }
.single-product div.product .summary > .mf-iconrow { order: 7; }
.single-product div.product .summary > .mf-also { order: 8; }
.single-product .ast-stock-detail, .single-product .summary .stock.in-stock { display: none !important; }

/* Condition card: borderless soft card, 2x2 facts, small "Quality checked" pill */
.single-product .summary .mf-ticket {
  margin: 0 0 var(--s3); padding: var(--s3) var(--s4); border: 0; border-radius: var(--r-md); background: var(--card);
  box-shadow: var(--soft-shadow); -webkit-mask: none; mask: none;
}
.single-product .mf-ticket__head { padding: 0 0 var(--s1); margin: 0; border: 0; align-items: center; }
.single-product .mf-ticket__title { font-size: var(--fs-md); }
.single-product .mf-ticket__check { padding: 2px 10px; border-radius: var(--r-pill); background: #eaf5ee; font-size: var(--fs-xs); }
.single-product .mf-ticket__rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: var(--s4); }
.single-product .mf-ticket__row { grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: var(--s3); min-height: 40px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.single-product .mf-ticket__row--wide { grid-column: 1 / -1; }
.single-product .mf-ticket__row:nth-last-child(-n+2):not(.mf-ticket__row--wide) { border-bottom: 0; }
.single-product .mf-ticket__row dt { font-size: var(--fs-sm); }
.single-product .mf-ticket__row dd { font-size: var(--fs-sm); text-align: right; }
.single-product .mf-ticket__row--wide dd { text-align: left; }
.single-product .mf-ticket__row dd .mf-pop { display: inline-block; vertical-align: middle; }
.single-product .mf-ticket__row dd .mf-pop__btn { min-height: 32px; font-size: var(--fs-xs); font-weight: 500; }
.single-product .mf-ticket__more { margin-top: var(--s1); }

/* One merged stock + delivery line */
.single-product .mf-stockline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px var(--s2); margin: 0 0 var(--s3); font-size: var(--fs-sm); color: var(--graphite); }
.mf-stockline__in { color: var(--success); font-weight: 700; }
.mf-stockline__scarce { color: var(--ink); font-weight: 600; }

/* Buttons: one row, 52px */
.single-product div.product form.cart { display: flex; flex-wrap: nowrap; gap: var(--s2); margin: 0 0 var(--s2); }
.single-product div.product form.cart .button { flex: 1 1 0; min-height: 52px; margin: 0 !important; }
.single-product div.product form.cart .quantity { display: none; }
.single-product .mf-iconrow { margin: 0 0 var(--s3); font-size: var(--fs-xs); }

/* The Help button steps aside while the buy buttons are on screen */
.mf-help-launch { transition: transform var(--t-fast) var(--ease), opacity var(--t-fast) var(--ease); }
html.mf-buy-inview .mf-help-launch { opacity: 0; transform: translateY(12px) scale(.9); pointer-events: none; }

@media (min-width: 1024px) {
  .single-product div.product { grid-template-columns: minmax(0, 52fr) minmax(0, 48fr) !important; column-gap: var(--s5); align-items: start; }
  .single-product div.product .summary { padding-top: 0; }
  /* Gallery: sticky, fits the screen, vertical thumbnail rail on the left */
  .single-product div.product .woocommerce-product-gallery {
    position: sticky !important; top: calc(var(--mf-hdr, 80px) + 12px) !important;
    display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--s3); padding: var(--s3) !important; margin: 0 !important;
  }
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs),
  .single-product div.product .woocommerce-product-gallery:has(.woocommerce-product-gallery__image:nth-child(2)) { grid-template-columns: 64px minmax(0, 1fr); padding-bottom: var(--s3) !important; }
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport {
    grid-column: -2 / -1; grid-row: 1; aspect-ratio: auto !important; height: min(calc(100dvh - var(--mf-hdr, 80px) - 72px), 820px) !important; overflow: hidden;
  }
  .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .woocommerce-product-gallery__image, .woocommerce-product-gallery .woocommerce-product-gallery__image > a { height: 100%; }
  .woocommerce-product-gallery .woocommerce-product-gallery__image img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain; background: var(--paper); border-radius: var(--r-sm); }
  .woocommerce div.product div.images .flex-control-thumbs {
    grid-column: 1; grid-row: 1; flex-direction: column; margin: 0 !important; min-height: 0;
    max-height: min(calc(100dvh - var(--mf-hdr, 80px) - 72px), 820px); overflow-y: auto;
  }
  .woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 64px; width: 64px !important; margin: 0 !important; }
  .woocommerce-product-gallery__trigger { z-index: 5; }
}
@media (max-width: 1023.98px) {
  .single-product div.product .summary .product_title { margin-top: var(--s3); }
}
@media (max-width: 1023.98px) {
  /* Phones and tablets: a shorter photo frame and small thumbnails so photo, title, price and condition fit the first screen */
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport { aspect-ratio: auto !important; height: min(340px, 42dvh) !important; overflow: hidden; }
  .woocommerce-product-gallery .flex-viewport .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .woocommerce-product-gallery__image, .woocommerce-product-gallery .woocommerce-product-gallery__image > a { height: 100%; }
  .woocommerce-product-gallery .woocommerce-product-gallery__image img { width: 100% !important; height: 100% !important; aspect-ratio: auto !important; object-fit: contain; }
  .woocommerce div.product div.images .flex-control-thumbs { min-height: 56px; margin-top: var(--s2); }
  .woocommerce div.product div.images .flex-control-thumbs li { flex: 0 0 44px; width: 44px; }
  .woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: calc(var(--s4) + var(--s2) + 56px); }
  .single-product div.product .woocommerce-product-gallery { padding: var(--s3); }
  .single-product div.product .woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2)) { padding-bottom: calc(var(--s3) + var(--s2) + 56px); }
}
html.mf-buy-inview .mf-help-launch { animation: none !important; visibility: hidden; }
.single-product div.product .summary > .product_meta { display: none; }
/* The title is never cut: up to 3 lines */
.single-product div.product .summary .product_title { -webkit-line-clamp: 3; }
@media (max-width: 1023.98px) {
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport { height: min(300px, 38dvh) !important; }
  .single-product div.product .summary .product_title { font-size: 1.375rem; }
}

/* Footer accordions: the same chevron icon as everywhere else, turned when open */
.mf-fcol__h::after {
  content: ""; flex: 0 0 auto; width: 18px; height: 18px; border: 0 !important; border-radius: 0 !important; transform: none;
  background: var(--graphite);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t) var(--ease);
}
.mf-fcol[open] .mf-fcol__h::after { transform: rotate(180deg); }
.mf-fcol { border-radius: 0 !important; }

/* ==========================================================================
   33. Product gallery v2: the sticky part is bounded by the top two-column block
   (the gallery cell stretches to the row; its frame and rail stick inside it),
   the frame fits a 4:5 photo, the rail shows only with 2+ photos, no sticky on
   short screens.
   ========================================================================== */
@media (min-width: 1024px) {
  .single-product div.product .woocommerce-product-gallery {
    position: relative !important; top: auto !important; align-self: stretch;
    grid-template-rows: 100%; align-items: start;
    padding: 0 !important; border: 0 !important; background: transparent !important; box-shadow: none !important;
  }
  .single-product div.product .woocommerce-product-gallery:has(.flex-control-thumbs li:nth-child(2)),
  .single-product div.product .woocommerce-product-gallery:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2)) { grid-template-columns: 64px minmax(0, 1fr); }
  .single-product div.product .woocommerce-product-gallery:not(:has(.flex-control-thumbs li:nth-child(2))):not(:has(> .woocommerce-product-gallery__wrapper > .woocommerce-product-gallery__image:nth-child(2))) { grid-template-columns: minmax(0, 1fr); }
  .woocommerce div.product div.images .flex-control-thumbs:not(:has(li:nth-child(2))) { display: none !important; }

  /* The frame: a 4:5 card that fits the photo, capped to the screen height */
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport {
    --gal-h: min(calc(100dvh - var(--mf-hdr, 80px) - 32px), 820px);
    height: var(--gal-h) !important; width: auto !important; max-width: 100%; aspect-ratio: 4 / 5 !important; justify-self: center;
    border-radius: var(--r-md); background: var(--card); box-shadow: var(--soft-shadow); overflow: hidden;
  }
  .woocommerce-product-gallery .woocommerce-product-gallery__image img { border-radius: 0; background: var(--card); }
  .woocommerce div.product div.images .flex-control-thumbs { max-height: min(calc(100dvh - var(--mf-hdr, 80px) - 32px), 820px); }

  /* Sticky inside the gallery cell only (so it can never run into the tabs below) */
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport, .woocommerce div.product div.images .flex-control-thumbs {
    position: sticky !important; top: calc(var(--mf-hdr, 80px) + 12px); align-self: start;
  }
  .woocommerce-product-gallery__trigger { position: absolute; }
  /* The tabs start after the two-column block and sit above anything that scrolls */
  .single-product div.product .woocommerce-tabs { position: relative; z-index: 2; margin-top: var(--s5); }
}
@media (min-width: 1024px) and (max-height: 699.98px) {
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport, .woocommerce div.product div.images .flex-control-thumbs { position: relative !important; top: auto; }
}
/* Tab bar rule stays inside the container */
.woocommerce div.product .woocommerce-tabs { max-width: 100%; overflow-x: clip; }
.woocommerce div.product .woocommerce-tabs ul.tabs { max-width: 100%; margin-left: 0 !important; margin-right: 0 !important; }
/* Compact header: light, nearly opaque; content always below it */
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail { background: rgba(255, 253, 248, .94) !important; }
.mf-header { z-index: 50; }
.woocommerce div.product .woocommerce-tabs ul.tabs { top: calc(var(--mf-hdr-compact, 70px)); }
.woocommerce div.product .woocommerce-tabs ul.tabs::before, .woocommerce div.product .woocommerce-tabs ul.tabs::after, .woocommerce div.product .woocommerce-tabs ul.tabs li::before, .woocommerce div.product .woocommerce-tabs ul.tabs li::after { content: none !important; display: none !important; }
@media (min-width: 1024px) {
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport { --gal-h: min(calc(100dvh - var(--mf-hdr, 80px) - 72px), 820px); }
  .woocommerce div.product div.images .flex-control-thumbs { max-height: min(calc(100dvh - var(--mf-hdr, 80px) - 72px), 820px); }
}
.mf-header.is-compact .mf-header__top, .mf-header.is-compact .mf-rail { background: rgba(255, 253, 248, .97) !important; }
.woocommerce div.product .woocommerce-tabs ul.tabs { top: 76px; }
@media (min-width: 1024px) { .woocommerce-product-gallery__trigger { display: none !important; } .woocommerce-product-gallery__image a { cursor: zoom-in; } }

/* ==========================================================================
   34. Payment overlay (glass allowed): logo mark, one line, a gentle ring
   ========================================================================== */
.mf-payov { position: fixed; inset: 0; z-index: 200; display: grid; place-items: center; padding: var(--s4); background: rgba(14, 14, 16, .28); }
.mf-payov[hidden] { display: none; }
.mf-payov__card {
  display: grid; justify-items: center; gap: var(--s2); width: min(360px, 100%); padding: var(--s5) var(--s4); text-align: center;
  border: var(--glass-border); border-radius: var(--r-lg); background: var(--glass-bg-strong); -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: var(--glass-edge), var(--glass-shadow); animation: mf-pop-in 240ms var(--ease-lift);
}
.mf-payov__ring { position: relative; width: 56px; height: 56px; border-radius: 50%; background: url("../mark-192.png") center / 32px no-repeat, var(--card); }
.mf-payov__ring::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--gold); border-right-color: transparent; border-bottom-color: transparent; animation: mf-spin 1.2s linear infinite; }
.mf-payov__t { margin: var(--s2) 0 0; font-weight: 700; font-size: var(--fs-md); color: var(--ink); }
.mf-payov__s, .mf-payov__help { margin: 0; color: var(--graphite); font-size: var(--fs-sm); }
.mf-payov__help a { color: var(--ink); text-decoration-color: var(--gold); }
html.mf-lowfx .mf-payov__card { background: var(--glass-solid); -webkit-backdrop-filter: none; backdrop-filter: none; }
@media (prefers-reduced-motion: reduce) { .mf-payov__ring::after { animation-duration: 3s; } .mf-payov__card { animation: none; } }

/* ==========================================================================
   35. Product details column (accordions) and the full-width reviews section
   ========================================================================== */
.single-product div.product .summary > .mf-pdp-details { order: 10; margin-top: var(--s4); }
.mf-pdp-details .mf-coll { border-top: 1px solid var(--rule); }
.mf-pdp-details .mf-coll:last-of-type { border-bottom: 1px solid var(--rule); }
.mf-pdp-details .mf-coll__btn { min-height: 56px; padding: var(--s2) 0; }
.mf-pdp-details .mf-coll__h { font-size: var(--fs-md); }
.mf-pdp-details .mf-coll__sum { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.mf-pdp-details .mf-coll__title { min-width: 0; }
.mf-pdp-details .mf-coll__body, .mf-pdp-details .mf-coll__inner { padding-bottom: var(--s3); }
.mf-specs { display: grid; grid-template-columns: 1fr; margin: 0; }
.mf-specs > div { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr); gap: var(--s3); padding: 8px 0; border-bottom: 1px solid var(--rule); font-size: var(--fs-sm); }
.mf-specs > div:last-child { border-bottom: 0; }
.mf-specs dt { margin: 0; color: var(--text-2); }
.mf-specs dd { margin: 0; color: var(--ink); font-weight: 600; }
.mf-specs__list { margin: 0; padding-left: 1.1em; font-size: var(--fs-sm); }
.mf-desc { font-size: var(--fs-sm); color: var(--graphite); }
.mf-desc p:last-child { margin-bottom: 0; }

/* Stars: one element, filled by --r */
.mf-stars { --sz: 14px; display: inline-block; width: calc(var(--sz) * 5); height: var(--sz); vertical-align: -2px;
  background: linear-gradient(90deg, var(--gold) var(--r), var(--mist) var(--r));
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") 0 0 / var(--sz) var(--sz) repeat-x;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l3.1 6.3 6.9 1-5 4.9 1.2 6.8L12 17.8 5.8 21l1.2-6.8-5-4.9 6.9-1z'/%3E%3C/svg%3E") 0 0 / var(--sz) var(--sz) repeat-x; }
.mf-stars--lg { --sz: 22px; }

.mf-reviews { grid-column: 1 / -1; margin: var(--sec, 64px) 0 0; }
.mf-reviews__grid { display: grid; gap: var(--s5); }
@media (min-width: 1024px) { .mf-reviews__grid { grid-template-columns: 300px minmax(0, 1fr); align-items: start; } .mf-reviews__summary { position: sticky; top: 92px; } }
.mf-reviews__summary { padding: var(--s4); border-radius: var(--r-md); background: var(--card); box-shadow: var(--soft-shadow); }
.mf-reviews__avg { display: flex; align-items: center; gap: var(--s3); margin: 0; }
.mf-reviews__num { font-family: var(--f-head); font-weight: 700; font-size: 2.5rem; line-height: 1; }
.mf-reviews__count { margin: var(--s1) 0 var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
.mf-reviews__dist { margin: 0 0 var(--s3); padding: 0; list-style: none; display: grid; gap: 6px; }
.mf-reviews__dist li { display: grid; grid-template-columns: 28px 1fr 24px; align-items: center; gap: var(--s2); font-size: var(--fs-xs); color: var(--text-2); }
.mf-reviews__bar { height: 6px; border-radius: var(--r-pill); background: var(--mist); overflow: hidden; }
.mf-reviews__bar > span { display: block; height: 100%; background: var(--gold); border-radius: inherit; }
.mf-reviews__n { text-align: right; font-variant-numeric: tabular-nums; }
.mf-reviews__empty { margin: 0 0 var(--s1); font-weight: 700; }
.mf-reviews__empty-sub, .mf-reviews__note, .mf-reviews__hint { margin: 0 0 var(--s2); color: var(--text-2); font-size: var(--fs-sm); }
.mf-reviews__strip { display: flex; gap: var(--s2); margin: 0 0 var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; }
.mf-reviews__strip .mf-review__photo { flex: 0 0 88px; scroll-snap-align: start; }
.mf-reviews__tools { display: flex; gap: var(--s2); margin: 0 0 var(--s3); }
.mf-chip { min-height: 40px; padding: 0 var(--s4); border: 1px solid var(--rule) !important; border-radius: var(--r-pill); cursor: pointer; font-weight: 600; font-size: var(--fs-sm); --btn-bg: var(--card); --btn-fg: var(--ink); }
.mf-chip.is-on { --btn-bg: #fbf3dc; --btn-bg-h: #fbf3dc; border-color: var(--gold) !important; }
.mf-reviews__list { columns: 1; column-gap: var(--s3); }
@media (min-width: 700px) { .mf-reviews__list { columns: 2; } }
@media (min-width: 1280px) { .mf-reviews__list { columns: 3; } }
.mf-review { break-inside: avoid; margin: 0 0 var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--card); box-shadow: var(--soft-shadow); }
.mf-review[hidden] { display: none; }
.mf-review__head { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); }
.mf-review__name { font-weight: 700; }
.mf-review__verified { padding: 2px 8px; border-radius: var(--r-pill); background: #eaf5ee; color: var(--success); font-size: var(--fs-xs); font-weight: 600; }
.mf-review__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px var(--s2); margin: var(--s1) 0 var(--s2); color: var(--text-2); font-size: var(--fs-xs); }
.mf-review__product { margin: 0 0 var(--s2); font-size: var(--fs-xs); }
.mf-review__text { font-size: var(--fs-sm); color: var(--graphite); }
.mf-review__text p { margin: 0 0 var(--s2); }
.mf-review__photos { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s2); }
.mf-review__photo { padding: 0; border: 0; border-radius: var(--r-sm); overflow: hidden; cursor: zoom-in; line-height: 0; }
.mf-review__photo img { width: 88px; height: 88px; object-fit: cover; }
.mf-reviews__more { margin: var(--s2) 0 0; }
.mf-reviews__h3 { margin: var(--s5) 0 var(--s1); font-size: var(--fs-lg); }
.mf-reviews__form { margin-top: var(--s5); max-width: 640px; }
.mf-reviews__form .comment-form { display: grid; gap: var(--s3); padding: var(--s4); border-radius: var(--r-md); background: var(--card); box-shadow: var(--soft-shadow); }
.mf-reviews__form .comment-form p { margin: 0; }
.mf-reviews__form label { display: block; margin-bottom: 4px; }
.mf-reviews__form .stars a { color: var(--gold); }
.mf-reviews__form input[type="file"] { font-size: var(--fs-sm); }
.mf-lightbox { width: min(720px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: var(--s4); border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--glass-shadow); }
.mf-lightbox::backdrop { background: rgba(14, 14, 16, .6); }
.mf-lightbox img { display: block; width: 100%; max-height: 70dvh; object-fit: contain; border-radius: var(--r-sm); background: var(--paper); }
.mf-lightbox__close { position: absolute; top: 12px; right: 12px; }
.mf-lightbox__text { margin-top: var(--s3); font-size: var(--fs-sm); color: var(--graphite); }
.mf-lightbox__text .mf-review { box-shadow: none; padding: 0; margin: 0; }
.mf-lightbox__text .mf-review__photos { display: none; }
@media (max-width: 479.98px) { .single-product .mf-ticket__rows { grid-template-columns: 1fr; } .single-product .mf-ticket__row:nth-last-child(2):not(.mf-ticket__row--wide) { border-bottom: 1px solid var(--rule); } }

/* My account: the content shares the title's left edge */
.woocommerce-account .entry-content > .woocommerce { margin-left: 0 !important; margin-right: 0 !important; max-width: none !important; }
/* Notices focused by WooCommerce for screen readers show no outline box */
.woocommerce-message:focus, .woocommerce-info:focus, .woocommerce-error:focus, .woocommerce-notices-wrapper:focus, .wc-block-components-notice-banner:focus, .woocommerce-message:focus-visible, .woocommerce-info:focus-visible, .woocommerce-error:focus-visible, .wc-block-components-notice-banner:focus-visible { outline: none !important; box-shadow: none !important; }
.woocommerce-account .woocommerce-message, .woocommerce-account .woocommerce-info { border: 0 !important; outline: 0 !important; }

/* ==========================================================================
   36. Brands panel v2: a solid card anchored under the button (not glass), page dimmed behind
   ========================================================================== */
.mf-brandpanel {
  position: absolute; top: calc(100% + 8px); z-index: 60; display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: var(--s5);
  width: 880px; max-width: calc(100vw - 32px); padding: var(--s5); right: auto; border: 1px solid var(--soft-edge); border-radius: var(--r-lg);
  background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important;
  box-shadow: 0 2px 6px rgba(14, 14, 16, .06), 0 18px 48px rgba(14, 14, 16, .16) !important;
  opacity: 0; transform: translateY(-6px); transition: opacity 180ms ease-out, transform 180ms ease-out; animation: none;
}
.mf-brands-open .mf-brandpanel { opacity: 1; transform: none; }
.mf-brandpanel[hidden] { display: none; }
.mf-brandscrim { position: fixed; inset: 0; z-index: 45; background: rgba(14, 14, 16, .18); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; transition: opacity 180ms ease-out; }
.mf-brands-open .mf-brandscrim { opacity: 1; }
.mf-brandscrim[hidden] { display: none; }
html.mf-lowfx .mf-brandscrim { -webkit-backdrop-filter: none; backdrop-filter: none; }
.mf-brandpanel__h { margin: 0 0 var(--s3); color: var(--text-2); font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .08em; line-height: 16px; text-transform: uppercase; }
.mf-brandpanel__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); margin: 0; padding: 0; list-style: none; }
@media (min-width: 1280px) { .mf-brandpanel__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.mf-brandpanel__tile, .mf-brandpanel__pill { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); min-height: 48px; padding: 0 var(--s3); border-radius: var(--r-sm); background: var(--paper); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: none; transition: background-color var(--t-fast) var(--ease); }
.mf-brandpanel__tile:hover, .mf-brandpanel__pill:hover, .mf-brandpanel__tile:focus-visible, .mf-brandpanel__pill:focus-visible { background: #fbf3dc; color: var(--ink); }
.mf-brandpanel__tile--all { background: var(--ink); color: var(--card); }
.mf-brandpanel__tile--all:hover, .mf-brandpanel__tile--all:focus-visible { background: var(--graphite); color: var(--card); }
.mf-brandpanel__tile--all .mf-brandpanel__n { color: rgba(255, 255, 255, .75); }
.mf-brandpanel__n { color: var(--text-2); font-weight: 500; font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.mf-brandpanel__pills { display: grid; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.mf-brandpanel__pill { border-radius: var(--r-pill); padding: 0 var(--s4); }
.mf-brandpanel__guide { margin: var(--s3) 0 0; }
.mf-brandpanel__guide a { color: var(--ink); font-weight: 600; font-size: var(--fs-sm); text-decoration: underline; text-decoration-color: var(--gold); text-underline-offset: 3px; }
@media (prefers-reduced-motion: reduce) { .mf-brandpanel, .mf-brandscrim { transition: none; } }

/* Large overlays are solid (glass only on small controls): popovers, sort list, help panel, drawers, mini-cart */
.mf-pop__body { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: 0 2px 6px rgba(14, 14, 16, .06), 0 12px 32px rgba(14, 14, 16, .14) !important; border: 1px solid var(--soft-edge) !important; }
.mf-help__head { background: var(--card) !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
.mf-brandpanel__tile, .mf-brandpanel__tile:hover, .mf-brandpanel__tile:focus, .mf-brandpanel__pill, .mf-brandpanel__pill:hover, .mf-brandpanel__pill:focus { color: var(--ink) !important; }
.mf-brandpanel__tile--all, .mf-brandpanel__tile--all:hover, .mf-brandpanel__tile--all:focus { color: var(--card) !important; }
/* Brands panel balance: both columns end on the same line (tiles share the budget column's height) */
.mf-brandpanel__col { display: flex; flex-direction: column; min-width: 0; }
.mf-brandpanel__tiles { flex: 1 1 auto; grid-auto-rows: 1fr; }
.mf-brandpanel__guide { margin-top: auto !important; padding-top: var(--s3); }
.mf-brandpanel__tile--all .mf-brandpanel__n { color: var(--gold) !important; }
.mf-brandpanel__tile--all, .mf-brandpanel__tile--all:hover, .mf-brandpanel__tile--all:focus { color: #fbf6e9 !important; }
.mf-brandpanel__tiles > li { display: flex; } .mf-brandpanel__tiles .mf-brandpanel__tile { flex: 1 1 auto; }

/* Brands panel v3: horizontal split — compact brand tiles on top, budget pills in one row below */
.mf-brandpanel { grid-template-columns: minmax(0, 1fr) !important; gap: var(--s4) !important; width: 860px; padding: var(--s4) var(--s5) var(--s5); }
.mf-brandpanel__col { display: block; }
.mf-brandpanel__tiles { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; grid-auto-rows: auto !important; }
@media (min-width: 1200px) { .mf-brandpanel__tiles { grid-template-columns: repeat(6, minmax(0, 1fr)) !important; } }
.mf-brandpanel__tiles .mf-brandpanel__tile { min-height: 46px; }
.mf-brandpanel__col--budget { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); padding-top: var(--s4); border-top: 1px solid var(--mist); }
.mf-brandpanel__col--budget .mf-brandpanel__h { flex: 0 0 100%; margin-bottom: 0; }
.mf-brandpanel__pills { display: flex; flex-wrap: wrap; gap: var(--s2); }
.mf-brandpanel__pill { min-height: 40px; gap: var(--s3); }
.mf-brandpanel__guide { margin: 0 0 0 auto !important; padding: 0 !important; }
.mf-brandpanel { align-content: start; height: auto !important; }
.mf-brandpanel__col--budget { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; align-items: center; justify-items: start; text-align: left; gap: var(--s2) var(--s3); }
.mf-brandpanel__col--budget .mf-brandpanel__h { grid-column: 1 / -1; justify-self: start; }
.mf-brandpanel__col--budget .mf-brandpanel__pills { grid-column: 1; justify-content: flex-start; margin: 0; }
.mf-brandpanel__col--budget .mf-brandpanel__guide { grid-column: 2; margin: 0 !important; }
@media (max-width: 1023.98px) { .mf-brandpanel__col--budget { grid-template-columns: 1fr; } .mf-brandpanel__col--budget .mf-brandpanel__guide { grid-column: 1; } .mf-brandpanel__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }

/* ==========================================================================
   37. Filters: every group starts closed; active values show as a chip with ✕;
   Clear all on top; desktop sidebar is a compact sticky card
   ========================================================================== */
.mf-filters .mf-coll { position: relative; }
.mf-filters .mf-coll__sum { display: inline-block; max-width: 100%; margin-top: 2px; padding: 2px 8px; border-radius: var(--r-pill); background: #fbf3dc; color: var(--ink); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mf-filters .mf-coll:has(.mf-coll__clear) .mf-coll__btn { padding-right: 64px; }
.mf-filters .mf-coll:has(.mf-coll__clear) .mf-coll__count { display: none; }
.mf-coll__clear { position: absolute; right: 30px; top: 12px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; color: var(--text-2); text-decoration: none; }
.mf-coll__clear:hover, .mf-coll__clear:focus-visible { background: var(--mist); color: var(--ink); }
.mf-filters__top { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding: 0 0 var(--s2); }
.mf-filters__label { color: var(--text-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
@media (min-width: 1024px) {
  .woocommerce #secondary { position: sticky; top: 92px; align-self: flex-start; max-height: calc(100dvh - 108px); overflow-y: auto; padding: var(--s3) var(--s4) !important; border-radius: var(--r-md); background: var(--card); box-shadow: var(--soft-shadow); }
  .woocommerce #secondary .mf-coll__btn { min-height: 44px; }
}
.mf-filters .mf-coll:has(.mf-coll__clear) .mf-coll__btn { padding-right: 0; }
.mf-filters .mf-coll:has(.mf-coll__clear) .mf-coll__title { padding-right: 36px; }
.mf-filters .mf-coll__sum { justify-self: start; width: auto; }
.mf-coll__clear { right: 24px; top: 50%; margin-top: -14px; }
.mf-filters .mf-coll[data-open="true"] .mf-coll__clear { top: 22px; margin-top: 0; }
.error404 #primary.mf-404 { width: 100%; max-width: var(--max); margin: 0 auto !important; padding: var(--s3) 16px var(--s6, 48px) !important; } @media (min-width: 768px) { .error404 #primary.mf-404 { padding-left: 32px !important; padding-right: 32px !important; } }

/* ==========================================================================
   38. Listing head: one row (title + count pill · meta · Sort on the right),
   one-line intro with Read more, no "Showing x–y of z" line
   ========================================================================== */
.ast-woocommerce-container { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s4); align-items: center; }
.ast-woocommerce-container > * { grid-column: 1 / -1; min-width: 0; }
.ast-woocommerce-container > .woocommerce-products-header { display: contents; }
.woocommerce-products-header__title.page-title { grid-column: 1; grid-row: 1; margin: 0 !important; }
.ast-woocommerce-container > .woocommerce-ordering { grid-column: 2; grid-row: 1; margin: 0 !important; float: none !important; }
.ast-woocommerce-container > .mf-taxnote { grid-column: 1 / -1; grid-row: 2; margin: 2px 0 var(--s2) !important; }
.woocommerce-products-header .term-description, .woocommerce-products-header .page-description { grid-column: 1 / -1; grid-row: 3; max-width: 72ch; margin: 0; color: var(--graphite); font-size: var(--fs-sm);
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.woocommerce-products-header .term-description p, .woocommerce-products-header .page-description p { margin: 0; }
.woocommerce-products-header .term-description.is-open, .woocommerce-products-header .page-description.is-open { -webkit-line-clamp: unset; display: block; }
.mf-readmore { grid-column: 1 / -1; grid-row: 4; justify-self: start; min-height: 32px; padding: 0; font-size: var(--fs-sm); }
.ast-woocommerce-container > ul.products { margin-top: var(--s4) !important; }
.woocommerce-result-count { display: none !important; }
@media (max-width: 1023.98px) {
  .ast-woocommerce-container > .woocommerce-ordering { position: absolute; width: 0; height: 0; overflow: visible; }  /* phones open Sort from the bottom bar; the sheet itself lives here */
  .ast-woocommerce-container > .woocommerce-ordering .mf-sort__btn { display: none; }
}

/* Filters card: no hairlines; spacing and a hover fill separate the groups; apply button only when changed */
.mf-filters .mf-coll, .mf-filters .mf-coll:last-of-type, .mf-filters .mf-coll + .mf-coll { border: 0 !important; }
.mf-filters .mf-coll__btn { border-radius: var(--r-sm); padding-left: var(--s2) !important; padding-right: var(--s2) !important; }
.mf-filters .mf-coll__btn:hover { --btn-bg-h: var(--paper); }
.mf-filters .mf-coll { margin: 0 calc(-1 * var(--s2)); }
.mf-filters .mf-coll__inner { padding: 0 var(--s2) var(--s2); }
.mf-filters__top { border: 0 !important; }
.mf-filters .mf-coll__clear { right: 32px; }
.mf-filters__actions { display: none !important; background: transparent !important; border: 0 !important; box-shadow: none !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; padding: var(--s2) 0 0 !important; margin: 0 !important; }
.mf-filters__actions.is-dirty { display: block !important; }
.mf-filters__actions .mf-filters__apply { width: 100%; }
@media (max-width: 1023.98px) {
  .mf-filters__actions.is-dirty { position: sticky; bottom: 0; padding: var(--s3) 0 calc(var(--s3) + env(safe-area-inset-bottom)) !important; background: var(--paper) !important; }
}
.woocommerce #secondary { border: 0 !important; }

/* Product cards: one card; the photo fills the top edge to edge; tighter body */
.mf-card__media { margin: 0 !important; border-radius: var(--r-md) var(--r-md) 0 0 !important; aspect-ratio: 1 / 1; background: var(--paper); }
.mf-card__media img, .woocommerce ul.products li.product .mf-card__media img { padding: 0 !important; object-fit: cover; border-radius: 0; }
.mf-card__media .mf-noimg { background: var(--paper); }
.woocommerce ul.products li.product { overflow: hidden; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { margin: var(--s3) var(--s3) 2px !important; }
.mf-card__meta { margin: 0 var(--s3) var(--s2) !important; gap: 0 !important; }
.woocommerce ul.products li.product .price { margin: auto var(--s3) 0 !important; }
.woocommerce ul.products li.product { padding-bottom: var(--s3) !important; }
/* "Out of stock" as a chip on the photo, so no empty line is reserved in every card */
.mf-card__status:empty { display: none !important; }
.woocommerce ul.products li.product .mf-card__status:not(:empty) { position: absolute; top: 10px; left: 10px; z-index: 2; min-height: 0; padding: 2px 10px; border-radius: var(--r-pill); background: var(--card); color: var(--error); font-size: var(--fs-xs); box-shadow: var(--soft-shadow); }
.woocommerce ul.products li.product .woocommerce-loop-product__title { -webkit-line-clamp: 3 !important; }

/* Thin listings: honest, labelled paths below 1–4 results */
.mf-fill { grid-column: 1 / -1; display: grid; gap: var(--s6, 48px); margin-top: var(--s6, 48px); }
.mf-fill__sec .mf-h--sm, .mf-h--sm { margin: 0 0 var(--s1); font-size: var(--fs-xl, 1.5rem); }
.mf-fill__hint { margin: 0 0 var(--s3); color: var(--text-2); font-size: var(--fs-sm); }
.woocommerce ul.products.mf-cardrow { display: grid !important; grid-auto-flow: column; grid-auto-columns: minmax(220px, 260px); grid-template-columns: none !important; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 4px; }
.woocommerce ul.products.mf-cardrow > li { scroll-snap-align: start; }
.mf-fill__card { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px var(--s3); max-width: 640px; padding: var(--s4); border-radius: var(--r-md); background: var(--card); box-shadow: var(--soft-shadow); color: var(--ink); text-decoration: none; }
.mf-fill__k { grid-column: 1; color: var(--text-2); font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.mf-fill__t { grid-column: 1; font-weight: 600; }
.mf-fill__go { grid-column: 2; grid-row: 1 / span 2; font-size: 1.25rem; color: var(--gold-ink); }
.mf-fill__card:hover .mf-fill__t { text-decoration: underline; text-decoration-color: var(--gold); }
.mf-empty__actions { display: flex; flex-wrap: wrap; gap: var(--s2); }
/* Product grid: fixed card widths, 5 columns at most, never stretched */
@media (min-width: 1024px) { .woocommerce .ast-woocommerce-container > ul.products:not(.mf-cardrow) { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)) !important; } }
@media (min-width: 1700px) { .woocommerce .ast-woocommerce-container > ul.products:not(.mf-cardrow) { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; } }
.ast-woocommerce-container > ul.products:has(> li:only-child), .ast-woocommerce-container > ul.products:has(> li:nth-child(2):last-child), .ast-woocommerce-container > ul.products:has(> li:nth-child(3):last-child) { grid-template-columns: repeat(auto-fill, minmax(230px, 260px)) !important; }
.mf-fill, .mf-fill__sec, .woocommerce ul.products.mf-cardrow, .mf-fill .mf-budget-tiles { min-width: 0; max-width: 100%; } .ast-woocommerce-container { grid-template-columns: minmax(0, 1fr) minmax(0, auto); }
/* Listing head placement by order (not fixed rows), so the empty state and fillers always follow the intro */
.ast-woocommerce-container > * { order: 10; grid-row: auto !important; }
.woocommerce-products-header__title.page-title { order: 1; grid-column: 1 !important; }
.ast-woocommerce-container > .woocommerce-ordering { order: 2; grid-column: 2 !important; }
.ast-woocommerce-container > .mf-taxnote { order: 3; grid-column: 1 / -1 !important; }
.woocommerce-products-header .term-description, .woocommerce-products-header .page-description { order: 4; }
.mf-readmore { order: 5; }
.ast-woocommerce-container > .mf-shopbar { order: 0; }
.woocommerce-products-header .term-description, .woocommerce-products-header .page-description, .mf-readmore, .woocommerce-products-header__title.page-title { grid-row: auto !important; } .ast-woocommerce-container > .mf-empty { margin-top: var(--s4); }
/* Whitespace tokens: section gaps 24 / 32 / 48 */
.mf-updated { margin-top: var(--s4) !important; }
.mf-fill { margin-top: var(--s5) !important; gap: var(--s5) !important; }
@media (max-width: 781.98px) { .entry-content .wp-block-columns { gap: var(--s4) !important; } .entry-content .wp-block-columns > .wp-block-column { margin: 0 !important; } }

/* ==========================================================================
   39. Footer top band (trust items + payment pills) and Questions on every page
   ========================================================================== */
.mf-footer__band { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s3) var(--s5); padding-top: var(--s4); padding-bottom: var(--s4); border-bottom: 1px solid rgba(14, 14, 16, .08); }
.mf-footer__trust { display: flex; flex-wrap: wrap; gap: var(--s2) var(--s5); margin: 0; padding: 0; list-style: none; }
.mf-footer__trust li { display: inline-flex; align-items: center; gap: var(--s2); color: var(--ink); font-weight: 600; font-size: var(--fs-sm); }
.mf-footer__trust .mf-icon { width: 20px; height: 20px; color: var(--gold-ink); }
.mf-footer__pills { display: flex; flex-wrap: wrap; gap: var(--s2); margin: 0; padding: 0; list-style: none; }
.mf-footer__pills li { padding: 4px 12px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .7); color: var(--graphite); font-size: var(--fs-xs); font-weight: 600; }
.mf-footer__faq { padding-top: var(--s5); padding-bottom: var(--s4); border-bottom: 1px solid rgba(14, 14, 16, .08); }
.mf-footer__h { margin: 0 0 var(--s3); font-family: var(--f-head); font-size: var(--fs-xl, 1.5rem); }
.mf-faq--cols { display: grid; grid-template-columns: 1fr; gap: 0 var(--s5); }
@media (min-width: 900px) { .mf-faq--cols { grid-template-columns: 1fr 1fr; } }
.mf-faq__item { border-top: 1px solid rgba(14, 14, 16, .08); }
.mf-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: var(--s3); min-height: 48px; cursor: pointer; list-style: none; font-weight: 600; font-size: var(--fs-sm); }
.mf-faq__item summary::-webkit-details-marker { display: none; }
.mf-faq__item summary::after { content: ""; flex: 0 0 auto; width: 16px; height: 16px; background: var(--graphite);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / contain no-repeat;
  transition: transform var(--t) var(--ease); }
.mf-faq__item[open] summary::after { transform: rotate(180deg); }
.mf-faq__item p { margin: 0 0 var(--s3); color: var(--graphite); font-size: var(--fs-sm); max-width: 62ch; }
@media (max-width: 599.98px) {
  .mf-footer__trust { display: grid; grid-template-columns: 1fr 1fr; width: 100%; gap: var(--s3); }
  .mf-footer__band { padding-top: var(--s4); }
}
.mf-faq__item summary { color: var(--ink); }

/* ==========================================================================
   40. Rhythm (owner: "not by adding colours, but making it good")
   Surfaces alternate paper / white card; one gold rule per section; strong
   title-to-label contrast; spacing on the 24 / 32 / 48 scale.
   ========================================================================== */
:root { --sec: 48px; }
@media (min-width: 1024px) { :root { --sec: 48px; } }
/* Alternate surfaces on the home page: every second section sits on a white soft panel */
.home .entry-content > .mf-sec:nth-of-type(even) { padding-top: var(--s5); padding-bottom: var(--s5); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--soft-shadow); max-width: calc(var(--max) - 2 * var(--gutter, 16px)); padding-inline: clamp(16px, 3vw, 40px); }
/* Section titles: big Archivo; supporting labels small Plex Mono */
.mf-sec .mf-h, .mf-fill .mf-h, .mf-reviews > .mf-h { font-size: clamp(1.6rem, 1.15rem + 1.4vw, 2.5rem); letter-spacing: -.01em; }
.mf-sec__intro, .mf-fill__hint { font-family: var(--f-mono); font-size: 12px; letter-spacing: .04em; color: var(--text-2); }
/* Cards: variant and battery lines (from tablet up); heavier price; lift on hover */
@media (min-width: 600px) {
  .mf-card__meta { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: var(--s2); align-items: center; }
  .mf-card__meta > .mf-card__variant, .mf-card__meta > .mf-card__status { grid-column: 1 / -1; }
  .mf-card__meta > .mf-card__battery { grid-column: 1 / -1; color: var(--graphite); }
}
.woocommerce ul.products li.product .price { font-weight: 800 !important; }
.woocommerce ul.products li.product .price ins { font-weight: 800; }
@media (hover: hover) and (min-width: 1024px) {
  .woocommerce ul.products li.product { transition: transform 200ms var(--ease), box-shadow 200ms var(--ease); }
  .woocommerce ul.products li.product:hover { transform: translateY(-2px); box-shadow: 0 2px 6px rgba(14, 14, 16, .06), 0 14px 32px rgba(14, 14, 16, .10); }
  .woocommerce ul.products li.product .mf-card__alt { transition: opacity 260ms ease-out; }
}
/* Reveal once: opacity + 8px; nothing under reduced motion or on low-end devices */
.mf-reveal-ready .mf-reveal:not(.is-in) { transform: translateY(8px); }
@media (prefers-reduced-motion: reduce) { .mf-reveal-ready .mf-reveal:not(.is-in) { opacity: 1; transform: none; } }
html.mf-lowfx.mf-reveal-ready .mf-reveal:not(.is-in) { opacity: 1; transform: none; }
/* Press feedback on buttons */
.mf-btn:active, .button:active, .mf-chip:active { transform: scale(.98); }
.home .mf-sec:nth-child(even of .mf-sec) { padding-top: var(--s5); padding-bottom: var(--s5); border-radius: var(--r-lg); background: var(--card); box-shadow: var(--soft-shadow); padding-inline: clamp(16px, 3vw, 40px); }
.home .mf-sec:nth-child(even of .mf-sec) { width: auto; margin-left: clamp(16px, 2.2vw, 32px); margin-right: clamp(16px, 2.2vw, 32px); } @media (min-width: 1744px) { .home .mf-sec:nth-child(even of .mf-sec) { margin-left: auto; margin-right: auto; width: calc(var(--max) - 64px); } }
/* The home's featured condition card: the same borderless soft card as on the product page */
.mf-open .mf-ticket { border: 0; border-radius: var(--r-lg); background: var(--card); box-shadow: var(--soft-shadow); -webkit-mask: none; mask: none; padding: var(--s4); }
.mf-open .mf-ticket__head { border-bottom: 0; }
.mf-open .mf-ticket__check { padding: 2px 10px; border-radius: var(--r-pill); background: #eaf5ee; font-size: var(--fs-xs); }
.mf-open .mf-ticket__row { border-bottom-color: var(--rule); }
.home .mf-sec:nth-child(even of .mf-sec) .mf-bt > a { border-color: transparent !important; } .home .mf-sec:nth-child(even of .mf-sec) .mf-bt--0 > a { background: var(--paper) !important; }
/* Zoom/lightbox button inside the photo frame (desktop): same grid cell as the frame, sticky with it */
@media (min-width: 1024px) {
  .single-product div.product .woocommerce-product-gallery .woocommerce-product-gallery__trigger {
    display: grid !important; place-items: center; position: sticky !important; top: calc(var(--mf-hdr, 80px) + 24px); grid-column: -2 / -1; grid-row: 1; justify-self: end; align-self: start;
    z-index: 6; width: 44px; height: 44px; margin: 12px 12px 0 0; border-radius: 50%; background: rgba(255, 255, 255, .9); box-shadow: var(--soft-shadow); text-indent: 0; font-size: 0;
  }
}

/* ==========================================================================
   41. Product photo lightbox (PhotoSwipe) in our design
   ========================================================================== */
.pswp { --pswp-bg: #0e0e10; --pswp-icon-color: #fbf6e9; --pswp-icon-color-secondary: #0e0e10; --pswp-icon-stroke-color: #0e0e10; }
.pswp__bg { background: #0e0e10 !important; opacity: .94 !important; }
.pswp__top-bar { height: 68px !important; padding: 12px 12px 0; background: transparent !important; }
.pswp__button { width: 44px !important; height: 44px !important; margin: 0 0 0 8px !important; border-radius: 50% !important; background-color: rgba(251, 246, 233, .14) !important; opacity: 1 !important; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.pswp__button:hover, .pswp__button:focus-visible { background-color: rgba(251, 246, 233, .26) !important; }
.pswp__button:active { transform: scale(.96); }
.pswp__button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
.pswp__button--share, .pswp__share-tooltip { display: none !important; }
.pswp__counter { margin: 0 0 0 8px; height: 44px; line-height: 44px; color: rgba(251, 246, 233, .8); font-family: var(--f-mono); font-size: 12px; letter-spacing: .06em; opacity: 1; }
.pswp__img { border-radius: var(--r-sm); }
.pswp__caption, .pswp__dynamic-caption { display: none; }
@media (prefers-reduced-motion: reduce) { .pswp, .pswp * { transition-duration: 0s !important; animation: none !important; } }
html body .pswp .pswp__bg { opacity: .94 !important; }
.wp-block-woocommerce-empty-cart-block { display: grid; gap: var(--s4); } .mf-emptycart-h { margin: var(--s5) 0 0; } .wp-block-woocommerce-empty-cart-block .wc-block-cart__empty-cart__title { margin: var(--s4) 0 var(--s2); }
@media (min-width: 1024px) { .mf-rail { display: none !important; } }
.mf-thanks__pay { display: block; margin-top: var(--s1); color: var(--graphite); font-size: var(--fs-sm); font-weight: 500; }

/* Pay for order (Razorpay receipt): Pay Now is the primary button, Cancel a quiet text button */
#btn-razorpay { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 var(--s6, 48px); border: 0; border-radius: var(--r-pill); background: var(--gold) !important; color: var(--ink) !important; font: inherit; font-weight: 700; cursor: pointer; }
#btn-razorpay-cancel { min-height: 44px; margin-left: var(--s3); padding: 0 var(--s2); border: 0; background: transparent !important; color: var(--text-2) !important; font: inherit; font-weight: 600; text-decoration: underline; text-decoration-color: var(--mist); text-underline-offset: 3px; cursor: pointer; box-shadow: none !important; }
#btn-razorpay-cancel:hover { color: var(--ink) !important; }
.mf-payfail { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); border-radius: var(--r-sm); background: #fbf3dc; color: var(--ink); }
.mf-payfail p { margin: 0; }
.mf-payfail p + p { margin-top: var(--s1); }
.mf-payfail[hidden] { display: none; }
.mf-payfail { border: 0 !important; box-shadow: none !important; }
/* Phone product page: compact first screen (condition chips under the price) */
.mf-quickfacts { display: none; }
@media (max-width: 1023.98px) {
  .single-product div.product .summary > .mf-quickfacts { order: 3; display: flex; flex-wrap: nowrap; gap: 6px; margin: var(--s2) 0 var(--s2); padding: 0; list-style: none; overflow: hidden; }
  .mf-quickfacts li { display: inline-flex; align-items: center; min-height: 32px; padding: 0 10px; border-radius: var(--r-pill); background: var(--card); box-shadow: var(--soft-shadow); font-size: var(--fs-xs); font-weight: 600; white-space: nowrap; }
  .single-product .mf-breadcrumb { font-size: 12px; min-height: 0; margin-bottom: var(--s1); }
  .single-product div.product .summary .product_title { margin-top: var(--s2) !important; margin-bottom: 4px !important; font-size: 1.25rem; }
  .single-product div.product .summary > .price { font-size: 1.5rem; }
  .single-product div.product .summary > .mf-pdp__variant { margin: 2px 0 0; }
  .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport { height: min(300px, 36dvh) !important; }
}
@media (max-width: 599.98px) { .single-product .mf-breadcrumb { display: none; } .woocommerce-product-gallery > .woocommerce-product-gallery__wrapper, .woocommerce-product-gallery .flex-viewport { height: min(300px, 34dvh) !important; } .single-product .site-content > .ast-container { padding-top: var(--s2); } }
.single-product div.product .summary > .mf-heart--text { flex: 0 0 auto !important; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; width: auto !important; min-height: 40px; padding: 0 var(--s3); order: 7; border-radius: var(--r-pill); }

/* Skeletons: mini-cart rows while adding, recently-viewed photos while loading (same warm sweep) */
.mf-skel { position: relative; display: block; overflow: hidden; border-radius: var(--r-sm); background: var(--paper); }
.mf-skel::after { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, transparent 30%, rgba(251, 246, 233, .9) 50%, transparent 70%); animation: mf-sweep 1.4s linear infinite; }
.mf-skel--line { height: 12px; margin: 4px 0; width: 90%; }
.mf-skel--short { width: 55%; }
.mf-skel--price { width: 35%; height: 16px; margin-top: 8px; }
.mf-mc--skel .mf-mc__thumb { width: 64px; height: 64px; }
.mf-recent img.mf-skel-img { background: var(--paper); opacity: 0; transition: opacity var(--t) var(--ease); }
.mf-recent img.mf-skel-img.is-loaded { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .mf-skel::after { animation: none; } }

/* ==========================================================================
   PhonePe (online payment): option card with method pills, pay page, plugin leftovers
   ========================================================================== */
.mf-paylabel { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); }
.mf-paylabel__t { font-weight: 600; }
.mf-paypills { display: inline-flex; flex-wrap: wrap; gap: var(--s1); }
.mf-paypills > span { display: inline-flex; align-items: center; min-height: 22px; padding: 0 var(--s2); border-radius: var(--r-pill); background: var(--paper); color: var(--text-2); font-size: var(--fs-xs); font-weight: 600; line-height: 1; }
.mf-paydesc { margin: 0; color: var(--text-2); font-size: var(--fs-sm); }
/* Classic "pay for order" form (order-pay with a choice of methods): the same soft option cards */
.woocommerce-order-pay #payment { background: transparent !important; border: 0 !important; border-radius: 0 !important; }
.woocommerce-order-pay #payment ul.payment_methods { display: grid; gap: var(--s2); margin: 0 0 var(--s4) !important; padding: 0 !important; border: 0 !important; list-style: none; }
.woocommerce-order-pay #payment ul.payment_methods > li { margin: 0 !important; padding: var(--s3) var(--s4) !important; border: 0 !important; border-radius: var(--r-sm); background: var(--card); box-shadow: var(--soft-shadow); }
.woocommerce-order-pay #payment ul.payment_methods > li:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--gold), var(--soft-shadow); background: #fdf8ea; }
.woocommerce-order-pay #payment ul.payment_methods > li > label { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--s1) var(--s2); font-weight: 600; cursor: pointer; }
.woocommerce-order-pay #payment ul.payment_methods > li > label img { display: none; }
.woocommerce-order-pay #payment .payment_box { margin: var(--s2) 0 0 !important; padding: 0 !important; border: 0 !important; background: transparent !important; color: var(--text-2); font-size: var(--fs-sm); }
.woocommerce-order-pay #payment .payment_box::before { display: none !important; }
.woocommerce-order-pay #payment .payment_box p { margin: 0; }
.woocommerce-order-pay #payment input[type="radio"] { accent-color: var(--gold-ink); }
.woocommerce-order-pay #payment #place_order { min-height: 52px; padding: 0 var(--s6); border: 0; border-radius: var(--r-pill); background: var(--gold) !important; color: var(--ink) !important; font-weight: 700; }
/* The PhonePe plugin's own boxes and loader are replaced by our notice and overlay */
.phonepe_response, .pp_pay_loader { display: none !important; }
body.pp_loader { position: static !important; background: inherit !important; }
.mf-pp-plugin-out[hidden] { display: none !important; }
.mf-payfail .mf-btn { margin-top: var(--s1); }
.mf-payov .mf-payov__card p { margin-bottom: 0; } .mf-payov .mf-payov__card p.mf-payov__s, .mf-payov .mf-payov__card p.mf-payov__help { margin-top: 0; }
.mf-alert.mf-payfail { display: block; }
.woocommerce-order-pay #payment ul.payment_methods > li { display: flex; flex-wrap: wrap; align-items: center; gap: var(--s2) var(--s3); } .woocommerce-order-pay #payment ul.payment_methods > li > input[type="radio"] { margin: 0; flex: none; } .woocommerce-order-pay #payment ul.payment_methods > li > label { flex: 1 1 0; min-width: 0; margin: 0; } .woocommerce-order-pay #payment ul.payment_methods > li > .payment_box { flex-basis: 100%; }
/* Home phone rows ([mf_phone_row]): a swipe row on phones (about 2 cards visible), 6 cards on a desktop with arrows */
.mf-sec--row .mf-sec__head { align-items: center; margin-bottom: var(--s3); }
.mf-sec--row .mf-sec__head .mf-h { margin: 0; }
.mf-sec__tools { display: flex; align-items: center; gap: var(--s3); }
.mf-rowbtns { display: none; gap: var(--s2); }
.mf-rowbtn.mf-icon-btn { --ib: 44px; }
.mf-rowbtn[disabled] { opacity: .35; cursor: default; transform: none; }
.mf-phones--row { min-width: 0; }
.woocommerce ul.products.mf-cardrow--home { grid-auto-columns: calc((100% - var(--s3)) / 2.15); margin: 0; }
@media (min-width: 600px) { .woocommerce ul.products.mf-cardrow--home { grid-auto-columns: calc((100% - 3 * var(--s3)) / 3.3); } }
@media (min-width: 1024px) {
  .woocommerce ul.products.mf-cardrow--home { grid-auto-columns: calc((100% - 5 * var(--s3)) / 6); }
  .mf-js .mf-rowbtns { display: inline-flex; }
}
.mf-rowbtns[hidden] { display: none !important; }
/* "See all" on home phone rows: a quiet secondary pill (ink on soft cream, arrow), gold on hover and focus */
.mf-seeall { display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 44px; padding: 0 var(--s4); border: 1px solid var(--rule); border-radius: var(--r-pill); background: var(--cream); color: var(--ink) !important; font-weight: 600; font-size: var(--fs-sm); text-decoration: none !important; white-space: nowrap; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.mf-seeall .mf-seeall__arrow { flex: none; transition: transform var(--t-fast) var(--ease); }
.mf-seeall:hover { border-color: var(--gold); background: #f5ead0; }
.mf-seeall:hover .mf-seeall__arrow { transform: translateX(3px); }
.mf-seeall:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-color: var(--gold); }
.mf-seeall-foot { display: none; margin: var(--s3) 0 0; }
.mf-seeall--block { width: 100%; box-sizing: border-box; }
@media (max-width: 599.98px) {
  .mf-sec--row .mf-sec__tools .mf-seeall { display: none; } /* the full-width button under the row takes over on phones */
  .mf-seeall-foot { display: block; }
}
@media (prefers-reduced-motion: reduce) { .mf-seeall, .mf-seeall .mf-seeall__arrow { transition: none; } }
/* Listings that continue as you scroll (inc/listing-more.php, site.js): progress, Load more, the end */
.mf-more { display: flex; flex-direction: column; align-items: center; gap: var(--s3); margin: var(--s5) 0 var(--s4); text-align: center; }
.mf-more[hidden] { display: none; }
.mf-more p { margin: 0; }
.mf-more__count, .mf-more__end { color: var(--text-2); font-size: var(--fs-sm); }
.mf-more__end { color: var(--ink); font-weight: 600; }
.mf-more .mf-seeall { min-width: 220px; cursor: pointer; font-family: inherit; }
.mf-more .mf-seeall[disabled] { opacity: .6; cursor: progress; }
@media (max-width: 599.98px) { .mf-more .mf-seeall { width: 100%; } }
/* Skeleton cards while the next page loads: same box as a card, so nothing jumps */
.woocommerce ul.products li.product.mf-skelcard { display: flex; flex-direction: column; pointer-events: none; }
.mf-skelcard__media { aspect-ratio: 1 / 1; width: 100%; border-radius: var(--r-md) var(--r-md) 0 0; }
.mf-skelcard__body { display: block; padding: var(--s3); min-height: 120px; }
/* Phone rows inside the white (even) home sections: a soft shadow instead of a border, so a card is never an outlined box */
.home .mf-sec--row:nth-child(even of .mf-sec) .woocommerce ul.products li.product { border-color: transparent !important; box-shadow: var(--soft-shadow); }
.mf-sec--row .woocommerce ul.products.mf-cardrow--home { padding: 4px 2px 10px; }
/* ---------- Dropdowns: our own list style (browsers that support styleable selects; others keep the native list) ---------- */
@supports (appearance: base-select) {
  select, .wc-blocks-components-select .wc-blocks-components-select__select { appearance: base-select !important; }
  select::picker-icon { display: none; } /* our own chevron is drawn already */
  select::picker(select) {
    appearance: base-select !important;
    border: 0;
    border-radius: var(--r-md);
    padding: 6px;
    margin-top: 6px;
    background: var(--card);
    box-shadow: 0 1px 2px rgba(14, 14, 16, .06), 0 16px 40px rgba(14, 14, 16, .16);
    max-height: min(360px, 60vh);
    overflow-y: auto;
    font-family: var(--f-body);
  }
  select option {
    min-height: 40px;
    height: auto;
    line-height: 1.3;
    display: flex;
    align-items: center;
    gap: var(--s2);
    padding: 8px 12px;
    border-radius: var(--r-sm);
    color: var(--text);
    font-size: var(--fs-md);
    background: transparent;
  }
  select option:hover, select option:focus-visible { background: var(--paper); outline: none; }
  select option:checked { background: var(--cream); font-weight: 600; }
  select option::checkmark { order: 1; margin-inline-start: auto; color: var(--gold-ink); }
  select option[value=""] { color: var(--text-2); }
}
/* Checkout: India is the only delivery country, so the Country field is not shown (the value is still sent). */
.mf-one-country .wc-block-components-address-form__country,
.mf-one-country #billing_country_field, .mf-one-country #shipping_country_field { display: none !important; }
