/*
 * Zoey Made — shop archive.
 *
 * The presentation of `/shop/` and of the product-category and product-tag archives that
 * share its template. What this file styles is everything *around* the products: the
 * introduction, the catalogue controls, the grid, pagination, and what the page says when
 * it has nothing to show.
 *
 * What it does not style is the product card. That is components/product-card.css, it is
 * the same card the homepage renders, and STORE-006 §17 and §44 both draw the line here:
 * a Shop-only card is the failure this component exists to avoid. If a card looks wrong on
 * the archive it is wrong everywhere, and it gets fixed in one file.
 *
 * The rule the layout is written against is STORE-006 §36 — the catalogue should read as
 * *organized creativity*, not retail density. So the personality is spent in one place,
 * the introduction, and the grid itself is deliberately quiet: consistent cards, generous
 * gutters, and no decoration between them.
 *
 *   templates/archive-product.html   structure
 *   this file                        appearance
 *   blocks/shop-*, blocks/product-card   what each dynamic block renders
 *
 * It loads on the catalogue and its taxonomy archives and nowhere else — not the product
 * page, not cart, not checkout. See docs/CSS-AND-ASSETS.md.
 */

.zoey-shop {
  /*
   * Same reason as the homepage: the site's block gap would leave a strip of body
   * background between the sticky header and the introduction's coloured band. The
   * archive starts where the header ends.
   */
  margin-block-start: 0;
}

/*
 * The introduction.
 *
 * A band like the homepage's, and quieter than all of them. STORE-006 §8 is explicit that
 * this is not a second hero and that products should begin high on the page, so where the
 * homepage hero opens on spacing 70/80 this opens on 60 and closes on 50 — enough air to
 * read as a deliberate opening, not enough to cost a desktop visitor a screen of scrolling
 * before the first product.
 *
 * Surface Soft rather than a pale brand tint. The homepage mixes tints because its design
 * calls for washes of the palette; this needs one calm ground under a heading, and the
 * palette already has the token for that. See §38 in the implementation report: the tint
 * promotion question is answered by not needing one here.
 */
.zoey-shop-intro {
  /*
   * The closing padding is smaller than the opening one because the strip below carries the
   * gear and is part of this band rather than a break after it — see *The gear*.
   */
  padding-block: var(--wp--preset--spacing--60) var(--wp--preset--spacing--20);
  padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
  background-color: var(--wp--preset--color--surface-soft);

  /*
   * SL-006: the containing block for the accent layer, and the query container the accents' own
   * composition asks about.
   *
   * `position: relative` paints nothing and moves nothing. It exists so that
   * `.zoey-shop-intro__accents` is positioned against **this band** rather than against whichever
   * ancestor happened to establish a containing block — which is the failure
   * `components/decoration.css` describes and the reason the decoration group is a layer at all.
   *
   * The container is what lets the accents answer *is there room beside the words* in a unit that
   * tracks the reader's text size. See the composition rules below.
   */
  position: relative;
  container-type: inline-size;
  container-name: zoey-shop-hero;
}

/* --- The two hero accents (SL-006, D4 / G1) ---------------------------------------- */

/*
 * Where the required star and heart sit, and why this placement is the one `D4` asked for.
 *
 * `D4` requires both motifs, requires them **visually separated from the live discovery gear**,
 * and requires the gear's placement and behaviour preserved — adjusting the decoration *"within
 * the hero's safe space first"*. This is that adjustment, and it needed no change to the gear and
 * no comparison, because the band's own geometry already supplies the separation:
 *
 *   the accents   inside this band, against the trailing edge of the **content column**
 *   the gear      in `.zoey-shop-discovery`, a **separate strip below this band**
 *
 * The two are in different elements, and the accent layer is clipped to this band, so a mark
 * cannot reach the gear's row at any width or any text size. The measured vertical separation is
 * recorded in the implementation report rather than asserted here.
 *
 * **The layer tracks the content column, not the viewport.** The band is full-bleed; its words
 * stop at the 1240px wide size. A layer at the *band's* trailing edge would put a star in the far
 * corner of a 1920px screen, decorating nothing. So the layer takes the same inline insets and the
 * same wide-size maximum the intro's own inner wrapper takes, and centres the same way — which is
 * what keeps the accents in the white space beside the copy, where the design board puts them.
 */
