/* =====================================================================
   Moodfex Premium WooCommerce UI layer
   Additive visual layer only. Loaded after style.css on shop/product/
   cart/checkout/account pages. No WooCommerce markup, hooks, form field
   names, shortcodes or URLs are altered by this file.
   ===================================================================== */

/* ---------- A) Shop landing — the large gradient category-card grid has
   been removed. The shop root now shares the text-based pill nav
   (.mf-clean-shop-cats, styled in assets/css/style.css) with category
   archives instead. ---------- */

/* ---------- B) Product listing polish ---------- */
.woocommerce ul.products li.product{transition:transform .3s ease,box-shadow .3s ease}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);box-shadow:0 20px 50px rgba(5,42,35,.1)}
.woocommerce ul.products li.product a{display:block;overflow:hidden}
.woocommerce ul.products li.product a img{transition:transform .45s cubic-bezier(.22,.61,.36,1)}
.woocommerce ul.products li.product a:hover img{transform:scale(1.06)}

/* ---------- Mobile "Filter & Sort" bottom sheet (wraps the real WC ordering dropdown) ---------- */
.mf-sort-drawer__backdrop,.mf-sort-drawer__head,.mf-filter-fab{display:none}
/* Desktop/tablet: the drawer wrapper and its panel must not generate their
   own box, otherwise being non-floated block containers they push the real
   .woocommerce-ordering form onto its own row below .woocommerce-result-count
   even though both are meant to sit on one line. display:contents removes
   the wrapper boxes from layout while keeping the ordering form itself (and
   WooCommerce core's float rule on it) a normal sibling of the result count. */
#mf-sort-drawer,.mf-sort-drawer__panel{display:contents}
.woocommerce-result-count,.woocommerce-ordering{float:left;clear:none}
.woocommerce-ordering{float:right}

