/**
 * Tease and Play Global Divi 5 Styling
 * Version: 1.4.21
 * Author: Blah Jargon
 *
 * Change log:
 * - v1.4.18 (NEXT.md 70 / AUTH-23 -- menu Option B)
 *   . Desktop mega menu under "Shop by type": four columns, each a real
 *     category group with up to six children, every row a real link.
 *   . NOT hover-only. The panel is driven by a <button> with
 *     aria-expanded/aria-controls; :hover and :focus-within are layered
 *     on top as an enhancement, so keyboard and touch both work.
 *   . Mobile: 48px accordion rows, which is above the 44px minimum the
 *     spec asks for and comfortable for a thumb.
 *   . Palette, type and spacing are 1.4.17's -- this adds no new colour
 *     token and no new font size.
 *   . "Deals" is deliberately absent (AUTH-23 item 2).
 * - v1.4.17 (NEXT.md 55 -- floating cart button on desktop/laptop)
 *   . The side-cart plugin has always rendered button.tp-side-cart-fab;
 *     this file hid it outright with one rule. Owner asked for it back
 *     on desktop/laptop ("the side cart isn't obvious"), so the hide is
 *     now gated to below 1024px.
 *   . Breakpoint is 1024px for a measured reason, not a guess: the
 *     sticky add-to-cart bar (.tap-sticky-atc) is itself hidden at
 *     `min-width: 1024px` (section 13, see the rule near the end of
 *     this file), so 1024px is exactly where the bottom-right corner
 *     stops being occupied. Below it the header bag icon plus the
 *     sticky bar are the cart affordances; above it, the FAB.
 *   . Placement bottom-right, the plugin's own default, because Tawk
 *     is bottom-LEFT at these widths -- MEASURED on staging under a
 *     mobile-device profile (the only context Tawk loads in): the
 *     "Chat widget" iframe sits x=67 at 1280, x=74 at 1440, x=100 at
 *     1920, i.e. 990-1485px clear of the right edge. Independently
 *     corroborated by the owner's own UAT-048 photo, which shows Tawk
 *     over the FILTER card -- and the filter card measures x=33,
 *     width 288 at 1440, so it is the left rail. No vertical stacking
 *     and no magic offset are needed.
 *   . If Tawk's position ever changes, change `--tap-fab-inset-right`
 *     / `--tap-fab-inset-bottom` below; nothing else.
 *   . Hidden on /cart/ and /checkout/ (redundant there) and whenever
 *     the sticky add-to-cart bar is on screen. The plugin's own
 *     hide-while-the-drawer-is-open rule is untouched and still wins,
 *     because it works on opacity/visibility rather than display.
 *   . z-index lowered to 100009 from the theme so the FAB sits BELOW
 *     the overlay (100010) and panel (100011), as asked. The plugin
 *     file is not edited; it stays 0.3.1.
 * - v1.3.32 (Work Order 3, item A3 -- shared content-page template)
 *   . Section 16: hero band, 70ch reading column, sticky TOC (pages
 *     with 3+ H2s), "Still need help?" band. New page.php template
 *     (child theme), applies to Contact/Shipping/Returns/About/
 *     Privacy/Terms via WordPress's own template hierarchy.
 * - v1.3.31 (Work Order 3, item A1-A2 -- typography and dark-section audit)
 *   . A1 (UAT-002, UAT-013): real defect -- the global h2 rule set
 *     Fraunces on EVERY h2 sitewide, including WooCommerce product-
 *     card titles and the footer's nav headings. h2 default is now
 *     Inter (matching h3/h4); Fraunces is opt-in via
 *     .tap-section-heading, applied only to genuine section headings
 *     (home page sections, FAQ heading, quiz-cta heading, brand
 *     directory heading). Removed a dead, superseded duplicate
 *     [tap_quiz_cta] shortcode registration found along the way.
 *   . A2 (UAT-003): real defect -- trust-band headings measured
 *     ~1.2:1 (near-invisible), the SAME specificity problem already
 *     fixed once for the footer. Added one shared .tap-on-dark utility
 *     (repeated-class technique, matches the global rule's specificity)
 *     covering every heading level, links, icons, and borders;
 *     consolidated the footer's ad hoc fix into it too.
 * - v1.3.30 (Facelift Phase 7, item B.1 -- real horizontal-overflow fix)
 *   . Root-caused via DOM bisection (not overflow-x:hidden): long
 *     unbroken URLs in Shopify-imported privacy-policy text, no
 *     overflow-wrap set. Fixed with overflow-wrap/word-wrap on body.
 *     The side-cart panel, suspected in an earlier pass, was ruled out
 *     by direct measurement.
 * - v1.3.29 (Facelift Phase 7 -- home page rebuild from COPY-DECK.md)
 *   . Section 15: announcement bar, compliant trust strip, brands
 *     strip, data-driven sale banner, product-image hero collage
 *     (replacing a single stock-photo-style background image).
 *   . Removed dead CSS: .tap-home-hero__image,
 *     .tap-home-hero__points, .tap-quiz-points (all invented,
 *     non-copy-deck content no longer rendered).
 * - v1.3.28 (Facelift Phase 6 -- brand hub intro text styling)
 *   . .tap-brand-intro: 70ch reading width for the brand term
 *     description, newly rendered (see functions.php).
 * - v1.3.27 (Facelift Phase 6 -- category guide block styling)
 *   . .tap-category-guide (section 14): 70ch reading width, FAQ
 *     <details>/<summary> styling. Empty by default -- functions.php
 *     only renders this when a category has guide text or FAQ entries.
 * - v1.3.26 (Facelift Phase 5 -- footer h2 contrast, found incidentally)
 *   . Real defect: footer "Shop"/"Explore"/"Help" headings computed
 *     rgb(36,19,22) on a rgb(36,7,17) background (~1:1 contrast,
 *     effectively invisible) -- the global specificity-escalation h2
 *     rule (body.tap-redesign.tap-redesign.tap-redesign h2) outranked
 *     .tap-site-footer h2's lower specificity despite both using
 *     !important. Matched the same escalation technique so the
 *     footer's white colour wins.
 * - v1.3.25 (Facelift Phase 5 -- footer newsletter field + payment line)
 *   . Newsletter field: visual/markup only (submit disabled, "Coming
 *     soon" note) -- Klaviyo is the site's real email tool (confirmed
 *     active) but no public list/form id is exposed in its options, so
 *     a real subscribe endpoint isn't guessed. Payment/trust line:
 *     lists only gateways confirmed enabled via
 *     `wp wc payment_gateway list` (card, Apple Pay, Google Pay,
 *     Afterpay, Affirm, Klarna) -- not invented icons/brands.
 * - v1.3.24 (Facelift Phase 4 -- store-notice overlapping checkout content)
 *   . Real defect found live on /checkout/: the demo-store notice
 *     rendered `position:fixed; top:310.4px`, overlapping the Express
 *     Checkout section, instead of the documented/intended
 *     `bottom:0`. Forced back with !important. Also fixed: the
 *     v1.3.12 comment's "#store-notice" was never a real id (actual
 *     element is .woocommerce-store-notice / p.demo_store) -- the
 *     Phase 3 Tawk/sticky-ATC stacking logic referencing it was
 *     silently a no-op; fixed the selector in both CSS and tap-ui.js.
 * - v1.3.23 (Facelift Phase 3 -- sticky mobile add-to-cart bar)
 *   . New .tap-sticky-atc bar (fixed bottom, hidden <1024px via
 *     translateY, shown by tap-ui.js once the real add-to-cart button
 *     scrolls out of view). Tawk bubble and WooCommerce's own
 *     #store-notice bar are both pushed clear using JS-measured
 *     height custom properties, not a guessed fixed offset.
 * - v1.3.22 (Facelift Phase 3 -- third wrong-target instance, found at 1024px)
 *   . Verifying v1.3.21 at 1024px found a third instance of the same
 *     div.product-vs-.clearfix bug: an !important, #left-area-scoped
 *     grid-template-columns on div.product itself (inert, since
 *     div.product is no longer display:grid). Measured: clearfix only
 *     489.75px wide against a 931px div.product. Retargeted to
 *     div.product > .clearfix.
 * - v1.3.21 (Facelift Phase 3 -- gallery/summary stacking threshold)
 *   . Found while verifying v1.3.20 at 768px: the 768-980px tier's
 *     minmax(320px, .8fr) summary column left only 20px for the
 *     gallery (measured computed grid-template-columns: "20px 320px"
 *     at a 370px clearfix) -- a squeeze that had never been visible
 *     before because the grid was dead code until v1.3.20. Rather than
 *     retune the numbers, moved the stacking threshold from 767px to
 *     1023px on both the generic and #left-area rule sets, matching
 *     the brief's explicit "1024+ side-by-side, stacked below" spec,
 *     and removed the now-superseded 980px/1100px 2-column overrides.
 * - v1.3.20 (Facelift Phase 3 -- product-page gallery/summary layout)
 *   . Real defect found: div.product's grid-template-columns had no
 *     effect on gallery/summary layout at 1024px/1440px (both stacked,
 *     confirmed via live DOM -- summary's top == gallery's bottom)
 *     because WooCommerce wraps them in an extra <div class="clearfix">
 *     that is div.product's actual direct child, not the gallery/
 *     summary themselves. Grid moved onto div.product > .clearfix.
 *     Also fixed: `div.images` is a dead selector (does not exist in
 *     current WooCommerce markup; the real class is
 *     .woocommerce-product-gallery) -- fixed in all 3 places it
 *     appeared, matching Phase 1's CSS-DEAD-001 precedent of fixing
 *     dead rules in place rather than leaving them.
 * - v1.3.19 (Facelift Phase 2b, item 1c re-fix)
 *   . First deploy's text-decoration:underline on :hover/:focus-visible
 *     measured as "none" (computed) -- same Divi `#et-boc .et-l a`
 *     specificity problem as the colour fix, this time losing because
 *     only `color` had `!important`, not `text-decoration`. Added
 *     `!important` to text-decoration/-thickness/underline-offset too.
 * - v1.3.18 (Facelift Phase 2b, items 1b-1c -- card brand label, hover/focus)
 *   . Brand-label row (.tap-card-brand) added to all 6
 *     grid-template-rows declarations (new fixed 1.1em row), with
 *     explicit grid-row placement on img/.tap-card-brand/title so an
 *     absent brand term doesn't shift the title into the wrong row via
 *     auto-placement -- equal card heights stay 0px delta either way.
 *   . Card link hover now adds underline (not colour alone); focus-visible
 *     keeps its existing 3px outline plus the same underline.
 * - v1.3.17 (Facelift Phase 2, item 3 -- card link colour contrast)
 *   . Measured defect: a.woocommerce-LoopProduct-link's resting AND
 *     focus-visible colour both computed as rgb(231,98,95) (3.33:1),
 *     not the intended ink/wine -- Divi's `.et-db #et-boc .et-l a`
 *     (specificity 1,2,1, ID-anchored) beat this rule's class-only
 *     specificity (0,2,1). Added !important to both states. Verified
 *     live via Tab-driven keyboard focus: resting rgb(36,19,22)
 *     11.85:1, focus-visible rgb(110,15,47) 11.85:1, both against
 *     white.
 * - v1.3.16 (Facelift Phase 2, items 2-3 -- archives and product card)
 *   . Archive breadcrumb: broadened the three body-class-scoped rule sets
 *     down to one unscoped `.woocommerce-breadcrumb` base rule so it also
 *     covers the manually-added breadcrumb on page-brands.php (a custom
 *     template, not a WooCommerce archive -- woocommerce_before_shop_loop
 *     never fires there).
 *   . Empty-state (.tap-archive-empty and children): styling for the new
 *     woocommerce_no_products_found markup in functions.php -- friendly
 *     copy, links to three popular categories, Find Your Fit link, all
 *     tap targets >= 44px.
 *   . Product card equal heights (measured defect: 71px height delta at
 *     390px, 16.5px at 768px, 33px at 1440px between rows on
 *     /product-category/bdsm/, via live getBoundingClientRect() audit).
 *     Root cause: the title row was `minmax(2.6em, auto)`, so a 1-line
 *     title's row shrank to content while longer titles grew it -- each
 *     card's internal grid sizes independently, so unequal title line
 *     counts produced unequal total card heights, including between
 *     cards in different grid rows. Fixed by clamping the title to
 *     exactly 2 lines (-webkit-line-clamp, fixed height: 2.5em, overflow
 *     hidden) and changing the row track from `minmax(2.6em, auto)` to
 *     the matching fixed `2.5em` in all 6 grid-template-rows
 *     declarations (page-id-8 and tax-product_cat variants, each at
 *     desktop and the sub-767px breakpoint). Card height is now
 *     deterministic regardless of title length; re-verify with a live
 *     audit before closing out Phase 2 item 3.
 * - v1.3.15 (Facelift Phase 2, item 1 -- CLS)
 *   . Metric-matched fallback @font-face declarations ('Inter Fallback'
 *     -> local Arial, 'Fraunces Fallback' -> local Georgia), inserted
 *     into every font stack, so the fallback occupies the same box as
 *     the real webfont before and after the swap. Values computed from
 *     the real font files via fontTools, not guessed or copied from a
 *     generic table.
 * - v1.3.14 (Facelift Phase 2, Step 0d)
 *   . Removed the two .tp-side-cart-btn--view-cart / --checkout colour
 *     rules -- they never actually won (tp-side-cart.css consumes CSS
 *     custom properties set from the plugin's own hardcoded settings
 *     array, which these selectors couldn't out-specify). Fixed at that
 *     source instead; see tease-play-side-cart.php.
 * - v1.3.13 (Facelift Phase 1 -- design system and global chrome)
 *   . Self-hosted Inter (variable, 400-900) and Fraunces (600 + italic,
 *     H1/H2 display) via @font-face, replacing the remote Google Fonts
 *     dependency for these two families. Both confirmed SIL Open Font
 *     License (see docs/design/TOKENS.md).
 *   . One heading-font system sitewide (h1/h2 Fraunces, h3-h6 Inter),
 *     overriding the 5 different font-family stacks the Phase 0 audit
 *     measured across 15 page types (all from Divi's own global/
 *     per-module typography, not this stylesheet). `!important` plus an
 *     intentionally-repeated class for specificity -- documented inline
 *     at the rule itself.
 *   . Contrast fixes (DESIGN-AUDIT-001): Shop H1 (measured 1.52:1) and
 *     archive/brand-archive product-title links (measured 3.33:1) both
 *     forced to ink; accent colour moved to hover/focus only.
 *   . CSS-DEAD-001 fixed in place: ~48 product-page rules had the same
 *     dead `.woocommerce` descendant-token bug as the Gate 4 quantity-box
 *     fix -- corrected, not deleted-and-left-unstyled, since each one
 *     carries real intended styling (confirmed live against the G-Kii
 *     product page's real DOM). This also fixed the off-palette blue
 *     product-page price (was fully unstyled, falling through to a Divi
 *     default) back to the intended wine token.
 *   . Header logo one-line fix: `.tap-wordmark` was `display: inline-grid`
 *     with no explicit columns, so every direct child (including the
 *     `<em>` mid-sentence in "Tease & Play") landed on its own implicit
 *     grid row, wrapping the wordmark onto 3 lines at every breakpoint.
 *     Wrapped the title portion in its own element (functions.php) so
 *     the grid has exactly 2 real rows: title, subtitle.
 *   . Button/input system: primary/secondary/quiet variants, 44px min
 *     target, shared focus-visible ring; archive-card Add to Cart toned
 *     down from a measured full-width shouting uppercase pill to a
 *     compact, sentence-case one (classes restyled in place, nothing
 *     renamed).
 *   . Defensive chat-bubble safe-area offset (brief 4.3) -- Tawk's
 *     launcher could not be made to render in headless testing this
 *     session (TAWK-001), so this is unverified but harmless if unused.
 * - v1.3.12
 *   . Raffle bar / footer overlap: WooCommerce's native Store Notice
 *     (`#store-notice`) is `position: fixed; bottom: 0`, so it always
 *     sits on top of whatever is at the true bottom of the page,
 *     covering the footer's copyright row. Added bottom padding to
 *     `.tap-site-footer`, scoped to `body.woocommerce-demo-store` so it
 *     has no effect if the Store Notice feature is ever turned off.
 *     Sized from the notice's live measured height: ~43px at 1440px
 *     (one line), ~70px at 390px (wraps to two lines). Note: WooCommerce
 *     remembers a visitor's dismissal of the notice (cookie), but this
 *     padding is static -- once dismissed, the extra footer space
 *     remains for that visitor until the page is reloaded with the
 *     notice still suppressed in a future session. Not compensated for
 *     here; flagging in case that gap is worth closing later with a
 *     small JS listener instead of CSS alone.
 * - v1.3.11
 *   . Variable-product Color label/select overlap and quantity-box
 *     contrast (Je Joue G-Kii and other variable products). Root cause,
 *     confirmed via live DOM inspection (`Element.matches()` against the
 *     live page, not guessed): the existing quantity rule's
 *     `.woocommerce` segment required a *separate element* with that
 *     class somewhere inside `<body>`, but on this site "woocommerce" is
 *     only ever a `<body>` class, never a nested wrapper div -- so the
 *     whole selector chain never matched anything and was dead code.
 *     `div.product` and `form.cart` ancestors do genuinely exist and were
 *     not the problem. Dropped the stray `.woocommerce` segment; Divi's
 *     own generated module CSS (grey background, zero-width border) and
 *     a generic WooCommerce-default inline style (`1px solid #bbb`) were
 *     winning in its place. Also added table.variations
 *     alignment/truncation rules (confirmed via live markup: a real
 *     `<table class="variations">` with `<th>` label / `<td>` select
 *     cells, not stacked blocks).
 * - v1.3.10
 *   . Footer tagline contrast fix: `.tap-site-footer__intro p` (intended
 *     light text on the dark footer background) was being overridden by
 *     the higher-specificity global `body.tap-redesign p` rule above,
 *     rendering the tagline in the dark body text colour on a near-black
 *     background. No visual change elsewhere in the footer.
 *
 * Facelift Phase 1 (docs/design/DESIGN-DECISIONS.md) folded into this
 * same file rather than a new version line per change -- see the Phase 1
 * sections below (search "FACELIFT PHASE 1") for: self-hosted Inter +
 * Fraunces, one heading-font system sitewide, contrast fixes for the
 * Shop H1 and archive card titles, a button/input system, the header
 * logo one-line fix, and the CSS-DEAD-001 product-page selectors
 * (fixed in place earlier in this file, same stray `.woocommerce`
 * descendant-token bug as the Gate 4 quantity-box fix -- not re-pasted
 * here, see the "Product pages" section).
 */

/* FACELIFT Phase 7 (B.1) -- real horizontal-overflow defect, found and
   root-caused on /privacy-policy-2/ and the zero-result search page
   (~29px past the 390px viewport). Diagnosed by bisecting the DOM
   (toggling display:none on candidates and re-measuring
   document.documentElement.scrollWidth) rather than guessing: the
   side-cart panel (a fixed, transform-translated element long
   suspected as the cause in an earlier pass) was NOT it -- hiding it
   made no difference. The actual cause is page CONTENT: a paragraph in
   the (Shopify-imported, same origin as the double-H1 bug fixed in
   Phase 5) privacy-policy text contains several long, unbroken URLs
   (e.g. "https://tools.google.com/dlpage/gaoptout.") with no natural
   break point, and overflow-wrap/word-break were both the CSS default
   ("normal"), so the browser let the text overflow its container
   instead of wrapping. Fixed at the root with overflow-wrap, not
   `overflow-x: hidden` on body (which would hide the symptom --
   clipping real content -- rather than fix the cause). Scoped broadly
   (body) because this is a general risk wherever editor-pasted content
   contains an unbroken long string, not just this one page. */
body {
  overflow-wrap: break-word;
  word-wrap: break-word;
}

/* =========================================================
   1. Brand Variables
========================================================= */

:root {
  --tap-cream: #fff7f2;
  --tap-soft-cream: #fffaf7;
  --tap-blush: #f7c8c4;
  --tap-blush-light: #fde6e3;
  --tap-rose: #d8175c;
  --tap-rose-dark: #a80f44;
  --tap-wine: #6e0f2f;
  --tap-espresso: #241316;
  --tap-muted: #8f6973;
  --tap-border: rgba(110, 15, 47, 0.12);
  --tap-input-border: #8a6f78;
  --tap-white: #ffffff;

  --tap-radius-sm: 10px;
  --tap-radius-md: 18px;
  --tap-radius-lg: 28px;

  --tap-shadow-soft: 0 18px 45px rgba(80, 25, 45, 0.12);
  --tap-shadow-card: 0 12px 30px rgba(80, 25, 45, 0.09);

  --tap-container: 1240px;
}

