/*!
 * Alchemist Haven · Premium UI Kit for WordPress/WooCommerce
 * "Ornamented, with story." — the Premium register: cream & gold apothecary,
 * two-serif system, engravings, ✦ flourishes, motion with restraint.
 *
 * Drop into a child theme and enqueue (see functions-snippet.php).
 * Custom pieces are prefixed .ah-*; everything else targets stock
 * WooCommerce markup so it skins core templates without overrides.
 *
 * Kyle Stumpff · The Vault & Co. · building Alchemist Haven
 */

/* ══════════════════ 1 · TOKENS ══════════════════ */
:root{
  --ah-cream:#faf5e4;
  --ah-warm:#fff8e4;
  --ah-gold:#b08d3c;         /* decorative only — fails AA as text on cream */
  --ah-gold-deep:#856a26;    /* text-safe gold — 4.71:1 on cream, 4.85:1 on warm */
  --ah-rose:#a83e56;
  --ah-royal:#7a2d3e;
  --ah-honey:#d9a441;
  --ah-ink:#20281b;
  --ah-shadow:0 10px 30px -18px rgba(32,40,27,.35);
  --ah-radius:12px;
  --ah-radius-sm:8px;
  --ah-ease:cubic-bezier(.33,.02,.2,1);
  --ah-display:"Playfair Display","Playfair Fallback",serif;
  --ah-body:"Lora","Lora Fallback",Georgia,serif;
  /* the woven trellis — Premium's background signature */
  --ah-trellis:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120' viewBox='0 0 120 120'><g fill='none' stroke='%23b08d3c' stroke-opacity='.6'><circle cx='60' cy='60' r='36'/><circle cx='0' cy='0' r='36'/><circle cx='120' cy='0' r='36'/><circle cx='0' cy='120' r='36'/><circle cx='120' cy='120' r='36'/></g><path d='M60 53 l2.6 4.5 -2.6 4.5 -2.6 -4.5 z' fill='%23b08d3c' fill-opacity='.4'/></svg>");
  --ah-caret:url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' fill='none' stroke='%23856a26' stroke-width='1.6' stroke-linecap='round'/></svg>");
}

/* ══════════════════ 2 · BASE & TYPE ══════════════════ */
body.ah-theme{
  font-family:var(--ah-body);font-weight:400;color:var(--ah-text);
  background:var(--ah-surface);line-height:1.6;
  font-size:clamp(1rem,.93rem + .3vw,1.08rem);
}
/* paper grain, whole site */
body.ah-theme::before{
  content:"";position:fixed;inset:0;z-index:0;pointer-events:none;opacity:.5;
  background-image:url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="140" height="140"><filter id="n"><feTurbulence type="fractalNoise" baseFrequency="0.85" numOctaves="2" stitchTiles="stitch"/><feColorMatrix type="saturate" values="0"/><feComponentTransfer><feFuncA type="linear" slope="0.045"/></feComponentTransfer></filter><rect width="140" height="140" filter="url(%23n)"/></svg>');
}
body.ah-theme > *{position:relative;z-index:1}
.ah-theme h1,.ah-theme h2,.ah-theme h3.ah-display,.ah-theme .product_title,
.ah-theme .ah-price-lg{font-family:var(--ah-display);font-weight:400;line-height:1.12;letter-spacing:.015em}
.ah-theme h1{font-size:clamp(2.2rem,5vw,3.4rem)}
.ah-theme h2{font-size:clamp(1.8rem,3.6vw,2.6rem)}
.ah-eyebrow{font-weight:700;text-transform:uppercase;letter-spacing:.18em;font-size:.76rem;color:var(--ah-text-accent)}
.ah-theme ::selection{background:rgba(176,141,60,.28)}
/* ── LINK COLOUR IS SCOPED BY CONTAINER ──────────────────────────────────────
   This replaced `.ah-theme a:not(:where(…exclusions…))`, which failed four times
   across three source layers — the last one rendering "Proceed to Checkout" at
   1.30:1, illegible.

   The exclusion list could not converge. The set of "anchors that are really
   buttons" is defined by WordPress and WooCommerce, not by us, and grows on
   their release schedule: we excluded .wp-block-button__link, then the cart
   button turned out to use .wp-element-button — the same concept under a second
   name core uses interchangeably.

   The deciding argument is intent, not specificity. Core sets its button colour
   at (0,1,0) INSIDE :where(), deliberately, so a theme's BUTTON styling can
   override it. A generic LINK rule was accepting that invitation by accident at
   (0,1,1), painting royal onto a dark ground core had already correctly set to
   white. We were not losing a specificity fight; we were winning one we were
   never meant to enter.

   THREE RULES FOR EDITING THIS:
   1. Add a CONTAINER, never a tag. A container-scoped rule cannot reach a button
      that was never inside that container — that removes the failure class
      rather than naming its members.
   2. Never raise specificity to win. Every selector here is (0,1,1), held there
      by :where() contributing zero. If a link needs to outrank something to get
      its colour, the scope is wrong — that was the original disease. An earlier
      bare :not() lifted the old rule to (0,3,1) and broke breadcrumb links.
   3. An unstyled anchor inheriting a correct colour from core is a BETTER
      failure mode than a styled anchor overriding a correct one. Leaving
      something out is cheap; reaching too far is what cost us the checkout.

   Anything not listed gets whatever its component or the platform gives it. */
/* GROUP 1 — prose containers. These hold ARBITRARY content: a page body can
   contain a button block, a product description can contain anything. So the
   colour is scoped to the TEXT ELEMENTS inside them, not the container. A block
   button is never inside a <p> — core wraps it in <div class="wp-block-button">.
   This is what the negative test caught: scoping to .ah-story alone put ten
   "Add to bag" buttons at 1.30:1 on a page that merely contained a product block.
   A bare `li` was not enough either — product grids ARE lists
   (ul.wc-block-grid__products > li), so `li a` reached the card buttons again.
   Prose lists carry .wp-block-list, which core adds even when the saved markup
   omits it, and a product grid never has it. Everything stays inside :where(),
   so the whole selector is still (0,1,1). */
.ah-theme :where(.ah-story,.woocommerce-Tabs-panel,.comment-content,.woocommerce-product-details__short-description) :where(p,dd,dt,blockquote,figcaption,td,th,.wp-block-list li) a,
/* GROUP 2 — component containers whose content is short and known. The anchor is
   the component's own link, so no text-element step is needed. */
.ah-theme :where(.ah-entry-excerpt,.ah-page-intro,.ah-entry-title,.woocommerce-LostPassword,.posted_in,.tagged_as,.woocommerce-product-attributes-item__value) a,
/* GROUP 3 — anchors that ARE the component. Named by component class, never by
   tag, so they cannot be confused with a button. */
.ah-theme a:where(.woocommerce-LoopProduct-link,.wc-block-grid__product-link){
  color:var(--ah-action);text-underline-offset:3px}
.ah-theme :where(.ah-story,.woocommerce-Tabs-panel,.comment-content,.woocommerce-product-details__short-description) :where(p,dd,dt,blockquote,figcaption,td,th,.wp-block-list li) a:hover,
.ah-theme :where(.ah-entry-excerpt,.ah-page-intro,.ah-entry-title,.woocommerce-LostPassword,.posted_in,.tagged_as,.woocommerce-product-attributes-item__value) a:hover,
.ah-theme a:where(.woocommerce-LoopProduct-link,.wc-block-grid__product-link):hover{
  color:var(--ah-text-sale)}
.ah-theme :focus-visible{outline:2px solid var(--ah-focus);outline-offset:2px;border-radius:2px}
.ah-muted{font-style:italic;color:var(--ah-text-accent)}

/* ══════════════════ 3 · ORNAMENT UTILITIES ══════════════════ */
/* ✦ line divider */
.ah-flourish{display:flex;align-items:center;gap:14px;margin:1.6rem 0;color:var(--ah-ornament)}
.ah-flourish::before,.ah-flourish::after{content:"";height:1px;flex:1;background:linear-gradient(90deg,transparent,var(--ah-border))}
.ah-flourish::after{background:linear-gradient(90deg,var(--ah-border),transparent)}
.ah-flourish span{font-size:.95rem;letter-spacing:.3em}

/* double-line ornament frame */
.ah-frame{position:relative;border:1px solid var(--ah-border);border-radius:var(--ah-radius);
  padding:clamp(18px,3vw,28px);background:var(--ah-surface-raised);box-shadow:var(--ah-shadow)}
.ah-frame::before{content:"";position:absolute;inset:6px;border:1px solid var(--ah-border-soft);
  border-radius:var(--ah-radius-sm);pointer-events:none}
/* corner ✦ ticks — add .ah-frame--ticked */
.ah-frame--ticked::after{content:"✦";position:absolute;top:-11px;left:50%;transform:translateX(-50%);
  color:var(--ah-ornament);background:var(--ah-surface);padding:0 10px;font-size:.85rem;letter-spacing:0}

/* trellis wash — section backgrounds */
.ah-trellis{position:relative}
.ah-trellis::before{content:"";position:absolute;inset:0;pointer-events:none;opacity:.14;
  background-image:var(--ah-trellis);background-size:120px 120px}
.ah-trellis > *{position:relative}

/* engraved corner floral — add to a section; needs assets/ path */
.ah-floral-corner{position:relative;overflow:hidden}
.ah-floral-corner::after{content:"";position:absolute;top:-24px;right:-48px;width:min(300px,40vw);aspect-ratio:680/652;
  background:url("assets/floral-daffodil.webp") no-repeat center/contain;opacity:.14;pointer-events:none;
  animation:ah-sway 14s ease-in-out infinite}

/* the drawn scrollwork underline — pair with the inline SVG in ui-kit.html */
.ah-scroll-flourish{display:block;width:240px;max-width:60%;height:22px;margin-top:10px}
.ah-scroll-flourish .scroll{fill:none;stroke:var(--ah-ornament);stroke-width:1.7;stroke-linecap:round;
  stroke-dasharray:300;stroke-dashoffset:300}