/*
 * **Two classes, and the second one is load-bearing.** `components/decoration.css` gives every
 * group `inset: 0` as its default placement, and that file is enqueued after this one — so a
 * single-class rule here lost the whole inset declaration to it. Measured: the layer spanned the
 * full 390px viewport instead of the 350px content column, and the heart sat 20px past the trailing
 * edge of the words, hard against the screen.
 *
 * It is the same trap as the accents' size, twenty lines apart, and the same fix. A surface that
 * places a shared decoration layer has to out-specify the layer's own default; `decoration.css`
 * says so now.
 */
.zoey-decoration-group.zoey-shop-intro__accents {
  inset-block: 0;
  inset-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
  max-inline-size: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

/*
 * The heart is nudged in from the trailing edge so the pair reads as a composition rather than as
 * two marks in a column.
 *
 * **The surface owns this nudge, and that is the precedented split rather than a shortcut.** The
 * shared treatment offers named corners, deliberately; where two marks sit *relative to each
 * other* is a composition, and a composition belongs to the surface that arranged it.
 * `components/learn-session.css` adjusts the shared character composition from its own context for
 * exactly this reason, and `SL-005` cites it as the accepted pattern. No decoration rule is
 * copied here and no component API was added for it.
 */
.zoey-shop-intro__accents .zoey-doodle--heart {
  inset-inline-end: var(--wp--preset--spacing--70);
}

/*
 * The narrow composition — `D4`'s *"repositioned in safe hero space rather than omitted"*.
 *
 * **Below 1000px there is no trailing white space to tuck anything into, and the threshold is
 * measured rather than chosen.** The hero is a row: the character at its own width, then the words
 * capped at `40rem` by `page-intro.css`. A corner mark needs the words to stop short of the
 * column's trailing edge, and they only do once the row has more than `40rem` to give them.
 * Measured on the real page, with the desktop placement still in force:
 *
 *      768px   inner 31–738    star 681–729    3 overlaps
 *      900px   inner 36–864    star 808–856    1 overlap
 *     1000px   inner 40–960    star 904–952    none
 *     1440px   inner 100–1340  star 1284–1332  none
 *
 * **The condition is the container's width in `em`, not the viewport's in pixels.** A pixel
 * breakpoint asks how wide the screen is; the real question is whether the *words* leave any room
 * beside them, and the words are capped at `40rem` by `page-intro.css` — a cap that doubles with a
 * reader's text. So a pixel rule gets the ordinary case right and the enlarged one wrong, which is
 * exactly what happened: at an ordinary 1440 the accents sat in clear white space, and at a 32px
 * root the same rule left them on top of the heading. Measured, 3 overlaps.
 *
 * Trailing space needs the row to be wider than the character, the gap and the copy's cap together
 * — about `9rem + 1.5rem + 40rem` — so the threshold is a little above that, and it then answers
 * both cases with one number:
 *
 *     ordinary 1440   1240px =  77.5em   >  54em   corner marks, in the white space
 *     ordinary 1000    960px =  60.0em   >  54em   corner marks — measured clear
 *     ordinary  900    828px =  51.8em   <  54em   strip — and 900px did overlap under the old rule
 *     ordinary  768    706px =  44.1em   <  54em   strip
 *     doubled  1440   1240px =  38.8em   <  54em   strip — the failure this fixes
 *     doubled   390    350px =  10.9em   <  54em   strip
 *
 * Below the threshold the accents stop being corner marks and become **a small pair in the band's
 * opening strip**, above the hero row: the layer is capped to the opening padding, the marks go back
 * into normal flow — which makes the named corners inert without having to unset each one — and they
 * sit at the trailing end of that strip.
 *
 * The scale is a measurement too. The opening padding is `spacing--60`, which is 32px, and the
 * shared phone step of 0.7 would paint the `large` star at 33.6px — 1.6px taller than the strip it
 * has to fit inside. 0.6 paints it at 28.8px with 1.6px of air top and bottom, and the heart at
 * 19.2px beside it. The surface tunes its own composition here for the same reason, and with the
 * same precedent, as the heart's desktop nudge above.
 */
@container zoey-shop-hero (max-width: 54em) {
  .zoey-decoration-group.zoey-shop-intro__accents {
    inset-block-end: auto;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: var(--wp--preset--spacing--20);
    block-size: var(--wp--preset--spacing--60);
  }

  .zoey-shop-intro__accents .zoey-decoration {
    --zoey-decoration-scale: 0.6;

    position: static;
  }
}

/*
 * The intro's inner wrapper: the band's width, and nothing about the words in it.
 *
 * The heading, the supporting line and the lavender accent are the shared page introduction's
 * (VS-005) — `zoey_made_page_intro()` at `compact` with `accent: lavender`, which is the same
 * page-title step, the same `text-wrap: balance`, the same `overflow-wrap: anywhere` and the
 * same 3.5rem bar this file used to declare for itself. They are now declared once for all
 * three of the site's introductions. What stays here is the band.
 *
 * `page-title` rather than the homepage's display step was the size difference §8 asked for in
 * type as well as in spacing, and it is still that: both introductions take the heading element's
 * own size from `theme.json`, and the difference between the two surfaces is the spacing above
 * and below them, which is this file's and `homepage.css`'s respectively.
 *
 * The long-word rule that keeps a category's own name — `Measurement`, `Decorations`,
 * `Personalized` — from scrolling the archive sideways at 200% text on a 320px screen moved with
 * the heading. It was measured in all three engines on a product-category archive (PRODUCT-009
 * §64) and the reasoning is written out where the rule now lives.
 */
.zoey-shop-intro__inner {
  max-inline-size: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

/* --- The gear ---------------------------------------------------------------------- */

/*
 * Where the gear hides (DISCOVERY-005 §19, §20).
 *
 * The trailing edge of the intro band's white space, in a strip of its own, and the only
 * secret anywhere on the shop. §20 asks for the atmosphere around the heading rather than
 * the product grid, and this is as far from the grid as the route goes while still being
 * near the heading.
 *
 * The strip is the reason the placement is safe rather than merely well-intentioned. §8's
 * prohibitions — inside a Product Card, over a photo, beside a price, inside sorting, inside
 * a card's link target — are all things a secret can drift into when a product name runs
 * long, when there is one product, when there are forty, or when a category description is
 * three lines. Nothing shares this row, so none of that can reach it. The heading and the
 * supporting line above are equally safe from it: they end where the intro band's padding
 * begins, and this begins after that.
 *
 * Same Surface Soft as the intro, and no heading of its own, because this is the bottom of
 * that band rather than a section between the shop's name and its products. Most of the
 * height comes out of the intro's closing padding: 1.5rem becomes 0.5rem, and the shop is
 * 28px longer than it was.
 *
 * The gear itself — its teeth, its hub, its one-time hover nudge and the way it settles when
 * it is found — is components/discovery-object.css.
 */
.zoey-shop-discovery {
  padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
  background-color: var(--wp--preset--color--surface-soft);
}

.zoey-shop-discovery__inner {
  display: flex;
  justify-content: flex-end;
  max-inline-size: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

/*
 * Off the grid on purpose, and for the reason STORE-011 §19 gives for the homepage star:
 * flush with the trailing edge of the content column reads as alignment — a control placed
 * by a layout — and a little way inside it reads as something tucked into the white space
 * beside the section. It also stops the gear from lining up with the trailing edge of the
 * sort control in the band below, which is a coincidence of two grids rather than a
 * relationship and would read as one.
 *
 * Only where there is white space to tuck into. Below 1000px the column edge is close to the
 * screen edge and a nudge would cost touch room without buying anything.
 */
@media (min-width: 1000px) {
  .zoey-shop-discovery .zoey-discovery-object-slot {
    margin-inline-end: var(--wp--preset--spacing--60);
  }
}

/*
 * The no-JavaScript path opens a panel in the flow rather than a card over the page. It
 * hangs from the gear's own edge rather than dragging the gear to the panel's, and it is the
 * only state in which anything below this strip moves.
 */
.zoey-shop-discovery .zoey-discovery-fallback {
  text-align: end;
}

.zoey-shop-discovery .zoey-discovery-fallback__panel {
  margin-block-end: var(--wp--preset--spacing--20);
  margin-inline-start: auto;
}

/*
 * The catalogue band.
 *
 * Surface, so the products sit on the palette's cleanest ground and the photography is
 * what carries colour. Bounded by the global wide size, which is what keeps a 1920px
 * screen composed rather than letting the grid run to the edges — STORE-006 §21.
 */
.zoey-shop-catalogue {
  padding-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--80);
  padding-inline: var(--wp--style--root--padding-left) var(--wp--style--root--padding-right);
  background-color: var(--wp--preset--color--surface);
}

.zoey-shop-catalogue__inner {
  max-inline-size: var(--wp--style--global--wide-size);
  margin-inline: auto;
}

/*
 * The catalogue controls.
 *
 * WooCommerce's own result count and sort control, restyled rather than replaced: the
 * count is whatever wc_get_template() prints and the sort is a real <select> with a real
 * name, so sorting stays a URL the browser can navigate and share. STORE-006 §14 rules out
 * swapping it for a scripted dropdown to make it prettier, and §65 rules out remembering
 * the choice anywhere but the request.
 *
 * Mobile stacks and desktop puts the count opposite the control (§15, §16). Stacked is the
 * base state rather than the exception, because a cramped two-item toolbar on a phone is
 * the thing §15 asks to avoid.
 */
.zoey-shop-controls {
  display: flex;
  flex-direction: column;
  gap: var(--wp--preset--spacing--30);
  margin-block-end: var(--wp--preset--spacing--50);
}

@media (min-width: 600px) {
  .zoey-shop-controls {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--wp--preset--spacing--40);
  }
}

/*
 * The result count. Useful, and visually secondary — §12. Ink Soft on Surface, which is a
 * pairing the palette already guarantees, and body-small rather than smaller: FOUND-011's
 * type floor applies to secondary text too.
 */
.zoey-shop-controls .woocommerce-result-count {
  margin: 0;
  font-size: var(--wp--preset--font-size--body-small);
  color: var(--wp--preset--color--ink-soft);
}

/*
 * WooCommerce's classic stylesheet floats this form right, which is how the control found
 * its position on a default storefront and is wrong in both of the layouts here: stacked
 * on a phone it left the select adrift in the middle of the row, and on desktop it was
 * doing by float what the flex row already does by alignment. Cleared, so the two
 * arrangements are the flex container's decision alone.
 */
.zoey-shop-controls .woocommerce-ordering {
  float: none;
  margin: 0;
}

/*
 * The sort control.
 *
 * A native select, styled to belong here and nothing more. The 44px minimum is the
 * project's touch target (§54); the padding and the radius are the same language as the
 * card; and the label stays the block's own aria-label rather than being removed for
 * tidiness, which §51 forbids.
 *
 * No appearance: none. Stripping the native chevron means drawing one, and a select that
 * does not look like a select is a control people stop recognising — the one thing §14
 * asks to preserve.
 */
.zoey-shop-controls .orderby {
  min-block-size: 44px;
  max-inline-size: 100%;
  padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--30);
  border: 1px solid var(--wp--preset--color--border-soft);
  border-radius: var(--wp--custom--radius--small);
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
  font-family: inherit;
  font-size: var(--wp--preset--font-size--body-small);
}