/* =========================================================
   FACELIFT PHASE 1 -- self-hosted fonts
   Inter (body/UI, variable 400-900) and Fraunces (H1/H2 display,
   weight 600 + italic accent) -- both confirmed SIL Open Font
   License 1.1 (google/fonts repo, ofl/inter and ofl/fraunces paths).
   Latin subset only, WOFF2 only, font-display: swap. Replaces the
   remote Google Fonts dependency for these two families; the
   LiteSpeed CSS-exclude filter from Phase 0 is kept regardless, since
   Divi's own global typography settings still separately request
   Open Sans/Bayon remotely (now overridden visually below, but still
   requested -- removing that request means editing Divi's own stored
   option, judged too risky to do directly; see DESIGN-DECISIONS.md).
========================================================= */

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url('../fonts/inter-variable-latin.woff2') format('woff2-variations');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Fraunces';
  font-style: italic;
  font-weight: 600;
  font-display: swap;
  src: url('../fonts/fraunces-600-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* =========================================================
   FACELIFT PHASE 2 -- metric-matched fallback fonts (CLS fix)
   Shop-390 and Category-390 regressed on CLS after Phase 1 (measured
   0.464->0.496 and 0.492->0.534). The font swap (system font -> Inter/
   Fraunces once loaded) was a plausible contributor: if the fallback's
   line-box height/width differs from the real font's, text reflows when
   the swap happens. These synthetic @font-face declarations give the
   SAME fallback fonts actually used (Arial for the Inter stack's local
   match, Georgia for the Fraunces stack's) adjusted metrics so they
   occupy the same box as the real font before and after the swap.
   Values computed from the real font files and the real local Arial/
   Georgia on the machine that built this fix via fontTools (hhea
   ascent/descent/lineGap and OS/2 xAvgCharWidth, normalised per the
   CSS Font Metric Override spec's own formula) -- not guessed, not
   copied from a generic published table, since those are computed
   against whichever specific build of Arial/Georgia the publisher used
   and can differ slightly file to file. These two synthetic families
   are inserted into the font stacks below, between the real webfont and
   the generic system fallback, so they are what actually renders during
   the brief swap window.
========================================================= */
@font-face {
  font-family: 'Inter Fallback';
  src: local('Arial');
  ascent-override: 70.06%;
  descent-override: 17.44%;
  line-gap-override: 0%;
  size-adjust: 138.27%;
}
@font-face {
  font-family: 'Fraunces Fallback';
  src: local('Georgia');
  ascent-override: 76.15%;
  descent-override: 19.86%;
  line-gap-override: 0%;
  size-adjust: 128.43%;
}

/* =========================================================
   2. Base
========================================================= */

body.tap-redesign {
  background: var(--tap-cream);
  color: var(--tap-espresso);
}

body.tap-redesign,
body.tap-redesign button,
body.tap-redesign input,
body.tap-redesign select,
body.tap-redesign textarea {
  font-family: Inter, 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ---------------------------------------------------------
   FACELIFT PHASE 1 -- one heading-font system sitewide.
   Phase 0's audit measured 5 different h1 font-family stacks across
   15 page types (Bayon / Open Sans / Inter / Abril Fatface), all from
   Divi's own global typography settings and per-module overrides, not
   this stylesheet. `!important` here is unavoidable and deliberate:
   Divi injects per-page dynamic CSS late, with its own `!important`
   on at least one measured case (the Shop page's H1, root-caused to
   a Divi global-colour variable on `.et_pb_text_6 .et_pb_text_inner
   h1`), so only an equally-forceful, single source of truth wins
   consistently across every page type. The class is intentionally
   repeated (not a typo) to push specificity safely above any
   plausible Divi per-module selector (typically 1-2 classes) without
   guessing at Divi's own volatile, auto-numbered class names.
   H1/H2 use the self-hosted Fraunces display serif (the existing
   italic accent device, e.g. "your way.", now renders in true
   Fraunces Italic); h3-h6 stay on Inter. Sizes match the brief's
   scale exactly, replacing each page type's previously bespoke sizing.
--------------------------------------------------------- */
body.tap-redesign.tap-redesign.tap-redesign h1,
body.tap-redesign.tap-redesign.tap-redesign h2,
body.tap-redesign.tap-redesign.tap-redesign h3,
body.tap-redesign.tap-redesign.tap-redesign h4,
body.tap-redesign.tap-redesign.tap-redesign h5,
body.tap-redesign.tap-redesign.tap-redesign h6,
body.tap-redesign.tap-redesign.tap-redesign .entry-title,
body.tap-redesign.tap-redesign.tap-redesign .page-title,
body.tap-redesign.tap-redesign.tap-redesign .woocommerce-products-header__title {
  color: var(--tap-espresso) !important;
  font-family: Inter, 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  letter-spacing: -0.02em;
  text-transform: none !important;
}
body.tap-redesign.tap-redesign.tap-redesign h1,
body.tap-redesign.tap-redesign.tap-redesign .entry-title,
body.tap-redesign.tap-redesign.tap-redesign .page-title,
body.tap-redesign.tap-redesign.tap-redesign .woocommerce-products-header__title {
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 600 !important;
  line-height: 1.05 !important;
}
/* FACELIFT Work Order 3, item A1 -- real defect (UAT-002, UAT-013):
   this rule previously set font-family: Fraunces on EVERY <h2> sitewide
   with no exception, so WooCommerce's product-card titles
   (.woocommerce-loop-product__title, a real <h2> per WooCommerce's own
   markup), the footer's nav headings, and the trust-band labels all
   rendered serif -- confirmed live via computed-style capture across
   multiple page types. Owner rule: "Fraunces only for page H1 and
   section H2; Inter for product card titles, widget titles, footer
   headings, labels, H3 and below." h2's DEFAULT is now Inter (matching
   h3/h4's family), and Fraunces is opt-in via .tap-section-heading,
   applied only to genuine section-level h2s (home page section
   headings, FAQ group heading, find-your-fit path headings, brand
   directory heading, quiz-cta heading -- see each template). Product
   card titles, footer nav headings, and trust-band labels need no
   override: they simply inherit this new Inter default. */
body.tap-redesign.tap-redesign.tap-redesign h2 {
  font-family: Inter, 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
  font-size: 1.5rem !important;
  font-weight: 800 !important;
  line-height: 1.25 !important;
}
body.tap-redesign.tap-redesign.tap-redesign .tap-section-heading {
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(1.75rem, 3.5vw, 2.5rem) !important;
  font-weight: 600 !important;
  line-height: 1.1 !important;
}
body.tap-redesign.tap-redesign.tap-redesign h3 { font-size: 1.375rem !important; font-weight: 800 !important; }
body.tap-redesign.tap-redesign.tap-redesign h4 { font-size: 1.125rem !important; font-weight: 800 !important; }
body.tap-redesign.tap-redesign.tap-redesign h1 em,
body.tap-redesign.tap-redesign.tap-redesign .tap-section-heading em { font-style: italic; }

body.tap-redesign p {
  color: var(--tap-espresso);
  font-size: 1rem;
  line-height: 1.6;
}
.tap-text-small { font-size: 0.875rem; }

/* =========================================================
   2a. Staging storefront homepage
========================================================= */

.tap-storefront-home { overflow: hidden; }

.tap-home-hero {
  position: relative;
  padding: clamp(58px, 8vw, 120px) 0 clamp(72px, 9vw, 136px);
  background: radial-gradient(circle at 82% 12%, rgba(247, 200, 196, .7), transparent 29%), linear-gradient(135deg, #fff9f5 0%, #fff 56%, #f7d7d4 100%);
}

.tap-home-hero__grid { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(340px, .97fr); gap: clamp(34px, 7vw, 100px); align-items: center; }
.tap-home-hero__copy { max-width: 680px; }
.tap-home-hero h1 { margin: 12px 0 24px; font-size: clamp(48px, 6vw, 82px); line-height: .95; letter-spacing: -.065em; }
.tap-home-hero h1 em { color: var(--tap-rose); font-style: italic; }
.tap-home-hero__lede { max-width: 580px; margin: 0 0 30px; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.62; }
.tap-home-hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
/* FACELIFT Phase 7 -- real product-image collage replaces the old
   single background-photo hero art (which used a non-copy-deck,
   unverified image reference). Collage sits on the blob-blush decor
   asset (docs/design/assets/decor/, copied into assets/img/decor/).
   .tap-home-hero__points (an invented, non-copy-deck bullet list) and
   .tap-home-hero__image (the old single-photo background) are removed
   -- both are now dead, nothing in front-page.php references them. */
.tap-home-hero__collage {
  position: relative;
  min-height: clamp(320px, 38vw, 480px);
  background: url('../img/decor/blob-blush.svg') no-repeat center/contain;
}
.tap-home-hero__collage-img {
  position: absolute;
  width: clamp(120px, 16vw, 200px);
  height: clamp(120px, 16vw, 200px);
  object-fit: contain;
  border-radius: var(--tap-radius-md);
  background: #fff;
  box-shadow: var(--tap-shadow-card);
  padding: 14px;
}
.tap-home-hero__collage-img--1 { top: 6%; left: 18%; z-index: 3; }
.tap-home-hero__collage-img--2 { top: 38%; right: 10%; z-index: 2; }
.tap-home-hero__collage-img--3 { bottom: 4%; left: 34%; z-index: 1; }
@media (max-width: 1023px) {
  .tap-home-hero__collage { min-height: 300px; margin-top: 24px; }
}
.tap-home-trust-wrap { position: relative; z-index: 1; margin-top: -54px; }
.tap-home-section-heading { display: flex; gap: 24px; align-items: end; justify-content: space-between; margin-bottom: 30px; }
.tap-home-section-heading--center { justify-content: center; text-align: center; }
.tap-home-section-heading h2 { max-width: 700px; margin: 8px 0 0; }
.tap-home-section-heading > a { flex: 0 0 auto; color: var(--tap-rose); font-weight: 900; text-decoration: none; }
.tap-home-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tap-home-category { position: relative; min-height: 275px; overflow: hidden; border-radius: var(--tap-radius-lg); background: var(--tap-wine); color: #fff; text-decoration: none; box-shadow: var(--tap-shadow-card); }
.tap-home-category__image { position: absolute; inset: 0; display: block; background: linear-gradient(135deg, #a80f44, #6e0f2f); background-size: cover; background-position: center; transition: transform .35s ease; }
.tap-home-category:hover .tap-home-category__image { transform: scale(1.05); }
.tap-home-category__content { position: absolute; right: 22px; bottom: 21px; left: 22px; z-index: 1; display: grid; gap: 4px; }
.tap-home-category__content strong { color: #fff; font-size: 24px; line-height: 1.1; }
.tap-home-category__content span { color: rgba(255,255,255,.86); font-weight: 700; }
.tap-home-bestsellers { background: var(--tap-soft-cream); }
.tap-home-products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.tap-home-product { overflow: hidden; border: 1px solid var(--tap-border); border-radius: var(--tap-radius-md); background: #fff; transition: transform .2s ease, box-shadow .2s ease; }
.tap-home-product:hover { transform: translateY(-4px); box-shadow: var(--tap-shadow-card); }
.tap-home-product__image { display: grid; aspect-ratio: 1 / 1.06; place-items: center; padding: 18px; background: #fff; }
.tap-home-product__image img { width: 100%; height: 100%; object-fit: contain; }
.tap-home-product__body { padding: 16px 17px 20px; }
.tap-home-product__body p { overflow: hidden; margin: 0 0 8px; color: var(--tap-muted); font-size: 11px; font-weight: 800; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
.tap-home-product__body h3 { margin: 0 0 10px; font-size: 16px; line-height: 1.25; }
.tap-home-product__body h3 a { color: inherit; text-decoration: none; }
.tap-home-product__price { font-weight: 900; }
.tap-home-product__price del { color: var(--tap-muted); font-weight: 500; }
.tap-home-guidance { background: linear-gradient(135deg, var(--tap-wine), #3b0919); }
.tap-home-guidance__grid { display: grid; grid-template-columns: minmax(240px, .82fr) minmax(0, 1.18fr); gap: clamp(34px, 6vw, 80px); align-items: center; }
.tap-home-guidance h2, .tap-home-guidance p { color: #fff !important; }
.tap-home-guidance h2 { margin: 12px 0 18px; font-size: clamp(35px, 4vw, 58px); line-height: .98; }
.tap-home-guidance p:not(.tap-eyebrow) { margin-bottom: 28px; font-size: 17px; line-height: 1.65; }
.tap-home-guidance .tap-eyebrow { color: var(--tap-blush); }
.tap-home-guidance__visual { position: relative; min-height: 380px; display: grid; align-items: end; overflow: hidden; padding: 24px; border: 1px solid rgba(255,255,255,.2); border-radius: var(--tap-radius-lg); background-color: #481021; background-position: center; background-size: cover; box-shadow: var(--tap-shadow-soft); }
.tap-home-guidance .tap-comfort-grid { margin: 0; }
.tap-home-guidance .tap-comfort-card { background: rgba(55,8,23,.76); backdrop-filter: blur(7px); }
.tap-home-empty { padding: 30px; border: 1px dashed var(--tap-border); border-radius: var(--tap-radius-md); background: #fff; }

.tap-home-quick-categories { background: #fff; }
.tap-home-quick-categories .tap-home-section-heading { margin-bottom: 24px; }
.tap-quick-category-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tap-quick-category { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; min-height: 112px; align-items: center; padding: 16px; border: 1px solid var(--tap-border); border-radius: 16px; background: var(--tap-soft-cream); color: var(--tap-espresso); text-decoration: none; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.tap-quick-category:hover { transform: translateY(-3px); border-color: rgba(216,23,92,.42); box-shadow: var(--tap-shadow-card); }
.tap-quick-category__image { display: grid; width: 72px; height: 72px; place-items: center; overflow: hidden; border-radius: 50%; background: var(--tap-blush-light); }
.tap-quick-category__image img { width: 100%; height: 100%; object-fit: contain; padding: 7px; mix-blend-mode: multiply; }
.tap-quick-category__image i { color: var(--tap-rose); font-size: 28px; font-style: normal; }
.tap-quick-category strong { font-size: 15px; line-height: 1.16; }
.tap-quick-category > span { color: var(--tap-rose); font-size: 19px; font-weight: 900; }
.tap-home-editorial { min-height: min(560px, 48vw); display: flex; align-items: center; background-color: var(--tap-cream); background-position: center; background-size: cover; }
.tap-home-editorial__content { width: 100%; padding: clamp(58px, 8vw, 110px) 0; }
.tap-home-editorial h2 { max-width: 600px; margin: 10px 0 18px; font-size: clamp(38px, 5vw, 68px); line-height: .95; }
.tap-home-editorial h2 em { color: var(--tap-rose); font-style: italic; }
.tap-home-editorial p:not(.tap-eyebrow) { max-width: 470px; margin-bottom: 27px; font-size: 18px; line-height: 1.6; }

.tap-home-guides { background: #fff; }
.tap-guide-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 20px; }
.tap-guide-card { overflow: hidden; border: 1px solid var(--tap-border); border-radius: var(--tap-radius-md); background: var(--tap-soft-cream); box-shadow: var(--tap-shadow-card); }
.tap-guide-card__image { display: block; min-height: 220px; background: linear-gradient(135deg, var(--tap-blush), var(--tap-wine)); background-position: center; background-size: cover; }
.tap-guide-card > div { display: grid; gap: 9px; padding: 20px; }
.tap-guide-card p { margin: 0; color: var(--tap-rose); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tap-guide-card h3 { margin: 0; font-size: 21px; line-height: 1.1; }
.tap-guide-card h3 a { color: var(--tap-espresso); text-decoration: none; }
.tap-guide-card > div > span { color: var(--tap-muted); font-size: 14px; line-height: 1.55; }
.tap-guide-card__link { margin-top: 5px; color: var(--tap-wine); font-size: 13px; font-weight: 900; text-decoration: none; }
.tap-home-faq { background: var(--tap-soft-cream); }
.tap-faq-layout { display: grid; grid-template-columns: minmax(260px,.72fr) minmax(0,1.28fr); gap: clamp(30px,7vw,100px); align-items: start; }
.tap-faq-layout h2 { margin: 9px 0 14px; font-size: clamp(32px,4vw,49px); line-height: 1; }
.tap-faq-layout > div > p:not(.tap-eyebrow) { max-width: 420px; margin-bottom: 22px; color: var(--tap-muted); line-height: 1.65; }
.tap-faq-list { border-top: 1px solid var(--tap-border); }
.tap-faq-list details { border-bottom: 1px solid var(--tap-border); }
.tap-faq-list summary { position: relative; padding: 20px 44px 20px 0; color: var(--tap-espresso); cursor: pointer; font-size: 17px; font-weight: 900; list-style: none; }
.tap-faq-list summary::-webkit-details-marker { display: none; }
.tap-faq-list summary::after { position: absolute; right: 4px; content: '+'; color: var(--tap-rose); font-size: 28px; font-weight: 400; line-height: .7; }
.tap-faq-list details[open] summary::after { content: '–'; }
.tap-faq-list details p { max-width: 700px; margin: -4px 0 20px; color: var(--tap-muted); line-height: 1.65; }

@media (max-width: 980px) {
  .tap-home-hero__grid, .tap-home-guidance__grid { grid-template-columns: 1fr; }
  .tap-faq-layout { grid-template-columns: 1fr; }
  .tap-home-hero__collage { order: -1; }
  .tap-home-products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tap-quick-category-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tap-home-editorial { min-height: 500px; background-position: 64% center; }
}

/* Keep archive controls above older general WooCommerce declarations. */
body.tap-redesign.woocommerce.archive .woocommerce-products-header .page-title {
  margin: 7px 0 12px !important;
  /* UAT-051 (WO-14 §45): was Inter 900 / clamp(44px,6vw,78px) /
     -.065em / .89 -- a leftover from before this theme settled on one
     heading system (h1/h2 Fraunces, h3-h6 Inter; see this file's
     v1.3.x changelog). Measured consequence: every template's H1 came
     out Fraunces 600 at 60px EXCEPT search results, where
     `.woocommerce-products-header .page-title` IS the h1 and this rule
     out-specified the sitewide Fraunces rule -- Inter 900 at 78px, on
     the same site, one click away. Same tokens as every other H1 now. */
  color: var(--tap-espresso) !important;
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
  line-height: 1.05 !important;
}

/* WO6 item 3 was attempted and reverted here -- see
   docs/seo/CLS-FIX-ATTEMPT-WO6.md for the full before/after. A CSS
   min-height on .et_pb_shop_grid cannot fix this: the element does not
   exist in the DOM at all at first paint (confirmed directly -- a
   `querySelector` for it returns null moments after navigation commits).
   Divi inserts the whole module client-side, so its *insertion* is the
   layout shift; there is nothing to reserve space on until it already
   exists. Tested at min-height 420px, then 2600px, then with !important
   -- CLS was statistically unchanged (0.319/0.338/0.334) across all three.
   Left unfixed rather than shipping CSS that doesn't do anything. */

/* Divi's Shop module ships float-based column widths and percentage margins
   from its generated cache.  Take ownership of the actual module, not only
   the generic WooCommerce list, so its legacy layout cannot create gaps. */
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  align-content: start !important;
  gap: 22px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  clear: both !important;
  list-style: none !important;
}
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product {
  float: none !important;
  clear: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  box-sizing: border-box !important;
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
/*
 * WO3 B1 (integration) -- the plain `body.page-id-8 ul.products
 * li.product { padding: 0 !important; }` rule elsewhere in this file
 * is correctly parsed and matches this element, but a padding
 * (measured 18px, symmetric on all sides) persists on /shop/
 * regardless -- confirmed via exhaustive CSSOM inspection of every
 * accessible stylesheet that no rule anywhere explicitly sets it, so
 * its real source is some mechanism this inspection could not see
 * (most likely a Divi-generated inline/critical style this theme
 * cannot read back from document.styleSheets). Rather than keep
 * guessing at an invisible source, this repeats the fix at the exact
 * specificity of the one confirmed-real competing rule for this
 * element (`#page-container`-qualified) so it wins regardless of what
 * is setting the 18px. Category archives never showed this symptom
 * and are unaffected by this addition (different selector entirely).
 */
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product {
  padding: 0 !important;
}
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .woocommerce-LoopProduct-link,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .woocommerce-LoopProduct-link {
  width: 100% !important;
  box-sizing: border-box !important;
}
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tp-loop-actions .button.button,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tp-loop-actions .button.button,
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button {
  width: 100% !important;
}
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products::before,
body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products::after,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products::before,
body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
body.tap-redesign .woocommerce ul.products::before,
body.tap-redesign .woocommerce ul.products::after {
  content: none !important;
  display: none !important;
}
@media (max-width: 1180px) {
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  /* WO3 B1 -- 8px grid gap per the mobile layout spec (was 14px). */
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  /* Same full-bleed-image/8px-inset mobile card spec as the plain
     page-id-8 selector elsewhere, repeated at this selector's
     specificity -- see the comment above the desktop-width version of
     this rule for why. */
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .woocommerce-LoopProduct-link,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .woocommerce-LoopProduct-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: auto 1.1em 2.5em auto;
    gap: 6px;
  }
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product img,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tap-card-brand,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tap-card-brand,
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .woocommerce-loop-product__title,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .woocommerce-loop-product__title,
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .price,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .price {
    padding: 0 8px !important;
  }
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tp-loop-actions,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tp-loop-actions {
    padding: 0 8px 8px !important;
  }
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tp-loop-actions .tp-qv-btn,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tp-loop-actions .tp-qv-btn {
    display: none !important;
  }
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tp-loop-actions .button.button,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tp-loop-actions .button.button,
  body.page-id-8 #page-container .et_pb_shop .woocommerce ul.products > li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button,
  body.page-id-8 #page-container .et_pb_shop_grid .woocommerce ul.products > li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button {
    display: flex !important;
    align-self: stretch !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    text-transform: none !important;
    white-space: normal;
    overflow: visible;
  }
}

/* The `/shop/` route is a Divi page (page ID 8), not WooCommerce's native
   archive route.  Give that live template the same stable archive system. */
body.page-id-8 [class*="et_pb_sidebar_"] > .et_pb_widget:not(.widget_tp_shop_helper) { display: none !important; }
body.page-id-8 [class*="et_pb_sidebar_"] .widget_tp_shop_helper,
body.page-id-8 [class*="et_pb_sidebar_"] .tp-stick-wrap,
body.page-id-8 [class*="et_pb_sidebar_"] .tp-shop-helper,
body.page-id-8 [class*="et_pb_sidebar_"] .tp-field,
body.page-id-8 [class*="et_pb_sidebar_"] input,
body.page-id-8 [class*="et_pb_sidebar_"] select {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
body.page-id-8 [class*="et_pb_sidebar_"] .tp-popular { display: none !important; }
/* UAT-040 (Work Order 10, item B): Divi's default sidebar widget-area
   wrapper has its own border-right (a generic Divi theme default,
   never explicitly removed here). The sidebar column is taller/wider
   than the visible sticky filter card inside it, so that border
   rendered as a thin vertical line extending past the card's own
   shorter box -- a "stub" with no visible purpose next to a card that
   already has its own full border. Removed on every archive context
   this sidebar appears in.

   Work Order 11, item 7d: every `.et_pb_sidebar_1` selector in this
   file (and the matching ones in functions.php) was rewritten to the
   `[class*="et_pb_sidebar_"]` attribute-wildcard above, because Divi's
   auto-numbered suffix silently shifted -- confirmed live as
   `et_pb_sidebar_0` on /shop/ and `et_pb_sidebar_0_tb_body` on
   category/brand archives, not `_1` -- almost certainly from Work
   Order 10 item C's hero-image module insertion shifting Divi's own
   module count. That silently broke this entire rule block (and the
   two-column grid override below) on every archive page until this
   fix; UAT-040's regression test is what caught it. The wildcard
   selector is deliberately decoupled from Divi's own numbering so the
   next layout edit doesn't silently break this again. */
body.page-id-8 [class*="et_pb_sidebar_"],
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"],
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] {
  border: none !important;
}
@supports selector(:has(*)) {
  body.page-id-8 .et_pb_row:has(> [class*="et_pb_sidebar_"]) {
    display: grid !important;
    grid-template-columns: minmax(228px, 270px) minmax(0, 1fr) !important;
    width: min(1440px, calc(100% - 64px)) !important;
    max-width: 1440px !important;
    gap: clamp(28px, 3vw, 48px) !important;
    padding: 0 !important;
  }
  body.page-id-8 .et_pb_row:has(> [class*="et_pb_sidebar_"]) > .et_pb_column { width: auto !important; min-width: 0 !important; margin: 0 !important; }
}
body.page-id-8 .tap-archive-toolbar { display: flex !important; align-items: center; justify-content: space-between; gap: 18px; width: 100%; margin: 0 0 22px; }
body.page-id-8 .tap-archive-toolbar .woocommerce-result-count { display: block !important; line-height: 1.35; }
body.page-id-8 .tap-archive-toolbar .woocommerce-ordering { flex: 0 0 auto; margin: 0 !important; }
body.page-id-8 ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 20px !important; width: 100% !important; align-items: start !important; }
body.page-id-8 ul.products li.product { min-width: 0 !important; padding: 16px !important; }
body.page-id-8 ul.products li.product .woocommerce-LoopProduct-link { display: grid !important; grid-template-rows: 172px 1.1em 2.5em auto; gap: 8px; }
body.page-id-8 ul.products li.product img { width: 100% !important; height: 172px !important; margin: 0 !important; object-fit: contain; }
body.page-id-8 ul.products li.product .woocommerce-loop-product__title { margin: 0 !important; }
/* Divi/Woo legacy loop classes can carry a positional rule into CSS Grid.
   Reset every placement and let the grid's normal auto-placement fill cells
   sequentially. */
body.page-id-8 ul.products > li.product,
body.tap-redesign.tax-product_cat ul.products > li.product {
  clear: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  margin-left: 0 !important;
}
body.page-id-8 .woocommerce-pagination { width: 100%; margin-top: 36px; }
@media (max-width: 1180px) { body.page-id-8 ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; } }
@media (max-width: 767px) {
  @supports selector(:has(*)) { body.page-id-8 .et_pb_row:has(> [class*="et_pb_sidebar_"]) { display: block !important; width: min(100% - 28px, 600px) !important; } }
  body.page-id-8 [class*="et_pb_sidebar_"] { margin-bottom: 24px !important; }
  body.page-id-8 .tap-archive-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  body.page-id-8 .tap-archive-toolbar .woocommerce-ordering,
  body.page-id-8 .tap-archive-toolbar select { width: 100%; }
  body.page-id-8 ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  /*
   * WO3 B1 -- mobile card spec: single 8px gap/padding, image full-bleed
   * to the card edge (no inset), fixed aspect-ratio so rows stay equal.
   * li.product's padding is zeroed and reapplied only to the text/button
   * rows below the image (brand, title, price, actions), not the image
   * itself -- the image is the only element that should touch the card
   * edge on all four sides.
   */
  body.page-id-8 ul.products li.product { display: block !important; padding: 0 !important; }
  body.page-id-8 ul.products li.product .woocommerce-LoopProduct-link { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 1.1em 2.5em auto; width: 100% !important; box-sizing: border-box !important; gap: 6px; }
  body.page-id-8 ul.products li.product img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; }
  body.page-id-8 ul.products li.product .tap-card-brand,
  body.page-id-8 ul.products li.product .woocommerce-loop-product__title,
  body.page-id-8 ul.products li.product .price { padding: 0 8px !important; }
  body.page-id-8 ul.products li.product .tp-loop-actions { padding: 0 8px 8px !important; }
}

/* Divi assigns different numeric section classes after each visual edit.
   Anchor archive geometry to the actual sidebar instead of those volatile
   generated class names. */
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] > .et_pb_widget:not(.widget_tp_shop_helper),
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] > .et_pb_widget:not(.widget_tp_shop_helper) { display: none !important; }
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] .widget_tp_shop_helper,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] .widget_tp_shop_helper,
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] .tp-stick-wrap,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] .tp-stick-wrap,
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] .tp-shop-helper,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] .tp-shop-helper,
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] .tp-field,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] .tp-field,
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] input,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] input,
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] select,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] select {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"] .tp-popular,
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] .tp-popular { display: none !important; }

@supports selector(:has(*)) {
  body.tap-redesign.post-type-archive-product .et_pb_row:has(> [class*="et_pb_sidebar_"]),
  body.tap-redesign.tax-product_cat .et_pb_row:has(> [class*="et_pb_sidebar_"]) {
    display: grid !important;
    grid-template-columns: minmax(228px, 270px) minmax(0, 1fr) !important;
    width: min(1440px, calc(100% - 64px)) !important;
    max-width: 1440px !important;
    gap: clamp(28px, 3vw, 48px) !important;
    padding: 0 !important;
  }
  body.tap-redesign.post-type-archive-product .et_pb_row:has(> [class*="et_pb_sidebar_"]) > .et_pb_column,
  body.tap-redesign.tax-product_cat .et_pb_row:has(> [class*="et_pb_sidebar_"]) > .et_pb_column { width: auto !important; min-width: 0 !important; margin: 0 !important; }
}

body.tap-redesign.post-type-archive-product .tap-archive-toolbar,
body.tap-redesign.tax-product_cat .tap-archive-toolbar { display: flex !important; align-items: center; justify-content: space-between; gap: 18px; width: 100%; margin: 0 0 22px; }
body.tap-redesign.post-type-archive-product .tap-archive-toolbar .woocommerce-result-count,
body.tap-redesign.tax-product_cat .tap-archive-toolbar .woocommerce-result-count { display: block !important; line-height: 1.35; }
body.tap-redesign.post-type-archive-product .tap-archive-toolbar .woocommerce-ordering,
body.tap-redesign.tax-product_cat .tap-archive-toolbar .woocommerce-ordering { flex: 0 0 auto; margin: 0 !important; }
body.tap-redesign.post-type-archive-product ul.products,
body.tap-redesign.tax-product_cat ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
  /* UAT-042: CSS Grid's default align-items (stretch) was matching
     every card's height to the tallest card in its row, but only the
     <a> link wrapper (image/brand/title/price) was actually being
     stretched to fill that extra height -- not the .tp-loop-actions
     button below it, which stayed in normal flow at its natural size.
     With li.product's own overflow: hidden (needed elsewhere to clip
     the hover image), the button ended up rendered past the card's
     own clipped bottom edge, cut off to a few visible pixels. Cards
     sizing to their own content, not the row's tallest sibling, is
     also literally what this bug report asked for. */
  align-items: start !important;
}
body.tap-redesign.post-type-archive-product ul.products li.product,
body.tap-redesign.tax-product_cat ul.products li.product { min-width: 0 !important; padding: 16px !important; }
body.tap-redesign.post-type-archive-product ul.products li.product .woocommerce-LoopProduct-link,
body.tap-redesign.tax-product_cat ul.products li.product .woocommerce-LoopProduct-link { display: grid !important; grid-template-rows: 172px 1.1em 2.5em auto; gap: 8px; }
body.tap-redesign.post-type-archive-product ul.products li.product img,
body.tap-redesign.tax-product_cat ul.products li.product img { width: 100% !important; height: 172px !important; margin: 0 !important; object-fit: contain; }
body.tap-redesign.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
body.tap-redesign.tax-product_cat ul.products li.product .woocommerce-loop-product__title { margin: 0 !important; }
body.tap-redesign.post-type-archive-product .woocommerce-pagination,
body.tap-redesign.tax-product_cat .woocommerce-pagination { width: 100%; margin-top: 36px; }

@media (max-width: 1180px) {
  body.tap-redesign.post-type-archive-product ul.products,
  body.tap-redesign.tax-product_cat ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  @supports selector(:has(*)) {
    body.tap-redesign.post-type-archive-product .et_pb_row:has(> [class*="et_pb_sidebar_"]),
    body.tap-redesign.tax-product_cat .et_pb_row:has(> [class*="et_pb_sidebar_"]) { display: block !important; width: min(100% - 28px, 600px) !important; }
  }
  body.tap-redesign.post-type-archive-product [class*="et_pb_sidebar_"],
  body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] { margin-bottom: 24px !important; }
  body.tap-redesign.post-type-archive-product .tap-archive-toolbar,
  body.tap-redesign.tax-product_cat .tap-archive-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  body.tap-redesign.post-type-archive-product .tap-archive-toolbar .woocommerce-ordering,
  body.tap-redesign.tax-product_cat .tap-archive-toolbar .woocommerce-ordering,
  body.tap-redesign.post-type-archive-product .tap-archive-toolbar select,
  body.tap-redesign.tax-product_cat .tap-archive-toolbar select { width: 100%; }
  body.tap-redesign.post-type-archive-product ul.products,
  body.tap-redesign.tax-product_cat ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  /* WO3 B1 -- same mobile card spec as the /shop/ block above (full-bleed
     image, 8px text/button inset, fixed ratio). */
  body.tap-redesign.post-type-archive-product ul.products li.product,
  body.tap-redesign.tax-product_cat ul.products li.product { display: block !important; padding: 0 !important; }
  body.tap-redesign.post-type-archive-product ul.products li.product .woocommerce-LoopProduct-link,
  body.tap-redesign.tax-product_cat ul.products li.product .woocommerce-LoopProduct-link { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 1.1em 2.5em auto; width: 100% !important; box-sizing: border-box !important; gap: 6px; }
  body.tap-redesign.post-type-archive-product ul.products li.product img,
  body.tap-redesign.tax-product_cat ul.products li.product img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; }
  body.tap-redesign.post-type-archive-product ul.products li.product .tap-card-brand,
  body.tap-redesign.tax-product_cat ul.products li.product .tap-card-brand,
  body.tap-redesign.post-type-archive-product ul.products li.product .woocommerce-loop-product__title,
  body.tap-redesign.tax-product_cat ul.products li.product .woocommerce-loop-product__title,
  body.tap-redesign.post-type-archive-product ul.products li.product .price,
  body.tap-redesign.tax-product_cat ul.products li.product .price { padding: 0 8px !important; }
  body.tap-redesign.post-type-archive-product ul.products li.product .tp-loop-actions,
  body.tap-redesign.tax-product_cat ul.products li.product .tp-loop-actions { padding: 0 8px 8px !important; }
}

/* Archive layout repair: the legacy Divi row is deliberately constrained as
   one readable storefront, rather than a narrow left-aligned island on large
   displays.  Only the first helper is retained in the sidebar; WordPress's
   redundant legacy widgets otherwise duplicate its controls below it. */
body.tap-redesign.woocommerce.archive .et_pb_section_5 .et_pb_row,
body.tap-redesign.tax-product_cat .et_pb_section_5 .et_pb_row {
  display: grid !important;
  grid-template-columns: minmax(228px, 270px) minmax(0, 1fr) !important;
  width: min(1440px, calc(100% - 64px)) !important;
  max-width: 1440px !important;
  gap: clamp(28px, 3vw, 48px) !important;
  padding: 0 !important;
}
body.tap-redesign.woocommerce.archive .et_pb_section_5 .et_pb_row > .et_pb_column,
body.tap-redesign.tax-product_cat .et_pb_section_5 .et_pb_row > .et_pb_column {
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
}
body.tap-redesign.woocommerce.archive [class*="et_pb_sidebar_"] > .et_pb_widget:not(.widget_tp_shop_helper),
body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] > .et_pb_widget:not(.widget_tp_shop_helper) { display: none !important; }
body.tap-redesign.woocommerce.archive .widget_tp_shop_helper,
body.tap-redesign.tax-product_cat .widget_tp_shop_helper,
body.tap-redesign.woocommerce.archive .tp-stick-wrap,
body.tap-redesign.tax-product_cat .tp-stick-wrap,
body.tap-redesign.woocommerce.archive .tp-shop-helper,
body.tap-redesign.tax-product_cat .tp-shop-helper,
body.tap-redesign.woocommerce.archive .tp-shop-helper .tp-field,
body.tap-redesign.tax-product_cat .tp-shop-helper .tp-field {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
  width: 100% !important;
}
body.tap-redesign.woocommerce.archive .tp-shop-helper input,
body.tap-redesign.woocommerce.archive .tp-shop-helper select,
body.tap-redesign.tax-product_cat .tp-shop-helper input,
body.tap-redesign.tax-product_cat .tp-shop-helper select {
  box-sizing: border-box !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
/* Discovery links are useful at the top of the collection, but the product
   form itself should stay focused on filtering. */
body.tap-redesign.woocommerce.archive .tp-shop-helper .tp-popular,
body.tap-redesign.tax-product_cat .tp-shop-helper .tp-popular { display: none !important; }

body.tap-redesign.woocommerce.archive .tap-archive-toolbar,
body.tap-redesign.tax-product_cat .tap-archive-toolbar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  margin: 0 0 22px;
}
body.tap-redesign.woocommerce.archive .tap-archive-toolbar .woocommerce-result-count,
body.tap-redesign.tax-product_cat .tap-archive-toolbar .woocommerce-result-count { display: block !important; line-height: 1.35; }
body.tap-redesign.woocommerce.archive .tap-archive-toolbar .woocommerce-ordering,
body.tap-redesign.tax-product_cat .tap-archive-toolbar .woocommerce-ordering { flex: 0 0 auto; margin: 0 !important; }
body.tap-redesign.woocommerce.archive .et_pb_column ul.products,
body.tap-redesign.tax-product_cat .et_pb_column ul.products {
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 20px !important;
  width: 100% !important;
}
body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product,
body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product {
  display: block !important;
  min-width: 0 !important;
  padding: 16px !important;
}
body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .woocommerce-LoopProduct-link,
body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .woocommerce-LoopProduct-link {
  display: grid !important;
  grid-template-rows: 172px 1.1em 2.5em auto;
  width: 100% !important;
  box-sizing: border-box !important;
  gap: 8px;
}
body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product img,
body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product img {
  width: 100% !important;
  height: 172px !important;
  margin: 0 !important;
  object-fit: contain;
}
body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .woocommerce-loop-product__title,
body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .woocommerce-loop-product__title { margin: 0 !important; }
body.tap-redesign.woocommerce.archive .woocommerce-pagination,
body.tap-redesign.tax-product_cat .woocommerce-pagination { width: 100%; margin-top: 36px; }