@media(max-width:900px){
  .mf-filter-fab{display:flex;align-items:center;gap:9px;position:fixed;left:50%;transform:translateX(-50%);bottom:calc(78px + 14px + env(safe-area-inset-bottom));z-index:950;background:var(--mf-deep);color:#fff;border:0;border-radius:999px;padding:0 22px;height:50px;font-weight:700;font-size:14px;box-shadow:0 14px 34px rgba(0,61,50,.28);transition:transform .2s ease}
  .mf-filter-fab:active{transform:translateX(-50%) scale(.96)}
  .mf-filter-fab svg{width:18px;height:18px}
  .mf-sort-drawer__backdrop{display:block;position:fixed;inset:0;background:rgba(11,30,25,.34);backdrop-filter:blur(6px);z-index:1000;opacity:0;visibility:hidden;transition:opacity .3s ease}
  /* Restore a real box here (undoing the desktop display:contents above) so
     position:fixed and the bottom-sheet chrome actually render. */
  .mf-sort-drawer__panel{display:block;position:fixed;left:0;right:0;bottom:0;z-index:1001;background:#fff;border-radius:24px 24px 0 0;padding:20px 20px calc(24px + env(safe-area-inset-bottom));box-shadow:0 -20px 60px rgba(5,42,35,.18);transform:translateY(100%);transition:transform .35s cubic-bezier(.22,.61,.36,1)}
  .mf-sort-drawer.is-open .mf-sort-drawer__backdrop{opacity:1;visibility:visible}
  .mf-sort-drawer.is-open .mf-sort-drawer__panel{transform:translateY(0)}
  .mf-sort-drawer__head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px}
  .mf-sort-drawer__head span{font-family:var(--font-heading);font-size:20px;color:var(--mf-deep)}
  .mf-sort-drawer__close{width:38px;height:38px;border-radius:999px;border:1px solid var(--mf-line);background:#fff;display:flex;align-items:center;justify-content:center;color:var(--mf-deep)}
  .mf-sort-drawer__close svg{width:16px;height:16px}
  .mf-sort-drawer .woocommerce-ordering{margin-bottom:0!important;float:none}
  .mf-sort-drawer select{width:100%}
  .woocommerce-result-count{float:none;width:100%}
  body.mf-sort-open{overflow:hidden}
}

/* ---------- C) Single product — premium landing feel ---------- */
.single-product div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(340px,.85fr);gap:48px;align-items:flex-start;background:#fff;border:1px solid var(--mf-line);border-radius:var(--mf-radius);padding:40px;box-shadow:0 18px 54px rgba(5,42,35,.06);margin:36px 0 48px}
.single-product div.product .woocommerce-product-gallery{border-radius:18px;overflow:hidden}
.single-product div.product .summary{padding:0}
.single-product div.product .product_title{font-family:var(--font-heading);font-size:clamp(30px,3.4vw,44px);color:var(--mf-deep);line-height:1.1;margin:0 0 14px}
.single-product div.product p.price{font-size:24px;color:var(--mf-deep);font-weight:700;margin-bottom:20px}
.single-product div.product .woocommerce-product-details__short-description{color:var(--mf-muted);font-size:16px;line-height:1.75;margin-bottom:24px}
.single-product div.product .single_add_to_cart_button{min-height:56px;padding:0 34px;font-size:15px;border-radius:16px}
.single-product .woocommerce-tabs{background:#fff;border:1px solid var(--mf-line);border-radius:var(--mf-radius);box-shadow:0 12px 38px rgba(5,42,35,.05);margin-bottom:56px;overflow:hidden}
.single-product .woocommerce-tabs ul.tabs{display:flex;align-items:center;gap:6px;list-style:none;margin:0;padding:14px;border-bottom:1px solid var(--mf-line);flex-wrap:wrap;background:var(--mf-cream)}
.single-product .woocommerce-tabs ul.tabs li{margin:0!important;border:0!important;background:none!important;padding:0!important;list-style:none!important;display:flex!important;vertical-align:middle!important}
.single-product .woocommerce-tabs ul.tabs li a{display:inline-flex!important;align-items:center!important;justify-content:center!important;min-height:44px;padding:0 18px!important;border-radius:12px;font-weight:700;color:var(--mf-muted)!important;font-size:14px;background:transparent!important;border:0!important;box-shadow:none!important;outline:0!important;text-decoration:none!important}
.single-product .woocommerce-tabs ul.tabs li.active a,
.single-product .woocommerce-tabs ul.tabs li.active a:hover,
.single-product .woocommerce-tabs ul.tabs li.active a:visited{background:var(--mf-deep)!important;color:#fff!important}
.single-product .woocommerce-tabs .panel{padding:30px 26px;color:#424c48;font-size:16px;line-height:1.75}
.single-product .related.products{margin-top:8px}
.single-product .related.products>h2{font-family:var(--font-heading);font-size:32px;color:var(--mf-deep);text-align:center;margin-bottom:28px}
/* Related products — capped to 2 items (see woocommerce_output_related_products_args
   in inc/woocommerce-premium.php) and given their own wider column track so
   the "View Reading" button always has room for its full label. A 3-up track
   made each card too narrow: the button text was centered and clipped by the
   card's own overflow:hidden, showing as "iew Reading" (leading "V" cut off) —
   2 cards at roughly double the width removes that clipping outright. */
.single-product .related.products ul.products{grid-template-columns:repeat(2,minmax(0,1fr))!important;max-width:700px;margin-left:auto!important;margin-right:auto!important}
.single-product .related.products ul.products li.product{min-width:0}
.single-product .related.products ul.products li.product .woocommerce-loop-product__title{overflow-wrap:break-word;word-break:normal;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:0}
.single-product .related.products ul.products li.product .price{white-space:normal}
.single-product .related.products ul.products li.product .moodfex-view-reading{white-space:nowrap;padding:0 16px;font-size:14px;gap:6px}

@media(max-width:1100px){.single-product div.product{grid-template-columns:1fr;padding:26px}}
@media(max-width:560px){.single-product div.product{padding:18px;margin:20px 0 32px;border-radius:20px}.single-product .woocommerce-tabs .panel{padding:22px 18px}.single-product .related.products ul.products{grid-template-columns:1fr!important;max-width:420px}}

/* ---------- D) Cart — larger imagery, sticky order summary ----------
   The Cart page is a plain WordPress Page rendering [woocommerce_cart] via
   page.php ("mf-info-container > article > .mf-info-content"), not a native
   WooCommerce archive/single template — so WooCommerce's own
   woocommerce_before/after_main_content hooks (which build .mf-woo-container)
   never fire here. The real direct parent of form.woocommerce-cart-form and
   .cart-collaterals is the div.woocommerce that the [woocommerce_cart]
   shortcode itself wraps its output in (one level inside .mf-info-content —
   confirmed via DOM inspection, not the .mf-info-content element itself).
   Single-column by request: Cart totals no longer sits in a right
   sidebar (its narrow width kept fighting WooCommerce's own CSS on the
   Proceed to checkout button no matter how the button itself was styled)
   — it now sits as a full-width block below the cart items table, so it
   always has the full content width to work with. */
.woocommerce-cart .mf-info-content>.woocommerce{display:block}
.woocommerce-cart form.woocommerce-cart-form{width:100%}
.woocommerce-cart .cart-collaterals{width:100%;margin-top:28px}
.woocommerce-cart .cart_totals{width:100%;max-width:none}
.moodfex-cart-thumb-wrap{width:140px!important;height:140px!important;border-radius:18px;overflow:hidden;display:block;box-shadow:0 8px 24px rgba(5,42,35,.08)}
/* WooCommerce core CSS ships an unconditional, higher-specificity rule —
   .woocommerce-cart table.cart img{width:32px} — that otherwise wins over a
   plain .moodfex-cart-thumb-img{width:100%} rule regardless of file load
   order. !important is required here, not just cosmetic. */
.moodfex-cart-thumb-img{width:100%!important;height:100%!important;object-fit:cover}
.woocommerce-cart table.cart td.product-thumbnail{width:160px}
/* WooCommerce's own woocommerce-smallscreen.css (media="max-width:768px") sets
   .product-thumbnail{display:none} — without this override the thumbnail column
   vanishes between the 561px and 768px range, before our own <=560px mobile
   layout (below) ever takes over. */
.woocommerce-cart table.cart td.product-thumbnail{display:table-cell!important}
/* WooCommerce's shop_table_responsive rule adds a ": " label prefix
   (content:attr(data-title) ": ") to every <td>. The thumbnail <td> has no
   data-title attribute, so attr() resolves empty and only a bare, bold ":"
   renders — reported by the owner as "two dots" in the image's top-left
   corner. It was invisible before because the cell itself was hidden; fixing
   that visibility above exposed this stray label too. */
.woocommerce-cart table.cart td.product-thumbnail::before{content:none!important;display:none!important}
.woocommerce-cart table.cart td.product-name a{font-family:var(--font-heading);font-size:19px;color:var(--mf-text)}
.woocommerce-cart table.cart td.product-remove a{width:36px;height:36px;border-radius:999px;border:1px solid var(--mf-line);display:flex;align-items:center;justify-content:center;font-size:18px;color:var(--mf-muted);transition:background .2s ease,color .2s ease,border-color .2s ease}
.woocommerce-cart table.cart td.product-remove a:hover{background:#fdeeee;color:#c0392b;border-color:#f3caca}
.woocommerce-cart .quantity .qty{min-height:46px!important;width:76px!important;text-align:center}
.woocommerce-cart .coupon{display:flex;gap:10px;flex-wrap:wrap;align-items:center}
.woocommerce-cart .coupon .input-text{min-height:50px!important;max-width:220px}
.woocommerce-cart .coupon button{min-height:50px}
.cart_totals h2{font-family:var(--font-heading);font-size:22px;color:var(--mf-deep);margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--mf-line)}
.cart_totals table.shop_table{border:0!important;box-shadow:none}
.cart_totals table.shop_table td,.cart_totals table.shop_table th{text-align:left;padding:16px 4px!important;border:0!important;border-bottom:1px solid var(--mf-line)!important;vertical-align:top}
.cart_totals table.shop_table tr:last-child td,.cart_totals table.shop_table tr:last-child th{border-bottom:0!important}
.cart_totals table.shop_table td{text-align:right}
.cart_totals table.shop_table tr.order-total td,.cart_totals table.shop_table tr.order-total th{font-size:19px;font-weight:800;color:var(--mf-deep);border-top:2px solid var(--mf-deep)!important;padding-top:18px!important}
/* WooCommerce's inline "Enter your address / Calculate shipping" cell —
   give the message and the toggle link their own breathing room instead of
   sitting flush against each other and the box edge (reported as looking
   "stacked"/overlapping and clipped at the right). */
.cart_totals .woocommerce-shipping-totals td{line-height:1.7;overflow-wrap:break-word}
.cart_totals .woocommerce-shipping-destination{margin:0 0 10px;color:var(--mf-muted);font-size:13px}
.cart_totals .woocommerce-shipping-calculator{margin-top:8px}
.cart_totals .woocommerce-shipping-calculator .shipping-calculator-button{display:inline-flex;align-items:center;gap:6px;color:var(--mf-deep)!important;font-weight:700;text-decoration:underline;text-underline-offset:3px;white-space:normal}
.cart_totals .woocommerce-shipping-calculator .button{width:100%;margin-top:12px;min-height:44px}
/* Proceed to checkout — plain block+line-height centering instead of flex.
   flex+width:100% on this <a> was letting the centered text run wider than
   the green background in some layouts; because nothing clipped it, the
   overflow spilled past the button's edges as white text over the white
   page background — invisible instead of readable. text-overflow:ellipsis
   is a hard safety net: if it ever doesn't fit, it truncates visibly with
   "…" instead of vanishing. */
/* Two prior attempts (flex+justify-content, then block+float:none) both
   lost to WooCommerce core CSS floating the checkout <a> itself (a rule
   we couldn't out-specificity with more block/width declarations — the
   button kept rendering shrink-to-fit-narrow with the label truncated to
   "Procee…"). Switching the container to a flex row sidesteps the fight
   entirely: per the CSS Flexbox spec, float has NO EFFECT on a flex item
   at all — once the parent is flex, WooCommerce's float can't apply to
   the button regardless of which rule "wins" on specificity, and
   flex-grow:1 on the single item fills the row exactly like width:100%
   would if nothing were floating it. */
/* The row-width fight is won (flex neutralizes WooCommerce's float on the
   button) but every property below this point was still non-!important,
   so the base .btn/.button rule's own display:inline-flex!important kept
   controlling how the button lays out its OWN text internally — its text
   was centered by that inline flex context, not by text-align, and
   something in that chain was still computing narrower than the now-
   correct outer box, clipping the label symmetrically again. Forcing
   display:block!important here removes the anchor's own inner flex
   context entirely: plain text-align+line-height centering has no
   competing layout algorithm left to lose to. flex:1 1 auto still governs
   its width as an item of the (flex) .wc-proceed-to-checkout row above;
   an element can have display:block for its own content while still
   being sized by its flex-parent's flex properties. Every property here
   is !important on purpose — nothing is left for a same-or-higher-
   specificity WooCommerce/base rule to win on. */
.woocommerce-cart .wc-proceed-to-checkout{display:flex!important;width:100%!important;box-sizing:border-box!important;padding:0!important;margin-top:18px}
.woocommerce-cart .wc-proceed-to-checkout a.checkout-button{display:block!important;flex:1 1 auto!important;width:auto!important;min-width:0!important;max-width:none!important;box-sizing:border-box!important;min-height:52px!important;line-height:52px!important;padding:0 16px!important;margin:0!important;font-size:14px!important;font-weight:700!important;letter-spacing:normal!important;text-align:center!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}

@media(max-width:1100px){
  .moodfex-cart-thumb-wrap{width:110px!important;height:110px!important}
  .woocommerce-cart table.cart td.product-thumbnail{width:126px}
}
@media(max-width:560px){
  /* Overrides the theme's pre-existing 64px mobile thumbnail (assets/css/style.css) —
     too small to read; loaded after it here so this wins at equal specificity. */
  .moodfex-cart-thumb-wrap,.moodfex-cart-thumb-img{width:96px!important;height:96px!important;border-radius:14px}
  .woocommerce-cart table.cart tr.cart_item{grid-template-columns:100px minmax(0,1fr)!important}
  /* The tablet tier above sets td.product-thumbnail{width:126px}; left un-overridden
     here, that width survives (media queries aren't mutually exclusive) and the cell
     overflows the 100px grid track by ~26px, physically covering the left portion of
     the Remove (x) button in the next column — reported by the owner as being unable
     to delete an item on mobile. Matches the 100px track (96px image + 2px padding
     each side) exactly, eliminating the overflow. */
  .woocommerce-cart table.cart td.product-thumbnail{width:100px!important}
  /* Belt-and-braces: even if a future change reintroduces overlap, the remove
     button must always win the tap regardless of what visually sits under it. */
  .woocommerce-cart table.cart td.product-remove{position:relative;z-index:2}
  .woocommerce-cart .coupon{flex-direction:column;align-items:stretch}
  .woocommerce-cart .coupon .input-text{max-width:100%}
  .woocommerce-cart .coupon button{width:100%}
}

/* ---------- E) Checkout — Apple-style large inputs & steps ---------- */
.woocommerce-checkout .woocommerce-billing-fields>h3,
.woocommerce-checkout .woocommerce-shipping-fields>h3{font-family:var(--font-heading);font-size:22px;color:var(--mf-deep);margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--mf-line)}
.woocommerce-checkout .form-row{margin-bottom:16px!important}
.woocommerce-checkout input.input-text,.woocommerce-checkout select,.woocommerce-checkout textarea{transition:border-color .25s ease,box-shadow .25s ease}
.woocommerce-checkout input.input-text:focus,.woocommerce-checkout select:focus,.woocommerce-checkout textarea:focus{outline:none;border-color:var(--mf-gold)!important;box-shadow:0 0 0 4px rgba(197,165,114,.18)}
.woocommerce-checkout #payment{background:var(--mf-cream);border-radius:16px;padding:4px;margin-top:20px}
.woocommerce-checkout #payment ul.payment_methods{padding:14px!important;margin:0!important}
.woocommerce-checkout #payment li.payment_method{border-bottom:1px solid var(--mf-line)!important;padding:14px 4px!important}
.woocommerce-checkout #payment li.payment_method:last-child{border-bottom:0!important}
.woocommerce-checkout #payment div.payment_box{background:#fff!important;border-radius:12px!important;margin-top:10px!important}
.woocommerce-checkout .woocommerce-checkout-review-order{position:sticky;top:100px}
.woocommerce-checkout #place_order{display:block!important;width:100%!important;box-sizing:border-box!important;min-height:58px;line-height:58px!important;padding:0 20px!important;font-size:16px;margin-top:14px;text-align:center!important;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mf-order-summary-title{font-family:var(--font-heading);font-size:22px;color:var(--mf-deep);margin:0 0 16px}
/* Same box-in-a-box fix as .cart_totals below: the outer .woocommerce-checkout-review-order
   card already draws a border/shadow, so the inner table doesn't need its own —
   row dividers read as one clean card instead of a table nested in a card. */
.woocommerce-checkout table.shop_table{border:0!important;box-shadow:none}
.woocommerce-checkout table.shop_table td,.woocommerce-checkout table.shop_table th{text-align:left;border:0!important;border-bottom:1px solid var(--mf-line)!important}
.woocommerce-checkout table.shop_table tr:last-child td,.woocommerce-checkout table.shop_table tr:last-child th{border-bottom:0!important}
.woocommerce-checkout table.shop_table td.product-total,
.woocommerce-checkout table.shop_table td.woocommerce-Price-amount,
.woocommerce-checkout table.shop_table tfoot td{text-align:right}
.woocommerce-checkout table.shop_table tr.order-total td,.woocommerce-checkout table.shop_table tr.order-total th{font-size:19px;font-weight:800;color:var(--mf-deep);border-top:2px solid var(--mf-deep)!important;padding-top:18px!important}
.woocommerce-checkout table.shop_table tr.cart-subtotal td,.woocommerce-checkout table.shop_table tr.shipping td,.woocommerce-checkout table.shop_table tr.shipping th{font-size:14px}
.woocommerce-checkout ul#shipping_method{list-style:none;margin:0;padding:0}
.woocommerce-checkout ul#shipping_method li{padding:6px 0}

/* Kill WooCommerce's default blue accents (radios, select2 focus/highlight) on checkout */
.woocommerce-checkout input[type=radio],.woocommerce-checkout input[type=checkbox]{accent-color:var(--mf-deep)}
.woocommerce-checkout .select2-container--default .select2-selection--single{transition:border-color .25s ease,box-shadow .25s ease}
.woocommerce-checkout .select2-container--default.select2-container--focus .select2-selection--single,
.woocommerce-checkout .select2-container--default .select2-selection--single:focus{border-color:var(--mf-gold)!important;box-shadow:0 0 0 4px rgba(197,165,114,.18)}
.woocommerce-checkout .select2-container--default .select2-results__option--highlighted[aria-selected]{background:var(--mf-deep)!important;color:#fff!important}
.woocommerce-checkout .select2-container--default .select2-results__option[aria-selected=true]{background:var(--mf-cream)!important;color:var(--mf-deep)!important}

/* Coupon toggle + form — premium, matches the notices system below */
.woocommerce-form-coupon-toggle{margin:0 0 22px}
.woocommerce-form-coupon-toggle .showcoupon{color:var(--mf-deep);font-weight:700;text-decoration:underline;text-underline-offset:3px}
.woocommerce-form-coupon-toggle .showcoupon:hover{color:var(--mf-gold)}
.checkout_coupon.woocommerce-form-coupon{display:flex;flex-wrap:wrap;gap:12px;align-items:flex-end;background:var(--mf-cream);border:1px solid var(--mf-line);border-radius:16px;padding:20px;margin:0 0 24px}
.checkout_coupon.woocommerce-form-coupon .form-row{margin:0!important;flex:1 1 220px;min-width:0}
.checkout_coupon.woocommerce-form-coupon .form-row-last{flex:0 0 auto}
.checkout_coupon.woocommerce-form-coupon input.input-text{width:100%}
.checkout_coupon.woocommerce-form-coupon button{min-height:50px;white-space:nowrap}
.checkout_coupon.woocommerce-form-coupon .clear{display:none}

@media(max-width:1100px){.woocommerce-checkout .woocommerce-checkout-review-order{position:static}}
@media(max-width:560px){
  .checkout_coupon.woocommerce-form-coupon{flex-direction:column;align-items:stretch}
  .checkout_coupon.woocommerce-form-coupon .form-row-last,.checkout_coupon.woocommerce-form-coupon button{width:100%}
}

/* ---------- G) Breadcrumb ---------- */
.woocommerce-breadcrumb{font-size:13px;color:var(--mf-muted);margin:0 0 18px;padding-bottom:14px;border-bottom:1px solid var(--mf-line)}
.woocommerce-breadcrumb a{color:var(--mf-muted)}
.woocommerce-breadcrumb a:hover{color:var(--mf-deep)}

/* ---------- H) Premium notices system (success / info / error) ----------
   Applies everywhere WooCommerce prints these — the "Have a coupon?"
   prompt, "Product added to cart. View cart", cart/checkout validation
   errors, account notices — so every notice type shares one visual
   language instead of WooCommerce core's default blue/green/red boxes. */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  position:relative;
  display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px 18px;
  background:#fff;
  border:1px solid var(--mf-line)!important;
  border-top:1px solid var(--mf-line)!important;
  border-radius:16px;
  margin:0 0 22px;
  padding:16px 20px 16px 46px;
  list-style:none;
  font-size:14px;
  line-height:1.5;
  color:var(--mf-deep);
  box-shadow:0 8px 26px rgba(5,42,35,.05);
}
.woocommerce-message::before,.woocommerce-info::before{
  content:"✦";
  position:absolute;left:20px;top:50%;transform:translateY(-50%);
  font-family:inherit!important;
  color:var(--mf-gold);
  font-size:14px;
}
.woocommerce-error{border-color:#f3caca!important;background:#fdf7f7}
.woocommerce-error::before{content:"!";position:absolute;left:20px;top:50%;transform:translateY(-50%);font-family:inherit!important;color:#c0392b;font-weight:800}
.woocommerce-error li{padding:0;margin:0;list-style:none}
.woocommerce-message .button.wc-forward,
.woocommerce-info .button.wc-forward,
.woocommerce-error .button.wc-forward{
  margin-left:auto;flex:0 0 auto;min-height:42px;padding:0 22px;font-size:13px;
}
@media(max-width:560px){
  .woocommerce-message,.woocommerce-info,.woocommerce-error{flex-direction:column;align-items:flex-start;padding:16px 18px 16px 44px}
  .woocommerce-message .button.wc-forward,.woocommerce-info .button.wc-forward,.woocommerce-error .button.wc-forward{width:100%;margin-left:0}
}

/* ---------- F) My Account — premium dashboard ---------- */
.mf-acct-cards{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:24px 0}
.mf-acct-card{text-align:center;border:1px solid var(--mf-line);border-radius:18px;padding:22px 16px;background:var(--mf-cream)}
.mf-acct-card__icon{display:flex;align-items:center;justify-content:center;width:50px;height:50px;border-radius:50%;background:#fff;color:var(--mf-gold);margin:0 auto 12px}
.mf-acct-card__icon svg{width:26px;height:26px}
.mf-acct-card strong{display:block;font-family:var(--font-heading);font-size:26px;color:var(--mf-deep)}
.mf-acct-card p{margin:4px 0 0;font-size:13px;color:var(--mf-muted)}
.mf-acct-quicklinks{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-bottom:8px}
.mf-acct-quicklinks a{display:flex;align-items:center;gap:8px;min-height:50px;padding:0 16px;border:1px solid var(--mf-line);border-radius:14px;font-weight:700;color:var(--mf-deep);font-size:14px;transition:background .2s ease,border-color .2s ease}
.mf-acct-quicklinks a:hover{background:#f2f5ef;border-color:var(--mf-gold)}
.mf-acct-quicklinks svg{width:15px;height:15px}

.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:0 14px;border-radius:10px;font-size:13px;font-weight:700;margin:2px}
.woocommerce-MyAccount-content .woocommerce-orders-table__cell-order-actions a.view{background:var(--mf-deep)!important;color:#fff!important}
.woocommerce-Address{border:1px solid var(--mf-line);border-radius:16px;padding:20px}
.woocommerce-Addresses{display:grid;grid-template-columns:repeat(2,1fr);gap:18px}
.woocommerce-Address-title{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.woocommerce-Address-title h3{font-family:var(--font-heading);font-size:18px;color:var(--mf-deep);margin:0}

@media(max-width:900px){.mf-acct-quicklinks{grid-template-columns:repeat(2,1fr)}.woocommerce-Addresses{grid-template-columns:1fr}}
@media(max-width:560px){.mf-acct-cards{grid-template-columns:1fr 1fr}.mf-acct-quicklinks{grid-template-columns:1fr}}

/* ---------- E) Reading landing pages — real buy box + brand-token pass on the .mf-dr-* content grids ---------- */
.mf-reading-buybox{display:grid;grid-template-columns:220px minmax(0,1fr);gap:32px;align-items:center;background:#fff;border:1px solid var(--mf-line);border-radius:var(--mf-radius);padding:32px;box-shadow:0 18px 54px rgba(5,42,35,.07);margin:0 0 36px}
.mf-reading-buybox__media{aspect-ratio:1/1;border-radius:16px;overflow:hidden}
.mf-reading-buybox__media img{width:100%;height:100%;object-fit:cover}
.mf-reading-buybox__eyebrow{display:inline-block;color:var(--mf-gold);text-transform:uppercase;letter-spacing:.14em;font-size:12px;font-weight:700;margin-bottom:10px}
.mf-reading-buybox__info h2{font-family:var(--font-heading);font-size:clamp(26px,3vw,36px);color:var(--mf-deep);margin:0 0 12px;line-height:1.12}
.mf-reading-buybox__price{font-size:22px;font-weight:700;color:var(--mf-deep);margin-bottom:18px}
.mf-reading-buybox__price ins{text-decoration:none}
.mf-reading-buybox__cta form.cart{margin:0!important;display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.mf-reading-buybox__cta .single_add_to_cart_button,.mf-reading-buybox__cta .add_to_cart_button{min-height:54px!important;padding:0 32px!important;border-radius:16px!important;font-size:15px!important}
.mf-reading-buybox__trust{list-style:none;margin:16px 0 0;padding:0;display:flex;flex-direction:column;gap:6px}
.mf-reading-buybox__trust li{font-size:13px;color:var(--mf-muted);padding-left:18px;position:relative}
.mf-reading-buybox__trust li:before{content:"✦";position:absolute;left:0;color:var(--mf-gold);font-size:11px}

@media(max-width:900px){.mf-reading-buybox{grid-template-columns:1fr;padding:24px;text-align:center}.mf-reading-buybox__media{max-width:220px;margin:0 auto}.mf-reading-buybox__trust{align-items:center}.mf-reading-buybox__cta form.cart{justify-content:center}}

/* Brand-token pass over the .mf-dr-* content-grid pages (Digital Readings hub + category pages).
   These selectors live in page content (DB), not theme templates; !important guarantees this
   file — loaded after the page's own inline <style> block — always wins regardless of source order. */
.mf-dr-kicker{color:var(--mf-gold)!important}
.mf-dr-head h2,.mf-dr-body h3{color:var(--mf-deep)!important;font-family:var(--font-heading)!important}
.mf-dr-link{color:var(--mf-gold)!important;display:inline-flex!important;align-items:center;gap:6px;transition:gap .2s ease}
.mf-dr-card{transition:transform .3s cubic-bezier(.22,.61,.36,1),box-shadow .3s ease!important}
.mf-dr-card:hover .mf-dr-link{gap:10px}
.mf-dr-card:focus-visible{outline:2px solid var(--mf-gold);outline-offset:3px}
.mf-dr-img{transition:transform .5s cubic-bezier(.22,.61,.36,1)}
.mf-dr-card:hover .mf-dr-img{transform:scale(1.05)}

/* ---------- Reduced motion ---------- */
@media(prefers-reduced-motion:reduce){
  .woocommerce ul.products li.product,.woocommerce ul.products li.product a img,.mf-sort-drawer__panel,.mf-sort-drawer__backdrop,.mf-dr-card,.mf-dr-img{transition:none!important}
}