/*
 * The grid.
 *
 * WooCommerce's Product Template ships its own density: an auto-fill track with a 150px
 * floor, which on a 320px phone puts two 150px cards side by side and keeps doing it at
 * every width in between. That is not the density STORE-004 measured and STORE-006 §18
 * inherits, so it is replaced with an explicit ladder: one card, then two from 360px, then
 * three from 760px.
 *
 * **SL-006's `D3` removed the fourth column, and this is the one place the two surfaces now
 * differ.** They used to share the whole ladder — including four across from 1080px — and the
 * comment here said a product should not change size crossing between them. Product approved three
 * columns at 1440 CSS px for the catalogue, which supersedes `STORE-006` §20's *"4 columns at large
 * desktop widths"* **for `/shop/` and its product-taxonomy archives only**; the homepage's Featured
 * Creations keeps its accepted four-across density and its accepted card. So the first three rungs
 * are still identical and the fourth is deliberately absent here, which is a bigger card on a wide
 * screen rather than a different one.
 *
 * **The card's `sizes` moved with it**, and that is not cosmetic: at three across the desktop card
 * grows past the 300px the shared default advertises, and a `sizes` describing a four-column row
 * would hand the browser a candidate too small for the box. `blocks/product-card/render.php`
 * supplies the archive's own measured value; every other consumer keeps the default.
 *
 * One column below 360px is §19: at 320px two cards leave neither one readable, and no
 * horizontal scroll is acceptable to fix it.
 *
 * Three classes deep on purpose. WooCommerce's rule is two (`.wc-block-product-template__responsive.columns-4`)
 * and its stylesheet's position relative to this one is not something a component should
 * depend on — the same load-order question product-card.css documents. Winning on
 * specificity means this behaves the same whichever prints first.
 */