.ah-scroll-flourish .star{fill:var(--ah-ornament);opacity:0;transition:opacity .6s .9s}
.in-view .ah-scroll-flourish .scroll,.ah-scroll-flourish.in-view .scroll{animation:ah-draw 1.3s var(--ah-ease) forwards}
.in-view .ah-scroll-flourish .star,.ah-scroll-flourish.in-view .star{opacity:1}

/* badges & labels */
.ah-badge{display:inline-block;font-size:.66rem;font-weight:700;letter-spacing:.18em;text-transform:uppercase;
  color:var(--ah-action-text);background:var(--ah-surface-accent);border-radius:999px;padding:4px 12px}
.ah-badge--rose{background:var(--ah-action)}
.ah-badge--ghost{background:transparent;color:var(--ah-text-accent);border:1px solid var(--ah-border)}
.ah-chip{display:inline-flex;align-items:center;gap:8px;background:var(--ah-surface);border:1px solid var(--ah-border);
  border-radius:999px;padding:5px 14px;font-size:.92rem}

/* ══════════════════ 4 · BUTTONS ══════════════════ */
.woocommerce a.button,.woocommerce button.button,.woocommerce input.button,
.woocommerce #respond input#submit,.ah-btn{
  font-family:var(--ah-body);font-weight:600;font-size:.95rem;letter-spacing:.07em;text-transform:uppercase;
  cursor:pointer;border-radius:999px;padding:12px 28px;line-height:1.2;
  transition:background-color .25s var(--ah-ease),border-color .25s,color .25s,transform .25s;
  border:1px solid transparent;background:transparent;color:var(--ah-action);border-color:var(--ah-border);
  text-decoration:none;display:inline-block;
}
.woocommerce a.button:hover,.woocommerce button.button:hover,.woocommerce input.button:hover,.ah-btn:hover{
  background:var(--ah-surface-raised);border-color:var(--ah-ornament);color:var(--ah-action)}
/* primary — the royal seal */
.woocommerce a.button.alt,.woocommerce button.button.alt,.woocommerce input.button.alt,
.woocommerce .single_add_to_cart_button,.woocommerce #respond input#submit.alt,.ah-btn--primary{
  background:var(--ah-action);color:var(--ah-action-text);border-color:var(--ah-action);box-shadow:var(--ah-shadow)}
.woocommerce a.button.alt:hover,.woocommerce button.button.alt:hover,
.woocommerce .single_add_to_cart_button:hover,.ah-btn--primary:hover{background:var(--ah-action-hover);border-color:var(--ah-action-hover);color:var(--ah-action-text)}
/* quiet text action */
.ah-btn--quiet{border:none;background:none;padding:6px 4px;text-transform:none;letter-spacing:.02em;
  font-weight:600;color:var(--ah-text-accent);text-decoration:underline;text-underline-offset:3px}
/* disabled + Woo loading */
.woocommerce a.button.disabled,.woocommerce button.button:disabled,.ah-btn:disabled{opacity:.5;cursor:default;pointer-events:none}
.woocommerce a.button.loading{opacity:.8;position:relative;padding-right:44px}
.woocommerce a.button.loading::after{content:"✦";position:absolute;right:16px;top:50%;margin-top:-.6em;
  animation:ah-spin 1.4s linear infinite}

/* ══════════════════ 5 · FORMS ══════════════════ */
.woocommerce form .form-row label,.ah-field label{display:block;margin-bottom:6px;font-weight:600;
  font-size:.92rem;color:var(--ah-text-accent);letter-spacing:.06em}
.woocommerce form .form-row .required{color:var(--ah-text-sale);text-decoration:none}
.woocommerce form .form-row input.input-text,.woocommerce form .form-row textarea,
.ah-theme input[type=text],.ah-theme input[type=email],.ah-theme input[type=tel],.ah-theme input[type=url],
.ah-theme input[type=number],.ah-theme input[type=password],.ah-theme input[type=search],.ah-theme textarea{
  font-family:var(--ah-body);font-weight:400;font-size:1rem;color:var(--ah-text);width:100%;
  background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:9px;padding:11px 14px;
  transition:border-color .25s}
.ah-theme input:hover,.ah-theme textarea:hover{border-color:var(--ah-ornament)}
.ah-theme ::placeholder{color:rgba(138,109,40,.55);font-style:italic}
.ah-theme select,.woocommerce form .form-row select{
  font-family:var(--ah-body);font-weight:500;font-size:1rem;color:var(--ah-text);width:100%;
  appearance:none;-webkit-appearance:none;background:var(--ah-surface) var(--ah-caret) no-repeat right 14px center;
  border:1px solid var(--ah-border);border-radius:9px;padding:11px 40px 11px 14px;cursor:pointer}
.ah-theme input[type=checkbox],.ah-theme input[type=radio]{accent-color:var(--ah-action);width:1.1em;height:1.1em}
/* ── the premium dropdown (.ah-select) — JS enhances variation selects ── */
.ah-select{position:relative;width:100%}
.ah-select-toggle{
  display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  font-family:var(--ah-body);font-weight:500;font-size:1rem;color:var(--ah-text);text-align:left;
  background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:9px;padding:11px 14px;cursor:pointer;
  transition:border-color .3s var(--ah-ease),box-shadow .3s var(--ah-ease)}
.ah-select-toggle:hover{border-color:var(--ah-ornament)}
.ah-select.open .ah-select-toggle{border-color:var(--ah-ornament);box-shadow:0 6px 24px -14px rgba(138,109,40,.5)}
.ah-select-toggle .chev{color:var(--ah-text-accent);font-size:.8rem;transition:transform .35s var(--ah-ease)}
.ah-select.open .ah-select-toggle .chev{transform:rotate(180deg)}
.ah-select-toggle .lbl{transition:opacity .22s var(--ah-ease),transform .22s var(--ah-ease)}
.ah-select-toggle .lbl.swap{opacity:0;transform:translateY(-4px)}
.ah-select-toggle.just-picked::before{content:"✦";position:absolute;right:40px;color:var(--ah-highlight);
  animation:ah-pick 1s var(--ah-ease) forwards;pointer-events:none}
@keyframes ah-pick{0%{opacity:0;transform:translateY(4px) scale(.6)}30%{opacity:1;transform:translateY(0) scale(1)}100%{opacity:0;transform:translateY(-8px) scale(.9)}}
.ah-select-panel{
  position:absolute;top:calc(100% + 8px);left:0;right:0;z-index:40;
  background:var(--ah-surface-raised);border:1px solid var(--ah-ornament);border-radius:10px;
  box-shadow:0 22px 48px -20px rgba(32,40,27,.4);overflow:hidden;
  max-height:280px;overflow-y:auto;
  transform-origin:top center;opacity:0;transform:scaleY(.92) translateY(-6px);pointer-events:none;
  visibility:hidden;
  transition:opacity .24s var(--ah-ease),transform .24s var(--ah-ease),visibility 0s linear .24s}
.ah-select-panel::before{content:"";position:sticky;top:0;display:block;height:2px;
  background:linear-gradient(90deg,transparent,var(--ah-highlight),transparent);
  transform:scaleX(0);transition:transform .5s var(--ah-ease) .1s}
.ah-select.open .ah-select-panel{opacity:1;transform:none;pointer-events:auto;visibility:visible;
  transition:opacity .24s var(--ah-ease),transform .24s var(--ah-ease),visibility 0s}
.ah-select.open .ah-select-panel::before{transform:scaleX(1)}
.ah-select-opt{
  position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;
  padding:12px 16px 12px 20px;cursor:pointer;font-family:var(--ah-body);font-size:1rem;color:var(--ah-text);
  opacity:0;transform:translateY(6px)}
.ah-select.open .ah-select-opt{opacity:1;transform:none;
  transition:opacity .3s var(--ah-ease),transform .3s var(--ah-ease),background-color .2s,padding-left .25s var(--ah-ease);
  transition-delay:var(--ah-d,0s),var(--ah-d,0s),0s,0s}
.ah-select-opt::before{content:"";position:absolute;left:0;top:0;bottom:0;width:3px;background:var(--ah-ornament);
  transform:scaleY(0);transition:transform .25s var(--ah-ease)}