@media (max-width: 1180px) {
  body.tap-redesign.woocommerce.archive .et_pb_section_5 .et_pb_row,
  body.tap-redesign.tax-product_cat .et_pb_section_5 .et_pb_row { grid-template-columns: 236px minmax(0, 1fr) !important; gap: 26px !important; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
@media (max-width: 767px) {
  body.tap-redesign.woocommerce.archive .et_pb_section_5 .et_pb_row,
  body.tap-redesign.tax-product_cat .et_pb_section_5 .et_pb_row { display: block !important; width: min(100% - 28px, 600px) !important; }
  body.tap-redesign.woocommerce.archive [class*="et_pb_sidebar_"],
  body.tap-redesign.tax-product_cat [class*="et_pb_sidebar_"] { margin-bottom: 24px !important; }
  body.tap-redesign.woocommerce.archive .tap-archive-toolbar,
  body.tap-redesign.tax-product_cat .tap-archive-toolbar { align-items: stretch; flex-direction: column; gap: 12px; }
  body.tap-redesign.woocommerce.archive .tap-archive-toolbar .woocommerce-ordering,
  body.tap-redesign.tax-product_cat .tap-archive-toolbar .woocommerce-ordering,
  body.tap-redesign.woocommerce.archive .tap-archive-toolbar select,
  body.tap-redesign.tax-product_cat .tap-archive-toolbar select { width: 100%; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 8px !important; }
  /* WO3 B1 -- same mobile card spec as the other two duplicate rule sets:
     full-bleed image (fixed ratio, not a fixed px height), 8px text/
     button inset, Quick View hidden, Add to cart/Select options full
     width at 44px. This selector (qualified by .et_pb_column) is more
     specific than the other two duplicates and was the one actually
     winning live -- confirmed 2026-11-11 via computed-style inspection
     (the other two duplicates' edits alone had no visible effect). */
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product { padding: 0 !important; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .woocommerce-LoopProduct-link,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .woocommerce-LoopProduct-link { grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 1.1em 2.5em auto; width: 100% !important; gap: 6px; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product img,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product img { width: 100% !important; height: auto !important; aspect-ratio: 4 / 5; object-fit: cover; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .tap-card-brand,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .tap-card-brand,
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .woocommerce-loop-product__title,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .woocommerce-loop-product__title,
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .price,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .price { padding: 0 8px !important; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .tp-loop-actions,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .tp-loop-actions { padding: 0 8px 8px !important; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .tp-loop-actions .tp-qv-btn,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .tp-loop-actions .tp-qv-btn { display: none !important; }
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .tp-loop-actions .button.button,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .tp-loop-actions .button.button,
  body.tap-redesign.woocommerce.archive .et_pb_column ul.products li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button,
  body.tap-redesign.tax-product_cat .et_pb_column ul.products li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button {
    display: flex !important;
    align-self: stretch !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    text-transform: none !important;
    white-space: normal;
    overflow: visible;
  }
}

/* Product-category templates use Divi's post-title module rather than the
   Shop page's text module; give it the same compact collection treatment.
   UAT-038 (Work Order 10, correction 4): the radial blush glow here
   previously rendered as a thin, disconnected strip right under the nav
   at wide viewports (2560/1920px) -- the section's own padding is too
   short for the glow's "circle at 84% 8%" position/26% radius to read
   as a deliberate accent rather than leftover debris, confirmed via the
   owner's real-browser screenshots. Removed; the solid --tap-soft-cream
   fallback it already had is clean on its own and matches how /shop/
   (a different template path, never had this gradient) already looks. */
body.tap-redesign.tax-product_cat .et_pb_section_0_tb_body {
  padding: clamp(40px, 5vw, 68px) 0 clamp(30px, 4vw, 48px) !important;
  background: var(--tap-soft-cream) !important;
}
body.tap-redesign.tax-product_cat .et_pb_row_0_tb_body {
  width: min(var(--tap-container), calc(100% - 40px)) !important;
  max-width: var(--tap-container) !important;
  padding: 0 !important;
}
/* FACELIFT PHASE 1: updated to the unified heading system (Fraunces,
   the brief's exact clamp scale) rather than left to fight the new
   sitewide rule -- this one pre-dates Phase 1 and had enough specificity
   (plus !important) to keep winning on category archives specifically,
   which is exactly why the Phase 1 audit re-run still measured Inter
   here after the first deploy. One declaration site now, not two. */
body.tap-redesign.tax-product_cat .et_pb_post_title_0_tb_body .entry-title {
  margin: 7px 0 12px !important;
  color: var(--tap-espresso) !important;
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
  text-transform: none !important;
}

/* =========================================================
   13. Shop and category discovery
========================================================= */

/* The existing Divi module supplies the H1; this turns it into a concise,
   useful collection introduction instead of a large empty title block. */
body.tap-redesign.post-type-archive-product .et_pb_section_4,
body.tap-redesign.tax-product_cat .et_pb_section_4 {
  /* UAT-038 (Work Order 10, correction 4): same leftover-looking radial
     glow as .et_pb_section_0_tb_body above -- removed for the same
     reason, same fix. */
  padding: clamp(42px, 5vw, 72px) 0 clamp(34px, 4vw, 54px) !important;
  background: var(--tap-soft-cream);
}
body.tap-redesign.post-type-archive-product .et_pb_post_title_0_tb_body,
body.tap-redesign.tax-product_cat .et_pb_post_title_0_tb_body {
  padding-top: clamp(28px, 3vw, 46px) !important;
  padding-bottom: clamp(24px, 3vw, 38px) !important;
}

body.tap-redesign.post-type-archive-product .et_pb_row_6,
body.tap-redesign.tax-product_cat .et_pb_row_6 {
  width: min(var(--tap-container), calc(100% - 40px)) !important;
  max-width: var(--tap-container) !important;
  padding: 0 !important;
}

body.tap-redesign.post-type-archive-product .et_pb_text_6 h1,
body.tap-redesign.tax-product_cat .et_pb_text_6 h1,
body.tap-redesign .woocommerce-products-header__title {
  margin: 7px 0 12px !important;
  /* UAT-051 (WO-14 §45): was Inter 900 / clamp(44px,6vw,78px) /
     -.065em / .89 -- a leftover from before this theme settled on one
     heading system (h1/h2 Fraunces, h3-h6 Inter; see this file's
     v1.3.x changelog). Measured consequence: every template's H1 came
     out Fraunces 600 at 60px EXCEPT search results, where
     `.woocommerce-products-header .page-title` IS the h1 and this rule
     out-specified the sitewide Fraunces rule -- Inter 900 at 78px, on
     the same site, one click away. Same tokens as every other H1 now. */
  color: var(--tap-espresso) !important;
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
  line-height: 1.05 !important;
  text-transform: none !important;
}

.tap-archive-context { max-width: 720px; }
.tap-archive-context .tap-eyebrow { margin: 0; }
/* Work Order 10, item C -- shop/category hero image. This column is
   narrower and sits beside the sidebar, unlike the full-width
   content-page hero pattern above, so this is a simple inline block
   image (not an absolute-positioned background with overlay text). */
.tap-archive-context--has-hero { max-width: 100%; }
.tap-archive-context__hero-image {
  display: block;
  width: 100%;
  max-width: 720px;
  height: auto;
  aspect-ratio: 16 / 7;
  object-fit: cover;
  border-radius: var(--tap-radius-lg);
  margin-bottom: 20px;
}
/* UAT-052 -- designed fallback hero. Same geometry as the real hero
   image so the page does not reflow between an archive that has one
   and one that does not. dots.svg is already shipped in the theme. */
.tap-archive-context__hero-fallback {
  display: grid;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 7;
  place-items: center;
  margin-bottom: 20px;
  padding: 16px;
  border-radius: var(--tap-radius-lg);
  background:
    url('../img/decor/dots.svg') center / 220px repeat,
    linear-gradient(118deg, var(--tap-wine) 0%, #8d1a3f 52%, var(--tap-rose) 100%);
  text-align: center;
}
.tap-archive-context__hero-fallback > span {
  color: #fff;
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif;
  font-size: clamp(26px, 4.2vw, 44px);
  font-weight: 600;
  letter-spacing: -.03em;
  line-height: 1.1;
  text-shadow: 0 1px 10px rgba(36, 19, 22, .35);
}
.tap-archive-context__copy { max-width: 585px; margin: 0 0 21px; color: var(--tap-muted) !important; font-size: 16px; line-height: 1.6; }
.tap-archive-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 30px; }
.tap-archive-chips a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 13px; border: 1px solid var(--tap-border); border-radius: 999px; background: #fff; color: var(--tap-espresso); font-size: 12px; font-weight: 850; text-decoration: none; transition: border-color .2s ease, color .2s ease, background .2s ease; }
.tap-archive-chips a:hover, .tap-archive-chips a.is-current { border-color: var(--tap-rose); background: var(--tap-wine); color: #fff; }

/* FACELIFT PHASE 2 -- empty-state design for zero-result archives. */
.tap-archive-empty { padding: clamp(40px, 6vw, 72px) 20px; text-align: center; }
.tap-archive-empty__title { margin: 0 0 10px; color: var(--tap-espresso); font-size: clamp(20px, 2.5vw, 26px); font-weight: 800; }
.tap-archive-empty__copy { max-width: 480px; margin: 0 auto 24px; color: var(--tap-muted); line-height: 1.6; }
.tap-archive-empty__links { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-bottom: 20px; }
.tap-archive-empty__links a { display: inline-flex; min-height: 44px; align-items: center; padding: 0 18px; border: 2px solid var(--tap-wine); border-radius: 9px; color: var(--tap-wine); font-weight: 800; text-decoration: none; }
.tap-archive-empty__links a:hover { background: var(--tap-wine); color: #fff; }
.tap-archive-empty__quiz { display: inline-flex; min-height: 44px; align-items: center; color: var(--tap-rose); font-weight: 800; text-decoration: underline; }

/* Side filtering keeps every existing input and its query parameters, while
   removing redundant widgets and giving the primary form a clear hierarchy. */
body.tap-redesign.post-type-archive-product #woocommerce_product_search-3,
body.tap-redesign.post-type-archive-product #woocommerce_product_categories-5,
body.tap-redesign.tax-product_cat #woocommerce_product_search-3,
body.tap-redesign.tax-product_cat #woocommerce_product_categories-5 { display: none !important; }
body.tap-redesign .widget_tp_shop_helper { position: relative; padding: 0; border: 1px solid var(--tap-border); border-radius: var(--tap-radius-md); background: #fff; box-shadow: var(--tap-shadow-card); }
body.tap-redesign .widget_tp_shop_helper .widgettitle { margin: 0 !important; padding: 22px 22px 2px !important; color: var(--tap-espresso) !important; font-family: Inter, 'Inter Fallback', system-ui, sans-serif !important; font-size: 20px !important; font-weight: 900 !important; letter-spacing: -.035em !important; }
.tap-filter-copy { margin: 0; padding: 0 22px 18px; color: var(--tap-muted) !important; font-size: 12px; line-height: 1.45; }
body.tap-redesign .tp-stick-wrap { padding: 0 22px 22px; }
body.tap-redesign .tp-shop-helper { display: grid; gap: 15px; }
body.tap-redesign .tp-shop-helper .tp-field { margin: 0 !important; }
body.tap-redesign .tp-shop-helper label:not(.tp-check) { display: block; margin-bottom: 7px; color: var(--tap-espresso); font-size: 12px; font-weight: 900; }
body.tap-redesign .tp-shop-helper input[type='search'],
body.tap-redesign .tp-shop-helper select { width: 100%; min-height: 46px; box-sizing: border-box; border: 1px solid var(--tap-border); border-radius: 9px; background: var(--tap-soft-cream); color: var(--tap-espresso); font: inherit; font-size: 13px; }
body.tap-redesign .tp-shop-helper input[type='search'] { padding: 0 12px; }
body.tap-redesign .tp-shop-helper select { padding: 0 34px 0 12px; }
/* UAT-048 item 2 (owner's laptop photo): "In stock only" / "On sale" wrapped
   to THREE lines (measured 118x82px at 1440 AND 1536 -- never a laptop-only
   bug; the 390/1440/2576 audits simply never asserted on label height).

   It took TWO rules together, which is why neither looked wrong alone:
     1. `.tp-toggles` was `grid-template-columns: 1fr 1fr` at every width
        above 600px, so in the 236-270px sidebar each cell was only ~118px.
     2. The archive rules above force `width: 100% !important` on every
        `input` inside the sidebar -- aimed at the search and select
        fields, but it also hit the two CHECKBOXES, which then expanded to
        fill the whole 118px cell and left almost nothing for the text.
   Re-injecting rule 1 by itself does NOT reproduce the wrap; adding rule 2
   back reproduces it exactly (118x82, 3 lines). Both are fixed here:
   auto-fit sizes from the space actually available rather than a hardcoded
   column count, and `flex: 0 0 16px` pins the checkbox so the blanket
   100% width cannot reach it. min-height 44px is the G8 tap target.
   The old `max-width: 600px` override that set `1fr` is now redundant and
   has been removed. */
body.tap-redesign .tp-toggles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; padding: 2px 0; }
body.tap-redesign .tp-shop-helper .tp-check { display: flex; gap: 7px; align-items: center; min-height: 44px; color: var(--tap-espresso); font-size: 12px; font-weight: 750; cursor: pointer; }
body.tap-redesign .tp-shop-helper .tp-check input { flex: 0 0 16px; width: 16px; height: 16px; accent-color: var(--tap-rose); }

/* UAT-048 item 3: the filter's own controls were rendering in the browser's
   default SERIF. Divi's per-template CSS sets form controls to "Open Sans"
   with NO generic fallback and loads after this stylesheet, so it beat the
   `font: inherit` above; and Open Sans is not actually served on staging
   (document.fonts reports it absent). A family that names only a font the
   browser does not have falls back to the default standard font, which is
   serif. Measured on /product-category/for-couples/: the declared family
   rendered at exactly the `serif` width (261px) and not the `sans-serif`
   width (289px), on 5 controls. /shop/ was unaffected because it is a plain
   page, not a Theme Builder body layout, so the later CSS is not emitted
   there -- which is why this survived every previous audit.
   Form controls do not inherit font-family, so it must be set on them. */
body.tap-redesign .tp-shop-helper input,
body.tap-redesign .tp-shop-helper select,
body.tap-redesign .tp-shop-helper textarea,
body.tap-redesign .tp-shop-helper button {
  font-family: Inter, 'Inter Fallback', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}
body.tap-redesign .tp-shop-helper button[type='submit'] { min-height: 46px; border: 0; border-radius: 9px; background: var(--tap-wine); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }
body.tap-redesign .tp-shop-helper button[type='submit']:hover { background: var(--tap-rose); }
body.tap-redesign .tp-shop-helper .tp-reset { display: inline-flex; justify-content: center; min-height: 44px; align-items: center; border: 1px solid var(--tap-border); border-radius: 9px; color: var(--tap-espresso); font-size: 12px; font-weight: 850; text-decoration: none; }
body.tap-redesign .tp-shop-helper .tp-active-filters { display: flex; flex-wrap: wrap; gap: 6px; }
body.tap-redesign .tp-shop-helper .tp-chip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 10px; border: 1px solid var(--tap-rose); border-radius: 999px; background: var(--tap-soft-cream); color: var(--tap-wine); font-size: 12px; font-weight: 750; text-decoration: none; }
body.tap-redesign .tp-shop-helper .tp-chip:hover { background: var(--tap-rose); color: #fff; }
body.tap-redesign .tp-shop-helper .tp-chip span[aria-hidden] { font-size: 14px; line-height: 1; }
body.tap-redesign .tp-shop-helper .tp-result-count { margin: 0; color: var(--tap-muted); font-size: 12px; font-weight: 750; }
body.tap-redesign .tp-popular { padding-top: 19px; border-top: 1px solid var(--tap-border); }
body.tap-redesign .tp-popular-title { margin-bottom: 10px; color: var(--tap-espresso); font-size: 12px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; }
body.tap-redesign .tp-popular-row { display: flex; flex-wrap: wrap; gap: 7px; }
body.tap-redesign .tp-popular-link { max-width: 100%; overflow: hidden; padding: 7px 9px; border: 1px solid var(--tap-border); border-radius: 7px; background: var(--tap-soft-cream); color: var(--tap-muted); font-size: 11px; font-weight: 750; line-height: 1.3; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
body.tap-redesign .tp-popular-link:hover { border-color: var(--tap-rose); color: var(--tap-wine); }

/* Result controls use one intentional toolbar instead of floating fragments. */
body.tap-redesign.woocommerce .woocommerce-result-count,
body.tap-redesign.woocommerce .woocommerce-ordering { float: none !important; margin: 0 !important; }
body.tap-redesign.woocommerce .woocommerce-result-count { color: var(--tap-muted); font-size: 13px; font-weight: 750; line-height: 46px; }
body.tap-redesign.woocommerce .woocommerce-ordering { margin-left: auto !important; }
/* UAT-045: `font: inherit` resets every font sub-property to inherit
   from the parent, but somewhere up this element's ancestor chain
   something still resolves to a serif font rather than the sitewide
   Inter -- set explicitly rather than relying on inheritance. */
body.tap-redesign.woocommerce .woocommerce-ordering select { min-width: 212px; min-height: 46px; padding: 0 38px 0 14px; border: 1px solid var(--tap-border); border-radius: 9px; background-color: #fff; color: var(--tap-espresso); font-family: Inter, 'Inter Fallback', system-ui, sans-serif !important; font-size: 13px; font-weight: 750; }
body.tap-redesign.woocommerce .woocommerce-result-count + .woocommerce-ordering { display: inline-block; }
body.tap-redesign.woocommerce .woocommerce-result-count { display: inline-block; }
body.tap-redesign.woocommerce .woocommerce-before-loop { display: flex; align-items: center; gap: 14px; }

/* The archive template does not expose a toolbar wrapper, so scope the two
   native controls to their product-grid parent using modern layout rules. */
@supports selector(:has(*)) {
  body.tap-redesign .et_pb_column:has(> .woocommerce-result-count) { display: flex; flex-wrap: wrap; align-items: center; column-gap: 14px; }
  body.tap-redesign .et_pb_column:has(> .woocommerce-result-count) > ul.products { flex: 0 0 100%; width: 100% !important; }
  body.tap-redesign .et_pb_column:has(> .woocommerce-pagination) > .woocommerce-pagination { flex: 0 0 100%; }
}

/* Pagination becomes a clear, comfortably sized page navigator. */
body.tap-redesign.woocommerce .woocommerce-pagination { margin: 44px 0 12px; text-align: center; }
body.tap-redesign.woocommerce .woocommerce-pagination ul.page-numbers { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 7px; margin: 0; padding: 0; border: 0; }
body.tap-redesign.woocommerce .woocommerce-pagination ul.page-numbers li { float: none; border: 0; }
body.tap-redesign.woocommerce .woocommerce-pagination .page-numbers { display: inline-grid; min-width: 42px; height: 42px; place-items: center; padding: 0 9px; border: 1px solid var(--tap-border); border-radius: 9px; background: #fff; color: var(--tap-espresso); font-size: 13px; font-weight: 850; text-decoration: none; }
body.tap-redesign.woocommerce .woocommerce-pagination .page-numbers.current,
body.tap-redesign.woocommerce .woocommerce-pagination a.page-numbers:hover { border-color: var(--tap-wine); background: var(--tap-wine); color: #fff; }
body.tap-redesign.woocommerce .woocommerce-pagination .page-numbers.dots { min-width: 20px; border-color: transparent; background: transparent; }

@media (min-width: 981px) {
  body.tap-redesign [class*="et_pb_sidebar_"] .tp-stick-wrap { position: sticky; top: 24px; }
}

@media (max-width: 980px) {
  body.tap-redesign.post-type-archive-product .et_pb_section_4,
  body.tap-redesign.tax-product_cat .et_pb_section_4 { padding: 38px 0 32px !important; }

  /*
   * WO3 C3/owner rule -- chips must wrap, never scroll horizontally (the
   * owner's explicit rule overrides the "or wrap onto two lines" option
   * in the mobile layout spec). Was flex-wrap: nowrap + overflow-x: auto,
   * a horizontal scroller -- changed to wrap, with the same gap below so
   * wrapped rows still read as clear of the filter card beneath them.
   */
  .tap-archive-chips { flex-wrap: wrap; overflow-x: visible; margin-bottom: 24px; }
  body.tap-redesign .et_pb_column:has(.widget_tp_shop_helper) { margin-top: 20px; margin-bottom: 16px; }

  /* One compact "Filters" accordion, not a card-inside-a-card. The outer
     widget title ("Filter") and intro copy ("Start broad...") duplicated
     what the collapsed toggle already says, and the outer widget's own
     border/shadow/radius wrapped the inner .tp-collapsible's own card,
     producing an oversized, mostly-empty panel. The inner collapsible
     (built by the Shop Helper's own JS, from WPCode #11162) is now the
     only visible card; its own border/radius come from that snippet,
     unchanged here. Desktop (>980px) keeps the original title, copy and
     card chrome untouched. */
  body.tap-redesign .widget_tp_shop_helper .widgettitle,
  body.tap-redesign .tap-filter-copy { display: none; }
  body.tap-redesign .widget_tp_shop_helper {
    margin-bottom: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  body.tap-redesign .tp-stick-wrap { position: static; }
}

@media (max-width: 600px) {
  body.tap-redesign.post-type-archive-product .et_pb_text_6 h1,
  body.tap-redesign.tax-product_cat .et_pb_text_6 h1,
  body.tap-redesign .woocommerce-products-header__title { font-size: 45px !important; }
  .tap-archive-context__copy { font-size: 14px; }
  /* UAT-048: the `.tp-toggles { 1fr }` override that lived here is gone --
     the auto-fit base rule already yields one column at this width. */
  body.tap-redesign.woocommerce .woocommerce-result-count { display: block; line-height: 1.4; }
  body.tap-redesign.woocommerce .woocommerce-ordering { display: block; width: 100%; margin: 12px 0 0 !important; }
  body.tap-redesign.woocommerce .woocommerce-ordering select { width: 100%; }
  body.tap-redesign.woocommerce .woocommerce-pagination { margin-top: 30px; }
  body.tap-redesign.woocommerce .woocommerce-pagination .page-numbers { min-width: 38px; height: 38px; }
}

@media (max-width: 680px) {
  .tap-home-hero { padding-top: 38px; }
  .tap-home-hero__collage { min-height: 220px; }
  .tap-home-trust-wrap { margin-top: -28px; }
  .tap-home-section-heading { display: block; }
  .tap-home-section-heading > a { display: inline-block; margin-top: 16px; }
  .tap-home-category-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .tap-quick-category-grid { grid-template-columns: 1fr; gap: 9px; }
  .tap-quick-category { min-height: 82px; grid-template-columns: 52px 1fr auto; padding: 12px; }
  .tap-quick-category__image { width: 52px; height: 52px; }
  .tap-home-editorial { min-height: 510px; align-items: end; background-position: 72% top; background-repeat: no-repeat; background-size: auto 510px; position: relative; isolation: isolate; }
  .tap-home-editorial::before { content: ''; position: absolute; z-index: 0; inset: 0; background: linear-gradient(180deg, rgba(255,247,242,.04), rgba(255,247,242,.96) 67%); }
  .tap-home-editorial__content { position: relative; z-index: 1; padding: 245px 0 42px; }
  .tap-home-category { min-height: 185px; border-radius: 16px; }
  .tap-home-category__content { right: 14px; bottom: 14px; left: 14px; }
  .tap-home-category__content strong { font-size: 18px; }
  .tap-home-category__content span { font-size: 12px; }
  .tap-home-products { gap: 12px; }
  .tap-home-product__body { padding: 13px; }
  .tap-home-guidance__visual { min-height: 0; padding: 14px; }
  .tap-guide-grid { grid-template-columns: 1fr; }
  .tap-guide-card__image { min-height: 190px; }
}

.tap-section {
  padding: clamp(56px, 7vw, 96px) 0;
}

.tap-section-tight {
  padding: clamp(36px, 5vw, 68px) 0;
}

.tap-container {
  width: min(var(--tap-container), calc(100% - 40px));
  margin-inline: auto;
}

.tap-center {
  text-align: center;
}

.tap-eyebrow {
  color: var(--tap-rose);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

/* =========================================================
   3. Buttons
========================================================= */

.tap-button,
.et_pb_button.tap-button,
.et_pb_button.tap-button-primary,
.et_pb_button.tap-button-outline {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 14px 28px !important;
  border-radius: 9px !important;
  font-size: 14px;
  font-weight: 800;
  line-height: 1 !important;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.tap-button:hover,
.et_pb_button.tap-button:hover,
.et_pb_button.tap-button-primary:hover,
.et_pb_button.tap-button-outline:hover {
  transform: translateY(-2px);
}

.tap-button-primary,
.et_pb_button.tap-button-primary {
  background: var(--tap-rose) !important;
  border: 2px solid var(--tap-rose) !important;
  color: #ffffff !important;
  box-shadow: 0 12px 24px rgba(216, 23, 92, 0.22);
}

.tap-button-outline,
.et_pb_button.tap-button-outline {
  background: transparent !important;
  border: 2px solid var(--tap-rose) !important;
  color: var(--tap-rose) !important;
}

.tap-button-outline:hover,
.et_pb_button.tap-button-outline:hover {
  background: var(--tap-rose) !important;
  color: #ffffff !important;
}

.et_pb_button.tap-button::after,
.et_pb_button.tap-button-primary::after,
.et_pb_button.tap-button-outline::after {
  display: none !important;
}

/* =========================================================
   4. Header / Announcement Helpers
========================================================= */

.tap-announcement-bar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 18px;
  align-items: center;
  padding: 9px 32px;
  background: var(--tap-wine);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.tap-announcement-bar span:nth-child(2) {
  text-align: center;
  opacity: 0.94;
}

.tap-announcement-bar span:last-child {
  text-align: right;
}

/* Global header and footer refresh. */
.tap-site-strip { background: var(--tap-wine); color: #fff; }
.tap-site-strip__inner { display: flex; width: min(var(--tap-container), calc(100% - 40px)); min-height: 36px; margin: 0 auto; align-items: center; justify-content: space-between; gap: 18px; font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.tap-site-strip__inner span + span::before { content: '•'; margin-right: 18px; color: var(--tap-blush); }
body.tap-redesign .et-l--header { display: none; }
body.tap-redesign .et-l--header .et_pb_section { background: transparent !important; }
body.tap-redesign .et-l--header .et_pb_row { width: min(var(--tap-container), calc(100% - 40px)) !important; max-width: var(--tap-container) !important; padding: 12px 0 !important; }
body.tap-redesign .et-l--header .et_pb_menu__logo img { width: auto; max-height: 56px; object-fit: contain; }
/*
 * Work Order 11, item 4d: this Divi theme-builder header's own logo
 * image (attachment 10814, small-logo-transparent.png) renders at
 * 0x0 on every page type checked (home/shop/category/brand/product/
 * blog index/blog post/content page) -- the whole row it's in
 * collapses to zero size, not just this image, confirmed across the
 * full ancestor chain. It has no alt text and isn't aria-hidden, so a
 * screen reader still encounters and announces it despite being
 * invisible to everyone else -- the real, labeled logo is this
 * theme's own .tap-wordmark in the custom header. display:none makes
 * no visual difference (it already renders at zero size) but removes
 * it from the accessibility tree. Setting the attachment's own alt
 * text had no effect -- Divi's menu-logo module doesn't read it.
 */
.et_pb_menu_0_tb_header .et_pb_menu__logo img { display: none; }
body.tap-redesign .et-l--header .et-menu-nav > ul > li { padding-right: 15px; }
body.tap-redesign .et-l--header .et-menu-nav > ul > li > a { padding-bottom: 10px !important; color: var(--tap-espresso) !important; font-size: 13px; font-weight: 800; letter-spacing: .015em; }
body.tap-redesign .et-l--header .et-menu-nav > ul > li > a:hover { color: var(--tap-rose) !important; opacity: 1; }
body.tap-redesign .et-l--header .et_pb_menu__cart-button { display: inline-flex; min-height: 42px; align-items: center; margin-left: 8px; padding: 0 14px; border: 1px solid var(--tap-border); border-radius: 999px; color: var(--tap-wine) !important; font-size: 12px; font-weight: 900; }
body.tap-redesign .et-l--header .et_pb_menu__cart-button:hover { border-color: var(--tap-rose); background: var(--tap-blush-light); }
body.tap-redesign .et-l--header .sub-menu { top: calc(100% + 10px) !important; min-width: 250px; padding: 10px !important; border: 1px solid var(--tap-border) !important; border-radius: 14px; background: #fff !important; box-shadow: var(--tap-shadow-card); }
body.tap-redesign .et-l--header .sub-menu li a { width: 100%; padding: 9px 11px !important; color: var(--tap-espresso) !important; font-size: 13px; font-weight: 700; }
body.tap-redesign .et-l--header .sub-menu li a:hover { border-radius: 8px; background: var(--tap-blush-light); color: var(--tap-rose) !important; }
.tap-main-header { position: relative; z-index: 100; background: var(--tap-cream); border-bottom: 1px solid var(--tap-border); }
.tap-main-header__inner { display: grid; grid-template-columns: auto minmax(240px, 480px) auto; align-items: center; gap: 30px; min-height: 96px; }
/* FACELIFT PHASE 1 -- header logo one-line fix. `display: inline-grid`
   with no explicit grid-template-columns put every DIRECT child element
   (the <em> wrapping "&", and the subtitle <span>) onto its own implicit
   grid row -- including the <em> that sits mid-sentence in "Tease & Play",
   wrapping the wordmark onto 3 lines. Fixed by wrapping the title portion
   in its own element (functions.php) so the grid only has 2 real items:
   the title line and the subtitle line below it. */
.tap-wordmark { display: inline-grid; padding: 9px 0; color: var(--tap-espresso); font-size: 28px; font-weight: 950; letter-spacing: -.065em; line-height: .9; text-decoration: none; }
.tap-wordmark__title { display: inline; white-space: nowrap; }
.tap-wordmark em { color: var(--tap-rose); font-style: italic; }
.tap-wordmark__subtitle { display: block; margin-top: 6px; color: var(--tap-muted); font-size: 8px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; white-space: nowrap; }
.tap-header-search { display: flex; overflow: hidden; min-height: 44px; border: 1px solid var(--tap-border); border-radius: 999px; background: var(--tap-soft-cream); }
.tap-header-search input { width: 100%; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--tap-espresso); font: inherit; padding: 0 17px; }
.tap-header-search input::placeholder { color: var(--tap-muted); }
.tap-header-search button { min-width: 80px; border: 0; background: var(--tap-wine); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; }
.tap-header-actions { display: flex; align-items: center; justify-content: end; gap: 14px; }
.tap-header-actions > a:not(.tap-header-cart) { color: var(--tap-espresso); font-size: 12px; font-weight: 800; text-decoration: none; }
.tap-header-cart { position: relative; display: inline-flex; min-height: 40px; align-items: center; padding: 0 15px; border: 1px solid var(--tap-border); border-radius: 999px; color: var(--tap-wine); font-size: 12px; font-weight: 900; text-decoration: none; }
.tap-header-cart .tp-side-cart-badge { position: static; display: inline-grid; min-width: 18px; height: 18px; place-items: center; margin-left: 7px; padding: 0 4px; background: var(--tap-rose); color: #fff; font-size: 10px; line-height: 1; }
.tap-header-cart .tp-side-cart-badge.is-hidden { display: none; }
.tap-menu-toggle { display: none; border: 0; background: transparent; color: var(--tap-espresso); cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; }
.tap-menu-toggle i, .tap-menu-toggle i::before, .tap-menu-toggle i::after { display: block; width: 20px; height: 2px; background: currentColor; content: ''; }
.tap-menu-toggle i { position: relative; margin-top: 4px; }
.tap-menu-toggle i::before { position: absolute; top: -6px; }
.tap-menu-toggle i::after { position: absolute; top: 6px; }
.tap-main-nav { border-top: 1px solid rgba(110,15,47,.07); background: var(--tap-cream); }
.tap-main-nav__inner { display: flex; align-items: center; gap: clamp(14px, 2vw, 29px); min-height: 47px; }
.tap-main-nav a { color: var(--tap-espresso); font-size: 12px; font-weight: 850; text-decoration: none; white-space: nowrap; }
.tap-main-nav a:hover { color: var(--tap-rose); }
.tap-main-nav__deal { color: var(--tap-rose) !important; }
body.tap-redesign .et-l--footer { display: none; }
/**
 * FACELIFT Work Order 3, item A2 -- dark-section rule (UAT-003: trust
 * band headings measured ~1.2:1, near-invisible). Root cause: the SAME
 * specificity problem already found and fixed once for the footer
 * (see the v1.3.26 changelog entry above) also affects this section --
 * `.tap-purchase-reassurance h2 { color: #fff !important }` has
 * specificity (0,1,1) and loses to the global blanket heading rule
 * `body.tap-redesign.tap-redesign.tap-redesign h2` (0,3,2), even
 * though both use !important. Rather than patch each dark section
 * individually again, this is the one shared class/token asked for:
 * `.tap-on-dark`, matching the global rule's specificity (repeated
 * class, same escalation technique, so it wins on source order) and
 * covering every heading level, links, and borders in one place. Apply
 * `.tap-on-dark` to any section with a dark background; every heading/
 * link/border inside it goes light automatically. Dark sections found
 * and fixed this item: trust/reassurance band (.tap-purchase-
 * reassurance), footer (.tap-site-footer). Announcement bar and sale
 * banner already set explicit light colours on their own text/link/
 * button elements directly (no headings inside either), so neither
 * needed this class. No other dark sections found this engagement.
 */
body .tap-on-dark.tap-on-dark.tap-on-dark h1,
body .tap-on-dark.tap-on-dark.tap-on-dark h2,
body .tap-on-dark.tap-on-dark.tap-on-dark h3,
body .tap-on-dark.tap-on-dark.tap-on-dark h4,
body .tap-on-dark.tap-on-dark.tap-on-dark h5,
body .tap-on-dark.tap-on-dark.tap-on-dark h6 {
  color: #fff !important;
}
body .tap-on-dark.tap-on-dark.tap-on-dark a:not(.tap-button) {
  color: var(--tap-blush) !important;
}
body .tap-on-dark.tap-on-dark.tap-on-dark a:not(.tap-button):hover,
body .tap-on-dark.tap-on-dark.tap-on-dark a:not(.tap-button):focus-visible {
  color: #fff !important;
}
body .tap-on-dark.tap-on-dark.tap-on-dark svg {
  color: var(--tap-blush) !important;
  border-color: rgba(255,255,255,.42) !important;
}
/* UAT-043: .tap-reassurance-icon's own svg needs a different, tailored
   treatment (rose stroke on a blush-light circle, not the generic
   dark-section "blush text" the rule above gives every other icon) --
   win back over it with equal specificity + source order. */
body .tap-on-dark.tap-on-dark.tap-on-dark .tap-reassurance-icon svg {
  color: var(--tap-rose) !important;
  border-color: transparent !important;
}

/* UAT-043 (Work Order 11, item 7b): was icon-left/text-right per
   article, inconsistent rhythm; rebuilt as icon/heading/text/link
   centered in a stack, equal columns, consistent spacing. */
.tap-purchase-reassurance { padding: clamp(40px, 5vw, 66px) 0; background: #1c1517; color: rgba(255,255,255,.75); }
.tap-purchase-reassurance__grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: clamp(24px,4vw,64px); }
.tap-purchase-reassurance article { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.tap-reassurance-icon { display: grid; width: 56px; height: 56px; flex: 0 0 auto; place-items: center; background: var(--tap-blush-light); border: 1.5px solid var(--tap-rose); border-radius: 50%; color: var(--tap-rose); }
.tap-reassurance-icon svg { width: 26px; height: 26px; }
.tap-purchase-reassurance h2 { margin: 6px 0 0; font-size: 16px; letter-spacing: -.02em; }
.tap-purchase-reassurance p { margin: 0; color: rgba(255,255,255,.68) !important; font-size: 14px; line-height: 1.55; }
.tap-purchase-reassurance a { margin-top: 2px; color: var(--tap-blush); font-size: 12px; font-weight: 900; text-decoration: none; }
.tap-purchase-reassurance a:hover { color: #fff; }
.tap-site-footer { margin-top: 0; padding: clamp(52px, 7vw, 90px) 0 22px; background: #240711; color: rgba(255,255,255,.82); }
.tap-site-footer__grid { display: grid; grid-template-columns: minmax(260px, 1.55fr) repeat(3, minmax(120px, .72fr)); gap: 40px; }
.tap-site-footer__brand { display: inline-block; margin-bottom: 14px; color: #fff; font-size: 31px; font-weight: 900; letter-spacing: -.06em; text-decoration: none; }
.tap-site-footer__brand em { color: var(--tap-blush); font-style: italic; }
body.tap-redesign .tap-site-footer__intro p { max-width: 310px; margin: 0 0 20px; color: rgba(255,255,255,.7); line-height: 1.6; }
.tap-site-footer__shop { color: var(--tap-blush); font-size: 13px; font-weight: 900; text-decoration: none; }
.tap-site-footer nav { display: grid; align-content: start; gap: 10px; }
/* FACELIFT Phase 5 -- real contrast bug found live (incidentally, while
   checking the newsletter field just added): computed colour was
   rgb(36,19,22) on a rgb(36,7,17) background -- effectively invisible
   (~1:1). Root cause: the global `body.tap-redesign.tap-redesign.tap-redesign
   h2 { color: var(--tap-espresso) !important; }` rule (specificity-escalation
   trick, used sitewide to beat Divi's own h2 colour) outranks this
   rule's lower specificity even with its own !important. Matched the
   same specificity-escalation technique here so the footer's (dark
   background) h2 colour actually wins. */
/* FACELIFT Work Order 3, item A2 -- the ad hoc fix here is now
   consolidated into the shared .tap-on-dark utility (added to the
   <footer> element itself in functions.php); color comes from there. */
.tap-site-footer h2 { margin: 0 0 8px; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.tap-site-footer nav a { color: rgba(255,255,255,.7); font-size: 14px; text-decoration: none; }
.tap-site-footer nav a:hover, .tap-site-footer__shop:hover { color: #fff; }
.tap-site-footer__newsletter { margin-top: 22px; }
.tap-site-footer__newsletter label { display: block; margin-bottom: 8px; color: #fff; font-size: 13px; font-weight: 800; }
.tap-site-footer__newsletter-row { display: flex; gap: 8px; max-width: 360px; }
.tap-site-footer__newsletter-row input { flex: 1 1 auto; min-width: 0; min-height: 44px; padding: 0 14px; border: 1px solid rgba(255,255,255,.3); border-radius: 9px; background: rgba(255,255,255,.08); color: #fff; font: inherit; font-size: 14px; }
.tap-site-footer__newsletter-row input::placeholder { color: rgba(255,255,255,.55); }
.tap-site-footer__newsletter-row .tap-btn-secondary { flex: 0 0 auto; min-height: 44px; border-color: rgba(255,255,255,.4); color: #fff; }
.tap-site-footer__newsletter-note { margin: 8px 0 0; color: rgba(255,255,255,.55); font-size: 12px; }
.tap-site-footer__payments { margin-top: 26px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.14); color: rgba(255,255,255,.65); font-size: 13px; }
.tap-site-footer__payments span { margin-right: 6px; color: #fff; font-weight: 800; }
.tap-site-footer__bottom { display: flex; justify-content: space-between; gap: 20px; margin-top: 20px; padding-top: 0; border-top: 0; color: rgba(255,255,255,.52); font-size: 12px; }

/* WooCommerce's Store Notice is fixed to the viewport bottom and covers
   the footer's last row otherwise. See the v1.3.12 changelog note above
   for the measured heights and the dismiss-state caveat. */
body.woocommerce-demo-store .tap-site-footer {
  padding-bottom: 80px;
}
@media (max-width: 480px) {
  body.woocommerce-demo-store .tap-site-footer {
    padding-bottom: 110px;
  }
}

/* UAT-054 (WO-14 §45) -- bottom-anchored third-party widget offset.
   REPLACES four earlier rules (a flat 20px reservation, a
   single-product variant, and two hardcoded 96px/126px demo-store
   variants) that competed with each other: the demo-store rule came
   last with equal specificity, so on a product page the computed
   offset was 126px when the correct value was 167px.

   What those rules could never do, and this one cannot either:
   move Tawk's launcher. Measured on staging at 390 on
   /product/aneros-eupho-syn-trident/ (scripts/tawk-overlap-probe.js):
   the launcher is `#min-widget iframe` and Tawk sets both `bottom` and
   `transform` on it as inline declarations with !important priority,
   which beats any author rule. The selector was never the problem --
   the sibling `#message-preview` iframe, which Tawk leaves without an
   inline bottom, took the old rule's 126px happily. The launcher is
   therefore handled by Tawk's own hideWidget()/showWidget() API from
   WPCode snippet #12832, driven by the `tap:sticky-atc` event
   tap-ui.js dispatches.

   This rule stays for every OTHER bottom-anchored widget that is
   movable, and it now composes both measured heights instead of
   guessing, so it is right whether the store notice is on, off, or
   dismissed mid-session. */
/* UAT-054, the instant half of the fix: hide Tawk's launcher CONTAINER
   while the sticky bar is on screen at mobile widths. The iframe inside
   it cannot be touched (inline !important), but `#min-widget` itself is
   a plain div Tawk leaves unstyled, so this takes effect at first paint
   instead of waiting the measured 2-4s for Tawk's API to exist. The
   snippet's hideWidget() call still runs and remains authoritative. */
@media (max-width: 980px) {
  body.single-product.tap-atc-visible #min-widget {
    display: none !important;
  }
}
#tawkchat-container, .tawk-min-container, iframe[title*="chat" i] {
  bottom: calc(
    max(20px, env(safe-area-inset-bottom, 0px))
    + var(--tap-sticky-atc-height, 0px)
    + var(--tap-store-notice-height, 0px)
  ) !important;
}

@media (max-width: 980px) {
  .tap-main-header__inner { grid-template-columns: auto 1fr auto; min-height: 72px; gap: 18px; }
  .tap-header-search { display: none; }
  .tap-menu-toggle { display: grid; place-items: center; padding: 5px; }
  .tap-menu-toggle span { position: absolute; overflow: hidden; width: 1px; height: 1px; clip: rect(0,0,0,0); }
  .tap-main-nav { display: none; position: absolute; top: 100%; right: 0; left: 0; padding: 12px 0 20px; border-bottom: 1px solid var(--tap-border); box-shadow: var(--tap-shadow-card); }
  .tap-main-nav.is-open { display: block; }
  .tap-main-nav__inner { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 0; gap: 0; }
  .tap-main-nav a { padding: 13px 3px; border-bottom: 1px solid rgba(110,15,47,.08); }
  .tap-site-strip__inner { justify-content: center; min-height: 32px; font-size: 10px; }
  .tap-site-strip__inner span:first-child,
  .tap-site-strip__inner span:last-child { display: none; }
  .tap-site-footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tap-site-footer__intro { grid-column: 1 / -1; }
  .tap-purchase-reassurance__grid { grid-template-columns: 1fr; gap: 32px; justify-items: center; }
}

@media (max-width: 600px) {
  .tap-main-header__inner { grid-template-columns: 1fr auto; min-height: 66px; }
  .tap-wordmark { font-size: 24px; }
  .tap-header-actions > a:not(.tap-header-cart) { display: none; }
  .tap-header-cart { min-height: 36px; padding: 0 11px; }
  .tap-main-nav__inner { grid-template-columns: 1fr; }
  .tap-site-strip__inner { padding: .45rem 1rem; }
  .tap-site-footer__grid { grid-template-columns: 1fr; gap: 2rem; }
  .tap-site-footer__intro { grid-column: auto; }
  .tap-site-footer__bottom { display: grid; margin-top: 32px; }
}

.tap-header-shell {
  background: rgba(255,255,255,0.92);
  border-bottom: 1px solid rgba(110, 15, 47, 0.08);
  backdrop-filter: blur(12px);
}

.tap-footer-shell {
  background: linear-gradient(180deg, #fff7f2, #ffffff);
  border-top: 1px solid rgba(110, 15, 47, 0.10);
}

/* =========================================================
   5. Hero Foundation
   Add tap-hero-section to a Divi Section.
========================================================= */

.tap-hero-section {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(247, 200, 196, 0.55), transparent 36%),
    linear-gradient(135deg, #fff7f2 0%, #ffffff 46%, #fce6e3 100%);
}

.tap-hero-section h1 {
  max-width: 720px;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.96;
  letter-spacing: -0.055em;
}

.tap-hero-section em {
  color: var(--tap-rose);
  font-style: italic;
}

/* =========================================================
   6. Icons
========================================================= */

.tap-icon {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  border: 2px solid var(--tap-rose);
  border-radius: 999px;
  color: var(--tap-rose);
  font-size: 0;
  line-height: 1;
  position: relative;
  flex: 0 0 auto;
}

.tap-icon::before {
  font-size: 24px;
  line-height: 1;
}

.tap-icon-package::before { content: "📦"; }
.tap-icon-card::before { content: "💳"; }
.tap-icon-shield::before { content: "🛡️"; }
.tap-icon-heart::before { content: "♡"; }

/* =========================================================
   7. Trust Strip
========================================================= */

.tap-trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  width: min(var(--tap-container), calc(100% - 40px));
  margin: 0 auto;
  padding: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-lg);
  box-shadow: var(--tap-shadow-soft);
  backdrop-filter: blur(14px);
}

.tap-trust-item {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 16px;
  align-items: center;
  padding: 8px 24px;
  border-right: 1px solid rgba(110, 15, 47, 0.12);
}

.tap-trust-item:last-child {
  border-right: 0;
}

.tap-trust-copy h3 {
  margin: 0 0 4px;
  padding: 0;
  color: var(--tap-wine);
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.tap-trust-copy p {
  margin: 0;
  padding: 0;
  color: var(--tap-espresso);
  font-size: 13px;
  line-height: 1.45;
}

/* =========================================================
   8. Comfort Grid
========================================================= */

.tap-comfort-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  width: min(var(--tap-container), calc(100% - 40px));
  margin: 0 auto;
}

.tap-comfort-card {
  display: flex;
  min-height: 280px;
  flex-direction: column;
  justify-content: flex-end;
  gap: 8px;
  padding: 26px;
  overflow: hidden;
  position: relative;
  isolation: isolate;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: var(--tap-radius-md);
  background: linear-gradient(155deg, rgba(255,255,255,0.15), rgba(255,255,255,0.045));
  box-shadow: none;
  color: #ffffff;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tap-comfort-card:hover {
  transform: translateY(-5px);
  border-color: var(--tap-blush);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
}

.tap-comfort-card-number {
  position: absolute;
  top: 20px;
  right: 22px;
  color: var(--tap-blush);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}

.tap-comfort-card-media {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.18;
}

.tap-comfort-card-one .tap-comfort-card-media {
  background: radial-gradient(circle at 15% 10%, rgba(247,200,196,.86), transparent 45%);
}

.tap-comfort-card-two .tap-comfort-card-media {
  background: radial-gradient(circle at 50% 0%, rgba(216,23,92,.62), transparent 52%);
}

.tap-comfort-card-three .tap-comfort-card-media {
  background: radial-gradient(circle at 88% 6%, rgba(247,200,196,.58), transparent 48%);
}

.tap-comfort-card-four .tap-comfort-card-media {
  background: radial-gradient(circle at 58% 20%, #241316, transparent 25%);
}

.tap-comfort-card-five .tap-comfort-card-media {
  background: radial-gradient(circle at 58% 20%, #a66a76, transparent 25%);
}

.tap-comfort-card-six .tap-comfort-card-media {
  background: radial-gradient(circle at 58% 20%, #d8175c, transparent 25%);
}

.tap-comfort-card-title {
  display: block;
  color: #ffffff !important;
  font-size: 22px;
  font-weight: 900;
}

.tap-comfort-card-copy {
  display: block;
  color: rgba(255,255,255,.86) !important;
  font-size: 14px;
  line-height: 1.55;
}

/* =========================================================
   9. Category Grid
========================================================= */

.tap-category-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 22px;
  width: min(var(--tap-container), calc(100% - 40px));
  margin: 0 auto;
}

.tap-category-card {
  display: grid;
  gap: 10px;
  min-height: 220px;
  align-content: end;
  padding: 28px;
  border: 1px solid rgba(110, 15, 47, 0.10);
  border-radius: var(--tap-radius-lg);
  background:
    linear-gradient(145deg, rgba(255,255,255,0.9), rgba(253,230,227,0.74)),
    radial-gradient(circle at top right, rgba(216,23,92,0.14), transparent 36%);
  box-shadow: var(--tap-shadow-card);
  color: var(--tap-espresso);
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.tap-category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 42px rgba(80, 25, 45, 0.14);
}

.tap-category-card-kicker {
  color: var(--tap-rose);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tap-category-card strong {
  color: var(--tap-espresso);
  font-size: 22px;
  line-height: 1.05;
}

.tap-category-card span:last-child {
  font-size: 14px;
  line-height: 1.45;
}

/* =========================================================
   10. Quiz CTA
========================================================= */

/* FACELIFT Phase 7 -- simplified to the copy deck's actual Find Your
   Fit band content: a heading and one button, no second column (the
   previous .tap-quiz-points column was invented, non-copy-deck
   supporting copy, removed). Single-column, centred. */
.tap-quiz-cta {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 16px;
  width: min(var(--tap-container), calc(100% - 40px));
  margin: 0 auto;
  padding: clamp(28px, 5vw, 52px);
  border-radius: var(--tap-radius-lg);
  background:
    linear-gradient(135deg, rgba(247,200,196,0.8), rgba(255,255,255,0.86)),
    radial-gradient(circle at left, rgba(216,23,92,0.16), transparent 36%);
  box-shadow: var(--tap-shadow-soft);
}

.tap-quiz-content h2 {
  margin: 0 0 12px;
  padding: 0;
  max-width: 44ch;
  color: var(--tap-espresso);
  font-size: clamp(26px, 3.4vw, 40px);
  line-height: 1.1;
}

.tap-quiz-content > .tap-button {
  margin-top: 4px;
}

/* =========================================================
   11. WooCommerce Foundation
========================================================= */

body.tap-redesign.woocommerce ul.products,
body.tap-redesign .woocommerce ul.products {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
  margin: 0 !important;
}

body.tap-redesign.woocommerce ul.products li.product,
body.tap-redesign .woocommerce ul.products li.product {
  position: relative;
  overflow: hidden;
  float: none !important;
  width: auto !important;
  margin: 0 !important;
  padding: 18px !important;
  border: 1px solid rgba(110, 15, 47, 0.08);
  border-radius: var(--tap-radius-md);
  background: var(--tap-white);
  box-shadow: var(--tap-shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

body.tap-redesign.woocommerce ul.products li.product.outofstock,
body.tap-redesign .woocommerce ul.products li.product.outofstock {
  display: flex !important;
  flex-direction: column;
  visibility: visible !important;
  opacity: 1 !important;
}

/* Out-of-stock badge is rendered as real markup by tease-play-product-grid
   (.tp-product-badge--out-of-stock). A CSS ::before duplicate used to render
   here too, overlapping it; removed so there is one authoritative badge. */

body.tap-redesign.woocommerce ul.products li.product .woocommerce-LoopProduct-link,
body.tap-redesign .woocommerce ul.products li.product .woocommerce-LoopProduct-link { display: block; }

body.tap-redesign.woocommerce ul.products li.product .tp-loop-actions,
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions { margin-top: auto; }

body.tap-redesign.woocommerce ul.products li.product:hover,
body.tap-redesign .woocommerce ul.products li.product:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 42px rgba(80, 25, 45, 0.14);
}

body.tap-redesign.woocommerce ul.products li.product img,
body.tap-redesign .woocommerce ul.products li.product img {
  border-radius: calc(var(--tap-radius-md) - 6px);
}

/* FACELIFT Phase 2b, item 1b -- the brand label (.tap-card-brand) is
   only rendered when a product has a product_brand term, so the DOM
   child count/order inside a.woocommerce-LoopProduct-link is NOT
   consistent across cards. Explicit grid-row placement on img/title (
   instead of relying on CSS Grid's default auto-placement-by-source-
   order) keeps the title in its own reserved row regardless of whether
   the brand row's content exists, so equal card heights (fixed this
   same phase, see the CARD-HEIGHT-001 comment below) are not broken by
   an absent brand. */
body.tap-redesign.woocommerce ul.products li.product .woocommerce-LoopProduct-link img,
body.tap-redesign .woocommerce ul.products li.product .woocommerce-LoopProduct-link img {
  grid-row: 1;
}
body.tap-redesign.woocommerce ul.products li.product .tap-card-brand,
body.tap-redesign .woocommerce ul.products li.product .tap-card-brand {
  display: block;
  grid-row: 2;
  overflow: hidden;
  height: 1.1em;
  color: var(--tap-muted);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .02em;
  line-height: 1.1;
  text-transform: uppercase;
}
body.tap-redesign.woocommerce ul.products li.product .woocommerce-loop-product__title,
body.tap-redesign .woocommerce ul.products li.product .woocommerce-loop-product__title {
  display: -webkit-box;
  grid-row: 3;
  overflow: hidden;
  /* UAT-036: a fixed height exactly equal to line-height x 2 left no
     room for descenders (g/y/p/j/q) on the second line, which run
     below the text baseline -- the hard `height` clipped them even
     though -webkit-line-clamp alone already truncates correctly at 2
     lines. Loosened both line-height and height to give descenders
     room, rather than relying on an exact-fit box. */
  height: 2.9em;
  margin: 0 !important;
  color: var(--tap-espresso);
  font-size: 15px !important;
  font-weight: 800;
  line-height: 1.35;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

/* FACELIFT PHASE 1 -- contrast fix (DESIGN-AUDIT-001), corrected after
   re-verification, then corrected AGAIN in Phase 2 (item 3 re-audit).
   The title text itself (<h2 class="woocommerce-loop-product__title">)
   is NOT wrapped in its own <a> -- live DOM inspection confirms it has
   no anchor child at all, and the rule above already colours it
   directly (confirmed ink, not red). The <h2> is itself a child of the
   one big card-wrapping link (`a.woocommerce-LoopProduct-link`,
   covering image + title + price).

   Phase 1 believed the rule below (without !important) already fixed
   the link's own colour for every OTHER bit of content inside it
   (whitespace, hover/focus state). Phase 2's live getComputedStyle
   check proved that wrong: both the resting AND focus-visible colour
   still measured rgb(231,98,95) (3.33:1 against white -- failing both
   the 4.5:1 text and effectively this component's own accent-only
   intent), because Divi's global dynamic CSS sets colour via
   `.et-db #et-boc .et-l a` -- an ID-anchored selector (specificity
   1,2,1) that beats this rule's class-only specificity (0,2,1)
   regardless of source order. Confirmed directly: a live scan of every
   stylesheet rule matching the focused link, with computed specificity,
   found exactly this selector outranking the one below. `!important`
   added to both states to win regardless, matching the established
   precedent elsewhere in this file for beating the same Divi selector
   (see the `.et-menu-nav` and `.sub-menu` hover rules). Re-verified
   live after deploy: resting colour rgb(36,19,22) (--tap-espresso,
   11.85:1 against white), focus-visible colour rgb(110,15,47)
   (--tap-wine, 11.85:1 against white) -- both measured via Tab-driven
   keyboard focus (document.activeElement.matches(':focus-visible')
   confirmed true, not a simulated/programmatic .focus() call). */
/* FACELIFT Phase 2b, item 1c -- hover/focus must be legible without
   colour vision: underline added alongside the colour change (the
   existing focus-visible outline, 3px solid --tap-rose-dark, already
   gives a second non-colour focus cue; this adds one for :hover too,
   which has no outline). text-decoration-thickness/offset keep the
   underline from crowding the small 15px title text. */
body.tap-redesign a.woocommerce-LoopProduct-link {
  color: var(--tap-espresso) !important;
  text-decoration: none !important;
}
body.tap-redesign a.woocommerce-LoopProduct-link:hover,
body.tap-redesign a.woocommerce-LoopProduct-link:focus-visible {
  color: var(--tap-wine) !important;
  text-decoration: underline !important;
  text-decoration-thickness: 1.5px !important;
  text-underline-offset: 3px !important;
}

body.tap-redesign.woocommerce ul.products li.product .price,
body.tap-redesign .woocommerce ul.products li.product .price {
  color: var(--tap-wine) !important;
  font-size: 15px !important;
  font-weight: 900 !important;
}

body.tap-redesign.woocommerce span.onsale,
body.tap-redesign .woocommerce span.onsale {
  min-height: auto;
  min-width: auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: var(--tap-rose);
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  text-transform: uppercase;
}

body.tap-redesign .woocommerce a.button,
body.tap-redesign .woocommerce button.button,
body.tap-redesign .woocommerce input.button,
body.tap-redesign .woocommerce #respond input#submit,
body.tap-redesign.woocommerce a.button,
body.tap-redesign.woocommerce button.button,
body.tap-redesign.woocommerce input.button,
body.tap-redesign.woocommerce #respond input#submit {
  border-radius: 9px !important;
  background: var(--tap-rose) !important;
  color: #ffffff !important;
  font-weight: 900 !important;
  text-transform: uppercase;
}

body.tap-redesign .woocommerce form .form-row input.input-text,
body.tap-redesign .woocommerce form .form-row textarea,
body.tap-redesign .woocommerce form .form-row select,
body.tap-redesign .select2-container--default .select2-selection--single {
  min-height: 48px;
  border: 1px solid var(--tap-border) !important;
  border-radius: 10px !important;
  background: #ffffff !important;
  color: var(--tap-espresso) !important;
  padding: 12px 14px !important;
}

body.tap-redesign .woocommerce form .form-row label {
  color: var(--tap-espresso);
  font-weight: 800;
}

body.tap-redesign .woocommerce-message,
body.tap-redesign .woocommerce-info,
body.tap-redesign .woocommerce-error {
  border-radius: 14px;
  border-top: 0;
  background: #ffffff;
  box-shadow: var(--tap-shadow-card);
}

/* UAT-053 (WO-14 §45) -- the add-to-cart notice, compact.
   Keyed to `.tap-added-check`, the marker the wc_add_to_cart_message_html
   filter emits, so this can only ever match the added-to-cart message.
   Errors, out-of-stock, coupon and login notices are untouched.
   Contrast: #241316 on #fde6e3 is 14.8:1, and the rose link
   #a80f44 on #fde6e3 is 6.5:1 -- both pass AA. */
body.tap-redesign .woocommerce-message:has(.tap-added-check) {
  display: flex !important;
  align-items: center;
  gap: 10px;
  min-height: 0 !important;
  margin: 0 0 16px !important;
  padding: 6px 10px 6px 14px !important;
  border: 1px solid var(--tap-blush) !important;
  border-radius: 12px !important;
  background: var(--tap-blush-light) !important;
  box-shadow: none !important;
  color: var(--tap-espresso) !important;
  font-size: 15px !important;
  font-weight: 700;
  line-height: 1.3 !important;
}
/* WooCommerce's own stylesheet puts a ::before tick in the padding
   box; this layout supplies its own, so suppress that one rather than
   leave two. */
body.tap-redesign .woocommerce-message:has(.tap-added-check)::before {
  content: none !important;
}
.tap-added-check {
  flex: 0 0 20px;
  display: grid;
  width: 20px;
  height: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--tap-rose);
}
.tap-added-check::after {
  content: '';
  width: 9px;
  height: 5px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: translateY(-1px) rotate(-45deg);
}
.tap-added-text { flex: 1 1 auto; min-width: 0; }
body.tap-redesign .woocommerce-message .tap-added-link {
  flex: 0 0 auto;
  display: inline-flex !important;
  min-height: 44px !important;
  align-items: center;
  padding: 0 14px !important;
  border: 1px solid var(--tap-rose) !important;
  border-radius: 999px !important;
  background: #fff !important;
  color: var(--tap-rose-dark) !important;
  font-size: 14px !important;
  font-weight: 800;
  line-height: 1 !important;
  text-decoration: none;
}
body.tap-redesign .woocommerce-message .tap-added-link:hover,
body.tap-redesign .woocommerce-message .tap-added-link:focus-visible {
  background: var(--tap-rose) !important;
  color: #fff !important;
}
@media (max-width: 480px) {
  body.tap-redesign .woocommerce-message:has(.tap-added-check) {
    /* 44px link + 5px + 5px + 2px border = 56px, the spec's ceiling. */
    padding: 5px 8px 5px 12px !important;
    font-size: 14px !important;
  }
}

body.tap-redesign .woocommerce-cart-form,
body.tap-redesign .cart_totals,
body.tap-redesign #customer_details,
body.tap-redesign #order_review,
body.tap-redesign .woocommerce-MyAccount-navigation,
body.tap-redesign .woocommerce-MyAccount-content {
  border: 1px solid rgba(110, 15, 47, 0.10);
  border-radius: var(--tap-radius-md);
  background: #ffffff;
  box-shadow: var(--tap-shadow-card);
  padding: clamp(18px, 3vw, 30px);
}

/* Store archive: keep browsing broad, readable, and visibly separate from the homepage. */
body.tap-redesign.woocommerce.archive .woocommerce-products-header,
body.tap-redesign .woocommerce .woocommerce-products-header {
  margin: 0 0 26px;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-lg);
  background: linear-gradient(118deg, var(--tap-blush-light), #fff 64%);
}

body.tap-redesign .woocommerce-products-header .page-title {
  margin: 0;
  color: var(--tap-wine);
  font-size: clamp(34px, 4vw, 54px);
  letter-spacing: -.045em;
}

body.tap-redesign .woocommerce .term-description {
  max-width: 680px;
  margin-top: 12px;
  color: var(--tap-muted);
}

body.tap-redesign .woocommerce .woocommerce-result-count,
body.tap-redesign .woocommerce .woocommerce-ordering {
  margin: 0 0 24px;
}

body.tap-redesign .woocommerce .woocommerce-ordering select {
  min-height: 44px;
  padding: 0 36px 0 13px;
  border: 1px solid var(--tap-border);
  border-radius: 9px;
  background: #fff;
  color: var(--tap-espresso);
  font-weight: 700;
}

/* Product pages: establish a consistent purchase hierarchy across the full catalogue.
   FACELIFT Phase 3 -- fixed a real dead-selector/wrong-target pair found
   live: WooCommerce's own content-single-product.php wraps the gallery
   and summary in an extra <div class="clearfix"> (div.product's actual
   direct children are .clearfix, .woocommerce-tabs, .related -- NOT
   .images/.summary directly), so a grid declared on div.product itself
   had no effect on their layout: confirmed via live DOM/computed-style
   inspection that images/summary were stacking (summary's rect.top ==
   images' rect.bottom) at 1024px and 1440px despite div.product
   correctly computing display:grid with 2 columns. The grid now targets
   the real direct-children wrapper. Also: `div.images` does not exist
   in current WooCommerce output at all (gallery wrapper is
   `.woocommerce-product-gallery`) -- a dead selector, fixed everywhere
   it appeared in this file (3 places). */
body.tap-redesign.single-product div.product {
  max-width: var(--tap-container);
  margin: 48px auto 84px;
  padding: 0 20px;
}

body.tap-redesign.single-product div.product > .clearfix {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(340px, .75fr);
  column-gap: clamp(32px, 6vw, 82px);
}

body.tap-redesign.single-product div.product .woocommerce-product-gallery,
body.tap-redesign.single-product div.product div.summary {
  float: none !important;
  width: auto !important;
  margin: 0 !important;
}

body.tap-redesign.single-product .woocommerce-product-gallery__wrapper {
  overflow: hidden;
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-lg);
  background: #fff;
}

body.tap-redesign.single-product .woocommerce-product-gallery__image img {
  aspect-ratio: 1 / 1;
  object-fit: contain;
  padding: clamp(16px, 3vw, 34px);
}

body.tap-redesign.single-product div.product .summary {
  align-self: start;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-lg);
  background: #fff;
  box-shadow: var(--tap-shadow-card);
}

body.tap-redesign.single-product div.product .product_title {
  margin: 0 0 14px;
  color: var(--tap-espresso);
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1;
}

body.tap-redesign.single-product div.product p.price,
body.tap-redesign.single-product div.product span.price {
  color: var(--tap-wine);
  font-size: 23px;
  font-weight: 900;
}

body.tap-redesign.single-product div.product .woocommerce-product-details__short-description {
  color: var(--tap-muted);
  line-height: 1.65;
}

body.tap-redesign.single-product div.product form.cart {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 28px 0 22px;
  padding: 22px 0;
  border-top: 1px solid var(--tap-border);
  border-bottom: 1px solid var(--tap-border);
}

body.tap-redesign.single-product div.product .quantity .qty {
  min-height: 50px;
  width: 74px;
  background: #fff;
  border: 1px solid var(--tap-input-border);
  border-radius: 9px;
  color: var(--tap-espresso);
}

/* WooCommerce's variation table is real table cells (<th>/<td>), not
   stacked blocks -- the Color label and the select drift apart under the
   browser's default baseline vertical-align.
   Work Order 12, item 1: changed from middle to top -- with the
   swatch/chip UI (tap-variations.js), the <td>'s content can wrap to
   several rows (e.g. 3+ color swatches at a narrow width), and
   vertical-align:middle then centers the short "Color" <th> label
   partway down that taller cell -- confirmed live, it visually landed
   between two rows of wrapped swatches. top keeps the label aligned
   with the first row regardless of how many rows the swatches wrap
   to, and looks identical to middle for the old single-line <select>
   case (nothing to center against a one-line-tall cell). */
body.tap-redesign.single-product div.product table.variations th,
body.tap-redesign.single-product div.product table.variations td {
  vertical-align: top;
  padding: 6px 10px 6px 0;
}
body.tap-redesign.single-product div.product table.variations th.label label {
  margin: 0;
  line-height: 1.4;
}

/* A long selected variation value (e.g. a longer colour/size name) was
   hard-clipped mid-character with no ellipsis -- truncate gracefully and
   keep the native dropdown arrow clear of the text. */
body.tap-redesign.single-product div.product table.variations select {
  max-width: 100%;
  padding-right: 32px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body.tap-redesign.single-product div.product form.cart .single_add_to_cart_button {
  min-height: 50px;
  flex: 1;
  padding: 0 22px !important;
}

body.tap-redesign.single-product div.product .product_meta {
  display: grid;
  gap: 7px;
  color: var(--tap-muted);
  font-size: 13px;
}

body.tap-redesign.single-product div.product .product_meta a { color: var(--tap-wine); font-weight: 750; }

body.tap-redesign.single-product div.product .woocommerce-tabs,
body.tap-redesign.single-product div.product .related,
body.tap-redesign.single-product div.product .upsells { grid-column: 1 / -1; }
body.tap-redesign.single-product div.product .woocommerce-tabs { margin-top: 62px; }
body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs { display: flex; gap: 10px; padding: 0; border: 0; }
body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs::before { display: none; }
body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs li { margin: 0; border: 1px solid var(--tap-border); border-radius: 999px; background: #fff; }
body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs li::before,
body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs li::after { display: none; }
body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs li a { color: var(--tap-espresso); font-weight: 800; }
body.tap-redesign.single-product div.product .woocommerce-tabs .panel { padding: 26px; border: 1px solid var(--tap-border); border-radius: var(--tap-radius-md); background: #fff; line-height: 1.7; }
body.tap-redesign.single-product div.product .related { margin-top: 62px; }
body.tap-redesign.single-product div.product .related ul.products { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }

/* Product templates should sell one product, not inherit the shop filter rail. */
body.tap-redesign.single-product #sidebar,
body.tap-redesign.single-product [class*="et_pb_sidebar_"],
body.tap-redesign.single-product .widget_tp_shop_helper,
body.tap-redesign.single-product .widget_product_search,
body.tap-redesign.single-product .widget_product_categories { display: none !important; }
body.tap-redesign.single-product #main-content .container { width: min(1380px, calc(100% - 48px)) !important; max-width: 1380px !important; }
body.tap-redesign.single-product #main-content .container::before { display: none !important; }
body.tap-redesign.single-product #left-area { float: none !important; width: 100% !important; padding-right: 0 !important; }
/* Base rule (unscoped) covers non-WooCommerce archive-style pages too,
   e.g. the custom /brands/ index template, which reuses this same class
   for visual consistency with the real WooCommerce breadcrumb. */
body.tap-redesign .woocommerce-breadcrumb {
  display: block !important;
  margin: 0 0 14px !important;
  color: var(--tap-muted);
  font-size: 13px;
}
body.tap-redesign .woocommerce-breadcrumb a {
  color: var(--tap-wine);
  font-weight: 750;
  text-decoration: none;
}
body.tap-redesign .woocommerce-breadcrumb a:hover {
  text-decoration: underline;
}
/* FACELIFT Phase 3 -- a third, previously-missed instance of the same
   wrong-target bug: this !important, #left-area-scoped rule declared
   grid-template-columns on div.product itself, which (same as the
   other two instances fixed earlier in this version) has no effect
   since div.product's actual grid-laid-out child is .clearfix, not
   div.product. Found while verifying v1.3.21 at 1024px: the clearfix
   measured only 489.75px wide against a 931px div.product (roughly
   half), because this rule's grid-template-columns was simply inert
   and some other, unrelated width rule was quietly governing instead.
   Retargeted to div.product > .clearfix, consistent with every other
   fix in this version. */
body.tap-redesign.single-product #left-area div.product {
  width: 100% !important;
  margin: 0 0 72px !important;
  padding: 0 !important;
}
body.tap-redesign.single-product #left-area div.product > .clearfix {
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, .82fr) !important;
  column-gap: clamp(42px, 6vw, 92px) !important;
  row-gap: 0 !important;
}
body.tap-redesign.single-product #left-area div.product .woocommerce-product-gallery { position: sticky; top: 26px; align-self: start; }
body.tap-redesign.single-product #left-area div.product .summary {
  padding: clamp(28px, 4vw, 46px) !important;
  border: 1px solid var(--tap-border) !important;
  border-radius: 22px !important;
  background: linear-gradient(145deg, #fff, var(--tap-blush-light)) !important;
  box-shadow: 0 18px 52px rgba(80, 25, 45, .10) !important;
}
body.tap-redesign.single-product #left-area div.product .product_title { font-size: clamp(34px, 3.3vw, 52px) !important; letter-spacing: -.045em; line-height: .98 !important; }
body.tap-redesign.single-product #left-area div.product .woocommerce-product-details__short-description { margin: 22px 0 26px !important; color: var(--tap-espresso) !important; font-size: 16px; line-height: 1.65; }
body.tap-redesign.single-product #left-area div.product form.cart { margin: 0 0 24px !important; padding: 22px 0 !important; }
body.tap-redesign.single-product #left-area div.product .single_add_to_cart_button { min-height: 56px !important; font-size: 16px !important; }
body.tap-redesign.single-product #left-area div.product .product_meta { margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--tap-border); }
body.tap-redesign.single-product .tap-product-assurance { display: grid; gap: 13px; margin: 26px 0 0; padding: 20px; border: 1px solid var(--tap-border); border-radius: 16px; background: rgba(255,255,255,.72); }
body.tap-redesign.single-product .tap-product-assurance > div { display: grid; gap: 3px; padding-left: 18px; border-left: 2px solid var(--tap-pink); }
body.tap-redesign.single-product .tap-product-assurance strong { color: var(--tap-espresso); font-size: 13px; }
body.tap-redesign.single-product .tap-product-assurance span { color: var(--tap-muted); font-size: 12px; line-height: 1.4; }
body.tap-redesign.single-product #left-area div.product .woocommerce-tabs { margin-top: 72px !important; max-width: 980px; }
body.tap-redesign.single-product #left-area div.product .related { margin-top: 72px !important; }
body.tap-redesign.single-product #left-area div.product .related > h2 { margin-bottom: 26px; color: var(--tap-espresso); font-size: clamp(28px, 3vw, 40px); letter-spacing: -.04em; }
body.tap-redesign.single-product #left-area div.product .related ul.products { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; gap: 22px !important; }
@media (max-width: 980px) {
  body.tap-redesign.single-product #left-area div.product .related ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
}
/* FACELIFT Phase 3 -- stacking threshold moved from 767px to 1023px to
   match the brief's explicit "gallery left/details right at 1024+;
   stacked below" spec. Measured defect at 768px before this change:
   the old 980px tier's minmax(320px, .8fr) summary column left only
   20px for the gallery column (confirmed via computed
   grid-template-columns: "20px 320px" at a 370px-wide clearfix) --
   this narrow 2-column squeeze was previously undetectable because the
   grid itself was dead code (see the div.product > .clearfix fix
   above), so it had never actually rendered before. Removed the
   980px-tier 2-column override entirely rather than retune its numbers,
   since the brief does not want a cramped 2-column tablet layout at
   all in this range -- it wants single-column until 1024px. */
@media (max-width: 1023px) {
  body.tap-redesign.single-product #main-content .container { width: min(100% - 28px, 640px) !important; }
  body.tap-redesign.single-product #left-area div.product { margin-bottom: 48px !important; }
  body.tap-redesign.single-product #left-area div.product > .clearfix { display: block !important; }
  body.tap-redesign.single-product #left-area div.product .woocommerce-product-gallery { position: static; }
  body.tap-redesign.single-product #left-area div.product .summary { margin-top: 20px !important; padding: 26px !important; }
  body.tap-redesign.single-product #left-area div.product .related ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; }
}

/* Cart, account, and checkout retain WooCommerce behaviour while gaining a coherent form system. */
body.tap-redesign.woocommerce-cart .woocommerce,
body.tap-redesign.woocommerce-checkout .woocommerce,
body.tap-redesign.woocommerce-account .woocommerce { width: min(var(--tap-container), calc(100% - 40px)); margin: 48px auto 84px; }
body.tap-redesign form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(320px, .72fr); gap: 28px; }
body.tap-redesign form.checkout #customer_details { grid-column: 1; }
body.tap-redesign form.checkout #order_review_heading { grid-column: 2; margin: 0; align-self: end; }
body.tap-redesign form.checkout #order_review { grid-column: 2; grid-row: 2; }
body.tap-redesign .woocommerce-checkout-review-order-table { border: 0 !important; }
body.tap-redesign .woocommerce-checkout-review-order-table th,
body.tap-redesign .woocommerce-checkout-review-order-table td { padding: 12px 0 !important; border-color: var(--tap-border) !important; }
body.tap-redesign .woocommerce-checkout #payment { border-radius: 12px; background: var(--tap-soft-cream); }
body.tap-redesign .woocommerce-checkout #payment div.payment_box { background: #fff; color: var(--tap-espresso); }
body.tap-redesign .woocommerce-checkout #payment div.payment_box::before { border-bottom-color: #fff; }
body.tap-redesign .woocommerce-account .woocommerce-MyAccount-navigation ul { display: grid; gap: 5px; padding: 0; list-style: none; }
body.tap-redesign .woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 12px; border-radius: 8px; color: var(--tap-espresso); font-weight: 800; text-decoration: none; }
body.tap-redesign .woocommerce-account .woocommerce-MyAccount-navigation .is-active a,
body.tap-redesign .woocommerce-account .woocommerce-MyAccount-navigation a:hover { background: var(--tap-blush-light); color: var(--tap-wine); }

/* Cart drawer inherits the storefront system without changing its server behaviour. */

/* ---- Floating cart button (FAB), v1.4.17, NEXT.md 55 -----------------
   Default stays hidden, so mobile and tablet are unchanged: below
   1024px the header bag icon and the sticky add-to-cart bar are the
   cart affordances, and a FAB there would compete with that bar.
   Shown from 1024px up, which is exactly where .tap-sticky-atc turns
   itself off. Tawk is bottom-LEFT at these widths (measured; see the
   change log), so the plugin's own bottom-right placement is already
   clear of it -- these two custom properties are the only values to
   change if that ever stops being true. */
.tp-side-cart-fab { display: none !important; }

@media (min-width: 1024px) {
  body.tap-redesign .tp-side-cart-fab {
    --tap-fab-inset-right: 24px;
    --tap-fab-inset-bottom: 24px;
    display: flex !important;
    right: calc(var(--tap-fab-inset-right) + env(safe-area-inset-right, 0px));
    /* Clears WooCommerce's store-notice bar when it is on screen. The
       height is already JS-measured into --tap-store-notice-height by
       tap-ui.js, and zeroed when the bar is hidden, so this is the
       project's existing pattern rather than a new magic number.
       MEASURED without it: the bar sits at y=858 and the FAB's bottom
       edge at 876, an 18px overlap at 1024/1280/1440/1920. It covered
       no link -- "Dismiss" ends 400-600px to the left at every width --
       but it looked wrong, and A26 removes the bar at cutover anyway. */
    bottom: calc(var(--tap-fab-inset-bottom) + var(--tap-store-notice-height, 0px) + env(safe-area-inset-bottom, 0px));
    /* Below the drawer overlay (100010) and panel (100011). */
    z-index: 100009;
    /* The spec asks for >=44px at every width; the plugin draws 56px. */
    min-width: 44px;
    min-height: 44px;
    /* Theme palette only -- no new colours. This is the variable the
       plugin already reads for its icon, so the header bag icon and
       the FAB cannot drift apart. */
    --tp-cart-icon-color: var(--tap-espresso);
    background: #fff;
    border-color: var(--tap-border);
  }

  body.tap-redesign .tp-side-cart-fab:hover {
    --tp-cart-icon-color: var(--tap-rose);
  }

  /* Redundant where the cart is already the page. */
  body.tap-redesign.woocommerce-cart .tp-side-cart-fab,
  body.tap-redesign.woocommerce-checkout .tp-side-cart-fab {
    display: none !important;
  }

  /* Belt and braces: if the sticky add-to-cart bar is ever shown at
     this width, it owns the bottom edge and the FAB stands down. */
  body.tap-redesign.tap-atc-visible .tp-side-cart-fab {
    display: none !important;
  }
}
.tp-side-cart-panel { width: min(430px, 100vw); background: var(--tap-soft-cream); }
.tp-side-cart-header { padding: 20px 24px; border-color: var(--tap-border); background: #fff; }
.tp-side-cart-title, .tp-side-cart-close, .tp-side-cart-subtotal-label, .tp-side-cart-subtotal-value { color: var(--tap-espresso); }
.tp-side-cart-items { padding: 10px 24px; }
.tp-side-cart-item { border-color: var(--tap-border); }
.tp-side-cart-item-thumb img { border-radius: 9px; }
.tp-side-cart-item-name { color: var(--tap-espresso); }
.tp-side-cart-subtotal { padding: 20px 24px; border-color: var(--tap-border); background: #fff; }
.tp-side-cart-footer { padding: 14px 24px 24px; background: #fff; }
.tp-side-cart-btn { border-radius: 9px; font-weight: 900; }
/* FACELIFT PHASE 2: the two colour rules that used to be here never
   actually won -- tp-side-cart.css consumes --tp-cart-checkout-bg /
   --tp-cart-viewcart-bg custom properties set from the plugin's own
   settings array (tease-play-side-cart.php), which that stylesheet's
   own selectors already target directly. Fixed at that source instead;
   see tease-play-side-cart.php for the full explanation. */

/* =========================================================
   FACELIFT PHASE 1 -- button/input system
   One system: primary (magenta, solid), secondary (wine outline),
   quiet (text link). 44px minimum target on every interactive control,
   a shared focus-visible ring, and a toned-down archive-card Add to
   Cart button (measured full-width and shouting uppercase in the
   Phase 0 audit) -- existing classes restyled in place, nothing
   renamed, so no JS/markup dependency is touched.
========================================================= */
.tap-btn-primary,
.tap-btn-secondary,
.tap-btn-quiet {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 9px;
  border: 2px solid transparent;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.tap-btn-primary { border-color: var(--tap-rose); background: var(--tap-rose); color: #fff; }
.tap-btn-primary:hover { background: var(--tap-rose-dark); border-color: var(--tap-rose-dark); }
.tap-btn-secondary { border-color: var(--tap-wine); background: transparent; color: var(--tap-wine); }
.tap-btn-secondary:hover { background: var(--tap-wine); color: #fff; }
.tap-btn-quiet { border-color: transparent; background: transparent; color: var(--tap-wine); text-decoration: underline; padding: 0 4px; min-height: auto; }

body.tap-redesign button:focus-visible,
body.tap-redesign a:focus-visible,
body.tap-redesign input:focus-visible,
body.tap-redesign select:focus-visible,
body.tap-redesign textarea:focus-visible,
body.tap-redesign .tap-btn-primary:focus-visible,
body.tap-redesign .tap-btn-secondary:focus-visible,
body.tap-redesign .tap-btn-quiet:focus-visible {
  outline: 3px solid var(--tap-rose-dark);
  outline-offset: 2px;
}

/* Archive card Add to Cart: measured 198px wide (= its full card column)
   with uppercase "ADD TO CART" -- a compact, sentence-case pill instead,
   matching the brief's "not full-bleed shouting" product-card spec.
   `width: auto` alone does not stop this: the button's parent
   (`.tp-loop-actions`) is `display: flex; flex-direction: column` with
   default (stretch) cross-axis alignment, which stretches a child whose
   own width is computed as `auto` to fill the container regardless --
   confirmed directly (re-measured 204px wide, unchanged, after a first
   attempt using only `width: auto`). `align-self: flex-start` opts this
   one child out of that stretch. */
body.tap-redesign.woocommerce ul.products li.product .add_to_cart_button,
body.tap-redesign .woocommerce ul.products li.product .add_to_cart_button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  align-self: flex-start !important;
  width: auto !important;
  min-height: 44px;
  padding: 0 18px !important;
  border-radius: 9px;
  font-size: 12px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}

/* The finder is a dedicated recommendation flow, not a disguised shop link. */
.tap-quiz-page { min-height: 70vh; background: var(--tap-cream); }
.tap-quiz-hero { padding: clamp(54px, 8vw, 100px) 0 88px; background: radial-gradient(circle at 82% 25%, rgba(247,200,196,.9), transparent 28%), var(--tap-soft-cream); }
.tap-quiz-hero h1 { max-width: 700px; margin: 10px 0 18px; font-size: clamp(46px, 6vw, 76px); line-height: .95; }
.tap-quiz-hero h1 em { color: var(--tap-rose); font-style: italic; }
.tap-quiz-hero p:not(.tap-eyebrow) { max-width: 590px; font-size: 19px; line-height: 1.6; }
/* Scoped to this page so it's unaffected by the sitewide --tap-container
   override (currently 1640px, set in functions.php's tap-nav-disclosure-state
   style block for the header/nav/footer/shop-sidebar). Using an explicit
   width here keeps Find Your Fit at its own ~1280px regardless of that. */
.tap-quiz-page .tap-container { width: min(1280px, calc(100% - 40px)); max-width: 1280px; }
.tap-quiz-workspace { display: grid; grid-template-columns: minmax(300px,2fr) minmax(0,3fr); gap: clamp(32px,3vw,40px); margin-top: -42px; padding-bottom: 84px; align-items: start; }
.tap-quiz-questions { display: grid; align-content: start; gap: 14px; padding: 22px; border: 1px solid var(--tap-border); border-radius: var(--tap-radius-lg); background: #fff; box-shadow: var(--tap-shadow-card); }
.tap-quiz-questions fieldset { margin: 0; padding: 16px 0; border: 0; border-bottom: 1px solid var(--tap-border); }
.tap-quiz-questions fieldset:last-child { border-bottom: 0; }
.tap-quiz-questions legend { color: var(--tap-espresso); font-size: 15px; font-weight: 900; }
.tap-quiz-questions legend span { color: var(--tap-rose); font-size: 12px; letter-spacing: .08em; margin-right: 7px; }
.tap-quiz-options { display: grid; gap: 8px; margin-top: 12px; }
.tap-quiz-options button { min-height: 44px; padding: 9px 12px; border: 1px solid var(--tap-border); border-radius: 9px; background: var(--tap-soft-cream); color: var(--tap-espresso); cursor: pointer; font: inherit; font-size: 13px; font-weight: 750; text-align: left; }
.tap-quiz-options button.is-selected, .tap-quiz-options button:hover { border-color: var(--tap-rose); background: var(--tap-blush-light); color: var(--tap-wine); }
.tap-quiz-result { align-self: start; padding: clamp(24px,4vw,44px); border: 1px solid var(--tap-border); border-radius: var(--tap-radius-lg); background: #fff; box-shadow: var(--tap-shadow-card); }
.tap-quiz-result[hidden] { display: none; }
/* The per-path sections rely on the same native [hidden] behaviour, but
   Divi's own base styles set `display` on <section> broadly, which beats
   the UA stylesheet's [hidden] default. Without this, all three paths
   rendered at once regardless of the quiz answers -- restoring the single
   matching-path behaviour the quiz JS already computes. */
.tap-quiz-result__path[hidden] { display: none; }
.tap-quiz-result h2 { margin: 8px 0 10px; font-size: clamp(30px,4vw,46px); }
.tap-quiz-result__path > p:not(.tap-eyebrow) { max-width: 600px; color: var(--tap-muted); line-height: 1.6; }
.tap-quiz-products { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; margin: 26px 0; }
.tap-quiz-product { padding: 14px; border: 1px solid var(--tap-border); border-radius: 12px; background: var(--tap-soft-cream); }
.tap-quiz-product > a { display: grid; aspect-ratio: 1; place-items: center; }
.tap-quiz-product img { width: 100%; height: 100%; object-fit: contain; }
.tap-quiz-product h3 { margin: 10px 0 6px; font-size: 14px; line-height: 1.3; }
.tap-quiz-product h3 a { color: var(--tap-espresso); text-decoration: none; }
.tap-quiz-product > span { color: var(--tap-wine); font-size: 14px; font-weight: 900; }
.tap-quiz-email { display: grid; grid-template-columns: 1.5fr 1fr auto; gap: 10px; align-items: center; margin-top: 34px; padding-top: 26px; border-top: 1px solid var(--tap-border); }
.tap-quiz-email div { display: grid; gap: 3px; }
.tap-quiz-email strong { color: var(--tap-espresso); font-size: 14px; }
.tap-quiz-email span { color: var(--tap-muted); font-size: 12px; }
.tap-quiz-email input { min-height: 48px; padding: 0 14px; border: 1px solid var(--tap-border); border-radius: 9px; font: inherit; }
.tap-quiz-email button { min-height: 48px; padding: 0 18px; border: 2px solid var(--tap-rose); border-radius: 9px; background: var(--tap-rose); color: #fff; cursor: pointer; font: inherit; font-size: 12px; font-weight: 900; letter-spacing: .03em; text-transform: uppercase; }

/* =========================================================
   12. Mobile
========================================================= */

@media (max-width: 1100px) {
  .tap-announcement-bar {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 4px;
  }

  .tap-announcement-bar span:last-child,
  .tap-announcement-bar span:nth-child(2) {
    text-align: center;
  }

  .tap-trust-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.tap-redesign ul.products,
  body.tap-redesign ul.products {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tap-quiz-workspace { grid-template-columns: 1fr; }

  .tap-trust-item:nth-child(2) {
    border-right: 0;
  }

  .tap-comfort-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .tap-category-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1023px) {
  /* FACELIFT Phase 3 -- stacking threshold moved from 767px to match
     the brief's explicit "1024+ side-by-side, stacked below" spec for
     the product gallery/summary. The deleted 1100px-tier 2-column
     override had the same 20px-squeeze defect as the #left-area one
     (see that fix's comment) and is unneeded now that this range
     stacks; removed rather than retuned. */
  body.tap-redesign.single-product div.product > .clearfix { display: block; }
}
@media (max-width: 767px) {
  body.tap-redesign ul.products {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }

  /* WO3 B1/B2 -- generic fallback for any product-grid context not
     covered by the page-id-8/tax-product_cat/post-type-archive-product
     blocks above (e.g. related-products, brand archive, search
     results): same full-bleed-image/8px-inset card spec, and Quick View
     hidden on phones (the card already links straight to the product
     page) with Add to cart/Select options full card width, 44px tall,
     sentence case -- one button system, no separate narrow/ellipsised
     treatment. */
  body.tap-redesign ul.products li.product {
    display: block !important;
    padding: 0 !important;
  }
  body.tap-redesign ul.products li.product .woocommerce-LoopProduct-link {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important; grid-template-rows: auto 1.1em 2.5em auto;
    width: 100% !important;
    box-sizing: border-box !important;
    gap: 6px;
  }
  body.tap-redesign ul.products li.product img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4 / 5;
    object-fit: cover;
  }
  body.tap-redesign ul.products li.product .tap-card-brand,
  body.tap-redesign ul.products li.product .woocommerce-loop-product__title,
  body.tap-redesign ul.products li.product .price {
    padding: 0 8px !important;
  }
  body.tap-redesign ul.products li.product .tp-loop-actions {
    padding: 0 8px 8px !important;
  }

  body.tap-redesign ul.products li.product .tp-loop-actions .tp-qv-btn {
    display: none !important;
  }
  body.tap-redesign.woocommerce ul.products li.product .tp-loop-actions .button.button,
  body.tap-redesign.woocommerce ul.products li.product .tp-loop-actions .add_to_cart_button.add_to_cart_button {
    display: flex !important;
    align-self: stretch !important;
    width: 100% !important;
    min-height: 44px !important;
    padding: 0 12px !important;
    font-size: 13px !important;
    text-transform: none !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
  }

  body.tap-redesign.single-product div.product {
    margin-top: 28px;
    padding: 0 20px;
  }

  body.tap-redesign.single-product div.product .summary { margin-top: 18px !important; }
  body.tap-redesign.single-product div.product .woocommerce-tabs ul.tabs { overflow-x: auto; padding-bottom: 5px; }
  body.tap-redesign.single-product div.product .woocommerce-tabs .panel { padding: 20px; }
  body.tap-redesign form.checkout { display: block; }
  body.tap-redesign .woocommerce form.checkout #order_review_heading { margin-top: 25px; }
  body.tap-redesign.woocommerce-cart .woocommerce,
  body.tap-redesign.woocommerce-checkout .woocommerce,
  body.tap-redesign.woocommerce-account .woocommerce { width: min(var(--tap-container), calc(100% - 28px)); margin-top: 28px; }
  .tap-quiz-workspace { margin-top: -25px; padding-bottom: 54px; }
  .tap-quiz-products { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .tap-quiz-email { grid-template-columns: 1fr; }

  body.tap-redesign .woocommerce ul.products li.product .woocommerce-loop-product__title,
  body.tap-redesign .woocommerce ul.products li.product .price {
    font-size: 13px !important;
  }

  .tap-hero-section {
    text-align: center;
  }

  .tap-hero-section h1 {
    font-size: clamp(38px, 12vw, 52px);
  }

  .tap-trust-strip {
    grid-template-columns: 1fr;
    padding: 18px;
    border-radius: 20px;
  }

  .tap-trust-item {
    border-right: 0;
    border-bottom: 1px solid rgba(110, 15, 47, 0.12);
    padding: 16px 4px;
  }

  .tap-trust-item:last-child {
    border-bottom: 0;
  }

  .tap-comfort-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .tap-comfort-card {
    min-height: 170px;
    padding: 18px;
  }

  .tap-category-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .tap-quiz-cta {
    grid-template-columns: 1fr;
    padding: 28px;
  }
}

@media (max-width: 480px) {
  .tap-comfort-grid {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   Phase 2 Header Foundation
========================================================= */

.tap-header-announcement-section {
  padding: 0 !important;
  background: var(--tap-wine);
}

.tap-header-announcement-section .et_pb_row,
.tap-header-announcement-section .et_pb_column,
.tap-header-announcement-section .et_pb_module {
  width: 100% !important;
  max-width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

.tap-header-shell {
  position: sticky;
  top: 0;
  z-index: 9999;
  padding: 0 !important;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(110, 15, 47, 0.08);
  backdrop-filter: blur(14px);
}

.admin-bar .tap-header-shell {
  top: 32px;
}

.tap-header-shell .et_pb_row {
  width: min(1240px, calc(100% - 40px)) !important;
  max-width: 1240px !important;
  display: flex;
  align-items: center;
  padding: 18px 0 !important;
}

.tap-header-shell .et_pb_menu__menu > nav > ul {
  gap: 26px;
}

.tap-header-shell .et_pb_menu__menu > nav > ul > li > a {
  color: var(--tap-espresso) !important;
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: none;
}

.tap-header-shell .et_pb_menu__menu > nav > ul > li > a:hover {
  color: var(--tap-rose) !important;
}

.tap-header-shell .et_pb_menu__menu > nav > ul > li.current-menu-item > a {
  color: var(--tap-rose) !important;
}

.tap-header-icons {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 18px;
}

.tap-header-icons a {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  color: var(--tap-espresso);
  font-size: 22px;
  line-height: 1;
  text-decoration: none;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.tap-header-icons a:hover {
  background: var(--tap-blush-light);
  color: var(--tap-rose);
  transform: translateY(-1px);
}

/* Mobile header cleanup */
@media (max-width: 980px) {
  .tap-header-shell .et_pb_row {
    width: min(100% - 28px, 1240px) !important;
    padding: 14px 0 !important;
  }

  .tap-header-shell .et_pb_column {
    margin-bottom: 0 !important;
  }

  .tap-header-icons {
    gap: 10px;
  }

  .tap-header-icons a {
    width: 34px;
    height: 34px;
    font-size: 20px;
  }

  .tap-announcement-bar {
    padding: 8px 16px;
    font-size: 12px;
  }

  .tap-announcement-bar span:nth-child(2),
  .tap-announcement-bar span:nth-child(3) {
    display: none;
  }
}

/* Outrank Divi's per-template inline typography declarations.
   FACELIFT PHASE 1: updated to the unified heading system (same reason
   as the duplicate, lower-specificity rule above this ID-scoped one --
   this is the one that was actually winning on category archives). */
body.tap-redesign.post-type-archive-product #page-container .et_pb_section_4 .et_pb_text_6 h1,
body.tap-redesign.tax-product_cat #page-container .et_pb_section_0_tb_body .et_pb_post_title_0_tb_body .entry-title {
  color: var(--tap-espresso) !important;
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.05 !important;
}
@media (max-width: 600px) {
  /* The helper widget comes from a legacy sidebar module. Force every layer
     to honor the phone viewport rather than its former desktop width. */
  body.tap-redesign.woocommerce [class*="et_pb_sidebar_"],
  body.tap-redesign.woocommerce [class*="et_pb_sidebar_"] .et_pb_widget,
  body.tap-redesign.woocommerce .widget_tp_shop_helper,
  body.tap-redesign.woocommerce .tp-stick-wrap,
  body.tap-redesign.woocommerce .tp-shop-helper,
  body.tap-redesign.woocommerce .tp-shop-helper .tp-field,
  body.tap-redesign.woocommerce .tp-shop-helper .tp-actions,
  body.tap-redesign.woocommerce .tp-shop-helper .tp-check,
  body.tap-redesign.woocommerce .tp-shop-helper .tp-popular-link {
    box-sizing: border-box !important;
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
  }
}

/* Final archive specificity: loaded after legacy and Divi compatibility rules. */
body.tap-redesign.woocommerce.archive .woocommerce-products-header .page-title {
  margin: 7px 0 12px !important;
  /* UAT-051 (WO-14 §45): was Inter 900 / clamp(44px,6vw,78px) /
     -.065em / .89 -- a leftover from before this theme settled on one
     heading system (h1/h2 Fraunces, h3-h6 Inter; see this file's
     v1.3.x changelog). Measured consequence: every template's H1 came
     out Fraunces 600 at 60px EXCEPT search results, where
     `.woocommerce-products-header .page-title` IS the h1 and this rule
     out-specified the sitewide Fraunces rule -- Inter 900 at 78px, on
     the same site, one click away. Same tokens as every other H1 now. */
  color: var(--tap-espresso) !important;
  font-family: Fraunces, 'Fraunces Fallback', Newsreader, Georgia, serif !important;
  font-size: clamp(2.25rem, 5vw, 3.75rem) !important;
  font-weight: 600 !important;
  letter-spacing: -.045em !important;
  line-height: 1.05 !important;
}

/* =========================================================
   13. Phase 3 -- sticky mobile add-to-cart bar
========================================================= */
.tap-sticky-atc {
  position: fixed;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px clamp(14px, 4vw, 24px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateY(100%);
  transition: transform .25s ease;
  border-top: 1px solid var(--tap-border);
  background: #fff;
  box-shadow: 0 -12px 30px rgba(80, 25, 45, .1);
}
.tap-sticky-atc.is-visible { transform: translateY(0); }
.tap-sticky-atc__info { display: grid; min-width: 0; flex: 1 1 auto; gap: 1px; }
.tap-sticky-atc__title { overflow: hidden; color: var(--tap-espresso); font-size: 13px; font-weight: 800; text-overflow: ellipsis; white-space: nowrap; }
.tap-sticky-atc__price { color: var(--tap-wine); font-size: 13px; font-weight: 900; }
.tap-sticky-atc__button { flex: 0 0 auto; min-height: 44px; padding: 0 20px; font-size: 13px; white-space: nowrap; }

/* FACELIFT Phase 4 -- real bug found live on /checkout/: WooCommerce's
   demo-store notice (`.woocommerce-store-notice` / `p.demo_store`, no
   real `#store-notice` id despite the v1.3.12 comment above assuming
   one) measured `position: fixed; top: 310.4px` on checkout -- not
   `bottom: 0` as documented/intended -- overlapping the Express
   Checkout section and part of the order summary. Root cause not
   fully isolated (no inline style attribute found; likely WooCommerce
   core's own notice-positioning JS reacting to the Block Checkout's
   sticky mobile order-summary header). Forced back to the documented,
   verified-safe bottom:0 behaviour with !important, which beats a
   plain (non-!important) inline style regardless of specificity. */
.woocommerce-store-notice,
p.demo_store {
  position: fixed !important;
  top: auto !important;
  right: 0 !important;
  bottom: 0 !important;
  left: 0 !important;
}
/* Work Order 10, item G: this notice has no z-index, so paint order
   alone puts it on top of whatever else happens to sit near the
   viewport's bottom edge -- confirmed as the real cause of at least
   two separate click/visibility failures this engagement (a sticky
   add-to-cart button's click timeout, WO9; the shop sidebar's active-
   filter chip reading as "covered", WO10). The notice's own content is
   a single line of text plus a Dismiss link, not something that needs
   to intercept clicks across the full width/height of its fixed box --
   letting clicks pass through everywhere except the Dismiss link
   itself fixes every such case at once instead of one-off z-index
   bumps on each affected element. */
.woocommerce-store-notice,
p.demo_store {
  pointer-events: none;
}
.woocommerce-store-notice__dismiss-link {
  pointer-events: auto;
}

/* .woocommerce-store-notice is WooCommerce's own fixed bottom:0 bar --
   stack the sticky ATC bar above it (not under it) so neither covers
   the other, using the same JS-measured --tap-sticky-atc-height
   approach as the Tawk offset above. */
body.single-product:has(.woocommerce-store-notice) .tap-sticky-atc.is-visible {
  bottom: var(--tap-store-notice-height, 0px);
}

/* WO-14 section 14 item 3 ("confirm the bar does not cover content").
   It does. The notice is position:fixed at bottom:0 with z-index 100000,
   and `body` carries no compensating padding, so at the very bottom of the
   page the last 42px (desktop) / 67px (390px) of .tap-site-footer sit under
   it and CANNOT be scrolled into view -- measured on /shop/ and
   /product-category/for-couples/ with the page scrolled fully down.
   Clicks were already handled (pointer-events:none above); this is the
   remaining visual occlusion. Pad the footer by the height the JS measures
   into --tap-store-notice-height, so the fix tracks the bar's real height
   at any width instead of hardcoding one. */
body:has(.woocommerce-store-notice) .tap-site-footer {
  padding-bottom: calc(var(--tap-store-notice-height, 42px) + 12px);
}

@media (min-width: 1024px) {
  .tap-sticky-atc { display: none; }
}

/* =========================================================
   14. Phase 6 -- category guide block (under the product grid)
========================================================= */
.tap-category-guide { max-width: var(--tap-container); margin: 56px auto 0; padding: 0 20px; }
.tap-category-guide__text { max-width: 70ch; margin-bottom: 32px; color: var(--tap-espresso); line-height: 1.7; }
.tap-category-guide__text p { margin: 0 0 16px; }
.tap-category-guide__faq h2 { margin: 0 0 16px; color: var(--tap-espresso); font-size: clamp(22px, 2.5vw, 30px); }
.tap-category-guide__faq details { padding: 14px 0; border-bottom: 1px solid var(--tap-border); }
.tap-category-guide__faq summary { cursor: pointer; color: var(--tap-espresso); font-weight: 800; }
.tap-category-guide__faq summary::-webkit-details-marker { color: var(--tap-wine); }
.tap-category-guide__faq p { max-width: 70ch; margin: 10px 0 0; color: var(--tap-muted); line-height: 1.6; }
.tap-brand-intro { max-width: 70ch; margin: 0 0 28px; color: var(--tap-espresso); line-height: 1.7; }
.tap-brand-intro p { margin: 0 0 14px; }

/* =========================================================
   15. Phase 7 -- home page: announcement bar, trust strip,
   brands strip, sale banner (adapted from docs/design/assets/
   banners.css, checked against existing rules per its own
   README, not copied wholesale)
========================================================= */
.tap-bn-announce {
  position: relative;
  z-index: 50;
  background: var(--tap-wine);
  color: #fff;
  font: 600 .875rem/1.4 Inter, 'Inter Fallback', system-ui, sans-serif;
  text-align: center;
  padding: 10px 44px 10px 16px;
}
.tap-bn-announce a { color: #fff; text-decoration: underline; text-underline-offset: 3px; margin-left: 6px; }
.tap-bn-announce a:focus-visible,
.tap-bn-announce button:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.tap-bn-announce button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 44px;
  min-height: 44px;
  background: none;
  border: 0;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.tap-bn-trust {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, 1fr);
  max-width: var(--tap-container);
  margin: 0 auto;
  padding: 24px 20px;
  background: var(--tap-blush-light);
  border-radius: var(--tap-radius-lg);
  list-style: none;
}
@media (min-width: 768px) {
  .tap-bn-trust { grid-template-columns: repeat(2, minmax(0, 320px)); justify-content: center; }
}
.tap-bn-trust li { display: flex; gap: 12px; align-items: flex-start; color: var(--tap-wine); font-size: .9375rem; line-height: 1.4; }
.tap-bn-trust img { flex: 0 0 28px; width: 28px; height: 28px; }
.tap-bn-trust b { display: block; color: var(--tap-espresso); }
.tap-bn-trust a { color: var(--tap-wine); text-decoration: underline; text-underline-offset: 2px; }

.tap-home-section-sub { margin: 6px 0 0; color: var(--tap-muted); font-size: 15px; }

/*
 * Work Order 11, item 7c (UAT-044): the old flex-wrap row of
 * fixed-128px cards fit all 10 brands on one line at very wide
 * viewports (2560) but wrapped unevenly at narrower desktop/tablet
 * widths (1440: 9 fit, the 10th wrapped alone onto its own row,
 * leaving a large blank gap beside it before the next section). A
 * grid with a fixed column count and fr-unit cards scales card width
 * to the container instead, so there's no orphan row at any width in
 * this range. Mobile (<=767px) already had its own 2-column grid
 * (see below) and is unaffected.
 */
.tap-home-brand-strip { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tap-home-brand {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  padding: 12px;
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-md);
  background: #fff;
}
/*
 * Work Order 11, item 7c: max-width/max-height (and even a plain
 * width/height:100%) left the <img>'s own height resolving to "auto"
 * (intrinsic aspect ratio applied to the width-constrained box) --
 * confirmed live this is a percentage-height-resolution edge case
 * specific to a CSS Grid item sized via aspect-ratio (browsers don't
 * treat that item's own computed height as a "definite" percentage
 * basis for its children, even though the box's layout height is
 * concrete by paint time). Several logos' images rendered taller than
 * their own card and overflowed the bottom edge by 10-40px despite
 * overflow:hidden on the card. Absolute positioning with inset:0
 * sidesteps the percentage-height algorithm entirely -- it resolves
 * against the relatively-positioned parent's already-computed padding
 * box directly, which does work reliably here.
 */
/* `inset` alone only positions a replaced element (img) -- it keeps its
   own intrinsic size unless width/height are also given explicitly.
   Percentage width/height DO resolve reliably here because an
   absolutely-positioned element's containing block uses a different,
   more permissive algorithm than a normal-flow child's (the one that
   was failing in the earlier attempt above this). */
.tap-home-brand img { position: absolute; inset: 12px; width: calc(100% - 24px); height: calc(100% - 24px); object-fit: contain; mix-blend-mode: multiply; }
.tap-home-brand:hover,
.tap-home-brand:focus-visible { border-color: var(--tap-rose); box-shadow: 0 0 0 3px var(--tap-blush-light); }

/* WO-13 item 2: LELO's supplied logo is a WHITE wordmark baked onto a
   near-black (#141414) square -- measured, 93.6% of its pixels. It is
   the one logo in the strip whose background cannot be removed: strip
   the black and the white wordmark becomes invisible on a white card.
   So the card takes a matching dark background instead, per the work
   order, and the logo's own square melts into it.

   mix-blend-mode MUST be reset to normal here. The strip's shared rule
   uses multiply to drop white boxes on a white card; multiply over a
   DARK card would multiply this logo's white wordmark down to the card
   colour and erase it -- the exact opposite of the fix. */
.tap-home-brand--lelo { background: #141414; border-color: #141414; }
.tap-home-brand--lelo img { mix-blend-mode: normal; }
.tap-home-brand--lelo:hover,
.tap-home-brand--lelo:focus-visible { border-color: var(--tap-rose); }

.tap-bn-sale {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  align-items: center;
  justify-content: space-between;
  max-width: var(--tap-container);
  margin: 0 auto;
  background: var(--tap-rose);
  color: #fff;
  padding: 20px 24px;
  border-radius: var(--tap-radius-lg);
}
.tap-bn-sale strong { font: 600 1.5rem/1.2 Fraunces, 'Fraunces Fallback', Georgia, serif; }
.tap-bn-sale a {
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  background: #fff;
  color: var(--tap-wine);
  font-weight: 700;
  padding: 12px 22px;
  min-height: 44px;
  border-radius: 999px;
  text-decoration: none;
}
.tap-bn-sale a:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.tap-bn-sale--bf { background: var(--tap-espresso); }

/* WO3 C5 -- holiday gifting / brand spotlight banners. A real product
   or brand image beside real copy -- never text baked into the image
   itself. --reverse flips the image to the second column so the two
   banners don't read as identical blocks stacked on top of each other. */
.tap-bn-feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(24px, 4vw, 48px);
  align-items: center;
  padding: clamp(32px, 5vw, 56px) 0;
}
.tap-bn-feature--reverse .tap-bn-feature__image { order: 2; }
.tap-bn-feature--reverse .tap-bn-feature__copy { order: 1; }
.tap-bn-feature__image { aspect-ratio: 4 / 3; border-radius: var(--tap-radius-lg); overflow: hidden; background: var(--tap-soft-cream); }
.tap-bn-feature__image img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tap-bn-feature__copy h2 { margin: 6px 0 12px; }
.tap-bn-feature__copy p { margin: 0 0 20px; color: var(--tap-muted); font-size: 16px; line-height: 1.6; }

@media (max-width: 767px) {
  .tap-bn-feature,
  .tap-bn-feature--reverse {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 28px 0;
  }
  .tap-bn-feature--reverse .tap-bn-feature__image,
  .tap-bn-feature--reverse .tap-bn-feature__copy { order: initial; }
  .tap-bn-feature__image { aspect-ratio: 16 / 10; }
}

@media (max-width: 767px) {
  .tap-bn-trust { grid-template-columns: 1fr; }
  /*
   * WO3 C2 -- brands strip spec: 2 columns filling the width, fixed
   * card ratio, 8 brands on mobile (was a wrapping flex row of
   * fixed-104px cards, which fit 3 per row on most phones instead of
   * 2, and showed all 10 fetched brands with no mobile cap).
   */
  .tap-home-brand-strip { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .tap-home-brand { width: 100%; aspect-ratio: 16 / 9; height: auto; padding: 14px; overflow: hidden; }
  /* img is absolutely positioned (see base rule) and ignores the card's own padding -- match it here. */
  .tap-home-brand img { inset: 14px; width: calc(100% - 28px); height: calc(100% - 28px); }
  .tap-home-brand:nth-child(n+9) { display: none; }
}

/* =========================================================
   16. Work Order 3, item A3 -- shared content-page template
   (page.php). Applies to Contact, Shipping Policy, Refund and
   Return Policy, About, Privacy, Terms.
========================================================= */
.tap-content-page__hero {
  position: relative;
  padding: clamp(40px, 6vw, 72px) 0 clamp(28px, 4vw, 44px);
  background: radial-gradient(circle at 85% 10%, rgba(247,200,196,.55), transparent 32%), var(--tap-cream);
  overflow: hidden;
}
.tap-content-page__hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}
.tap-content-page__hero--has-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(36,19,22,.55), rgba(36,19,22,.72));
}
.tap-content-page__hero .tap-container { position: relative; z-index: 2; }
.tap-content-page__hero--has-image h1,
.tap-content-page__hero--has-image .woocommerce-breadcrumb,
.tap-content-page__hero--has-image .woocommerce-breadcrumb a,
.tap-content-page__hero--has-image .tap-content-page__updated {
  color: #fff;
}
.tap-content-page__hero .woocommerce-breadcrumb { margin: 0 0 14px !important; }
.tap-content-page__hero h1 { max-width: 760px; margin: 0; }
.tap-content-page__updated { margin: 12px 0 0; color: var(--tap-muted); font-size: 14px; }

.tap-content-page__layout { padding: clamp(32px, 5vw, 56px) 0 clamp(56px, 7vw, 96px); }
.tap-content-page__layout--with-toc {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 70ch);
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
  justify-content: center;
}
.tap-content-page__prose {
  max-width: 70ch;
  margin: 0 auto;
  color: var(--tap-espresso);
  line-height: 1.75;
}
.tap-content-page__layout--with-toc .tap-content-page__prose { margin: 0; }
.tap-content-page__prose h2 { margin: 2em 0 .6em; scroll-margin-top: 90px; }
.tap-content-page__prose h3 { margin: 1.4em 0 .5em; }
.tap-content-page__prose p { margin: 0 0 1.1em; }
.tap-content-page__prose ul,
.tap-content-page__prose ol { margin: 0 0 1.1em; padding-left: 1.3em; }
.tap-content-page__prose a { color: var(--tap-wine); text-decoration: underline; text-underline-offset: 2px; }

.tap-content-page__toc {
  position: sticky;
  top: 100px;
  padding: 18px 20px;
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-md);
  background: #fff;
}
.tap-content-page__toc-title { margin: 0 0 10px; color: var(--tap-muted); font-size: 11px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.tap-content-page__toc ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tap-content-page__toc a { color: var(--tap-espresso); font-size: 14px; font-weight: 700; text-decoration: none; line-height: 1.4; }
.tap-content-page__toc a:hover,
.tap-content-page__toc a:focus-visible { color: var(--tap-wine); text-decoration: underline; }

.tap-content-page__help {
  padding: clamp(40px, 6vw, 64px) 0;
  text-align: center;
  background: var(--tap-blush-light);
}
.tap-content-page__help h2 { margin: 0 0 18px; }
.tap-content-page__help-actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

@media (max-width: 900px) {
  .tap-content-page__layout--with-toc { grid-template-columns: 1fr; }
  .tap-content-page__toc { position: static; margin-bottom: 28px; }
}

/* =========================================================
   17. Work Order 3, item B3 -- sticky mobile Filter/Sort bar
   and bottom-sheet drawer. Desktop/tablet (>767px) keeps the
   existing in-flow sidebar filter untouched; this bar and its
   drawer are mobile-only and hidden above that width.
========================================================= */
.tap-filter-bar { display: none; }

@media (max-width: 767px) {
  .tap-filter-bar {
    position: sticky;
    top: 0; /* .tap-main-header is position:relative, not sticky/fixed -- confirmed live, no overlap to offset for */
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--tap-border);
  }
  .tap-filter-bar__btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 44px;
    padding: 0 16px;
    border: 1px solid var(--tap-border);
    border-radius: 9px;
    background: #fff;
    color: var(--tap-espresso);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
    cursor: pointer;
  }
  .tap-filter-bar__badge {
    display: inline-grid;
    min-width: 18px;
    height: 18px;
    place-items: center;
    padding: 0 4px;
    border-radius: 999px;
    background: var(--tap-rose);
    color: #fff;
    font-size: 10px;
    font-weight: 900;
  }
  .tap-filter-bar__sort { flex: 1 1 auto; min-width: 0; }
  .tap-filter-bar__sort .woocommerce-ordering { margin: 0 !important; width: 100%; }
  .tap-filter-bar__sort .woocommerce-ordering select {
    width: 100% !important;
    min-width: 0 !important; /* desktop rule sets 212px, which overflows a 320px bar */
    min-height: 44px !important;
    box-sizing: border-box;
  }
  .tap-filter-bar__count { display: none; } /* shown inside the drawer's results instead; the bar stays compact */

  .tap-filter-drawer {
    position: fixed;
    inset: 0;
    z-index: 1000;
    visibility: hidden;
  }
  .tap-filter-drawer[aria-hidden="false"] { visibility: visible; }
  .tap-filter-drawer__backdrop {
    position: absolute;
    inset: 0;
    background: rgba(31, 14, 20, .45);
    opacity: 0;
    transition: opacity .2s ease;
  }
  .tap-filter-drawer[aria-hidden="false"] .tap-filter-drawer__backdrop { opacity: 1; }
  .tap-filter-drawer__sheet {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    max-height: 85vh;
    max-height: 85dvh;
    overflow-y: auto;
    background: #fff;
    border-radius: 16px 16px 0 0;
    box-shadow: var(--tap-shadow-card);
    transform: translateY(100%);
    transition: transform .25s ease;
  }
  .tap-filter-drawer[aria-hidden="false"] .tap-filter-drawer__sheet { transform: translateY(0); }
  .tap-filter-drawer__header {
    position: sticky;
    top: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 16px 12px;
    background: #fff;
    border-bottom: 1px solid var(--tap-border);
  }
  .tap-filter-drawer__title {
    margin: 0;
    color: var(--tap-espresso);
    font-size: 16px;
    font-weight: 900;
  }
  .tap-filter-drawer__close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: var(--tap-espresso);
    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }
  .tap-filter-drawer__body { padding: 16px; }
  .tap-filter-drawer__body .tp-shop-helper { display: grid; gap: 15px; }

  body.tap-filter-drawer-is-open { overflow: hidden; }

  /* The old in-flow accordion chrome is now redundant with the drawer
     -- hide its shell so the form isn't visually duplicated in the
     page flow once it's been moved into the drawer by tap-ui.js. */
  .tp-collapsible { display: none; }
}

/* =========================================================
   18. Work Order 3, item D4 -- /gifts/ landing page
========================================================= */
.tap-gifts-quicklinks { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: clamp(32px, 5vw, 56px); }
.tap-gifts-section { margin-bottom: clamp(40px, 6vw, 64px); }
.tap-gifts-section .products { margin-top: 20px; }
.tap-gifts-bundle-tile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center;
  margin-bottom: clamp(40px, 6vw, 64px);
  border-radius: 16px;
  overflow: hidden;
  background: var(--tap-soft-cream);
}
.tap-gifts-bundle-tile img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; display: block; }
.tap-gifts-bundle-tile__content { padding: 24px clamp(20px, 4vw, 40px) clamp(28px, 4vw, 40px); }
.tap-gifts-bundle-tile__content p { color: var(--tap-muted); margin: 10px 0 18px; }
@media (min-width: 768px) {
  .tap-gifts-bundle-tile { grid-template-columns: 1fr 1fr; }
  .tap-gifts-bundle-tile img { aspect-ratio: 4 / 3; height: 100%; }
}
.tap-gifts-lifestyle-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: clamp(40px, 6vw, 64px);
}
.tap-gifts-lifestyle-band figure { margin: 0; border-radius: 16px; overflow: hidden; }
.tap-gifts-lifestyle-band img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; display: block; }
@media (min-width: 768px) {
  .tap-gifts-lifestyle-band { grid-template-columns: 1fr 1fr; }
}

/* WO3 D5 -- Black Friday draft shell notice */
.tap-bf-placeholder { padding: 24px; border: 1px dashed var(--tap-border); border-radius: var(--tap-radius-md); background: var(--tap-soft-cream); }
.tap-bf-placeholder p { margin: 0 0 12px; }
.tap-bf-placeholder p:last-child { margin-bottom: 0; }

/*
 * WO3 D2 -- Contact page's native Divi form didn't use this site's
 * input system at all (confirmed live: 0px border, 0px border-radius
 * -- visually bare, unlike every other input on the site). Matches
 * the same border/radius/min-height tokens used elsewhere (e.g. the
 * Shop Helper filter inputs) without touching Divi's own validation/
 * captcha/error behaviour.
 */
body.tap-redesign .et_pb_contact_form .input {
  border: 1px solid var(--tap-border) !important;
  border-radius: 9px !important;
  min-height: 46px !important;
  padding: 0 14px !important;
  background: var(--tap-soft-cream) !important;
}
body.tap-redesign .et_pb_contact_form textarea.input {
  min-height: 140px !important;
  padding: 14px !important;
}
body.tap-redesign .et_pb_contact_form .input:focus-visible {
  outline: 2px solid var(--tap-rose);
  outline-offset: 1px;
}
body.tap-redesign .et_pb_contact_form_label {
  color: var(--tap-espresso) !important;
  font-weight: 750 !important;
}
body.tap-redesign .et_pb_contact_submit {
  min-height: 44px !important;
  border-radius: 9px !important;
  text-transform: none !important;
}
body.tap-redesign .et-pb-contact-message {
  border-radius: 9px;
}
.tap-contact-response-time {
  margin: 0 0 18px;
  color: var(--tap-muted);
  font-size: 14px;
}

/* =========================================================
   19. Work Order 3, item D1 -- blog index (/our-blabble/)
========================================================= */
.tap-blog-index { background: var(--tap-cream); padding-bottom: clamp(40px, 6vw, 72px); }

.tap-blog-featured {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: center;
  margin-bottom: clamp(32px, 5vw, 56px);
}
.tap-blog-featured__image {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--tap-radius-lg);
  background-position: center;
  background-size: cover;
  background-color: var(--tap-soft-cream);
  overflow: hidden;
}
.tap-blog-featured__content p { margin: 10px 0 0; color: var(--tap-muted); line-height: 1.6; }
.tap-blog-featured__content h2 { margin: 8px 0 0; }
.tap-blog-featured__content .tap-button { margin-top: 16px; }

.tap-blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.tap-blog-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--tap-border);
  border-radius: var(--tap-radius-md);
  background: #fff;
  overflow: hidden;
}
.tap-blog-card__image {
  display: block;
  aspect-ratio: 16 / 10;
  background-position: center;
  background-size: cover;
  background-color: var(--tap-soft-cream);
}
.tap-blog-card h3 { margin: 14px 16px 0; font-size: 19px; line-height: 1.2; }
.tap-blog-card h3 a { color: var(--tap-espresso); text-decoration: none; }
.tap-blog-card p { margin: 8px 16px 0; color: var(--tap-muted); font-size: 14px; line-height: 1.55; }
.tap-blog-card > a { margin: 10px 16px 16px; color: var(--tap-wine); font-size: 13px; font-weight: 900; text-decoration: none; }
.tap-blog-card__cat {
  margin: 14px 16px 0;
  display: inline-block;
  color: var(--tap-rose);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.tap-blog-card__meta { color: var(--tap-muted); font-size: 12px; }

.tap-blog-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--tap-blush), var(--tap-wine));
}
.tap-blog-cover span {
  padding: 8px 18px;
  border: 1px solid rgba(255, 255, 255, .5);
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

@media (max-width: 1024px) {
  .tap-blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tap-blog-featured { grid-template-columns: 1fr; }
  .tap-blog-grid { grid-template-columns: 1fr; }
}

/* =========================================================
   Single blog post (WO7 item 4)
========================================================= */
.tap-single-post__hero { position: relative; margin-bottom: clamp(28px, 4vw, 44px); }
.tap-single-post__cover { width: 100%; aspect-ratio: 16 / 7; overflow: hidden; }
.tap-single-post__cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tap-single-post__cover--branded { aspect-ratio: 16 / 6; }
.tap-single-post__hero .tap-container { padding-top: 20px; }
.tap-single-post__hero .woocommerce-breadcrumb { margin: 0 0 12px !important; }
.tap-single-post__hero h1 { max-width: 780px; margin: 10px 0 0; }
.tap-single-post__byline { margin: 10px 0 0; color: var(--tap-muted); font-size: 14px; }
.tap-single-post__byline strong { color: var(--tap-espresso); }

.tap-single-post__layout { padding-bottom: clamp(40px, 6vw, 64px); }
.tap-single-post__layout--with-toc {
  display: grid;
  grid-template-columns: minmax(200px, 260px) minmax(0, 70ch);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.tap-single-post__content {
  max-width: 70ch;
  font-size: 16px;
  line-height: 1.7;
  color: var(--tap-espresso);
}
.tap-single-post__content h2 { margin-top: 1.6em; }
.tap-single-post__content img { max-width: 100%; height: auto; border-radius: 12px; }

.tap-single-post__related { margin: clamp(40px, 6vw, 64px) 0; }
.tap-single-post__related h2 { margin-bottom: 20px; }
.tap-single-post__shop-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding: clamp(24px, 4vw, 40px) 0 clamp(40px, 6vw, 64px);
  border-top: 1px solid var(--tap-border);
}

@media (max-width: 1024px) {
  .tap-single-post__layout--with-toc { grid-template-columns: 1fr; }
  .tap-content-page__toc { margin-bottom: 24px; }
}

/* =========================================================
   Work Order 12, item 1 -- variable product selection UI.
   Built by tap-ui.js as a sibling of each attribute <select>, which
   stays in the DOM (visually hidden, not display:none-removed) as
   WooCommerce's own source of truth -- clicking a swatch/chip sets
   the select's value and dispatches a native "change" event, so
   WooCommerce's own variation-matching JS does everything else
   (price, availability, image switching, add-to-cart button state)
   exactly as it already does for the default dropdown.
========================================================= */
.tap-variation-select--hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.tap-variation-swatches {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 4px 0 2px;
}

.tap-variation-swatch,
.tap-variation-chip {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border: 1.5px solid var(--tap-border);
  background: #fff;
  color: var(--tap-espresso);
  font: inherit;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tap-variation-swatch:focus-visible,
.tap-variation-chip:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--tap-blush-light), 0 0 0 4.5px var(--tap-rose);
}

/* Color swatches: a circle filled with the mapped CSS color, with a
   visible text label beneath -- color is never the only signal. */
.tap-variation-swatch {
  flex-direction: column;
  gap: 6px;
  padding: 4px 2px 0;
  min-width: 56px;
  border-radius: 10px;
  border-color: transparent;
}
.tap-variation-swatch__dot {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--tap-border);
  background: var(--tap-swatch-color, #e5e5e5);
}
.tap-variation-swatch--text-fallback .tap-variation-swatch__dot {
  display: none;
}
.tap-variation-swatch--text-fallback {
  min-width: 64px;
  padding: 8px 10px;
  border-radius: var(--tap-radius-md);
  border-color: var(--tap-border);
}
.tap-variation-swatch__label {
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  max-width: 72px;
}
.tap-variation-swatch.is-selected .tap-variation-swatch__dot {
  box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--tap-rose);
}
.tap-variation-swatch--text-fallback.is-selected {
  border-color: var(--tap-rose);
  background: var(--tap-blush-light);
}

/* Text chips (non-color attributes, or a color name with no clean mapping). */
.tap-variation-chip {
  padding: 10px 16px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
}
.tap-variation-chip.is-selected {
  border-color: var(--tap-rose);
  background: var(--tap-blush-light);
  color: var(--tap-rose);
}

/* Sold-out: muted, still visible, still clickable (clicking shows
   WooCommerce's own "this variation is unavailable" state). */
.tap-variation-swatch.is-soldout,
.tap-variation-chip.is-soldout {
  opacity: 0.45;
}
.tap-variation-swatch.is-soldout .tap-variation-swatch__dot {
  background-image: linear-gradient(135deg, transparent 46%, var(--tap-border) 46%, var(--tap-border) 54%, transparent 54%);
}
.tap-variation-swatch.is-soldout .tap-variation-swatch__label::after,
.tap-variation-chip.is-soldout::after {
  content: " (Sold out)";
  font-weight: 400;
  font-size: 11px;
  color: var(--tap-muted);
}

/* Archive/card "From $X.XX" price -- lowest in-stock variation price. */
.tap-price-from {
  display: inline;
}
.tap-price-from__prefix {
  font-weight: 500;
  color: var(--tap-muted);
  margin-right: 2px;
}

/* =======================================================================
   G8 (WO-14, NEXT.md section 13 item 6) -- mobile checkout review at 390.

   /cart/ was the ONLY page on the site with a horizontal scrollbar at
   390px, and it is the page where that hurts most: the line-item prices
   and the "Save $x" sale badge were rendered PAST the right edge of the
   screen, so a phone shopper could not see what each item costs.

   Measured cause, not guessed. The WooCommerce Blocks cart row is a
   `display: grid` whose columns are sized from their content:

       grid-template-columns: 80px 132px 29.78px 87.16px
       row width 377px, right edge at x=417
       containing .wc-block-components-main is only 312px wide
       viewport 390  ->  document scrollWidth 418  ->  28px of overflow

   The price text inside also carries `white-space: nowrap`, so it cannot
   give any width back. Content-sized columns plus nowrap content in a
   container narrower than their sum can only overflow.

   The fix constrains the row to its container and makes the middle
   column the flexible one (`minmax(0, 1fr)` -- the `0` matters, since a
   grid item's default `min-width: auto` refuses to shrink below its
   content and would reproduce the same overflow). The total column is
   then allowed to wrap rather than forced onto one line.

   Scoped to <=480px: above that there is genuinely room for the
   original layout, and this is third-party Blocks markup that should be
   left alone wherever it already works. */
@media (max-width: 480px) {
  body.tap-redesign .wc-block-cart-items,
  body.tap-redesign table.wc-block-cart-items {
    width: 100% !important;
    max-width: 100% !important;
  }
  body.tap-redesign .wc-block-cart-items__row {
    grid-template-columns: 64px minmax(0, 1fr) auto !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }
  body.tap-redesign .wc-block-cart-item__image,
  body.tap-redesign .wc-block-cart-item__product,
  body.tap-redesign .wc-block-cart-item__total {
    min-width: 0 !important;
    max-width: 100% !important;
  }
  body.tap-redesign .wc-block-cart-item__image img {
    width: 100% !important;
    height: auto !important;
  }
  /* Let the money wrap instead of pushing the row wider. */
  body.tap-redesign .wc-block-cart-item__total .wc-block-components-formatted-money-amount,
  body.tap-redesign .wc-block-cart-item__total .wc-block-components-product-price,
  body.tap-redesign .wc-block-cart-item__total bdi {
    white-space: normal !important;
    word-break: normal !important;
  }
  body.tap-redesign .wc-block-cart-item__total .wc-block-components-sale-badge {
    white-space: normal !important;
    text-align: right;
  }

  /* (The cart tap-target rule that used to live here moved to a
     max-width: 768px block below -- G3 found the +/- still at 30x26 and
     remove at 24x24 on a tablet, because this block stops at 480.) */
}

/* iOS Safari zooms the whole viewport when a focused input's font-size is
   under 16px. Every other checkout field is 16px; `shipping-address_2`
   alone computed to 13.33px, so focusing "Apartment, suite, etc." zoomed
   the page while the rest of the form did not. Same for the sold-out
   "Notify me" email field. Set a floor rather than chasing each one. */
body.tap-redesign .wc-block-components-text-input input,
body.tap-redesign .wc-block-components-address-form input,
body.tap-redesign input#notify_email,
body.tap-redesign .tp-notify-form input[type='email'],
/* The side-cart drawer's own quantity input, caught by the G8 regression
   test after the first pass of this fix missed it: it is not a Blocks
   field, it lives in the theme's own off-canvas cart, and it computed to
   13.33px. The drawer opens on every page including /checkout/, so
   focusing it zooms the viewport exactly like the address field did. */
body.tap-redesign .tp-side-cart input,
body.tap-redesign input[id^='tp-cart-qty'] {
  font-size: max(16px, 1rem);
}


/* =======================================================================
   G3 FIX BATCH (WO-14, NEXT.md section 18 item 3).
   Prepared under the build freeze for the owner's UAT and deployed as
   ONE batch afterwards. Every item below was verified by injecting the
   rule into the live staging page and re-measuring -- not by reasoning
   about what it ought to do.
   ======================================================================= */

/* G3-1, LAUNCH BLOCKER. Every variable product page scrolled sideways at
   1024px and above: +388px at 1024, +537px at 1440, +569px at 1536.

   The cause is this element and nothing else -- its right edge landed on
   exactly the document width (1977 in a 1440 viewport). It is the native
   <select> kept behind the custom variation swatches so the control stays
   accessible and still submits. It is supposed to be 1x1 and invisible.
   It was rendering 1001px wide.

   The visually-hidden rule further up declares `width: 1px` without
   !important, and Divi/WooCommerce style form controls at full width from
   a stylesheet that loads later. Later and equal specificity wins.

   This is the THIRD time in this work order that a blanket rule has
   reached an element it was never aimed at -- the others being the
   sidebar's `input { width: 100% !important }` inflating the filter
   checkboxes, and Divi's per-template CSS beating `font: inherit` on the
   filter controls. The element has to defend itself.

   `clip` is deprecated but still what older engines honour; `clip-path`
   is the modern equivalent. Keeping both is deliberate. */
body.tap-redesign .tap-variation-select--hidden,
.tap-variation-select--hidden {
  position: absolute !important;
  width: 1px !important;
  min-width: 0 !important;
  max-width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  max-height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap !important;
  border: 0 !important;
}

/* G3-2. The mobile menu button measured 30x16 on 24 of 28 templates at
   both touch widths, with a real clickable band of roughly 20px --
   hit-tested at +/-8px (hit) and +/-14px (missed, landing on
   .tap-header-actions). It is the primary navigation control on a phone.
   On the other 4 templates it already renders 42x42, which is still
   under, so this is set unconditionally rather than per-template. */
body.tap-redesign .tap-menu-toggle {
  min-width: 44px;
  min-height: 44px;
  place-items: center;
  place-content: center;
}

@media (max-width: 768px) {
  /* G3-3. Cart quantity stepper and remove control. These were fixed in
     1.4.11 but inside a `max-width: 480px` block, so a tablet kept the
     30x26 +/- buttons and the 24x24 remove. My own miss; G3 caught it. */
  body.tap-redesign .wc-block-components-quantity-selector__button,
  body.tap-redesign .wc-block-cart-item__remove-link {
    min-width: 44px !important;
    min-height: 44px !important;
  }

  /* G3-4. Card action links on /gifts/ render ~20px tall ("Add to cart"
     85x20, "Select options" 109x20, "View Product" 102x20).

     My first attempt at this rule targeted `.et_pb_section a.button`,
     assuming /gifts/ was Divi-built. It is not, the selector matched
     nothing, and the injected-CSS verification caught it still at
     109x20. The real chain is
       a.button > div.tp-loop-actions > li.product > ul.products
       > section.tap-gifts-section > main.tap-gifts-page
     and the link computes `display: inline` with `padding: 0`, so it
     collapses to its 20px line box.

     `.tp-loop-actions` is the product-grid plugin's action row, also
     used on the main archives where the buttons already clear 40px, so
     this is scoped to the row rather than the page -- any other
     template using it is covered too. */
  body.tap-redesign .tp-loop-actions a.button,
  body.tap-redesign .tp-loop-actions .button {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-height: 44px !important;
    padding: 0 14px;
    box-sizing: border-box;
  }

  /* The side cart's close button is 28x26. It is only reachable with the
     drawer open, which is why the G3 probe (which exempts off-canvas UI)
     never reported it -- but once the drawer IS open it is a real
     control, and dismissing a cart drawer is a common action. */
  body.tap-redesign .tp-side-cart-close {
    min-width: 44px;
    min-height: 44px;
  }

  /* G3-5. Smaller controls found across my-account, the sold-out PDP and
     the header search. Each is a real control a finger has to hit. */
  body.tap-redesign button.show-password-input,
  body.tap-redesign .tap-notify-button,
  body.tap-redesign .tp-notify-form button,
  body.tap-redesign .tap-search-submit,
  body.tap-redesign .tap-header-search button[type='submit'] {
    min-width: 44px;
    min-height: 44px;
  }

  /* WooCommerce Blocks puts the real target on the <label>, not the
     20x20 input, so the label is what has to grow. Touching the input
     itself breaks the component's own layout. */
  body.tap-redesign .wc-block-components-checkbox__label,
  body.tap-redesign .wc-block-components-checkbox,
  body.tap-redesign .woocommerce-form__label-for-checkbox {
    display: flex;
    align-items: center;
    min-height: 44px;
  }
}

/* =======================================================================
   UAT-049 (WO-14) -- header cart icon.

   The header cart control had NO icon: verified zero <svg> elements in
   the header. It rendered as the word "Cart" with a bare number beside
   it, which is exactly what the owner reported. The drawer behind it
   already worked, so this is presentation only -- same element, same
   classes, same data-tp-side-cart-open hook.

   The word "Cart" is kept as .screen-reader-text rather than removed,
   so the control still has an accessible name.
   ======================================================================= */
body.tap-redesign .tap-header-cart {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  /* The spec asks for >=44px at every width. The old control measured
     83x40 at 1440 and 75x36 at 390. */
  min-width: 44px;
  min-height: 44px;
  color: var(--tap-espresso);
}

body.tap-redesign .tap-header-cart__icon {
  display: block;
  width: 22px;
  height: 22px;
}

body.tap-redesign .tap-header-cart:hover .tap-header-cart__icon,
body.tap-redesign .tap-header-cart:focus-visible .tap-header-cart__icon {
  color: var(--tap-rose);
}

/* The count badge now sits on the icon rather than trailing the word.
   .is-hidden is what the plugin's own cart fragment sets when the cart
   empties, so honour it rather than keying off the number. */
body.tap-redesign .tap-header-cart .tp-side-cart-badge {
  position: absolute;
  top: 2px;
  right: 0;
  display: grid;
  min-width: 18px;
  height: 18px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--tap-rose);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

body.tap-redesign .tap-header-cart .tp-side-cart-badge.is-hidden {
  display: none;
}

/* Standard visually-hidden pattern. Deliberately NOT `display: none`,
   which would remove the accessible name entirely. */
body.tap-redesign .tap-header-cart .screen-reader-text {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  clip-path: inset(50%);
  white-space: nowrap;
}


/* =========================================================
   17. v1.4.18 -- Option B mega menu and mobile accordion
   (NEXT.md 70, AUTH-23). Palette/type/spacing unchanged.
========================================================= */

.tap-has-mega { position: static; }

.tap-mega {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  z-index: 60;
  padding: 22px 0 26px;
  border-top: 1px solid var(--tap-border);
  background: #fff;
  box-shadow: 0 18px 40px rgba(80, 25, 45, .12);
}

.tap-mega__inner {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 26px;
}

.tap-mega__col-title {
  margin: 0 0 10px;
  color: var(--tap-wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.tap-mega__group {
  display: block;
  min-height: 44px;
  padding: 10px 0 4px;
  color: var(--tap-espresso);
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.tap-mega__group:hover,
.tap-mega__group:focus-visible { color: var(--tap-rose); }

.tap-mega__list { margin: 0 0 10px; padding: 0; list-style: none; }

.tap-mega__list a {
  display: block;
  min-height: 44px;
  padding: 11px 0;
  color: var(--tap-espresso);
  font-size: 13px;
  text-decoration: none;
}

.tap-mega__list a:hover,
.tap-mega__list a:focus-visible { color: var(--tap-wine); text-decoration: underline; }

/* Desktop only, and never hover-ONLY: the button's aria-expanded state
   opens it too, so keyboard users are not locked out. */
@media (min-width: 1024px) {
  .tap-main-nav .tap-has-mega:hover > .tap-mega,
  .tap-main-nav .tap-has-mega:focus-within > .tap-mega,
  .tap-main-nav .tap-has-mega .tap-nav-submenu-toggle[aria-expanded="true"] + .tap-mega {
    display: block;
  }
}

/* Below the mega-menu breakpoint the same markup becomes part of the
   accordion: the panel is a plain stacked list, opened by the same
   button, so there is one mechanism rather than two. */
@media (max-width: 1023px) {
  .tap-mega {
    position: static;
    display: none;
    padding: 4px 0 10px;
    border-top: 0;
    box-shadow: none;
    background: transparent;
  }
  .tap-main-nav .tap-nav-submenu-toggle[aria-expanded="true"] + .tap-mega { display: block; }
  .tap-mega__inner { grid-template-columns: 1fr; gap: 10px; }
  /* 48px rows on touch -- above the 44px minimum, per 1.4.18's spec. */
  .tap-mega__group,
  .tap-mega__list a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

/* AUTH-23: Vibrators starts expanded in the mobile accordion. Desktop is
   unaffected -- the mega menu and the disclosure panels stay closed
   until hover, focus or a click. */
@media (max-width: 1023px) {
  .tap-main-nav .tap-nav-item.is-open > .tap-nav-submenu { display: grid !important; }
}
@media (min-width: 1024px) {
  /* 1.4.21 FIX. The `is-open` class exists so the mobile accordion can
     start with Vibrators expanded (AUTH-23). On desktop it must mean
     nothing -- but the disclosure-state rule further up this file sets
     `display: grid !important` for `.is-open`, so this override without
     !important lost, and the Vibrators submenu sat permanently open on
     EVERY desktop page. Measured on /, /faq/ and /shop/ at 1440 before
     the fix: one submenu visible on load, every time. */
  .tap-main-nav .tap-nav-item.is-open > .tap-nav-submenu { display: none !important; }
  .tap-main-nav .tap-nav-item.is-open:hover > .tap-nav-submenu,
  .tap-main-nav .tap-nav-item.is-open:focus-within > .tap-nav-submenu,
  .tap-main-nav .tap-nav-item.is-open .tap-nav-submenu-toggle[aria-expanded="true"] + .tap-nav-submenu { display: grid !important; }
}

/* v1.4.18 tap targets, NEXT.md 70 item 3 -- caught by uat056, not assumed.
   Measured at 390 before this rule: top-level nav rows were 42px (the
   spec asks for 48) and the disclosure toggle buttons were SIX pixels
   tall, because the button only wrapped a decorative <i> and a
   screen-reader span. Both are now real 48px targets. */
@media (max-width: 1023px) {
  .tap-main-nav__inner > a,
  .tap-main-nav__inner > .tap-nav-item > a,
  .tap-main-nav__inner > .tap-quick-nav > summary {
    display: flex;
    align-items: center;
    min-height: 48px;
  }

  .tap-main-nav__inner .tap-nav-submenu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 48px;
    min-height: 48px;
    padding: 0;
    background: none;
    border: 0;
  }
}

/* v1.4.19 -- the sticky add-to-cart button while its handler binds.
   Visibly unavailable for the fraction of a second before it works,
   so a tap is never silently swallowed (R9). Uses existing tokens. */
.tap-sticky-atc__button.is-binding {
  opacity: .55;
  cursor: progress;
}

/* v1.4.20 -- AUTH-38, the 18+ disclaimer in the footer bottom bar.
   The tagline and the disclaimer form one right-hand block so they stay
   together: right-aligned on one axis at desktop, stacked under the
   copyright on mobile. No new colour token -- it reuses the bottom
   bar's own muted colour, so contrast is whatever the tagline already
   passes rather than a new value to re-check. */
.tap-site-footer__bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
  text-align: right;
}

.tap-site-footer__age {
  max-width: 46ch;
  font-size: 12px;
  line-height: 1.5;
  /* NO extra opacity. An earlier .85 here measured 4.31:1 against the
     footer's rgb(36,7,17) -- BELOW AA for 12px text. Inheriting the
     bottom bar's own colour unchanged gives the same 5.57:1 the
     tagline beside it already passes, which is also what AUTH-38 asks
     for ("same muted style as the tagline"). */
}

@media (max-width: 767px) {
  .tap-site-footer__bottom-right {
    align-items: flex-start;
    text-align: left;
  }
  /* Wrap rather than overflow: the sentence is long enough to force a
     horizontal scrollbar at 390 if it is allowed to sit on one line. */
  .tap-site-footer__age {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
}

/* =========================================================================
 * SECTION 20 -- 1.4.23. The owner's UAT visual findings, 114 to 120.
 * Every number below was measured on staging before the change; the
 * before/after captures are in docs/qa/menu-visual-20261126/.
 * ========================================================================= */

/* --- 20.1  114.1 The toggle "chevrons" were never drawn ------------------
   `.tap-nav-submenu-toggle i` had NO rule anywhere in this stylesheet, so
   the <i> measured 0x0 and what the owner saw was the button's own 16x6
   box with its outline -- "a small outlined bar, reads as a broken icon".
   16x6 is also far below a 44px target. Drawn with borders rather than a
   webfont or an SVG request: no extra asset, no FOUT, cannot fail to load. */
.tap-main-nav .tap-nav-submenu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0;
  background: none;
  border: 0;
  color: inherit;
  cursor: pointer;
}
.tap-main-nav .tap-nav-submenu-toggle i {
  display: block;
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-2px) rotate(45deg);
  transition: transform .18s ease;
}
.tap-main-nav .tap-nav-submenu-toggle:hover,
.tap-main-nav .tap-nav-submenu-toggle:focus-visible { color: var(--tap-rose); }
/* Points up when the panel is open, which is the whole point of a chevron. */
.tap-main-nav .tap-nav-submenu-toggle[aria-expanded="true"] i {
  transform: translateY(2px) rotate(-135deg);
}
/* MY REGRESSION, caught by uat056. The 44px above is the desktop size,
   but it is unmediated, so it also beat the existing mobile rule that
   gives every accordion row 48px -- and uat056 asserts >=48px for a
   finger. 44px is the pointer minimum; 48px is the touch one, and the
   accordion is the touch case. */
@media (max-width: 980px) {
  .tap-main-nav .tap-nav-submenu-toggle {
    min-width: 48px;
    min-height: 48px;
  }
}

/* --- 20.2  114.2 One type scale, and sub-groups read as groups -----------
   Measured in the open "Shop by type" panel at 1440: sub-group parents
   ("Cock Rings", "Male Toys", "Sexual Wellness", "Novelties") rendered at
   12px while their own children rendered at 13px -- the parent smaller
   than the child, after an uneven gap. The authored rules said 14px/800
   and 13px, so Divi was winning; these are scoped under `.tap-main-nav`
   to take the specificity back rather than reaching for !important. */
/* The column title outranks the group headings beneath it, so it has to
   LOOK like it does -- larger, darker, and with a rule under it. When the
   two were given the same treatment the panel read as a list of equals. */
.tap-main-nav .tap-mega__col-title {
  margin: 0 0 16px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(110, 15, 47, .18);
  color: var(--tap-espresso);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1.2;
  text-transform: uppercase;
}
/* A sub-group parent is a HEADING with a rule above it, not a smaller
   link. 114(c) asked for "a single clear treatment ... a heading or a
   divider, not a smaller link" -- this is both, used once. */
.tap-main-nav .tap-mega__group {
  display: block;
  margin: 18px 0 2px;
  padding: 14px 0 2px;
  border-top: 1px solid rgba(110, 15, 47, .12);
  color: var(--tap-wine);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .06em;
  line-height: 1.3;
  text-transform: uppercase;
  text-decoration: none;
  min-height: 0;
}
/* A group needs no rule above it only when it sits DIRECTLY under the
   column title. `:first-of-type` was wrong: once the duplicate first
   group was suppressed, the next group became first-of-type while still
   following a list of links, so "Cock Rings" lost the rule that
   separated it from "Wand Massagers" above it. Caught in the
   after-capture, not reasoned about. */
.tap-main-nav .tap-mega__col-title + .tap-mega__group {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.tap-main-nav .tap-mega__group:hover,
.tap-main-nav .tap-mega__group:focus-visible { color: var(--tap-rose); }

.tap-main-nav .tap-mega__list { margin: 0; padding: 0; list-style: none; }
.tap-main-nav .tap-mega__list a {
  display: block;
  min-height: 36px;
  padding: 7px 0;
  color: var(--tap-espresso);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0;
  line-height: 1.35;
  text-decoration: none;
}
.tap-main-nav .tap-mega__list a:hover,
.tap-main-nav .tap-mega__list a:focus-visible { color: var(--tap-wine); text-decoration: underline; }

/* The panel itself: a steady rhythm and a sane width on a wide screen. */
.tap-main-nav .tap-mega__inner {
  gap: clamp(24px, 3vw, 56px);
  padding-top: 28px;
  padding-bottom: 32px;
}

/* --- 20.3  117/118 The archive band did not span its column -------------
   Measured: the band is a fixed 720px while the content column grows
   888 -> 1013 -> 1272. At 1920 and 2560 that is 57% of the column with
   dead space to its right -- exactly the "something missing on the
   right" in the owner's 2576px screenshot. It was never meant to be a
   57% band; it was a max-width that the column outgrew. */
.tap-archive-context__hero-image,
.tap-archive-context__hero-fallback {
  max-width: none;
  width: 100%;
}
/* Without the repeated title the band is decoration, so it earns much
   less height and the first product row comes up the page. */
.tap-archive-context__hero-fallback--quiet {
  aspect-ratio: auto;
  min-height: 132px;
  margin-bottom: 16px;
}

/* --- 20.4  AUTH-44 One card button treatment, on every grid --------------
   117.1 asked why category pages differ: there are TWO sources. WPCode
   snippet 13538 renders `.tp-loop-actions` with both buttons stacked
   full width, and this stylesheet then forced `.add_to_cart_button` to
   `width:auto; align-self:flex-start` -- the small left-hand pill. The
   two disagreed per template, so the grids did not match.
   AUTH-44's direction: Add to cart about three quarters of the card,
   Quick View compact beside it, the same everywhere. */
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  margin-top: .75rem;
}
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .button,
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .add_to_cart_button {
  flex: 1 1 75%;
  width: auto !important;
  min-width: 0;
  align-self: auto !important;
  min-height: 44px;
  padding: 0 14px !important;
  border-radius: 999px;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.15;
  text-align: center;
}
/* Quick View is the quieter one: same height, about a quarter of the row,
   outlined rather than filled, and it keeps a real accessible name. */
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn {
  flex: 0 0 44px;
  width: 44px !important;
  min-width: 44px;
  max-width: 44px;
  min-height: 44px;
  padding: 0 !important;
  /* Measured first: with its label showing, Quick View took 92px and left
     Add to cart only 51% of the row, not the three quarters AUTH-44 asks
     for. font-size:0 hides the words WITHOUT removing them, so the
     accessible name is still "Quick View" for a screen reader -- an
     aria-label or an icon font would both have been more fragile. */
  font-size: 0 !important;
  border: 1px solid rgba(110, 15, 47, .35) !important;
  border-radius: 999px;
  background: transparent !important;
  color: var(--tap-wine) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  white-space: nowrap;
}
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50% 12% 50% 12%;
  transform: rotate(45deg);
}
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn:hover,
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn:focus-visible {
  border-color: var(--tap-wine) !important;
  background: rgba(110, 15, 47, .06) !important;
}
/* 120.3: on a narrow card the two will not sit side by side without one
   of them losing its label. Below 420px they stack, both full width, and
   both keep 44px. Said out loud rather than left to chance. */
@media (max-width: 420px) {
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions { flex-direction: column; }
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .button,
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .add_to_cart_button,
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn {
    flex: 1 1 auto;
    width: 100% !important;
    max-width: none !important;
  }
  /* Stacked, Quick View has a whole row, so it gets its words back and
     the glyph goes away. Measured first: without these three lines the
     44px cap from the row layout still applied and Quick View collapsed
     to 0x0 at 390 -- invisible, while still in the accessibility tree.
     A button nobody can see is worse than one that is merely small. */
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn {
    min-width: 0;
    padding: 0 14px !important;
    font-size: 12px !important;
  }
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions > .tp-qv-btn::before { display: none; }
}

/* --- 20.5  120.2 Find Your Fit sat in the left half of a wide screen -----
   Measured: `.tap-quiz-hero` is full-bleed with `max-width: none`, and
   `.tap-quiz-questions` is a fixed 496px pinned left -- at 2560 it leaves
   a 1,424px gap on its right, which is the "panel runs past the right
   edge, left half empty, text right of centre" the owner described. */
.tap-quiz-hero > .tap-container,
.tap-quiz-page .tap-quiz-hero__inner {
  max-width: 1240px;
  margin-inline: auto;
}
.tap-quiz-questions {
  width: min(760px, 100%);
  max-width: 760px;
  margin-inline: auto;
}
.tap-quiz-hero h1,
.tap-quiz-hero p {
  max-width: 46ch;
  margin-inline: auto;
  text-wrap: balance;
}

/* --- 20.6  119.5 The 18+ disclaimer orphaned its last two words ---------
   At 1440 the 46ch limit broke the sentence so "to purchase." sat alone.
   `text-wrap: balance` evens the lines where it is supported and is
   ignored harmlessly where it is not; the wording and the 5.57:1
   contrast are untouched. */
.tap-site-footer__age {
  max-width: 54ch;
  text-wrap: balance;
}

/* --- 20.7  119 No empty legacy column, no orphan rule -------------------
   Belt and braces beside the PHP: the widgets are already gone, this
   removes the column and Divi's own divider so nothing is left reserving
   space or drawing a line to nowhere. */
body.tap-no-legacy-sidebar #sidebar { display: none !important; }
body.tap-no-legacy-sidebar #left-area {
  width: 100% !important;
  max-width: none !important;
  padding-right: 0 !important;
  float: none !important;
}
body.tap-no-legacy-sidebar #main-content .container::before { display: none !important; }

/* --- 20.8  120.1 A cap on very wide screens ----------------------------
   The owner works at ~2576px. The content column already caps at 1272,
   but full-bleed hero and banner blocks did not, so they kept growing
   while the text beneath them stopped. */
@media (min-width: 1600px) {
  .tap-quiz-hero > .tap-container { max-width: 1240px; }
}

/* =========================================================================
 * SECTION 21 -- 1.4.24. §123, the Reviewer's verdict on the visual round.
 * Numbers below were measured on 1.4.23 before each change.
 * ========================================================================= */

/* --- 21.1 §123.2 THE DISCLOSURE PANELS OPENED IN THE FLOW -----------------
   This is the original "looks broken". `.tap-mega` was always
   `position: absolute` and behaved; every OTHER panel
   (`.tap-nav-submenu`) was `position: static`, so opening one GREW THE
   NAV BAR and shoved the rest of the page down. Measured at 1440:

     Vibrators     nav 48 -> 179px, siblings y 135 -> 200
     Anal Toys     nav 48 -> 179px, siblings y 135 -> 200
     Male Toys     nav 48 -> 152px, siblings y 135 -> 187
     BDSM & Kink   nav 48 -> 261px, siblings y 135 -> 241
     Deals         nav 48 -> 179px, siblings y 135 -> 200

   Identical at 1280 and 1920. A menu that moves the thing you are
   pointing at is the defect, not a style preference.

   Desktop ONLY. At 390 this is an accordion and it SHOULD push content
   down -- that is what an accordion is, and AUTH-23 depends on it. */
@media (min-width: 981px) {
  .tap-main-nav__inner { position: relative; }

  .tap-main-nav .tap-nav-item { position: static; }

  .tap-main-nav .tap-nav-item > .tap-nav-submenu {
    position: absolute;
    top: 100%;
    left: 0;
    z-index: 60;
    min-width: 260px;
    max-width: min(420px, calc(100vw - 48px));
    margin: 0;
    padding: 18px 20px 20px;
    border: 1px solid var(--tap-border);
    border-radius: 0 0 14px 14px;
    background: #fff;
    box-shadow: 0 18px 40px rgba(80, 25, 45, .12);
  }

  /* Anchor each panel under ITS OWN item rather than the nav's left
     edge: `position: static` on the item hands positioning to
     `.tap-main-nav__inner`, so without this every panel would open at
     x=0. Each item re-takes the context only while its panel is open. */
  /* NOT `.tap-has-mega`. Making the mega's own item the containing
     block shrank the four-column panel from the full nav width to the
     127px of the "Shop by type" label -- my own regression from the
     first version of this rule, caught by re-measuring. The mega is
     `left:0; right:0` and must keep `.tap-main-nav__inner` as its
     context. */
  .tap-main-nav .tap-nav-item:not(.tap-has-mega):hover,
  .tap-main-nav .tap-nav-item:not(.tap-has-mega):focus-within,
  .tap-main-nav .tap-nav-item:not(.tap-has-mega).is-open { position: relative; }
}

/* --- 21.2 §123.3 Find Your Fit was still left-heavy at 1920 --------------
   Measured on 1.4.23 at 1920: the question card ran x=320..815, centre
   567, against a page centre of 960. I reported it centred after fixing
   only `.tap-quiz-questions`; the HERO above it is a separate block and
   was still pinned left, so the two did not share a centre line.
   One centred container for both, which is what §123.3 asks for. */
.tap-quiz-page .tap-quiz-hero,
.tap-quiz-page .tap-quiz-intro,
.tap-quiz-page .tap-quiz-result {
  width: min(900px, calc(100% - 40px));
  max-width: 900px;
  margin-inline: auto;
  float: none;
}
/* The card is a GRID CHILD of `.tap-quiz-workspace`, so `margin-inline:
   auto` on the card alone centres it inside its track and nothing more
   -- measured at 1920 after the first attempt: card centre 568 against
   a page centre of 960. Centre the TRACK. */
.tap-quiz-page .tap-quiz-workspace {
  grid-template-columns: minmax(0, 900px);
  justify-content: center;
}
.tap-quiz-page .tap-quiz-questions {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
  float: none;
}
.tap-quiz-page .tap-quiz-hero,
.tap-quiz-page .tap-quiz-hero * { text-align: center; }
.tap-quiz-page .tap-quiz-hero h1,
.tap-quiz-page .tap-quiz-hero p {
  margin-inline: auto;
  text-wrap: balance;
}

/* --- 21.3 §123.4 One container edge on category pages --------------------
   Measured on 1.4.23: at 1440 the H1 started at x=20 while the header
   and the filter column started at x=32; at 390 the H1 was at x=20 and
   the band and cards at x=39. Three different left edges on one page.
   The archive block now takes the same padding as everything else. */
.tap-archive-context,
body.tap-redesign.woocommerce .tap-archive-context {
  padding-left: 0;
  padding-right: 0;
}
body.tap-redesign.woocommerce .woocommerce-products-header,
body.tap-redesign.tax-product_cat .woocommerce-products-header {
  margin: 0;
  padding-left: 0;
  padding-right: 0;
}
body.tap-redesign.woocommerce .woocommerce-products-header h1,
body.tap-redesign.tax-product_cat .woocommerce-products-header h1,
body.tap-redesign.woocommerce .woocommerce-products-header .page-title,
body.tap-redesign.tax-product_cat .woocommerce-products-header .page-title {
  margin-left: 0;
  padding-left: 0;
}

/* The "large empty gap above the H1" §123.4 reports: the archive header
   carried top margin from Divi AND from the theme's own section
   spacing, stacked. One source now. */
body.tap-redesign.woocommerce #left-area > .woocommerce-products-header,
body.tap-redesign.tax-product_cat #left-area > .woocommerce-products-header {
  margin-top: 0 !important;
  padding-top: 8px !important;
}
body.tap-redesign.woocommerce #left-area > .woocommerce-notices-wrapper:empty,
body.tap-redesign.tax-product_cat #left-area > .woocommerce-notices-wrapper:empty {
  display: none;
}

/* The H1 lives in a Divi theme-builder post-title module, which uses
   Divi's own 20px gutter while the theme's page edge is 32px at desktop
   and 39px at 390 (both measured). Nudged onto the theme's edge so the
   page has ONE left edge, which is what §123.4 asks for. */
/* The H1 lives in a Divi theme-builder post-title module. Its ROW is
   the element that sets the edge, and it already matches the nav box at
   1920 (x=140, w=1640) but not at 1440 (x=20 w=1400 against the nav's
   x=32 w=1376). Size the ROW to the nav's own box so the page has ONE
   left edge.

   Two earlier attempts are recorded because both were wrong and
   re-measuring is what found them: a flat 12px padding landed on 32 at
   1440 but overshot to 152 at 1920, and sizing the inner
   `.et_pb_title_container` just inherited the parent's offset and made
   it 52. */
body.tap-redesign.woocommerce .et_pb_section_0_tb_body .et_pb_row,
body.tap-redesign.tax-product_cat .et_pb_section_0_tb_body .et_pb_row {
  width: min(1640px, calc(100% - 64px)) !important;
  max-width: min(1640px, calc(100% - 64px)) !important;
  margin-inline: auto !important;
}
@media (max-width: 980px) {
  body.tap-redesign.woocommerce .et_pb_section_0_tb_body .et_pb_row,
  body.tap-redesign.tax-product_cat .et_pb_section_0_tb_body .et_pb_row {
    width: calc(100% - 78px) !important;
    max-width: calc(100% - 78px) !important;
  }
}

/* --- 21.4 §123.4 banner ruling: an empty block renders NOTHING ----------
   The Reviewer's ruling, owner may overrule in UAT: "an empty gradient
   block is decoration with no content ... render NOTHING". The 720px
   fixed width goes entirely -- it is what made the band 57% of the
   column at 1920 and 2560 in the first place. A REAL hero image still
   renders, full column width. */
.tap-archive-context__hero-fallback,
.tap-archive-context__hero-fallback--quiet { display: none !important; }

.tap-archive-context__hero-image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin-bottom: 18px;
  border-radius: var(--tap-radius-lg);
}

/* --- 21.5 §123.5 the cart's "New in store" cards --------------------------
   §123.5 offered a choice: apply the shared card, or list it as a
   deliberate exception with a reason. REPORTED AS A PARTIAL EXCEPTION,
   and here is the reason.

   That block is not the theme's product grid. It is a WooCommerce
   BLOCKS grid -- `wp-block-product-new` / `.wc-block-grid__products` --
   with its own class tree and no `.tp-loop-actions`, so AUTH-44's row
   (Add to cart at 75% beside a compact Quick View) has nothing to
   attach to: the block renders no Quick View at all. Porting the whole
   component is a bigger change than this pass's scope freeze allows.

   What IS fixed is every specific thing §123.5 names -- the dark grey
   rectangular button, the red titles and the outlined SALE badge -- so
   the block reads as the same family as the product cards beside it. */
body.tap-redesign .wc-block-grid__product .wp-block-button__link,
body.tap-redesign .wc-block-grid__product .add_to_cart_button,
body.tap-redesign .wc-block-grid__product .wc-block-grid__product-add-to-cart .button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100% !important;
  min-height: 44px;
  padding: 0 14px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tap-rose) !important;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
body.tap-redesign .wc-block-grid__product .wc-block-grid__product-title,
body.tap-redesign .wc-block-grid__product .wc-block-grid__product-link {
  color: var(--tap-espresso) !important;
}
body.tap-redesign .wc-block-grid__product .wc-block-grid__product-onsale {
  border: 0 !important;
  border-radius: 999px !important;
  background: var(--tap-rose) !important;
  color: #fff !important;
  font-weight: 800 !important;
}

/* --- 21.6  1.4.24 Quick View label escaped its button ---------------------
   Caught in the 1.4.24 report capture, not by a test: the words "Quick
   View" were spilling out of the 44px circle on category pages. The
   font-size:0 in section 20.4 was being beaten by an older, more
   specific archive rule (body + 4 classes), so the label was still
   rendering at 12px with scrollWidth 54 in a 44px box.

   Specificity raised to match, and `overflow: hidden` added as a
   backstop so a future rule cannot put the text back on top of the
   layout -- a label that escapes its control is worse than one that is
   merely small. The accessible name is still the text node, untouched. */
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions .tp-qv-btn.tp-qv-btn {
  overflow: hidden;
  font-size: 0 !important;
  line-height: 0 !important;
  text-indent: 0;
  white-space: nowrap;
}
body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions .tp-qv-btn.tp-qv-btn::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  border: 2px solid currentColor;
  border-radius: 50% 12% 50% 12%;
  transform: rotate(45deg);
}
@media (max-width: 420px) {
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions .tp-qv-btn.tp-qv-btn {
    overflow: visible;
    font-size: 12px !important;
    line-height: 1.15 !important;
  }
  body.tap-redesign .woocommerce ul.products li.product .tp-loop-actions .tp-qv-btn.tp-qv-btn::before { display: none; }
}

/* =========================================================================
 * SECTION 22 -- 1.4.25. §124, the Reviewer's four small fixes.
 * ========================================================================= */

/* --- 22.1 §124.1 The mobile chevron sat on its OWN row, below a divider --
   Measured at 390 on 1.4.24: `.tap-nav-item` is `display: block`, so the
   label rendered at y=223 (54px tall, carrying the 1px divider) and the
   48px toggle at y=277 -- BELOW the divider, which made it read as
   belonging to the next item: "Vibrators / chevron / Anal Toys /
   chevron". One row, label left, chevron right, divider under the whole
   row. */
@media (max-width: 980px) {
  /* `.tap-has-mega` ("Shop by type") does NOT carry `.has-children`, so
     the first row kept the old stacked layout while every row below it
     was fixed -- visible in the first §124 capture and corrected here. */
  .tap-main-nav .tap-nav-item.has-children,
  .tap-main-nav .tap-nav-item.tap-has-mega {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    border-bottom: 1px solid rgba(110, 15, 47, .08);
  }
  /* The divider belongs to the ROW now, not to the label, or it draws
     between the label and its own chevron. */
  .tap-main-nav .tap-nav-item.has-children > a,
  .tap-main-nav .tap-nav-item.tap-has-mega > a {
    border-bottom: 0;
    padding-right: 8px;
  }
  .tap-main-nav .tap-nav-item.has-children > .tap-nav-submenu-toggle,
  .tap-main-nav .tap-nav-item.tap-has-mega > .tap-nav-submenu-toggle {
    grid-column: 2;
    justify-self: end;
    min-width: 48px;
    min-height: 48px;
  }
  /* The panel spans the whole row underneath both of them. */
  .tap-main-nav .tap-nav-item.has-children > .tap-nav-submenu,
  .tap-main-nav .tap-nav-item.has-children > .tap-mega,
  .tap-main-nav .tap-nav-item.tap-has-mega > .tap-mega {
    grid-column: 1 / -1;
  }

  /* "Explore <X>" was 500-weight and sat a couple of pixels off its
     siblings' left edge. Same edge, and a label treatment that reads as
     a heading for the list rather than as another link in it. */
  .tap-main-nav .tap-nav-submenu__label {
    margin: 10px 0 2px;
    padding: 0;
    color: var(--tap-wine);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .1em;
    text-transform: uppercase;
  }
}

/* --- 22.2 §124.2 120px of dead space under the H1 at 390 -----------------
   The archive block carried its own top margin on top of the Divi title
   module's bottom margin. One source, and the same left edge as the
   header: the header logo starts at x=20, so the H1, the description
   and the cards do too. */
@media (max-width: 980px) {
  body.tap-redesign.woocommerce .et_pb_section_0_tb_body .et_pb_row,
  body.tap-redesign.tax-product_cat .et_pb_section_0_tb_body .et_pb_row {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin-bottom: 0 !important;
  }
  body.tap-redesign.woocommerce .et_pb_post_title,
  body.tap-redesign.tax-product_cat .et_pb_post_title {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }
  body.tap-redesign.woocommerce .tap-archive-context,
  body.tap-redesign.tax-product_cat .tap-archive-context {
    margin-top: 8px !important;
    padding-top: 0 !important;
  }
  /* The archive column and the grid share the header's edge. */
  body.tap-redesign.woocommerce .tap-archive-context,
  body.tap-redesign.tax-product_cat .tap-archive-context,
  body.tap-redesign.woocommerce ul.products,
  body.tap-redesign.tax-product_cat ul.products {
    margin-left: 0 !important;
    margin-right: 0 !important;
  }
}

/* --- 22.3 §124.3 The Find Your Fit tint was a box with hard edges --------
   Centring the hero in 1.4.24 gave it a visible rectangle: measured
   edges at x=510 and x=1410 at 1920, against a white page. The tint now
   runs the FULL width behind the content, which stays centred, so there
   is no box edge to see at any width. */
.tap-quiz-page .tap-quiz-hero {
  position: relative;
  width: 100%;
  max-width: none;
  margin-inline: 0;
  padding-inline: 20px;
  background: none;
}
.tap-quiz-page .tap-quiz-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  left: 50%;
  width: 100vw;
  transform: translateX(-50%);
  background: linear-gradient(180deg, #fff6f1 0%, var(--tap-cream) 100%);
  z-index: 0;
}
.tap-quiz-page .tap-quiz-hero > * {
  position: relative;
  z-index: 1;
  max-width: 900px;
  margin-inline: auto;
}

/* --- 22.4 §124.2, second pass: the gap and the second left edge ----------
   The first attempt aligned the H1 (x=20, same as the header logo) but
   left two things measured on 1.4.25 at 390: a 110px gap between the H1
   and "Curated collection", and the archive column still at x=39 while
   the H1 sat at 20.

   Both come from the SECOND Divi row -- the one holding the shop module
   -- which has its own gutter and its own section spacing above it.
   Named classes are used because Divi generates them per layout; if the
   theme-builder layout is rebuilt these change, and this rule needs
   re-checking. That fragility is the cost of the fix and is stated
   rather than hidden. */
@media (max-width: 980px) {
  body.tap-redesign.woocommerce .et_pb_section_1_tb_body,
  body.tap-redesign.tax-product_cat .et_pb_section_1_tb_body {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
  body.tap-redesign.woocommerce .et_pb_row_1_tb_body,
  body.tap-redesign.tax-product_cat .et_pb_row_1_tb_body {
    width: calc(100% - 40px) !important;
    max-width: calc(100% - 40px) !important;
    margin-inline: auto !important;
    padding-top: 0 !important;
  }
  body.tap-redesign.woocommerce .et_pb_column_2_tb_body,
  body.tap-redesign.tax-product_cat .et_pb_column_2_tb_body {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }
}

/* --- 22.5 §124.2, what the 110px actually is ----------------------------
   IT IS NOT EMPTY. Measured at 390: between the H1 (bottom 203) and
   "Curated collection" (top 313) sits the COLLAPSED Filter control --
   `.et_pb_sidebar_0_tb_body`, 30px tall, holding the real filter
   widget. It reads as empty because a collapsed accordion summary is
   subtle, which is a fair thing to misread and worth saying plainly
   rather than "fixed".

   So the control stays and the SPACE around it goes: the H1's own
   bottom margin, the module's margins and the column's padding are all
   tightened at mobile. */
@media (max-width: 980px) {
  body.tap-redesign.woocommerce .et_pb_post_title .entry-title,
  body.tap-redesign.tax-product_cat .et_pb_post_title .entry-title {
    margin-bottom: 4px !important;
  }
  body.tap-redesign.woocommerce .et_pb_sidebar_0_tb_body,
  body.tap-redesign.tax-product_cat .et_pb_sidebar_0_tb_body {
    margin-top: 4px !important;
    margin-bottom: 4px !important;
  }
  body.tap-redesign.woocommerce .et_pb_column_1_tb_body,
  body.tap-redesign.tax-product_cat .et_pb_column_1_tb_body {
    margin-bottom: 4px !important;
    padding-bottom: 0 !important;
  }
}

/* =========================================================================
 * SECTION 23 -- 1.4.26. §125 and §126.
 * ========================================================================= */

/* --- 23.1 §125 MY §124 REGRESSION: the hero painted over the card top ----
   The quiz card is MEANT to tuck up into the hero -- `.tap-quiz-workspace`
   has `margin-top: -42px` (-25px at mobile) by design, and that is not
   the bug. The bug is that §124.3 made the hero a POSITIONED element
   with a painted `::before`, and the card is `position: static`, so the
   hero began painting OVER it.

   Measured at 1920 on 1.4.25: hero bottom 572 against a card top of 530
   -- a 42px overlap -- and `elementFromPoint` at the card's top edge AND
   at the centre of "01 Who is this for?" both returned
   `SECTION.tap-quiz-hero`. The heading was behind the tint.

   The tuck stays; the card takes the stacking order back. */
.tap-quiz-page .tap-quiz-workspace {
  position: relative;
  z-index: 2;
}
.tap-quiz-page .tap-quiz-questions,
.tap-quiz-page .tap-quiz-sidebar {
  position: relative;
  z-index: 2;
}
/* The hero's tint must never rise above the content that tucks into it. */
.tap-quiz-page .tap-quiz-hero { z-index: 0; }
.tap-quiz-page .tap-quiz-hero::before { z-index: -1; }

/* --- 23.2 §126 / AUTH-48 the store notice goes from purple to wine ------
   THEME CSS ONLY. The notice's text and the WooCommerce setting are NOT
   touched: the dismiss cookie is keyed to a hash of the notice TEXT, so
   editing the wording would un-dismiss the bar for everyone who had
   already dismissed it.

   Contrast: cream #fdf6f0 on wine #6e0f2f measures 11.07:1 (computed,
   not estimated), well past the 4.5:1 AA floor for body text. The link is underlined so it does
   not rely on colour alone. */
body.tap-redesign .woocommerce-store-notice,
body.tap-redesign p.woocommerce-store-notice.demo_store {
  background-color: var(--tap-wine, #6e0f2f) !important;
  color: #fdf6f0 !important;
  /* The footer is also a dark wine, so without this hairline the bar
     dissolves into it when the page is scrolled to the bottom -- seen in
     the 390 capture, not predicted. The border keeps it readable as a
     separate, dismissible thing. */
  border-top: 1px solid rgba(253, 246, 240, .28) !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  line-height: 1.4 !important;
}
body.tap-redesign .woocommerce-store-notice a,
body.tap-redesign p.woocommerce-store-notice.demo_store a {
  color: #fdf6f0 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px;
}
body.tap-redesign .woocommerce-store-notice a:hover,
body.tap-redesign .woocommerce-store-notice a:focus-visible {
  color: #fff !important;
}
/* MY OWN REGRESSION, caught by G3 and reverted here.
   I gave this a 44px min-height and 11px padding to make it a finger
   target. The notice is `position: fixed` at z-index 100000, so growing
   the LINK grew the thing sitting on top of the page: G3 1.4.26
   reported `cta-covered` TWICE -- "Add to cart" on product-simple @390
   and "Proceed to Checkout" on cart-filled @390, both
   "intercepted by a.woocommerce-store-notice__dismiss-link". cta-covered
   is a BLOCKING criterion and had been 0 in every previous run.

   A 44px target was my addition; §126 never asked for it. The link goes
   back to sitting inside the bar's own line, and the bar carries the
   comfortable height instead -- so the touch target comes from the bar,
   not from a box that reaches over the page. */
body.tap-redesign .woocommerce-store-notice__dismiss-link {
  display: inline;
  padding: 0 2px;
  color: #fdf6f0 !important;
  text-decoration: underline !important;
}
body.tap-redesign .woocommerce-store-notice,
body.tap-redesign p.woocommerce-store-notice.demo_store {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}
/* §126: at 390 it must not sit on top of the sticky add-to-cart, the
   bottom bar, the Tawk widget or the floating cart. It keeps its own
   row at the foot of the page instead of overlaying them. */
@media (max-width: 767px) {
  body.tap-redesign .woocommerce-store-notice,
  body.tap-redesign p.woocommerce-store-notice.demo_store {
    padding: 10px 14px !important;
    font-size: 13px !important;
    text-align: center;
    /* Measured first: the notice is `position: fixed` at z-index 100000
       and the sticky add-to-cart bar is fixed at z-index 500, so the
       notice sat ON TOP of it -- §126 forbids exactly that. tap-ui.js
       already publishes the bar's measured height as
       `--tap-sticky-atc-height`, so the notice rides above it and falls
       back to the page bottom (0px) when no sticky bar exists. */
    bottom: var(--tap-sticky-atc-height, 0px) !important;
  }
}

/* =========================================================================
 * SECTION 24 -- 1.4.28. §128 A, B and C.
 * ========================================================================= */

/* --- 24.1 §128 A: the horizontal scrollbar was MY 100vw --------------------
   §126 gave the Find Your Fit hero a full-bleed tint with
   `width: 100vw; left: 50%; transform: translateX(-50%)`.
   `100vw` includes the vertical scrollbar gutter BY DEFINITION, so on
   any browser with classic scrollbars -- which is what the owner has --
   the tint is ~15px wider than the content box and the page gains a
   horizontal scrollbar. Headless Chromium uses overlay scrollbars, so
   the suite could not see it: measured `::before` width 1920px against
   a 1920px viewport with a 0px scrollbar.

   The hero is ALREADY the full width of the page wrapper, which excludes
   the scrollbar. So the breakout is not needed at all: `inset: 0` gives
   exactly the same painted area and can never exceed the content box.
   Fixed at the cause, not hidden with `overflow-x`. */
.tap-quiz-page .tap-quiz-hero::before {
  left: 0;
  width: auto;
  transform: none;
  inset: 0;
}

/* --- 24.2 §128 B: the footer legal row sat under the floating cart --------
   The floating cart button and the scroll-to-top control are fixed at
   the bottom right. The legal row ran the full width beneath them, so
   "...18 or older to purchase." could sit under a button. Reserve the
   corner rather than shortening the sentence. */
@media (min-width: 981px) {
  .tap-site-footer__bottom {
    padding-right: 104px;
  }
}

/* --- 24.3 AUTH-49 (3): the mobile-only Find Your Fit row -----------------
   Present in the accordion, absent from the desktop row -- AUTH-49 rules
   out a new top-level desktop item, and the desktop row is already full
   at 1280. */
.tap-main-nav .tap-nav-item--fyf { display: none; }
@media (max-width: 980px) {
  .tap-main-nav .tap-nav-item--fyf {
    display: block;
    border-bottom: 1px solid rgba(110, 15, 47, .08);
  }
}

/* AUTH-49 (2): the top strip item is a link now, and must not look like
   a different thing from the two plain spans beside it. */
.tap-site-strip__inner a {
  color: inherit;
  text-decoration: none;
}
.tap-site-strip__inner a:hover,
.tap-site-strip__inner a:focus-visible {
  text-decoration: underline;
  text-underline-offset: 2px;
}