.zoey-shop .zoey-shop-collection .wc-block-product-template {
  grid-template-columns: 1fr;
  gap: var(--wp--preset--spacing--50);
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 360px) {
  .zoey-shop .zoey-shop-collection .wc-block-product-template {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .zoey-shop .zoey-shop-collection .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1080px) {
  .zoey-shop .zoey-shop-collection .wc-block-product-template {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

/*
 * **The catalogue stops at three — `D3` — and only the catalogue.**
 *
 * The four-column rung above is the accepted ladder and is left in place, because this stylesheet
 * loads on `/shop/` **and** on every product-category and product-tag archive, and `D3` keeps
 * taxonomy archives on *"their accepted presentation in this story"*. So the fourth column is
 * removed by an override scoped to the catalogue rather than by deleting the rule — which is what
 * keeps a term archive rendering exactly as it was accepted.
 *
 * `post-type-archive-product` is core's own body class for this request and is precisely
 * WooCommerce's `is_shop()`. The same boundary is kept in PHP by
 * `blocks/product-card/render.php` for the variant and `blocks/shop-intro/render.php` for the
 * character and the accents, so all four parts of SL-006 stop at the same line.
 *
 * The first implementation deleted the rung instead, and a term archive quietly went to three
 * columns with soft-paper cards on it — measured on `/product-category/test-craft-kits/`.
 *
 * Three columns is then the catalogue's density at every width from 760px up, including 1440 and
 * including a 1920px screen, where §21's wide-container bound is what stops the row from running to
 * the edges.
 */
@media (min-width: 1080px) {
  body.post-type-archive-product .zoey-shop .zoey-shop-collection .wc-block-product-template {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* --- The enlarged-text fallback ---------------------------------------------------- */

/*
 * **One column when the reader's text size makes more than one unusable.**
 *
 * The ladder above is in CSS pixels, so it answers *how wide is the screen* and cannot answer *how
 * big is the text*. At 390px with a reader's text at 200% the two-column rule still applied and the
 * result was unusable rather than merely tight — measured on the page:
 *
 *     the card            85px wide
 *     "View details"      a 19px box holding a 100px word: one letter per line, ten lines
 *     "$12.50"            fragmented across lines, mid-number
 *     the Sold Out badge  70 x 290px inside an 85 x 85px media box, clipped to the letter S
 *
 * **A container query is the right instrument and the only one that works here.** `em` inside
 * `@container` resolves against the *container's* font size, which inherits the root — so this
 * responds to the actual text a reader has asked for. A `rem` media query cannot: in a media query,
 * font-relative units resolve against the browser's *initial* font size and ignore the page's own
 * root, so it would answer a different question and miss this entirely.
 *
 * **16em, and the bound is arithmetic rather than taste.** The container is the same 350px wide at
 * 390px whatever the text size, so the threshold has to separate the two cases by where it lands:
 *
 *     ordinary text   16em = 256px   350 > 256   no match   two columns, as approved
 *     doubled text    16em = 512px   350 < 512   match      one column
 *
 * Anything above 21.875em would catch ordinary 390px too and break the approved two columns;
 * anything below about 11em would miss doubled text. 16em sits between with margin on both sides.
 *
 * It **only ever reduces** the column count. Three at an ordinary 1440 and two at an ordinary 390
 * are untouched, which is what `D3` approved, and nothing here shrinks text, truncates a title,
 * hides a badge or clips content to make a row fit.
 */
.zoey-shop .zoey-shop-collection {
  container-type: inline-size;
  container-name: zoey-shop-grid;
}

/*
 * **The three-column band steps down to two first**, before anything collapses to one.
 *
 * Scoped inside the px media query on purpose, and the scoping is what makes the threshold
 * possible. A single container threshold cannot separate *doubled text on a tablet* from *ordinary
 * text on a phone*: the first wants a match at a 706px container and the second must not match at
 * a 350px one, and 706/32 = 22.06em is already above 350/16 = 21.875em. Inside `min-width: 760px`
 * the phone case cannot arise, so 26em is free to be chosen for the tablet alone:
 *
 *     ordinary 768    26em = 416px   706 > 416   no match   three columns
 *     doubled 768     26em = 832px   706 < 832   match      two columns
 *     ordinary 1440   26em = 416px   1240 > 416  no match   three columns
 *     doubled 1440    26em = 832px   1240 > 832  no match   three columns, and measured comfortable
 *
 * Without it, 768px at a 32px root kept three columns and a 72px label box holding a 100px word.
 */
@media (min-width: 760px) {
  @container zoey-shop-grid (max-width: 26em) {
    .zoey-shop .zoey-shop-collection .wc-block-product-template {
      grid-template-columns: repeat(2, minmax(0, 1fr));
    }
  }
}

/*
 * One column, **last so it wins**. Both container rules are one selector deep, so source order is
 * what decides when a very narrow container matches both — and the narrower answer is the right
 * one. Stated here rather than relied on silently, because this file has already been bitten twice
 * by source order deciding something nobody chose.
 */
@container zoey-shop-grid (max-width: 16em) {
  .zoey-shop .zoey-shop-collection .wc-block-product-template {
    grid-template-columns: 1fr;
  }
}

/*
 * An incomplete last row is left incomplete — §22. No stretching, no filler, no centring
 * of the remainder: the grid flows from the leading edge and a row of two under a row of
 * four simply ends. This is where an archive is allowed to differ from the homepage, whose
 * Featured Creations is a composition of a known small number and centres accordingly.
 *
 * The rule is that there is no rule here, which is worth stating: `justify-items` and
 * `place-content` are both deliberately unset.
 */
.zoey-shop .zoey-shop-collection .wc-block-product-template > li {
  margin: 0;
  display: flex;
}

/* The card fills its cell, so a row of cards with names of different lengths still has
   one baseline along the bottom of the row rather than four ragged card heights. */
.zoey-shop .zoey-shop-collection .wc-block-product-template > li > .zoey-product-card {
  inline-size: 100%;
}

/*
 * Pagination.
 *
 * Server-rendered links, which is the whole of §23: a page is a URL, the back button
 * works, and there is no script. Styled as pills large enough to hit (§24, §54).
 */
.zoey-shop-pagination {
  margin-block-start: var(--wp--preset--spacing--70);
  gap: var(--wp--preset--spacing--20);
}

.zoey-shop-pagination .page-numbers,
.zoey-shop-pagination .wp-block-query-pagination-previous,
.zoey-shop-pagination .wp-block-query-pagination-next {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-inline-size: 44px;
  min-block-size: 44px;
  padding-inline: var(--wp--preset--spacing--30);
  border: 1px solid var(--wp--preset--color--border-soft);
  border-radius: var(--wp--custom--radius--small);
  background-color: var(--wp--preset--color--surface);
  color: var(--wp--preset--color--ink);
  font-size: var(--wp--preset--font-size--body-small);
  text-decoration: none;
}

/*
 * The current page.
 *
 * Filled *and* bold *and* carrying core's own aria-current="page" — §24 rules out saying
 * it in colour alone, so weight is the visual half of the answer and the attribute is the
 * announced one. Someone who cannot distinguish the fill still has a heavier number and a
 * screen reader still says "current page".
 */
.zoey-shop-pagination .page-numbers.current {
  border-color: var(--wp--preset--color--ink);
  background-color: var(--wp--preset--color--ink);
  color: var(--wp--preset--color--surface);
  font-weight: 700;
}

/* The gap in a long run of pages. Not a control, so it takes none of the pill treatment
   and is not a touch target pretending to be one. */
.zoey-shop-pagination .page-numbers.dots {
  min-inline-size: 0;
  padding-inline: var(--wp--preset--spacing--10);
  border: 0;
  background: none;
  color: var(--wp--preset--color--ink-soft);
}

@media (hover: hover) {
  .zoey-shop-pagination a.page-numbers:hover,
  .zoey-shop-pagination a.wp-block-query-pagination-previous:hover,
  .zoey-shop-pagination a.wp-block-query-pagination-next:hover {
    border-color: var(--wp--preset--color--zoey-lavender);
    background-color: var(--wp--preset--color--surface-soft);
  }
}

/*
 * The empty state.
 *
 * A real heading, a sentence, and one link that goes somewhere that exists — §26 and §55.
 * Centred and given room, because an empty catalogue should look composed rather than
 * broken. What is deliberately absent: any control that would do nothing, and any
 * suggestion of products that are not there.
 */
.zoey-shop-empty {
  max-inline-size: var(--wp--custom--measure);
  margin-inline: auto;
  padding-block: var(--wp--preset--spacing--70);
  text-align: center;
}

.zoey-shop-empty__title {
  margin: 0;
  font-size: var(--wp--preset--font-size--section-small);
  line-height: 1.3;
}

.zoey-shop-empty__body {
  margin-block: var(--wp--preset--spacing--30) var(--wp--preset--spacing--50);
  color: var(--wp--preset--color--ink-soft);
}

.zoey-shop-empty__action {
  margin: 0;
}