.ah-select-opt:hover{background:rgba(176,141,60,.1);padding-left:26px}
.ah-select-opt:hover::before{transform:scaleY(1)}
.ah-select-opt[aria-selected="true"]{color:var(--ah-action);font-weight:600}
.ah-select-opt[aria-selected="true"]::after{content:"✦";color:var(--ah-text-accent);font-size:.85rem}
.ah-select-opt.focused{background:rgba(176,141,60,.12)}
.ah-select-opt[aria-disabled="true"]{opacity:.4;cursor:default;font-style:italic}
.ah-select-opt[aria-disabled="true"]:hover{background:none;padding-left:20px}
.ah-select-opt[aria-disabled="true"]:hover::before{transform:scaleY(0)}
.ah-select-panel::-webkit-scrollbar{width:8px}
.ah-select-panel::-webkit-scrollbar-thumb{background:var(--ah-border);border-radius:99px}
.ah-select .ah-native{position:absolute !important;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
@media(prefers-reduced-motion:reduce){
  .ah-select-panel{transition:none}
  .ah-select.open .ah-select-opt{transition:none;opacity:1;transform:none}
}

/* select2 (Woo country/state) — minimal skin */
.ah-theme .select2-container--default .select2-selection--single{
  background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:9px;height:auto;padding:8px 12px}
.ah-theme .select2-dropdown{background:var(--ah-surface-raised);border-color:var(--ah-border);font-family:var(--ah-body)}
.ah-theme .select2-container--default .select2-results__option--highlighted{background:var(--ah-action);color:var(--ah-action-text)}

/* ══════════════════ 6 · NOTICES ══════════════════ */
.woocommerce-message,.woocommerce-info,.woocommerce-error{
  font-family:var(--ah-body);background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-left:3px solid var(--ah-ornament);
  border-radius:var(--ah-radius-sm);padding:14px 18px 14px 44px;position:relative;color:var(--ah-text);
  box-shadow:var(--ah-shadow);list-style:none}
.woocommerce-message::before,.woocommerce-info::before,.woocommerce-error::before{
  content:"✦";position:absolute;left:16px;top:13px;color:var(--ah-text-accent);font-size:1rem}
.woocommerce-info{border-left-color:var(--ah-highlight)}
.woocommerce-error{border-left-color:var(--ah-text-sale)}
.woocommerce-error::before{content:"!";color:var(--ah-text-sale);font-weight:700}
.woocommerce-message .button,.woocommerce-info .button,.woocommerce-error .button{float:right;padding:6px 16px;font-size:.85rem;margin-left:12px}

/* ══════════════════ 7 · BREADCRUMB & PAGINATION ══════════════════ */
/* WooCommerce ships .woocommerce:where(body:not(.woocommerce-uses-block-theme)) .woocommerce-breadcrumb a{color:#767676}
   — specificity (0,2,0), and it applies ONLY to classic themes, so it stayed dormant while the
   kit was validated against a block theme. Prefixing with body.ah-theme takes these to (0,2,1)
   and (0,2,2), which outrank it. #767676 on cream is 4.16:1 and fails AA. */
body.ah-theme .woocommerce-breadcrumb{font-size:.92rem;color:var(--ah-text-accent);margin-bottom:1.4rem}
body.ah-theme .woocommerce-breadcrumb a{color:var(--ah-text-accent);text-decoration:underline;text-underline-offset:3px;text-decoration-thickness:1px}
body.ah-theme .woocommerce-breadcrumb a:hover{color:var(--ah-action);text-decoration:underline}
.woocommerce-pagination ul.page-numbers{border:none;display:flex;gap:8px;justify-content:center}
.woocommerce-pagination ul.page-numbers li{border:none}
.woocommerce-pagination ul.page-numbers li .page-numbers{
  display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;
  border:1px solid var(--ah-border);border-radius:999px;color:var(--ah-action);font-weight:700;text-decoration:none;
  transition:all .2s}
.woocommerce-pagination ul.page-numbers li a.page-numbers:hover{border-color:var(--ah-ornament);background:var(--ah-surface-raised)}
.woocommerce-pagination ul.page-numbers li span.current{background:var(--ah-action);border-color:var(--ah-action);color:var(--ah-action-text)}

/* ══════════════════ 8 · PRODUCT GRID ══════════════════ */
.woocommerce ul.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:22px;margin:0;padding:0}
/* WooCommerce's legacy float clearfix. In a float layout `::before{content:" ";
   display:table}` is invisible; in a GRID container it becomes a grid ITEM and
   eats the whole top-left cell — the first card was starting 290px right of the
   container, a visible hole in the main shopping surface.
   Same family as the float percentages below: a leftover from the layout model
   this kit replaced, harmless until the container changed underneath it. */
/* THE STRONGEST TREATMENT ON A PAGE SHOULD BE THE THING THAT TAKES MONEY.
   "Add to bag" was rendering as the quiet outline variant — transparent ground,
   faint gold border — while "Find your scent", a NAVIGATION link, was solid
   burgundy on every page. The buy button was visually weaker than a nav item.
   Both reviews reached this from opposite directions: a design inconsistency
   and a conversion failure that are the same defect.
   Woo gives the loop button no `.alt`, so it inherited the secondary treatment
   by omission rather than by decision. */
.woocommerce ul.products li.product a.add_to_cart_button,
.woocommerce ul.products li.product a.button.product_type_simple,
.woocommerce ul.products li.product a.button.product_type_variable{
  background:var(--ah-action);color:var(--ah-action-text);
  border-color:var(--ah-action);box-shadow:var(--ah-shadow)}
.woocommerce ul.products li.product a.add_to_cart_button:hover,
.woocommerce ul.products li.product a.button.product_type_simple:hover,
.woocommerce ul.products li.product a.button.product_type_variable:hover{
  background:var(--ah-action-hover);border-color:var(--ah-action-hover);color:var(--ah-action-text)}

.woocommerce ul.products::before,
.woocommerce ul.products::after,
.woocommerce .products ul::before,
.woocommerce .products ul::after{display:none}
.woocommerce ul.products li.product{
  list-style:none;margin:0;width:auto;float:none;position:relative;text-align:center;
  background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-radius:var(--ah-radius);
  padding:16px 16px 20px;box-shadow:var(--ah-shadow);overflow:hidden;
  transition:transform .3s var(--ah-ease),border-color .3s,box-shadow .3s}
.woocommerce ul.products li.product:hover{transform:translateY(-4px);border-color:var(--ah-ornament);
  box-shadow:0 18px 40px -22px rgba(138,109,40,.5)}
/* gold sheen sweep on hover — the Premium touch */
.woocommerce ul.products li.product::after{content:"";position:absolute;top:-160%;left:0;width:46%;height:420%;
  transform:translateX(-260%) rotate(18deg);pointer-events:none;
  background:linear-gradient(90deg,transparent,rgba(217,164,65,.16),transparent)}
.woocommerce ul.products li.product:hover::after{animation:ah-sheen 1.1s var(--ah-ease)}
.woocommerce ul.products li.product img{border-radius:var(--ah-radius-sm);border:1px solid var(--ah-border-soft);
  width:100%;height:auto;margin-bottom:12px}
.woocommerce ul.products li.product .woocommerce-loop-product__title{
  font-family:var(--ah-display);font-weight:500;font-size:1.2rem;padding:0;color:var(--ah-text)}
.woocommerce ul.products li.product .ah-scent{font-style:italic;font-size:.92rem;color:var(--ah-text-accent)}
.woocommerce ul.products li.product .price.price{display:block;margin:8px 0 12px;color:var(--ah-text-price);font-weight:700;font-size:1.1rem}
.woocommerce ul.products li.product .button{margin-top:2px;padding:9px 22px;font-size:.88rem}
/* price semantics */
/* The was-price. opacity:.7 folded gold-deep over cream down to 2.73:1 on the
   single product and 4.10:1 in the grid — a real contrast failure on visible
   text, which axe confirmed as a serious violation. The line-through and the
   quieter colour already carry the de-emphasis, so the opacity only cost
   legibility. Do not reintroduce it. */
.woocommerce .price del{color:var(--ah-text-accent);font-weight:500;
  text-decoration:line-through;text-decoration-color:var(--ah-text-sale)}
/* WooCommerce sets opacity:.7 on the was-price in two UNGATED rules —
   .woocommerce div.product p.price del (0,3,3), .woocommerce ul.products
   li.product .price del (0,4,3) — both of which outrank the rule above.
   Folded over cream that drops gold-deep to 2.73:1 on the single product and
   4.10:1 in the grid; axe confirms a serious violation. Unlike the seven
   classic-theme-gated rules, these apply to block themes too, so this was
   never about D-006. Doubling .price wins without changing what matches. */
.woocommerce div.product p.price.price del,
.woocommerce div.product span.price.price del,
.woocommerce ul.products li.product .price.price del{opacity:1;color:var(--ah-text-accent)}
.woocommerce .price ins{text-decoration:none;color:var(--ah-text-price);font-weight:700;margin-left:6px}
/* sale badge — apothecary label */
.woocommerce span.onsale{
  position:absolute;top:14px;left:14px;z-index:2;min-width:0;min-height:0;line-height:1;
  background:var(--ah-action);color:var(--ah-action-text);border-radius:999px;padding:7px 14px;
  font-family:var(--ah-body);font-weight:700;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase;
  transform:rotate(-4deg);box-shadow:var(--ah-shadow)}
.woocommerce span.onsale::after{content:" ✦"}
/* featured ribbon (custom) */
.ah-ribbon{position:absolute;top:14px;right:14px;z-index:2;background:var(--ah-surface-accent);color:var(--ah-action-text);
  border-radius:999px;padding:7px 14px;font-weight:700;font-size:.72rem;letter-spacing:.16em;text-transform:uppercase}
/* stock */
.woocommerce .stock.in-stock.in-stock{color:var(--ah-text-accent);font-style:italic}
.woocommerce .stock.out-of-stock.out-of-stock{color:var(--ah-text-sale);font-style:italic}

/* star ratings — ✦ marks, works with stock markup */
.woocommerce .star-rating{position:relative;display:inline-block;width:5.4em;height:1.1em;line-height:1.1;
  font-size:.95rem;overflow:hidden;font-family:var(--ah-body)}
.woocommerce .star-rating::before{content:"✦ ✦ ✦ ✦ ✦";color:var(--ah-border);position:absolute;left:0;top:0;white-space:nowrap}
.woocommerce .star-rating span{position:absolute;left:0;top:0;overflow:hidden;padding-top:1.5em;height:0}
.woocommerce .star-rating span::before{content:"✦ ✦ ✦ ✦ ✦";color:var(--ah-text-accent);position:absolute;left:0;top:0;white-space:nowrap}

/* ══════════════════ 9 · SINGLE PRODUCT ══════════════════ */
.woocommerce div.product{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,56px)}
/* `div.` is load-bearing: Woo's .woocommerce div.product div.images is (0,3,2)
   and this rule was (0,3,1), so it never applied and the gallery rendered at 48%
   of its intended width for the life of the theme. div.summary on the next line
   was always right because it carries its type. */
.woocommerce div.product div.woocommerce-product-gallery,
.woocommerce div.product div.summary{width:auto;float:none;margin:0}
.woocommerce div.product > .woocommerce-tabs,
.woocommerce div.product > .related,.woocommerce div.product > .up-sells,
.woocommerce div.product > .woocommerce-breadcrumb,.woocommerce div.product > .onsale{grid-column:1/-1}
.woocommerce div.product div.woocommerce-product-gallery img{border-radius:var(--ah-radius);border:1px solid var(--ah-border)}
/* One h1 scale across the site. This was clamp(1.9rem,4vw,2.8rem) -> 45px while
   every other page's h1 renders 54px, which made the product page — the
   destination of the whole two-axis catalogue — the smallest heading on the
   site. Inherited from the kit rather than decided. Matches .ah-page-title. */
.woocommerce div.product .product_title{font-size:clamp(2.2rem,5vw,3.4rem);margin-bottom:.2rem}
.woocommerce div.product p.price.price{font-family:var(--ah-display);font-size:1.9rem;color:var(--ah-text-price);margin:.4rem 0 .8rem}
/* Woo also colours div.product span.price (the variation price) #958e09 = 3.13:1.
   Colour only — the variation price inherits its size from its container.
   NOTE on the doubled classes above: WooCommerce ships these same selectors guarded by
   :where(body:not(.woocommerce-uses-block-theme)), which costs nothing in specificity but
   applies only to CLASSIC themes — dormant while the kit was checked against a block theme.
   Repeating the subject class outranks them without changing what the selector matches;
   a `body.ah-theme ` prefix would NOT work here, since .woocommerce is the body itself. */
.woocommerce div.product span.price.price{color:var(--ah-text-price)}
.woocommerce div.product .woocommerce-product-details__short-description{font-size:1.08rem}
/* variations (scent / format selectors) */
.woocommerce div.product form.cart .variations{margin-bottom:1rem}
.woocommerce div.product form.cart .variations td,.woocommerce div.product form.cart .variations th{
  border:none;padding:6px 0;vertical-align:middle}
.woocommerce div.product form.cart .variations label{font-weight:700;color:var(--ah-text-accent);
  text-transform:uppercase;letter-spacing:.12em;font-size:.78rem}
.woocommerce div.product form.cart .reset_variations{font-size:.85rem;color:var(--ah-text-accent)}
/* quantity — steppers added by alchemist-ui.js */
.woocommerce .quantity{display:inline-flex;align-items:center;border:1px solid var(--ah-border);
  border-radius:999px;overflow:hidden;background:var(--ah-surface)}
.woocommerce .quantity .qty{width:3.2em;border:none;background:transparent;text-align:center;
  font-weight:700;font-size:1.05rem;padding:10px 0;-moz-appearance:textfield;appearance:textfield}
.woocommerce .quantity .qty::-webkit-outer-spin-button,.woocommerce .quantity .qty::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.ah-qty-btn{border:none;background:none;color:var(--ah-action);font-size:1.15rem;font-weight:700;
  padding:8px 15px;cursor:pointer;line-height:1;transition:background-color .2s}
.ah-qty-btn:hover{background:rgba(176,141,60,.12)}
.woocommerce div.product form.cart{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin:1rem 0 1.4rem}
.woocommerce div.product form.cart div.quantity{margin:0;float:none}
/* meta */
.woocommerce div.product .product_meta{font-size:.9rem;color:var(--ah-text-accent);border-top:1px solid var(--ah-border-soft);padding-top:12px}
.woocommerce div.product .product_meta span{display:block;margin-top:4px}

/* tabs */
.woocommerce div.product .woocommerce-tabs ul.tabs{padding:0;margin:2rem 0 0;display:flex;gap:4px;border-bottom:1px solid var(--ah-border)}
.woocommerce div.product .woocommerce-tabs ul.tabs::before,.woocommerce div.product .woocommerce-tabs ul.tabs::after{display:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li{
  background:none;border:none;border-radius:0;margin:0;padding:0}
.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 a{
  display:block;padding:12px 20px;font-weight:700;color:var(--ah-text-accent);letter-spacing:.06em;
  border-bottom:2px solid transparent;transition:color .2s,border-color .2s;text-decoration:none}
.woocommerce div.product .woocommerce-tabs ul.tabs li.active a{color:var(--ah-action);border-bottom-color:var(--ah-ornament)}
.woocommerce div.product .woocommerce-tabs .panel{
  background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-top:none;
  border-radius:0 0 var(--ah-radius) var(--ah-radius);padding:clamp(18px,3vw,30px);margin:0}

/* ══════════════════ 10 · PREMIUM CONTENT BLOCKS ══════════════════ */
/* the story / origin block — "ornamented, with story" made literal */
.ah-story{position:relative;background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-radius:var(--ah-radius);
  padding:clamp(22px,4vw,40px);overflow:hidden;box-shadow:var(--ah-shadow)}
.ah-story::before{content:"";position:absolute;inset:6px;border:1px solid var(--ah-border-soft);border-radius:var(--ah-radius-sm);pointer-events:none}
.ah-story::after{content:"";position:absolute;bottom:-30px;left:-40px;width:min(260px,36vw);aspect-ratio:600/397;
  background:url("assets/floral-branch.webp") no-repeat center/contain;opacity:.12;pointer-events:none}
.ah-story .ah-eyebrow{display:block;margin-bottom:.5rem}
.ah-story h3{font-family:var(--ah-display);font-weight:400;font-size:1.7rem;margin:0 0 .6rem}
.ah-story .ah-story-body{max-width:62ch}
.ah-story .ah-story-body > p:first-of-type::first-letter{
  font-family:var(--ah-display);font-size:3.2em;float:left;line-height:.82;
  padding:4px 10px 0 0;color:var(--ah-action)}

/* how-to-use — a true sequence, so numbered */
.ah-howto{counter-reset:ah-step}
.ah-howto .ah-step{position:relative;padding:14px 0 14px 58px;border-top:1px solid var(--ah-border-soft)}
.ah-howto .ah-step:first-child{border-top:none}
.ah-howto .ah-step::before{
  counter-increment:ah-step;content:counter(ah-step);
  position:absolute;left:0;top:12px;width:40px;height:40px;border:1px solid var(--ah-ornament);border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  font-family:var(--ah-display);font-size:1.2rem;color:var(--ah-text-accent);background:var(--ah-surface)}
.ah-howto .ah-step strong{display:block;font-family:var(--ah-display);font-weight:500;font-size:1.15rem}

/* scent notes — top / heart / base */
.ah-notes{display:grid;grid-template-columns:repeat(auto-fit,minmax(160px,1fr));gap:14px}
.ah-note{text-align:center;background:var(--ah-surface);border:1px solid var(--ah-border);border-radius:var(--ah-radius-sm);padding:16px 12px}
.ah-note .ah-note-tier{font-size:.7rem;font-weight:700;letter-spacing:.2em;text-transform:uppercase;color:var(--ah-text-accent)}
.ah-note .ah-note-name{font-family:var(--ah-display);font-weight:500;font-size:1.2rem;margin-top:2px}
.ah-note .ah-note-desc{font-style:italic;font-size:.9rem;color:var(--ah-text-accent)}

/* ingredients / details accordion (enhanced by JS) */
.ah-accordion{border:1px solid var(--ah-border);border-radius:var(--ah-radius);overflow:hidden;background:var(--ah-surface-raised)}
.ah-accordion .ah-acc-head{display:flex;align-items:center;justify-content:space-between;gap:12px;width:100%;
  background:none;border:none;padding:15px 18px;cursor:pointer;text-align:left;
  font-family:var(--ah-display);font-weight:500;font-size:1.15rem;color:var(--ah-text)}
.ah-accordion .ah-acc-head:hover{background:rgba(176,141,60,.07)}
.ah-accordion .ah-acc-head .chev{color:var(--ah-text-accent);transition:transform .3s var(--ah-ease)}
.ah-accordion .ah-acc-head[aria-expanded="true"] .chev{transform:rotate(180deg)}
.ah-accordion .ah-acc-body{padding:4px 18px 16px;border-top:1px solid var(--ah-border-soft)}
.ah-accordion + .ah-accordion{margin-top:10px}

/* ══════════════════ 11 · REVIEWS ══════════════════ */
.woocommerce #reviews #comments ol.commentlist{padding:0;margin:0}
.woocommerce #reviews #comments ol.commentlist li{margin-bottom:14px;list-style:none}
.woocommerce #reviews #comments ol.commentlist li .comment_container{
  background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-radius:var(--ah-radius);padding:16px 18px}
.woocommerce #reviews #comments ol.commentlist li img.avatar{
  position:static;float:left;width:44px;height:44px;border-radius:50%;border:1px solid var(--ah-border);
  padding:0;background:none;margin:0 14px 6px 0}
.woocommerce #reviews #comments ol.commentlist li .comment-text{border:none;margin:0;padding:0}
.woocommerce #reviews #comments ol.commentlist li .meta.meta{color:var(--ah-text-accent);font-size:.9rem}
.woocommerce #reviews #comments ol.commentlist li .meta strong{color:var(--ah-text);font-family:var(--ah-display);font-weight:400;font-size:1.1rem}
.woocommerce #review_form #respond{background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-radius:var(--ah-radius);padding:20px}
.woocommerce #review_form #respond .comment-reply-title{font-family:var(--ah-display);font-size:1.4rem}
.woocommerce p.stars a{color:var(--ah-text-accent)}
/* The gallery zoom trigger is a control that happens to be an anchor. It gets a
   component colour of its own — never the link colour. */
.woocommerce a.woocommerce-product-gallery__trigger{color:var(--ah-text-accent)}

/* ══════════════════ 12 · CART & TABLES ══════════════════ */
.woocommerce table.shop_table{border:1px solid var(--ah-border);border-radius:var(--ah-radius);border-collapse:separate;
  border-spacing:0;background:var(--ah-surface-raised);overflow:hidden;box-shadow:var(--ah-shadow)}
.woocommerce table.shop_table th{
  font-size:.74rem;font-weight:700;letter-spacing:.16em;text-transform:uppercase;color:var(--ah-text-accent);
  background:rgba(176,141,60,.08);border:none;padding:13px 16px;text-align:left}
.woocommerce table.shop_table td{border:none;border-top:1px solid var(--ah-border-soft);padding:14px 16px}
.woocommerce table.shop_table td.product-name a{color:var(--ah-text);text-decoration:none;font-family:var(--ah-display);font-size:1.1rem}
.woocommerce table.shop_table td.product-name a:hover{color:var(--ah-action)}
.woocommerce table.shop_table img{width:56px;border-radius:var(--ah-radius-sm);border:1px solid var(--ah-border-soft)}
.woocommerce a.remove{color:var(--ah-text-sale) !important;font-weight:500;width:auto;height:auto;line-height:1;font-size:1.3rem}
.woocommerce a.remove:hover{background:none;color:var(--ah-action) !important}
.woocommerce td.actions .coupon{display:flex;gap:10px}
.woocommerce td.actions .coupon .input-text{width:180px;padding:9px 14px}
.woocommerce .cart_totals h2{font-size:1.6rem}
.woocommerce .cart_totals table.shop_table td,.woocommerce .cart_totals table.shop_table th{text-align:left}
.woocommerce .cart_totals .order-total td,.woocommerce .cart_totals .order-total th{
  font-family:var(--ah-display);font-size:1.25rem;color:var(--ah-action)}

/* ══════════════════ 13 · WIDGETS ══════════════════ */
.ah-theme .widget{background:var(--ah-surface-raised);border:1px solid var(--ah-border);border-radius:var(--ah-radius);padding:18px 20px;margin-bottom:18px}
.ah-theme .widget .widget-title,.ah-theme .widget .widgettitle{
  font-family:var(--ah-display);font-weight:400;font-size:1.3rem;margin:0 0 .7rem;
  padding-bottom:.5rem;border-bottom:1px solid var(--ah-border-soft)}
.ah-theme .widget ul{list-style:none;margin:0;padding:0}
.ah-theme .widget ul li{padding:7px 0;border-top:1px solid var(--ah-border-soft)}
.ah-theme .widget ul li:first-child{border-top:none}
.ah-theme .widget ul li a{text-decoration:none;color:var(--ah-text)}
.ah-theme .widget ul li a:hover{color:var(--ah-action)}
.ah-theme .widget .count{float:right;color:var(--ah-text-accent);font-size:.9rem}
/* price filter */
.woocommerce .widget_price_filter .ui-slider .ui-slider-range{background:var(--ah-ornament)}
.woocommerce .widget_price_filter .price_slider_wrapper .ui-widget-content{background:var(--ah-border-soft)}
.woocommerce .widget_price_filter .ui-slider .ui-slider-handle{
  background:radial-gradient(circle at 35% 32%,#f7e7bd,var(--ah-ornament));border:1px solid var(--ah-surface-accent)}

/* ══════════════════ 14 · MOTION ══════════════════ */
@keyframes ah-sway{0%,100%{transform:rotate(2deg)}50%{transform:rotate(5deg) translateY(5px)}}
@keyframes ah-sheen{0%{transform:translateX(-260%) rotate(18deg)}100%{transform:translateX(320%) rotate(18deg)}}
@keyframes ah-draw{to{stroke-dashoffset:0}}
@keyframes ah-spin{to{transform:rotate(360deg)}}
@keyframes ah-rise{0%{transform:translateY(0);opacity:0}12%{opacity:.5}80%{opacity:.3}100%{transform:translateY(-105vh);opacity:0}}
/* scroll reveal — JS adds .in-view */
/* KIT RULE — NEVER ANIMATE THE VISIBILITY OF ANYTHING CARRYING TEXT.
   Two instances found the same night: this rule, which hid its content outright
   if the JS never ran, and a scroll-driven reveal elsewhere that parked six
   lines of cream-on-cream at 1.00:1 on a page too short to scroll.

   A scroll-driven animation parks its element at the FROM-state while out of
   range, and "out of range" includes "this page never scrolls". An opacity
   reveal is a bet that something will later un-hide it; when the bet loses, the
   content is simply gone — and gone silently, because a gate measuring without
   scrolling sees 1:1 and a gate measuring after scrolling sees it repaired.

   Gated on `scripting: enabled` so the from-state only exists where something
   can undo it. Where the query is unsupported the rule does not apply and the
   content is visible — the failure mode is "no animation", never "no content". */
@media (scripting: enabled) {
	.ah-reveal{opacity:0;transform:translateY(14px);transition:opacity .8s var(--ah-ease),transform .8s var(--ah-ease)}
}
.ah-reveal.in-view{opacity:1;transform:none}
/* opt-in ambient bee (hero sections) — <div class="ah-bee-field" data-ah-bees="1"> */
.ah-bee-field{position:relative;overflow:hidden}
.ah-bee{position:absolute;top:0;left:0;width:40px;opacity:.35;pointer-events:none}
@keyframes ah-bee-drift{0%{transform:translate(-6%,70%) scaleX(-1) rotate(6deg)}45%{transform:translate(48%,20%) scaleX(-1) rotate(-7deg)}100%{transform:translate(104%,55%) scaleX(-1) rotate(4deg)}}

/* Cart block quantity stepper — WooCommerce sets opacity:.6 on the resting − and
   + buttons and opacity:1 only on hover/focus, so the control fails AA exactly
   when nobody is touching it: ink folded over warm measures 4.06:1.
   Third time this palette has been bitten by fading a text colour, after the
   kit's own was-price and the cart count. De-emphasis here is already carried
   by font-size:.9em; the opacity only cost legibility.
   :disabled is deliberately NOT overridden — WCAG 1.4.3 exempts inactive
   controls, and a disabled stepper should still read as disabled. */
.ah-theme .wc-block-components-quantity-selector .wc-block-components-quantity-selector__button:not(:disabled){opacity:1}

/* ══════════════════ 15 · RESPONSIVE & A11Y FLOOR ══════════════════ */
@media(max-width:768px){
  .woocommerce div.product{grid-template-columns:1fr}
  .woocommerce table.shop_table_responsive tr{border-top:1px solid var(--ah-border-soft)}
}
@media(prefers-reduced-motion:reduce){
  .ah-theme *,.ah-theme *::before,.ah-theme *::after{animation:none !important;transition:none !important}
  .ah-reveal{opacity:1;transform:none}
}

/* ══════════════════ 16 · REACTIVE STATE MATRIX ══════════════════
   Signature level: every interactive surface has an authored rest, hover,
   active, focus-visible and disabled state. Before this the kit had 23 hover
   rules, 3 disabled, and a single global :focus-visible — keyboard users got
   one ring for the whole site and pressed buttons did nothing.

   Rules for editing:
   - Token-only. No raw values, no hex.
   - Motion through --ah-duration-* / --ah-ease. Those tokens zero themselves
     under prefers-reduced-motion at :root, so components never write their own
     media query — one override to maintain instead of thirty.
   - Every state's contrast is measured, not assumed. Hover is where contrast
     bugs hide, because nobody screenshots a hover.
   ───────────────────────────────────────────────────────────────── */

/* ── The focus ring, and why it is two-toned ──
   A single gold ring disappears on --ah-surface-accent, which IS gold-deep:
   the badge and ribbon grounds. The inner halo paints the outline-offset gap in
   the page ground, so the ring reads as light-on-dark there and dark-on-light on
   cream. One ring that works on every surface beats a ring plus exceptions. */
.ah-theme :focus-visible {
	outline: var(--ah-border-width-thick) solid var(--ah-focus);
	outline-offset: var(--ah-space-3xs);
	box-shadow: 0 0 0 var(--ah-space-3xs) var(--ah-surface);
	border-radius: var(--ah-radius-sm);
}

/* Never remove the ring for mouse users and leave keyboard users with nothing. */
.ah-theme :focus:not(:focus-visible) {
	outline: none;
}

/* ── Buttons ── */
.ah-theme :where(.ah-btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .woocommerce #respond input#submit, .single_add_to_cart_button) {
	transition:
		background-color var(--ah-duration-fast) var(--ah-ease),
		border-color var(--ah-duration-fast) var(--ah-ease),
		color var(--ah-duration-fast) var(--ah-ease),
		transform var(--ah-duration-fast) var(--ah-ease),
		box-shadow var(--ah-duration-fast) var(--ah-ease);
}

/* The press. A button that does nothing when held feels broken, and it is the
   cheapest possible signal that the click registered. */
.ah-theme :where(.ah-btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .single_add_to_cart_button):active:not(:disabled) {
	transform: translateY(1px);
	box-shadow: none;
}

.ah-theme :where(.ah-btn, .woocommerce a.button, .woocommerce button.button,
.woocommerce input.button, .single_add_to_cart_button):disabled,
.ah-theme :where(.ah-btn, .woocommerce a.button):is([aria-disabled="true"], .disabled) {
	/* WCAG 1.4.3 exempts inactive controls, but "exempt" is not "unreadable".
	   Same treatment as the disabled add-to-cart: a quiet raised surface with
	   muted text, not a faded one. Opacity on this palette has no headroom. */
	background: var(--ah-surface-raised);
	border-color: var(--ah-border);
	box-shadow: none;
	color: var(--ah-text-muted);
	cursor: not-allowed;
	/* Explicit, because something upstream still applies .5 and a half-faded
	   muted grey lands at 2.08:1. The colour role carries the de-emphasis. */
	opacity: 1;
	transform: none;
}

/* ── Form controls ── */
.ah-theme :where(input:not([type="checkbox"]):not([type="radio"]), select, textarea) {
	transition:
		border-color var(--ah-duration-fast) var(--ah-ease),
		background-color var(--ah-duration-fast) var(--ah-ease);
}

.ah-theme :where(input, select, textarea):disabled {
	background: var(--ah-surface-sunken);
	cursor: not-allowed;
	opacity: 0.7;
}

.ah-theme :where(input, textarea)::placeholder {
	color: var(--ah-text-subtle);
	opacity: 1; /* Firefox dims placeholders by default; the token already decides the weight. */
}

.ah-theme :where(input[type="checkbox"], input[type="radio"]) {
	accent-color: var(--ah-action);
}

/* ── The variation dropdown ── */
.ah-theme .ah-select-toggle {
	transition:
		border-color var(--ah-duration-fast) var(--ah-ease),
		box-shadow var(--ah-duration-fast) var(--ah-ease);
}

.ah-theme .ah-select-toggle:active {
	transform: translateY(1px);
}

/* Keyboard traversal of the option list. `.focused` is set by alchemist-ui.js on
   arrow keys — without a visible style it moved an invisible cursor. */
.ah-theme .ah-select-opt.focused {
	background: var(--ah-surface-sunken);
	box-shadow: inset var(--ah-border-width-thick) 0 0 0 var(--ah-ornament);
}

.ah-theme .ah-select-opt[aria-disabled="true"] {
	cursor: not-allowed;
	opacity: 0.5;
}

/* ── The product card: the most-seen interaction on the site ── */
.ah-theme .woocommerce ul.products li.product {
	transition:
		transform var(--ah-duration) var(--ah-ease),
		border-color var(--ah-duration) var(--ah-ease),
		box-shadow var(--ah-duration) var(--ah-ease);
}

.ah-theme .woocommerce ul.products li.product:active {
	transform: translateY(-1px);
}

/* The whole card reacts when the keyboard reaches the link inside it, so tabbing
   through a grid looks the same as moving a mouse through it. */
.ah-theme .woocommerce ul.products li.product:focus-within {
	border-color: var(--ah-ornament);
	box-shadow: var(--ah-shadow);
}

/* ── Quantity steppers ── */
.ah-theme .ah-qty-btn {
	transition: color var(--ah-duration-fast) var(--ah-ease), background-color var(--ah-duration-fast) var(--ah-ease);
}

.ah-theme .ah-qty-btn:hover:not(:disabled) {
	background: var(--ah-surface-sunken);
	color: var(--ah-action-hover);
}

.ah-theme .ah-qty-btn:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

/* ── Tabs and pagination ── */
.ah-theme .woocommerce div.product .woocommerce-tabs ul.tabs li a:hover {
	color: var(--ah-action);
}

.ah-theme .woocommerce-pagination ul.page-numbers li .page-numbers {
	transition: background-color var(--ah-duration-fast) var(--ah-ease), border-color var(--ah-duration-fast) var(--ah-ease);
}

.ah-theme .woocommerce-pagination ul.page-numbers li a.page-numbers:active {
	transform: translateY(1px);
}

/*
 * The current page. The kit's own rule above sits at (0,3,3) and loses to
 * WooCommerce's `.woocommerce nav.woocommerce-pagination ul li span.current`
 * at (0,3,4), which painted grey on lilac at 3.6:1 on every paginated
 * archive (measured by the a11y and contrast gates once the catalog was
 * large enough to paginate). Scoped to the theme so the kit's tokens win.
 */
.ah-theme .woocommerce-pagination ul.page-numbers li span.page-numbers.current {
	background: var(--ah-action);
	border-color: var(--ah-action);
	color: var(--ah-action-text);
}

/* ── The disabled primary button, which was rendering WooCommerce PURPLE ──
   Woo styles the inactive state at (0,3,1):
     .woocommerce:where(…) button.button.alt.disabled { background-color:#7f54b3 }
   The kit's primary rules never covered `.disabled`, so on any variable product
   — before a variation is chosen, which is how every product page first loads —
   the most important button on the page rendered in WooCommerce's brand purple
   at 2.60:1, with a focus ring measuring 1.07:1.

   Matched at the same (0,3,1) shape so it wins on load order. `.ah-theme` cannot
   help here: on a store page .ah-theme and .woocommerce are the SAME element
   (the body), so `.ah-theme .woocommerce` would demand it be its own descendant.
   That mistake cost a day earlier in this build; see the link-colour comment. */
.woocommerce a.button.alt.disabled,
.woocommerce a.button.alt:disabled,
.woocommerce a.button.alt:disabled[disabled],
.woocommerce button.button.alt.disabled,
.woocommerce button.button.alt:disabled,
.woocommerce button.button.alt:disabled[disabled],
.woocommerce input.button.alt.disabled,
.woocommerce input.button.alt:disabled,
.woocommerce input.button.alt:disabled[disabled],
.woocommerce a.button.alt.disabled:hover,
.woocommerce button.button.alt.disabled:hover,
.woocommerce button.button.alt:disabled:hover,
.woocommerce input.button.alt.disabled:hover {
	/*
	 * Woo layers opacity:.5 on its disabled buttons. Folded over the page that
	 * left "Add to bag" at 1.66:1 — legally exempt under WCAG 1.4.3, which
	 * excuses inactive controls, and still a button nobody can read on the first
	 * state every product page shows.
	 *
	 * Same rule the palette has already taught twice: de-emphasis comes from
	 * weight, colour role or wording, never from opacity. So the inactive state
	 * is a real, legible treatment — a quiet raised surface with muted text and
	 * a soft border. It reads as "not yet" rather than as "broken".
	 */
	background-color: var(--ah-surface-raised);
	border-color: var(--ah-border);
	color: var(--ah-text-muted);
	opacity: 1;
	box-shadow: none;
}

/* The non-alt disabled button, which Woo paints #e9e6ed on hover. */
.woocommerce a.button.disabled:hover,
.woocommerce button.button.disabled:hover,
.woocommerce button.button:disabled:hover,
.woocommerce input.button.disabled:hover {
	background-color: var(--ah-surface-raised);
	color: var(--ah-action);
}

/* ══════════════════ KIT RULE · DE-EMPHASIS NEVER COMES FROM OPACITY ═══════
   Three independent instances on this build, so it is a rule rather than a
   lesson:

     1. the was-price   .price del at opacity .7      -> 2.73:1
     2. the cart count  .ah-cart-count--empty at .62  -> 2.39:1
     3. the disabled primary, Woo's own opacity .5    -> 1.66:1

   The cause is the palette, not carelessness. --ah-text-accent is 4.71:1 on
   cream against a 4.5 floor: there is NO headroom to fade anything. A quiet
   text colour on this ground has nowhere lighter to go.

   So quietness comes from a COLOUR ROLE (--ah-text-muted, --ah-text-subtle),
   from weight, from size, or from the words themselves. Never from opacity.

   WCAG 1.4.3 exempting inactive controls is a legal floor, not a design
   standard: EXEMPT IS NOT UNREADABLE. A disabled control still has to look like
   a control someone could read.

   Opacity remains fine for things that carry no text — ornament washes, the
   paper grain, decorative marks. */

/* ── The product grid: cards were rendering at a third of their own cell ──
   `ul.products` is a CSS grid here, but WooCommerce still ships its float-grid
   percentage widths for li.product, and the column-count variant outranks the
   kit's reset:
     .woocommerce ul.products.columns-3 li.product { width:30.75% }   (0,4,2)
     .woocommerce ul.products li.product          { width:auto }     (0,3,2)  <- kit
   So every card sat at 30.75% of a 278px grid track: 120px wide with an 88px
   product image, on the most-seen surface in the store.

   This predates the grid and the visual baselines recorded it as correct — which
   is what a baseline does when it is banked before anyone measures the layout.
   Screenshot diffing can tell you something CHANGED; it cannot tell you the
   starting point was right.

   The attribute selector matches any columns-N and lands at (0,4,2), tying Woo
   and winning on load order. The smallscreen [class*="columns-"] rule at 48% is
   the same specificity and also loses on order, media query or not. */
.woocommerce ul.products li.product,
.woocommerce ul.products[class*="columns-"] li.product,
.woocommerce-page ul.products[class*="columns-"] li.product {
	width: auto;
}

/* ── Touch targets ──
   Card buttons measured 144x37 and the qty steppers smaller still. WCAG 2.5.8
   (AA) asks 24px and they cleared it; --ah-touch-target is 44px because clearing
   a floor is not the same as being comfortable to hit, and a product card's
   button is the single most-tapped control in a store.

   This is the first component to reference the spacing/sizing scale, which by
   the drift gate's own deferral note is the TRIGGER that re-opens stage 2 —
   recorded there rather than here so it cannot be missed. */
.woocommerce ul.products li.product .button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.ah-btn {
	/*
	 * border-box is not optional here, it is what makes min-height mean what it
	 * says. Under content-box the 44px applies to the CONTENT box and the
	 * padding is added outside it, so the button grew to 64px and the label sat
	 * at the top of the 44 — 9px of space above the text and 37px below.
	 *
	 * Every .ah-btn and Woo .button on the site, 30 instances across 15 routes,
	 * visibly wrong to anyone glancing at it and invisible to every gate: it
	 * passed the touch-target check that introduced it, passed contrast, passed
	 * axe. An accessibility fix produced a design defect no automated check
	 * could see, which is the argument for a human looking at the thing.
	 */
	box-sizing: border-box;
	min-height: var(--ah-touch-target);
}

/* Centre the label in the box the min-height creates. Anchors and buttons can
   flex; an <input> cannot have flex children, so it keeps its native centring,
   which border-box alone already fixes. */
.woocommerce ul.products li.product a.button,
.woocommerce a.button,
.woocommerce button.button,
.woocommerce #respond input#submit,
.ah-btn {
	align-items: center;
	display: inline-flex;
	justify-content: center;
}

.ah-theme .ah-qty-btn,
.ah-theme .ah-select-toggle {
	min-height: var(--ah-touch-target);
}

/* ── WooCommerce's own small controls ──
   Measured on mobile: the password reveal at 22x22, form checkboxes at 15x15,
   and the cart/checkout panel toggles at 358x18. These are Woo's controls, not
   ours, and they sit on the two surfaces where a missed tap costs an order.

   min-height / min-width ONLY — deliberately no layout restructuring. Checkout
   is the highest-risk surface in the store to rewrite, and a bigger tap target
   is worth having without re-flowing somebody else's block markup to get it. */
.ah-theme .wc-block-components-panel__button,
.ah-theme .wc-block-components-address-form__address_2-toggle,
.ah-theme button.show-password-input {
	min-height: var(--ah-touch-target);
}

.ah-theme button.show-password-input {
	min-width: var(--ah-touch-target);
}

.ah-theme :where(input[type="checkbox"], input[type="radio"]) {
	min-height: var(--ah-space-lg);
	min-width: var(--ah-space-lg);
}

/* ══════════════════ 17 · BUTTON 046 — THE SITE-WIDE CTA ══════════════════
   SPEC-024 · D-120. Osmo Supply's "Button 046", adopted as-is in structure
   and motion (design-kits/osmo-button-046/button-046.md; the deviations are
   numbered below and in SPEC-024 §A3). The label sits in .button-046__text
   above two layers — a pill (__bg) and a circle (__circle) that enters at the
   cursor, follows it, and leaves past the nearest edge. GSAP moves the circle
   (alchemist-ui.js, initButton046); CSS does the hover and click scale.

   THE MARKUP COMES FROM alchemist_button() IN THE THEME, NEVER HAND-WRITTEN,
   AND KEEPS THE .ah-btn CLASSES so every existing hook and gate still matches.
   That means §4 and §16's .ah-btn rules also apply to this element, and this
   section has to beat them for the properties it owns. Every selector here
   that overrides one of those is `.ah-theme .ah-btn.button-046` (0,3,0) or
   more — never a win by source order, which the file's history says is one
   enqueue change away from silently losing (D-110). Osmo's own part classes
   (__bg, __circle, …) are unique and collide with nothing.

   Colours are the kit's tokens, mapped per variant on the element itself
   (Osmo's "scoped variables" pattern), so a variant is a class, not a copy. */

.ah-theme .ah-btn.button-046 {

	/* SPEC-024 deviation 1 — tokens, not Osmo's colours. These are the
	   SECONDARY defaults (a bare .ah-btn); .ah-btn--primary re-maps below.

	   THE HOVER CIRCLE IS AN OPAQUE MIX, NOT --ah-gold-18. --ah-honey was the
	   spec's first candidate and computes 4.47:1 under royal text — under the
	   AA bar by a hair. The translucent --ah-gold-18 looked right on cream and
	   was wrong in a way only the state gate could see: Osmo's focus rule swaps
	   the pill's background for the hover colour, and a translucent colour with
	   nothing opaque beneath it lets the SURFACE through — measured 1.27:1 for
	   the label on a dark surface in the focus state, 7.33:1 on hover. The same
	   tint mixed opaque over the raised surface reads identically on cream and
	   stays a surface of its own anywhere else. */
	--button-046-color: var(--ah-action);
	--button-046-hover-color: var(--ah-action);
	--button-046-color-background: var(--ah-surface-raised);
	--button-046-hover-color-background: color-mix(in srgb, var(--ah-gold) 18%, var(--ah-surface-raised));

	/* SPEC-024 deviation 2 — Osmo's #fff ring is invisible on cream. The
	   kit's own focus token (text-safe gold, 4.7:1 on cream) draws it; on a
	   dark surface a section sets [data-surface="dark"] and it turns cream. */
	--button-046-color-focus: var(--ah-focus);

	/* SPEC-024 deviation 4 — geometry from tokens. 12px / 28px is exactly
	   §4's padding, so a converted button keeps its measured footprint. */
	--button-046-padding: var(--ah-space-sm) calc(var(--ah-space-lg) + var(--ah-space-2xs));
	--button-046-border-radius: var(--ah-radius-pill);

	/* Osmo's motion constants, verbatim (A2). Not colours, not spacing. */
	--button-046-focus-inset: -0.125em;
	--button-046-hover-scale: 1.065 1.095;
	--button-046-click-scale: 0.955, 0.925;
	--button-046-ease-click: cubic-bezier(0.4, 0, 0.2, 1);
	--button-046-ease-hover: cubic-bezier(0.34, 2.27, 0.64, 1);
	--button-046-ease-focus: cubic-bezier(0.32, 0.72, 0, 1);

	/* The element is a transparent grid; the layers paint. §4's background,
	   border, padding and box-shadow on .ah-btn are all undone here. */
	background: transparent;
	border: 0;
	border-radius: var(--button-046-border-radius);
	box-shadow: none;

	/* SPEC-024 deviation 3 — the kit's touch-target fix survives: border-box
	   so min-height means what it says, and __inner fills the grid area so the
	   label is centred in the 44px, not sat at the top of it. */
	box-sizing: border-box;
	color: var(--button-046-color);
	cursor: pointer;
	display: inline-grid;
	line-height: 1;
	min-height: var(--ah-touch-target);
	outline-style: none;
	padding: 0;
	position: relative;
	-webkit-tap-highlight-color: transparent;
	text-decoration: none;
	transition: color 0.25s ease-out;
	-webkit-user-select: none;
	user-select: none;

	/* An inline-grid's baseline is synthesised from its FIRST item's bottom
	   edge — here the empty pill span — so on the paragraph's baseline the whole
	   44px stood above the line and the strut's descent was added below it:
	   every CTA paragraph grew, +25px over the front page, measured. `middle`
	   restores the line box the inline-flex .ah-btn had (15,086px vs the
	   15,087px baseline). Not an Osmo rule; Osmo's demos sit in flex rows. */
	vertical-align: middle;
}

.ah-theme .ah-btn--primary.button-046 {
	--button-046-color: var(--ah-action-text);
	--button-046-hover-color: var(--ah-action-text);
	--button-046-color-background: var(--ah-action);
	--button-046-hover-color-background: var(--ah-action-hover);
}

.ah-theme [data-surface="dark"] .ah-btn.button-046 {
	--button-046-color-focus: var(--ah-cream);
}

/* §4's :hover and §16's :active paint the ELEMENT (background, border,
   box-shadow, the 1px press). On this button the layers do all of that, so
   the element stays transparent in every state. (0,4,0), beats both. */
.ah-theme .ah-btn.button-046:is(:hover, :focus-visible, :active, :disabled) {
	background: transparent;
	border: 0;
	box-shadow: none;
	transform: none;
}

/* §16's two-toned ring is drawn as an outline at radius-sm, which squares a
   pill. Osmo's ring (::after below) replaces it, in the same focus token. */
.ah-theme .ah-btn.button-046:focus-visible {
	border-radius: var(--button-046-border-radius);
	outline: none;
}

.button-046::after {
	content: '';
	display: block;
	position: absolute;
	inset: var(--button-046-focus-inset);
	border-radius: var(--button-046-border-radius);
	transition: box-shadow 0.3s var(--button-046-ease-focus), scale 0.4s var(--button-046-ease-hover);
	pointer-events: none;
	z-index: 1;
}

.button-046:is(:hover, :focus-visible),
[data-hover]:is(:hover, :focus-visible) .button-046 {
	color: var(--button-046-hover-color);
}

.button-046:is(:focus-visible)::after {
	box-shadow: 0 0 0 0.125em var(--button-046-color-focus);
	scale: var(--button-046-hover-scale);
	transition: box-shadow 0.3s var(--button-046-ease-focus), scale 0.425s 0.05s var(--button-046-ease-hover);
}

.button-046__bg {
	background-color: var(--button-046-color-background);
	border-radius: var(--button-046-border-radius);
	grid-area: 1 / 1;
	width: 100%;
	height: 100%;
	padding: 0;
	transition: background-color 0.25s ease-out, scale 0.4s var(--button-046-ease-hover), transform 0.15s var(--button-046-ease-click);
}

/* The primary keeps §4's soft depth; the secondary gets the 1px --ah-border
   ring §4 drew as a border, as an inset shadow so the geometry is Osmo's
   (deviation 1). */
.ah-theme .ah-btn--primary.button-046 .button-046__bg {
	box-shadow: var(--ah-shadow);
}

.ah-theme .ah-btn.button-046:not(.ah-btn--primary) .button-046__bg {
	box-shadow: inset 0 0 0 var(--ah-border-width) var(--ah-border);
}

.button-046:active .button-046__bg {
	transform: scale(var(--button-046-click-scale));
}

.button-046:is(:focus-visible) .button-046__bg {
	background-color: var(--button-046-hover-color-background) !important;
}

.button-046__bg-circle {
	z-index: 1;
	border-radius: var(--button-046-border-radius);
	grid-area: 1 / 1;
	place-self: center;
	width: calc(100% + 1px);
	height: calc(100% + 1px);
	position: relative;
	overflow: clip;
	transition: background-color 0.25s ease-out, scale 0.4s var(--button-046-ease-hover), transform 0.15s var(--button-046-ease-click);
}

.button-046:active .button-046__bg-circle {
	transform: scale(var(--button-046-click-scale));
}

.button-046__circle-wrap {
	transform-origin: 0 0;
	will-change: transform;
	position: absolute;
	inset: 0%;
	transform: scale(0);
}

.button-046__circle {
	aspect-ratio: 1;
	background-color: var(--button-046-hover-color-background);
	border-radius: 50%;
	width: 200%;
	display: block;
	position: absolute;
	inset: 0% auto auto 0%;
	transform: translate(-50%, -50%);
}

.button-046__inner {

	/* Osmo writes grid-column-gap / grid-row-gap; the unprefixed names are
	   the same properties (the old ones are aliases) and the only ones the
	   linter allows. Not a behaviour change. */
	column-gap: .125em;
	row-gap: .125em;

	/* SPEC-024 deviation 3, second half. Osmo's CSS assumes Webflow's global
	   `* { box-sizing: border-box }`; this kit has no such rule (its own
	   touch-target block had to add border-box to every button for the same
	   reason). Under content-box this layer is 100% + 2 × 28px of padding: it
	   spilled 56px past the pill and a centred CTA on a phone put 4px of
	   horizontal scroll on every empty category page — measured by the smoke
	   suite, resolved only by hiding the button. */
	box-sizing: border-box;
	width: 100%;
	height: 100%;
	padding: var(--button-046-padding);
	z-index: 2;
	grid-area: 1 / 1;
	justify-content: center;
	align-items: center;
	display: flex;
}

/* SPEC-024 deviation 4 — the label carries §4's button type. It inherits
   family, weight, size, tracking and case from .ah-btn on the element; only
   the line-height is restated so the flex centring has a fixed box. */
.button-046__text {
	line-height: 1.2;
}

.button-046__icon {
	flex: none;
	width: .75em;
	height: .75em;
}

/* SPEC-022 §10 (pre-flight #26) — the SMALL size: the bar CTA and the bag
   preview's Checkout / View Bag. A compact LOOK, never a smaller target
   (ruling 2026-09-15, cta gate 4): the tracked label one size down and tighter
   padding, at the full touch-target height. Nothing else changes: the layers,
   the motion and the states are the default button's. */
.ah-theme .ah-btn.ah-btn--sm.button-046 {
	--button-046-padding: 0 var(--ah-space-md);
	font-size: var(--ah-size-2xs);
	min-height: var(--ah-touch-target);
}

/* Disabled: §16's rule paints the element; here the layers carry it. The
   raised surface with the border ring and muted text, never opacity. */
.ah-theme .ah-btn.button-046:disabled,
.ah-theme .ah-btn.button-046[aria-disabled="true"] {
	--button-046-color: var(--ah-text-muted);
	--button-046-hover-color: var(--ah-text-muted);
	--button-046-color-background: var(--ah-surface-raised);
	--button-046-hover-color-background: var(--ah-surface-raised);
	cursor: not-allowed;
	opacity: 1;
	pointer-events: none;
}

.ah-theme .ah-btn.button-046:disabled .button-046__bg,
.ah-theme .ah-btn.button-046[aria-disabled="true"] .button-046__bg {
	box-shadow: inset 0 0 0 var(--ah-border-width) var(--ah-border);
}

@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {

	.button-046:is(:hover, :focus-visible) .button-046__bg,
	[data-hover]:is(:hover, :focus-visible) .button-046 .button-046__bg {
		scale: var(--button-046-hover-scale);
		transition: background-color 0.25s 0.05s ease-out, scale 0.425s 0.05s var(--button-046-ease-hover), transform 0.15s var(--button-046-ease-click);
		background-color: var(--button-046-color-background);
	}

	.button-046:is(:hover, :focus-visible) .button-046__bg-circle,
	[data-hover]:is(:hover, :focus-visible) .button-046 .button-046__bg-circle {
		scale: var(--button-046-hover-scale);
		transition: background-color 0.25s 0.05s ease-out, scale 0.425s 0.05s var(--button-046-ease-hover), transform 0.15s var(--button-046-ease-click);
	}
}

/* The kit's rule: all motion respects the preference. Osmo gates the hover
   scale and the GSAP circle on it; the remaining transitions are zeroed here. */
@media (prefers-reduced-motion: reduce) {

	.ah-theme .ah-btn.button-046,
	.ah-theme .ah-btn.button-046::after,
	.ah-theme .ah-btn.button-046 .button-046__bg,
	.ah-theme .ah-btn.button-046 .button-046__bg-circle {
		transition-duration: 0s;
	}
}

/* lane:spec-024b start */

/* ══════════════════ 18 · BUTTON 046 ON WOOCOMMERCE'S BUTTONS (SPEC-024 Phase B) ══════════════════
   WooCommerce's own buttons now carry the 046 layers: the loop / shelf add-to-cart
   and the notice's "View cart" from the server (alchemist_add_to_cart_link(),
   inc/catalog.php), the single add-to-cart and account submits from
   AH.button046.upgrade() (below, in alchemist-ui.js). They keep Woo's classes, so
   every legacy Woo rule still matches them. This section undoes, on 046 elements
   only, the element paint those rules apply — the layers paint instead — and
   gives the Woo states a 046 treatment. Selectors are chosen per rule they beat;
   each names the rule and its specificity. Cart and Checkout BLOCK buttons are
   React-owned and stay CSS-only in sections/woo-blocks.css (B-P1c). */

/* The loop's buy button is the kit's primary (§4 note: "the buy button was
   visually weaker than a nav item"). That rule paints the ELEMENT at (0,4,3) and
   (0,5,3) on hover, and §16's touch-target block makes the loop button
   `display: inline-flex`, which lays 046's stacked grid layers out side by side
   (measured: the label squeezed to 34px on three lines). Here (0,5,3) / (0,6,3),
   last in source: the element is 046's transparent inline grid again. */
.woocommerce ul.products li.product a.button.button-046,
.woocommerce ul.products li.product a.button.button-046:hover {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: var(--button-046-color);
	display: inline-grid;
	padding: 0;
}

/* A CARD 046 in a 2-up phone grid: the label stays on one line (SPEC-034 rider 18)
   by tightening the INNER padding, which is where 046 pads. Scoped to `ah-card-cta`
   — the class alchemist_add_to_cart_link() puts on every card CTA it builds — and NOT
   to `.woocommerce ul.products li.product`, because the home bestsellers shelf prints
   the same button outside Woo's loop markup: on the loop scope the shelf pill kept the
   full padding and measured 143px against the loop's 103px at 390 (prod-shape.spec.js:629).
   (0,4,0), over the base `.ah-theme .ah-btn.button-046` (0,3,0) that declares the token. */
@media (max-width: 767px) {

	.ah-theme .ah-btn.button-046.ah-card-cta {
		--button-046-padding: var(--ah-space-sm) var(--ah-space-xs);
	}
}

/* ── Loading (B-P3) ──
   Woo (0,2,1) and §4 (0,3,1) give `.loading` padding-right:44px, opacity and a
   spinner in ::after. On a grid-layered 046 the padding widens the pill
   mid-click and ::after is the focus ring's layer, so: no padding change, full
   opacity (a faded label is not a softer pass), the focus-ring ::after restored,
   and the ✦ spinner placed absolutely in the inner layer's right padding.
   (0,4,0) and (0,4,1). The spin obeys the kit's reduced-motion rule (§15). */
.ah-theme .ah-btn.button-046.loading {
	opacity: 1;
	padding-right: 0;
}

.ah-theme .ah-btn.button-046.loading::after,
.ah-theme .ah-btn.button-046.added::after {
	animation: none;
	content: '';
	font-family: inherit;
	inset: var(--button-046-focus-inset);
	margin: 0;
	vertical-align: baseline;
}

.ah-theme .ah-btn.button-046:is(.loading, .added) .button-046__inner {
	position: relative;
}

.ah-theme .ah-btn.button-046.loading .button-046__inner::after,
.ah-theme .ah-btn.button-046.added .button-046__inner::after {
	content: "\2726";
	line-height: 1;
	position: absolute;
	right: var(--ah-space-sm);
	top: 50%;
	translate: 0 -50%;
}

.ah-theme .ah-btn.button-046.loading .button-046__inner::after {
	animation: ah-spin 1.4s linear infinite;
}

/* ── Added (B-P3) ── Woo's icon-font check (\e017) is removed above; the ✦ above
   marks the add, static, and "View cart" beside the button says the rest. */

/* ── The JS-built "View cart" (add-to-cart.js, also after the theme's single-product
   add) is a quiet text action beside the button, never a second pill. (0,4,1) with
   [href]: over Woo's `.woocommerce a.added_to_cart` (0,2,1) and the loop card's
   link reset that took its underline off (measured: text-decoration none). ── */
.ah-theme a.added_to_cart.wc-forward[href] {
	align-items: center;
	color: var(--ah-text-accent);
	display: inline-flex;
	font-weight: 600;
	letter-spacing: .02em;
	min-height: var(--ah-touch-target);
	padding: 0 var(--ah-space-2xs);
	text-decoration: underline;
	text-transform: none;
	text-underline-offset: 3px;
}

.ah-theme a.added_to_cart.wc-forward[href]:hover {
	color: var(--ah-action);
}

/* ── Disabled by class (B-P4). Woo's variation script marks the single button
   `.disabled` (class only). Woo pads `button.button.alt.disabled` and the kit's
   purple fix above paints the element at (0,4,1) / (0,5,1) on hover. On 046 the
   layers carry it, as for :disabled: (0,5,0) / (0,6,0) with the attribute. ── */
.ah-theme .ah-btn.button-046[data-button-046].disabled,
.ah-theme .ah-btn.button-046[data-button-046].disabled:hover {
	--button-046-color: var(--ah-text-muted);
	--button-046-hover-color: var(--ah-text-muted);
	--button-046-color-background: var(--ah-surface-raised);
	--button-046-hover-color-background: var(--ah-surface-raised);
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: var(--ah-text-muted);
	cursor: not-allowed;
	display: inline-grid;
	opacity: 1;
	padding: 0;
}

.ah-theme .ah-btn.button-046.disabled .button-046__bg {
	box-shadow: inset 0 0 0 var(--ah-border-width) var(--ah-border);
}

/* The upgraded single add-to-cart and account submits: §4 and the Woo button
   rules paint the element (up to (0,3,1)); the layers paint here. */
.ah-theme .ah-btn.button-046:is(.single_add_to_cart_button, .woocommerce-button, .woocommerce-Button, .button):not(.disabled) {
	background: transparent;
	border-color: transparent;
	box-shadow: none;
	color: var(--button-046-color);
	display: inline-grid;
	padding: 0;
}

/* lane:spec-024b end */
