/* ===========================================================================
   transplant.css — the theme-owned layer, loaded last.

   reference.css is the reference storefront's own stylesheet and styles every
   lifted surface. This file covers what the reference never had to: the
   platform's own wrappers, the controls the lift made real (dropdown menus,
   the live search, the card add control's loading state, the swipeable gallery),
   the platform surfaces (cart page + drawer, quick view, option radios, filters,
   account, search, blog) that arrive in the base theme's class vocabulary, and
   the state classes the platform's JS toggles (.hidden, .loading, .transparent,
   .price--on-sale), each of which needs a visible half.
   Every rule is written in the reference's tokens (--c-*, --fs-*, --radius-*),
   so a colour change in the theme editor reaches these surfaces too.

    1. Platform utilities + base-theme variable bridge
    2. Header additions (logo size, dropdowns, row overflow)
    3. Drawers (slide-in, menu accordions, live search, cart drawer body)
    4. Homepage additions (hero, section rhythm, category grid, offer, rails)
    5. Product card (add control contract, loading, grid wrapper)
    6. Product page (gallery track, sticky column, price states, options, tabs)
    7. Collection (page head, toolbar, filters, empty state, pagination)
    8. Cart (page + drawer skin of the base cart template)
    9. Quick view modal
   10. Content pages (rte, page, blog, article, search, 404, store locator)
   11. Platform-rendered controls (.btn aliases, auth challenge, currency picker)
   12. Footer additions
   13. Motion kill-switch
   =========================================================================== */

/* ── 1. Platform utilities + base-theme variable bridge ─────────────────────
   The base component sheets (cart, price, quick view, account) paint from the
   base theme's comma-triplet variables; mapped here onto this palette. */
:root {
  --color-foreground: 34, 49, 61;
  --color-background: 255, 253, 248;
  --color-base-text: 34, 49, 61;
  --color-base-background-1: 255, 253, 248;
  --color-base-background-2: 246, 241, 229;
  --color-base-solid-button-labels: 34, 49, 61;
  --color-base-outline-button-labels: 34, 49, 61;
  --color-base-accent-1: 252, 190, 40;
  --color-base-accent-2: 252, 190, 40;
  --color-button: 252, 190, 40;
  --color-button-text: 34, 49, 61;
  --color-link: 34, 49, 61;
  --color-card-hover: 34, 49, 61;
  --alpha-button-background: 1;
  --alpha-button-border: 1;
  --alpha-link: 0.85;
  --duration-short: 100ms;
  --duration-default: 200ms;
  --duration-long: 500ms;
  --page-width: var(--container);
  /* the solid button's colours (reference.css paints .btn--primary in the accent yellow),
     named so the platform surfaces below follow a palette change, and the
     photograph tile */
  --c-btn-bg: var(--c-accent);
  --c-btn-ink: var(--c-accent-ink);
  --c-tile-bg: var(--c-surface-2);
  /* the sale badge and the cart count share one colour pair (Theme settings > Colors) */
  --c-badge-bg: var(--c-accent);
  --c-badge-ink: var(--c-accent-ink);
}

/* author display rules (.toolbar__btn, .railnav button …) would otherwise beat the attribute */
[hidden] { display: none !important; }
.hidden { display: none !important; }
.hide { display: none !important; }
.visibility-hidden { visibility: hidden; }
html.no-js .no-js-hidden { display: none !important; }
.list-unstyled { margin: 0; padding: 0; list-style: none; }
.break { word-break: break-word; }
.right { text-align: right; }
.visually-hidden--inline { margin: 0; height: 1em; }
@media (max-width: 749px) { .small-hide { display: none !important; } }
@media (min-width: 750px) and (max-width: 989px) { .medium-hide { display: none !important; } }
@media (min-width: 990px) { .large-up-hide { display: none !important; } }
body.overflow-hidden { overflow: hidden; }
html.ezpet-locked { overflow: hidden; }
main:focus { outline: none; }
.container--narrow { max-width: var(--container-narrow); }
.skip-link {
  position: absolute; top: 0.5rem; left: 0.5rem; z-index: 100;
  padding: 0.5rem 0.875rem; border-radius: var(--radius-button);
  background: var(--c-ink); color: var(--c-bg); font-size: var(--fs-small); font-weight: var(--fw-bold);
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }
/* headings and buttons the platform pages add outside the reference's own heads */
.section__title { font-size: var(--fs-h2); }
.btn { cursor: pointer; }
.btn--outline { background-color: transparent; color: var(--c-ink); border-color: var(--c-ink); }
.btn--outline:hover { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.textlink { cursor: pointer; }

/* ── 2. Header additions ───────────────────────────────────────────────────── */
/* the header sticks in the flow (reference.css); a header set to scroll away
   does not */
.header[data-sticky="none"] { position: relative; }
.header__logo { display: flex; align-items: center; }
.header__logo img { max-height: var(--logo-h, 69px); width: auto; max-width: min(40vw, 220px); object-fit: contain; }
.header__name { font-family: var(--font-display); font-size: 1.5rem; text-transform: uppercase; line-height: 1; }
.announce a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
/* the platform's count hook sits on the reference's badge (one colour pair with the
   sale badge, Theme settings > Badges); cart-drawer.js toggles .hidden at zero */
.cart-count { background: var(--c-cart-count-bg, var(--c-badge-bg)); color: var(--c-cart-count-ink, var(--c-badge-ink)); pointer-events: none; }
.icon-btn { cursor: pointer; color: inherit; }
.cart-count-bubble.hidden { display: none !important; }
.link { cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ── 3. Drawers ─────────────────────────────────────────────────────────────── */
/* reference.css switches a drawer on with display; here the scrim fades and the
   panel slides in from its own edge ([hidden] still removes a closed drawer) */
.drawer {
  display: block; opacity: 0; visibility: hidden;
  transition: opacity var(--dur) var(--ease), visibility var(--dur);
}
.drawer.is-open { opacity: 1; visibility: visible; }
.drawer__panel { transition: translate var(--dur) var(--ease); }
.drawer--left .drawer__panel { translate: -100% 0; }
.drawer--end .drawer__panel, .drawer--search .drawer__panel { translate: 100% 0; }
.drawer.is-open .drawer__panel { translate: 0 0; }
.drawer__head h2 { margin: 0; }
.drawer__close { cursor: pointer; }

/* menu drawer — the menu as native details accordions, four levels */
.drawer__group > summary {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  min-height: 3.25rem; border-bottom: var(--border-width) solid var(--c-line);
  font-family: var(--font-display); font-size: var(--fs-h3); color: var(--c-ink);
  cursor: pointer; list-style: none;
}
.drawer__group > summary::-webkit-details-marker { display: none; }
.drawer__group > summary .icon { transition: rotate var(--dur) var(--ease); }
.drawer__group[open] > summary .icon { rotate: 180deg; }
.drawer__nav details { border-bottom: 1px solid var(--c-line); }
.drawer__nav .drawer__group > summary { border-bottom: 0; font-size: 1.625rem; min-height: 0; padding: 0.875rem 0; }
.drawer__nav .drawer__children a {
  justify-content: flex-start; min-height: 2.5rem; border: 0; padding-left: 0.75rem;
  font-family: var(--font-body); font-size: var(--fs-small); color: var(--c-ink-muted);
}
.drawer__nav .drawer__children a:hover { color: var(--c-ink); }
.drawer__children { padding-block: 0 0.6rem; }
.drawer__grandchildren { padding-left: 0.75rem; }
.drawer__nav .drawer__grandchildren a { min-height: 2.125rem; }
.drawer__util { display: grid; margin-top: 1.5rem; }
.drawer__util a { display: flex; align-items: center; gap: 0.6rem; min-height: 2.75rem; font-size: var(--fs-small); color: var(--c-ink); }
.drawer__util a:hover { color: var(--c-ink-muted); }
.drawer__currency { padding-top: 1rem; }

/* search sheet — the form, live hits, and popular-search links */
.searchfield input::-webkit-search-cancel-button { cursor: pointer; }
.search-results:empty { display: none; }
.search-results[aria-busy="true"] { opacity: 0.55; transition: opacity var(--dur) var(--ease); }
.search-hit__img { display: block; }
.search-hit { grid-template-columns: 56px minmax(0, 1fr) auto; }
.searchform { display: block; }
.drawer__body { overflow: auto; }
.search-hit__price { display: inline-flex; font-size: var(--fs-small); align-items: baseline; gap: 0.5rem; }
.search-hit__price s { font-size: var(--fs-micro); color: var(--c-ink-subtle); }
.search-all { margin-top: 1.25rem; }
.search-suggest { padding-top: 1.25rem; }
.search-suggest__title { margin-bottom: 0.75rem; }
.search-suggest__chips { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.search-chip {
  display: inline-flex; align-items: center; min-height: 2.25rem; padding-inline: 1rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  font-size: var(--fs-small); color: var(--c-ink);
  transition: border-color var(--dur) var(--ease);
}
.search-chip:hover { border-color: var(--c-ink); }

/* cart drawer — the shared base cart template inside the reference's drawer. The
   panel keeps reference.css's absolute anchoring (right edge, top to bottom): a
   `position: relative` here dropped it into flow — a content-high box at the
   top-left of the scrim. It still contains .cart__loading's inset: 0. */
.drawer--cart .drawer__panel { width: min(440px, 92vw); padding: 0; overflow: hidden; }
.drawer--cart .drawer__head { padding: 1.1rem 1.1rem 0.85rem; }
.cart__count { color: var(--c-ink-subtle); }
.cart__body { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 0.25rem 1.1rem 1.25rem; display: flex; flex-direction: column; }
.cart__body > #cart-template { flex: 1; display: flex; flex-direction: column; }
.cart__body #cart-form { flex: 1; display: flex; flex-direction: column; }
.cart__loading {
  position: absolute; inset: 0; z-index: 3; display: grid; place-items: center;
  background: rgb(255 255 255 / 0.6);
}
.cart__loading.hidden { display: none !important; }
/* the head stays above the loading veil, so the drawer can be closed mid-request */
.cart__top { position: relative; z-index: 4; background: var(--c-surface); }
.cart__loading .spinner { width: 2.75rem; height: 2.75rem; }
.cart__loading .path { stroke: var(--c-btn-bg); }
/* the draft's cart drawer (store-makeovers/ezpet index.html): a rounded panel over a
   blurred scrim, a round close, the free-shipping bar, 76px square photos, the foot
   pinned under a rule, and a centred empty state with the cat */
.drawer--cart .drawer__panel { width: min(430px, 92vw); gap: 0; border-radius: var(--radius-panel) 0 0 var(--radius-panel); }
.drawer--cart .drawer__head { padding: 1.25rem 1.25rem 1rem; }
.drawer--cart .drawer__head .iconbtn { width: 54px; height: 54px; }
.drawer--cart .ship { margin: 0 1.25rem .25rem; }
.drawer--cart .ship[hidden] { display: none; }
.drawer--cart .cart__body { padding: 0 1.25rem 1.25rem; }
#CartDrawer .cart-items thead { display: none; }
#CartDrawer .cart-item { grid-template-columns: 76px minmax(0, 1fr) auto; column-gap: .9rem; row-gap: .65rem; padding-block: 1rem; align-content: start; }
#CartDrawer .cart-item__media a { width: 76px; border-radius: 14px; background: var(--c-surface-2); }
#CartDrawer .cart-item__image { object-fit: cover; padding: 0; }
#CartDrawer .cart-item__name { font-weight: 600; }
#CartDrawer .cart-item__totals .price { font-family: var(--font-display); font-weight: 600; font-size: .9375rem; }
#CartDrawer #main-cart-footer { margin-top: auto; }
#CartDrawer .cart__footer { padding-top: 1rem; border-top: 1px solid var(--c-line); }
#CartDrawer .cart__blocks { max-width: none; gap: .9rem; }
#CartDrawer .totals__subtotal { font-size: 1.0625rem; font-weight: var(--fw-body); }
#CartDrawer .totals__subtotal-value { font-family: var(--font-display); font-size: 1.375rem; font-weight: 600; }
#CartDrawer .tax-note { display: none; }
#CartDrawer cart-items.is-empty { margin-block: auto; }
#CartDrawer cart-items.is-empty .cart__warnings { justify-items: center; padding: 2rem 1rem; text-align: center; }
#CartDrawer .cart__empty-text { font-family: var(--font-body); font-size: 1rem; font-weight: var(--fw-body); color: var(--c-ink-muted); }
#CartDrawer .cart__warnings .button { min-height: 2.5rem; padding-inline: 1.25rem; }
#CartDrawer cart-items.is-empty { flex: 1; display: flex; flex-direction: column; justify-content: center; }
.cart__emptycat .catglyph { width: 2.5rem; height: auto; fill: currentColor; }
/* the sales-pop app's toast floats at z-index 99998 over the top of a phone screen —
   right on the drawers' close buttons. It stands down while a drawer (html lock from
   init.js) or the quick view (body lock from product-quickview.js) is open. */
html.ezpet-locked [id$="sales_pop__apps"], body.overflow-hidden [id$="sales_pop__apps"] { display: none; }


/* ── 4. Homepage additions ─────────────────────────────────────────────────── */
/* the shoppable card on the collection grid: the platform wraps each in li.grid__item */
.pgrid > .grid__item { display: grid; min-width: 0; list-style: none; }
/* the homepage app slots (templates/home): page width, clipped sideways — the
   star-rating app's carousel reaches 20px past both edges */
.home-apps { overflow-x: clip; }
.home-apps:not(:has(*)) { display: none; }
.home-apps:has(*) { padding-block: var(--section-y-tight); }

/* components the platform templates carry (page heads, tabs, quantity stepper,
   product plate, rails of related products) — re-stated in this theme's tokens */
.textlink {display: inline-block;
  padding-bottom: 0.25rem;
  border-bottom: var(--border-width) solid currentColor;
  font-size: var(--fs-micro);
  font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-caps);
  text-transform: uppercase;
  color: var(--c-ink);
  transition: color var(--dur) var(--ease); }
.textlink:hover {color: var(--c-ink-muted); }
.drawer--end .drawer__panel {right: 0; }
.section__tools {display: flex; align-items: center; gap: 1.5rem; flex: none; padding-bottom: 0.375rem; }
.railnav {display: none; gap: 0.5rem; }
.railnav button {width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: var(--border-width) solid var(--c-line);
  color: var(--c-ink);
  transition: border-color var(--dur) var(--ease); }
.railnav button:hover {border-color: var(--c-ink); }
@media (min-width: 900px) {
  .railnav {display: inline-flex; }
}
.rail__track {display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 72%;
  gap: 1rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none; }
.rail__track::-webkit-scrollbar {display: none; }
.rail__track > * {scroll-snap-align: start; }
@media (min-width: 600px) {
  .rail__track {grid-auto-columns: calc((100% - 2rem) / 3); }
}
@media (min-width: 1000px) {
  .rail__track {grid-auto-columns: calc((100% - 4.5rem) / 4); gap: 1.5rem; }
}
.cats {display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem 1rem; }
@media (min-width: 900px) {
  .cats {grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2.5rem 1.5rem; }
}
.cat {display: flex; flex-direction: column; gap: 0.875rem; color: var(--c-ink); }
.cat__pic {display: block; overflow: hidden; border-radius: var(--radius-card); background-color: var(--c-surface-2); }
.cat__pic img {width: 100%; aspect-ratio: 4 / 3; object-fit: cover; transition: transform 600ms var(--ease); }
.cat:hover .cat__pic img {transform: scale(1.035); }
.cat__label {display: flex; align-items: baseline; justify-content: space-between; gap: 0.75rem; font-family: var(--font-display); font-size: var(--fs-h3); line-height: 1.2; }
.cat__count {font-family: var(--font-body); font-size: var(--fs-micro); letter-spacing: 0.06em; color: var(--c-ink-muted); white-space: nowrap; }
.pagehead {padding-block: 1.5rem 2.25rem; }
.pagehead h1 {font-family: var(--font-display); font-weight: var(--fw-display); letter-spacing: var(--tracking-display); font-size: var(--fs-h1); line-height: var(--lh-tight); }
.pagehead p {margin-top: 1rem; color: var(--c-ink-muted); max-width: 38rem; }
.subnav {display: flex; flex-wrap: wrap; gap: 0.5rem 1.75rem; padding-bottom: 1.5rem; }
.subnav a {font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); padding-bottom: 0.25rem; border-bottom: var(--border-width) solid transparent; }
.subnav a:hover {color: var(--c-ink); }
.subnav a[aria-current] {color: var(--c-ink); border-bottom-color: var(--c-ink); }
.gallery__thumb { border-radius: 10px; overflow: hidden; border: 2px solid transparent; transition: border-color var(--dur) var(--ease); }
.gallery__thumb:hover { border-color: var(--c-line); }
.gallery__thumb.is-active { border-color: var(--c-ink); }
.gallery__thumb img { width: 100%; }
.buy__now {font-size: var(--fs-h3); color: var(--c-ink); }
.buy__was {color: var(--c-ink-subtle); text-decoration: line-through; }
.buy__opts {margin-top: 1.75rem; padding-top: 1.5rem; border-top: var(--border-width) solid var(--c-line); }
.buy__facts {margin-top: 1.75rem; display: grid; gap: 0.75rem; font-size: var(--fs-small); color: var(--c-ink-muted); }
.buy__facts li {display: grid; grid-template-columns: 1.25rem minmax(0, 1fr); gap: 0.75rem; align-items: start; }
.buy__facts .icon {margin-top: 0.125rem; color: var(--c-ink); }
.tabs {margin-top: 2rem; }
.tabs__list {display: flex; gap: 2rem; border-bottom: var(--border-width) solid var(--c-line); }
.tabs__tab {padding-block: 0.875rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); border-bottom: var(--border-width) solid transparent; margin-bottom: -1px; }
.tabs__tab.is-active {color: var(--c-ink); border-bottom-color: var(--c-ink); }
.tabs__panel {padding-top: 1.25rem; font-size: var(--fs-small); color: var(--c-ink-muted); }
.tabs__panel dl {display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); }
.tabs__panel dt, .tabs__panel dd {margin: 0; padding-block: 0.625rem; border-bottom: var(--border-width) solid var(--c-line); }
.tabs__panel dd {color: var(--c-ink); }
.tabs__panel p + p {margin-top: 0.75rem; }
.page-head__lede { color: var(--c-ink-muted); margin-top: 0.35rem; }
.subnav a { white-space: nowrap; }
/* the price box (snippets/price): one branch shows, picked by .price--on-sale */
.price-container, div.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.25rem 0.625rem; }
.price-container:not(.price--on-sale) .price__sale, .price:not(.price--on-sale) .price__sale { display: none; }
.price-container.price--on-sale .price__regular, .price.price--on-sale .price__regular { display: none; }
.price__sale { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 0.5rem; }
.price--sale { color: var(--c-sale); }
/* the amounts inside the box are spans that also carry .price (snippets/price), which
   the base component sheet sizes as a whole price box: they take the box's size */
.price-container .price.price-item, div.price .price.price-item { display: inline; font-size: inherit; line-height: inherit; letter-spacing: inherit; margin: 0; }
.price-container .price-item:not(.price--sale), div.price .price__regular .price-item { color: inherit; }
.compare-at-price { color: var(--c-ink-subtle); text-decoration: line-through; font-size: 0.8em; }
.price--large { font-size: var(--fs-h3); color: var(--c-ink); }
.card__meta .price-container { color: var(--c-ink); font-weight: var(--fw-bold); }

/* ── 5. Product card ───────────────────────────────────────────────────────── */
/* The add control is an add-to-cart-button element holding the reference's square
   .card__add (a sample card holds a plain link). The wrapper is a one-cell grid, so
   the platform's loading overlay shares the button's cell and the spinner lands on
   the button. */
.card { position: relative; }
.card__addwrap { position: relative; display: grid; }
.card__addwrap > * { grid-area: 1 / 1; }
.card__add, .add-sq, .addToClassList { cursor: pointer; }
/* global.js adds .transparent while the add is in flight: the label hides under the spinner */
.card__add.transparent > *, .add-sq.transparent > * { visibility: hidden; }
.card__add-label { pointer-events: none; }
.card__add.transparent { color: transparent; }
.card__addwrap .loading-overlay {
  position: relative; inset: auto; z-index: 1; width: auto;
  display: grid; place-items: center; pointer-events: none;
}
.card__addwrap .loading-overlay.hidden { display: none !important; }
.card__addwrap .loading-overlay__spinner { position: static; width: 1.125rem; display: block; }
.card__addwrap .loading-overlay .path { stroke: var(--c-accent-ink); }
/* in flight the button holds its filled look whether or not the pointer is still
   on it, so the slate spinner always sits on the yellow */
.card__addwrap:has(.loading-overlay:not(.hidden)) .card__add,
.card__addwrap:has(.loading-overlay:not(.hidden)) .add-sq {
  background-color: var(--c-accent); border-color: var(--c-accent); color: transparent;
}
.card .card__addwrap { position: relative; z-index: 1; margin-top: auto; }
/* the draft lifts its bare .btn over the photograph on hover (reference.css); here the
   button sits inside add-to-cart-button, so the wrapper takes that role and the
   button inside stays in its cell, where the spinner can share it */
@media (hover: hover) and (min-width: 960px) {
  .card__body .card__addwrap {
    position: absolute; left: .75rem; right: .75rem; top: calc(100cqw - 42px - .75rem); z-index: 2;
    opacity: 0; transform: translateY(10px);
    transition: opacity .3s var(--ease), transform .45s var(--ease-spring);
  }
  .card:hover .card__body .card__addwrap, .card:focus-within .card__body .card__addwrap,
  .card__body .card__addwrap:has(.loading-overlay:not(.hidden)) { opacity: 1; transform: none; }
  .card__body .card__addwrap .btn { position: static; opacity: 1; transform: none; width: 100%; }
  .card:hover .card__body .card__addwrap .btn:hover { transform: translateY(-2px); }
}
.card__badge { position: absolute; top: 0.75rem; left: 0.75rem; }
.card__badge--sale { background: var(--c-badge-bg); color: var(--c-badge-ink); }
.card.is-sold .card__media img { opacity: 0.7; }
.add-sq { cursor: pointer; }
.card__price .money { white-space: nowrap; }
.card__price .price-container { font-size: inherit; color: inherit; font-weight: inherit; }
.grid.is-loading { opacity: 0.4; pointer-events: none; transition: opacity var(--dur) var(--ease); }
/* Every collection card sits in the platform's li.grid__item wrapper — the
   section renders it, /filtered_section_html returns it, and the Infinite
   Scrolling app appends by it. */
.grid > .grid__item { display: grid; min-width: 0; list-style: none; }
/* the platform wishlist heart (collection/product_top) takes the photograph's top-right corner */
.card > .wishlist-icon-btn {
  position: absolute !important; top: 0.5rem; right: 0.5rem; z-index: 3;
  width: 2.25rem !important; height: 2.25rem; border-radius: var(--radius-pill);
  background: rgb(255 255 255 / 0.92);
}

/* ── 6. Product page ───────────────────────────────────────────────────────── */
/* reference.css sets no column template below 900px: one implicit auto track sizes
   to its widest content (the gallery track), so pin it to the page width */
.pdp { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .pdp { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); } }
.crumbs a { text-decoration: none; }
/* gallery: a scroll-snap track of full-width slides (init.js §5) — each slide is
   the reference's .gallery__main plate, the photograph shown whole inside it */
.gallery__viewer { position: relative; min-width: 0; }
.gallery__stage {
  display: flex; overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x mandatory; overscroll-behavior-x: contain;
  scrollbar-width: none; touch-action: pan-x pan-y pinch-zoom;
}
.gallery__stage::-webkit-scrollbar { display: none; }
.gallery__stage:focus-visible { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.gallery__stage.is-dragging, .gallery__stage.is-settling { scroll-snap-type: none; }
.gallery__stage.is-dragging { cursor: grabbing; }
.gallery__stage.is-dragging * { user-select: none; }
.gallery__stage:has(.gallery__slide + .gallery__slide) { cursor: grab; }
.gallery__slide { flex: 0 0 100%; min-width: 0; scroll-snap-align: start; scroll-snap-stop: always; }
.gallery__slide .gallery__main img { object-fit: contain; cursor: zoom-in; }
.gallery__stage.is-dragging .gallery__main img { cursor: grabbing; }
/* the reference's square plate, the photograph shown whole inside it on the tile
   ground (reference.css draws .gallery__main as the picture itself; here it is
   the slide's frame) */
.gallery__main { aspect-ratio: 1 / 1; overflow: hidden; }
.gallery__main img { width: 100%; height: 100%; }
/* thumbnails: one compact row that scrolls sideways (init.js keeps the active one in
   view) — the reference's 4-up grid wrapped five photographs into two rows of
   166px tiles that outweighed the plate once it was sized to fit the viewport */
.gallery__thumbs {
  display: flex; gap: 0.5rem; overflow-x: auto; overscroll-behavior-x: contain;
  scrollbar-width: none; padding-bottom: 1px;
}
.gallery__thumbs::-webkit-scrollbar { display: none; }
.gallery__thumb { flex: 0 0 auto; width: clamp(3.25rem, 9vw, 4.5rem); cursor: pointer; }
.gallery__thumb img { aspect-ratio: 1 / 1; object-fit: cover; background-color: var(--c-surface-2); border-radius: 8px; }
.gallery__arrow {
  position: absolute; top: 50%; z-index: 2;
  width: 2.75rem; height: 2.75rem; display: none; place-items: center;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  background: var(--c-bg); color: var(--c-ink); cursor: pointer;
  opacity: 0; transform: translateY(-50%);
  transition: opacity var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.gallery__arrow--prev { left: 0.75rem; }
.gallery__arrow--next { right: 0.75rem; }
.gallery__arrow:hover { border-color: var(--c-ink); }
@media (hover: hover) and (pointer: fine) {
  .gallery__arrow { display: grid; }
  .gallery__viewer:hover .gallery__arrow:not(:disabled),
  .gallery__arrow:focus-visible:not(:disabled) { opacity: 1; }
  .gallery__arrow:disabled { pointer-events: none; }
}
/* lightbox: the photograph at full size over the page — the drawer machinery with a
   centred stage (reference.css's side-panel geometry undone), the picture on the
   scrim, close at the corner, arrows at the sides, the count beneath */
.drawer--lightbox { z-index: 70; background-color: rgb(18 13 11 / 0.84); }
.drawer--lightbox .drawer__panel {
  inset: 0; width: auto; padding: 3.5rem 1rem 3rem; translate: none;
  display: grid; place-items: center; background: transparent; box-shadow: none;
  opacity: 0; scale: 0.98; touch-action: pan-y pinch-zoom; user-select: none;
  transition: opacity var(--dur) var(--ease), scale var(--dur) var(--ease);
}
.drawer--lightbox.is-open .drawer__panel { opacity: 1; scale: 1; }
.lightbox__backdrop { position: absolute; inset: 0; border: 0; padding: 0; margin: 0; background: transparent; cursor: zoom-out; }
.lightbox__img {
  position: relative; z-index: 1; display: block; width: auto; height: auto;
  max-width: min(100%, 1400px); max-height: calc(100vh - 6.5rem); max-height: calc(100dvh - 6.5rem);
  object-fit: contain; background: var(--c-surface); box-shadow: var(--shadow-pop);
}
.lightbox__close {
  position: absolute; top: 0.75rem; right: 0.75rem; z-index: 2;
  color: var(--c-bg); background: rgb(18 13 11 / 0.35); border-radius: var(--radius-button);
}
.lightbox__close:hover { color: var(--c-bg); background: rgb(18 13 11 / 0.6); }
.lightbox__arrow {
  position: absolute; top: 50%; z-index: 2; translate: 0 -50%;
  width: 2.75rem; height: 2.75rem; display: grid; place-items: center;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  background: var(--c-bg); color: var(--c-ink); cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.lightbox__arrow--prev { left: 0.75rem; }
.lightbox__arrow--next { right: 0.75rem; }
.lightbox__arrow:hover { border-color: var(--c-ink); }
.lightbox__count {
  position: absolute; left: 0; right: 0; bottom: 1rem; z-index: 2; margin: 0; text-align: center;
  font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps);
  text-transform: uppercase; color: var(--c-bg);
}
@media (max-width: 767px) {
  .drawer--lightbox .drawer__panel { padding: 3.5rem 0.5rem 3rem; }
  .lightbox__arrow { width: 2.25rem; height: 2.25rem; }
  .lightbox__arrow--prev { left: 0.5rem; }
  .lightbox__arrow--next { right: 0.5rem; }
}
/* desktop: the gallery rides along under the sticky header while the buy column
   (the taller one once a description and the platform's promotions land in it)
   scrolls past; reference.css pinned the buy column instead */
@media (min-width: 900px) {
  .pdp .buy { position: static; }
  .pdp .gallery { position: sticky; top: calc(var(--ezpet-header-h, 76px) + 1.25rem); align-self: start; width: 100%; }
  /* pinned, the WHOLE gallery stays in view: init.js publishes --gallery-main, the
     plate's side in px, so plate + every thumbnail row fit under the header; a
     plate narrower than the column sits centred on its slide */
  .pdp .gallery__slide { display: flex; justify-content: center; }
  .pdp .gallery__main { width: var(--gallery-main, 100%); max-width: 100%; }
}
/* price states: global.js toggles .price--on-sale from the selected variant */
.buy__price { margin-bottom: 0; }
.buy__price .price-item { display: inline; }
.buy__price:not(.price--on-sale) .buy__was,
.buy__price:not(.price--on-sale) .buy__save { display: none; }
.buy__save:empty { display: none; }
.buy__was { text-decoration: line-through; }
.product-form { display: block; margin: 0; }
/* the variant picker — EasyStore.OptionSelectors' output, dressed by init.js; its
   label is the reference's small caps .pcard__label */
.opt__label { display: block; margin-bottom: 0.5rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); }
.buy__opts:not(:has(.selector-wrapper, fieldset, select:not(.hide))) { display: none; }
.buy__opts .selector-wrapper { display: flex; flex-direction: column; margin: 0; }
.opt__set { margin: 0; padding: 0; border: 0; min-width: 0; }
.opt__set legend { padding: 0; }
/* OptionSelectors wraps each option in div.selector-wrapper-<select id> (not
   .selector-wrapper), so the groups are spaced directly */
.buy__opts [class^="selector-wrapper"] + [class^="selector-wrapper"] { margin-top: 1.25rem; }
.buy__opts .selector-wrapper::after { display: none; }
/* the draft's .opts__row: chips wrap with a .5rem gap (the hidden radios take no room) */
.opt__values { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.opt__radio {
  position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0;
  clip-path: inset(50%); pointer-events: none;
}
label.opt__value {
  display: inline-flex; align-items: center; justify-content: center; margin: 0; line-height: 1.3; cursor: pointer;
  min-height: 40px; padding: 0.45rem 0.8rem; border: 1.5px solid var(--c-line); background: var(--c-surface);
  border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: 500; color: var(--c-ink);
}
label.opt__value:hover { border-color: var(--c-ink); }
.opt__radio:checked + .opt__value { background-color: var(--c-ink); border-color: var(--c-ink); color: var(--c-bg); }
.opt__radio:focus-visible + .opt__value { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.opt__radio.disabled + .opt__value, .opt__radio:disabled + .opt__value { opacity: 0.42; text-decoration: line-through; }
/* "Buttons with variant image" (radio-img): OptionSelectors puts the variant's picture
   in the label (img.variant-img-label) beside the value as span.label__text. A value
   with a picture is a square tile (rounded like the chips), its name stays for screen
   readers, and the chosen one is ringed OUTSIDE the picture — the checked fill is hidden
   under it. Pictureless values in the same row stay buttons, tile-tall. */
.opt__values .opt__radio + .opt__value.variant-img-label-wrapper { min-height: 3.75rem; }
.opt__values .opt__radio + .opt__value:has(.variant-img-label) {
  position: relative; width: 3.75rem; min-width: 0; height: 3.75rem; padding: 0; overflow: hidden;
}
.opt__values .opt__value .variant-img-label { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.opt__values .opt__value .variant-img-label + .label__text {
  display: block; position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}
.opt__values .opt__radio:checked:not(:focus-visible) + .opt__value:has(.variant-img-label) { outline: 2px solid var(--c-ink); outline-offset: 2px; }
.opt__select {
  width: 100%; max-width: 22rem; min-height: 2.75rem; padding: 0 2.5rem 0 1rem;
  background: var(--c-bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4a41' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.9rem center / 1rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-input);
  color: var(--c-ink); font-size: var(--fs-small); appearance: none; -webkit-appearance: none;
}
/* quantity — the reference's .qty stepper, driven by the quantity-input element */
.product-form__quantity { display: flex; flex: none; }
.qty button { cursor: pointer; }
.qty button:disabled { opacity: 0.35; cursor: not-allowed; }
.qty input { font-variant-numeric: tabular-nums; }
/* app controls the platform inserts after the buy row (the wishlist's `a.btn.wishlist`
   in the product/button slot) sit a clear step below it as the outline button */
.buy__row ~ .btn { display: flex; width: 100%; margin-top: 0.75rem; }
.buy__row ~ .btn.wishlist { background-color: transparent; color: var(--c-ink); border-color: var(--c-line); }
.buy__row ~ .btn.wishlist:hover { border-color: var(--c-ink); }
/* the add button's in-flight state (product-form.js adds .loading) */
.btn .loading-spinner { display: none; }
.btn.loading { position: relative; pointer-events: none; }
.btn.loading .btn__text { visibility: hidden; }
.btn.loading .loading-spinner { display: grid; place-items: center; position: absolute; inset: 0; }
.btn .loading-spinner .spinner { width: 1.35rem; height: 1.35rem; }
.btn .loading-spinner .path { stroke: var(--c-btn-ink); }
/* product-form.js also disables the button for the round trip, and the reference's
   `.btn:disabled` is the sold-out look (a faded fill) — a button that is only busy
   keeps its ink fill under the spinner */
.btn.product-form__submit.loading[disabled] { background-color: var(--c-btn-bg); border-color: var(--c-btn-bg); color: var(--c-btn-ink); cursor: progress; opacity: 1; }
/* the draft's .buy stack spaced its rows with a gap; the platform <form> wraps the
   picker and the buy row, so the buy row restates the space below the picker */
.product-form .buy__row { margin-top: 1.25rem; }
.form__message { display: flex; gap: 0.5rem; align-items: flex-start; margin-top: 0.875rem; color: var(--c-sale); font-size: var(--fs-small); }
.form__message.hidden { display: none !important; }
/* the platform's promotion widget (product/description_top) is several blocks that
   stay empty on a store without promotions */
.buy__promos { min-width: 0; }
.buy__promos:has(#sf_promo-container > *) { margin-top: 1.5rem; }
/* the bundle row scrolls sideways inside its own box, but its absolutely placed
   original prices resolve to the page, not the row, and widened a 375px phone page
   to 825px: the scrolling row becomes their containing block */
.buy__promos .sf_promo-main-container-margin { position: relative; }
/* every sideways-scrolling row is its own containing block for the same reason:
   the related-products rail's absolutely placed card parts widened the page too */
.rail__track, .hero__track, .gallery__stage, .gallery__thumbs { position: relative; }
.tabs__tab { cursor: pointer; }
.tabs__panel .rte { font-size: var(--fs-small); }
.tabs__panel .rte + .tabs__rows { margin-top: 1rem; }
.buy__share { margin-top: 1.75rem; }
.pdp-desc__body { max-width: 52rem; }
.pdp__apps:has(*) { margin-bottom: var(--section-y-tight); }
.related-band[hidden] { display: none; }
/* share (snippets/social-sharing) — round icon buttons */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 0.375rem; }
.share__label { margin-right: 0.25rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-muted); }
.share__link {
  position: relative; display: inline-grid; place-items: center; width: 2.25rem; height: 2.25rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); color: var(--c-ink);
}
.share__link:hover { background: var(--c-surface-2); }
.share__copied {
  position: absolute; bottom: calc(100% + 0.4rem); left: 50%; transform: translateX(-50%);
  padding: 0.3rem 0.55rem; white-space: nowrap; border-radius: var(--radius-button);
  background: var(--c-ink); color: var(--c-surface);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); opacity: 0; pointer-events: none;
  transition: opacity var(--dur) var(--ease);
}
.share__copy.is-copied .share__copied { opacity: 1; }


/* ── 7. Collection ────────────────────────────────────────────────────────── */
.pagehead__lede { margin-top: 1rem; color: var(--c-ink-muted); max-width: 38rem; }
.pagehead__lede.rte > * + * { margin-top: 0.5rem; }
.clist { padding-bottom: var(--section-y); }
/* the reference's ruled toolbar: the count on the left, filters and sort on the right */
.toolbar { gap: 0.75rem 1rem; }
.toolbar__count { font-size: var(--fs-small); color: var(--c-ink-muted); }
.toolbar__tools { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.toolbar__btn {
  display: inline-flex; align-items: center; gap: 0.4rem;
  min-height: 2.5rem; padding: 0 1rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  background: transparent; color: var(--c-ink);
  font-size: var(--fs-small); cursor: pointer;
  transition: border-color var(--dur) var(--ease);
}
.toolbar__btn:hover { border-color: var(--c-ink); }
/* the filter bar — ONE set of controls, two presentations (snippets/collection-filters):
   desktop drops each facet's panel from its button; phones put a Filter button in one
   row with the sort select and open every facet, expanded, in a slide-in panel */
.facets__group { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; }
.facets__label { display: inline-flex; align-items: center; gap: 0.375rem; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.facet { position: relative; }
.facet__trigger { cursor: pointer; user-select: none; }
.facet.is-open > .facet__trigger { border-color: var(--c-ink); }
.facet__caret { transition: rotate var(--dur) var(--ease); }
.facet.is-open .facet__caret { rotate: 180deg; }
.facet__count {
  min-width: 1.125rem; padding: 0 0.3rem; line-height: 1.125rem; text-align: center;
  border-radius: var(--radius-pill); background: var(--c-btn-bg); color: var(--c-btn-ink);
  font-size: 0.625rem;
}
.facet__panel {
  display: none;
  position: absolute; top: calc(100% + 0.375rem); left: 0; z-index: 20;
  min-width: 15rem; max-height: 22rem; overflow-y: auto; padding: 0.5rem;
  background: var(--c-surface); border: var(--border-width) solid var(--c-line);
  border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
}
.facet.is-open > .facet__panel { display: block; }
.facet__option { display: flex; align-items: center; gap: 0.625rem; padding: 0.5rem; border-radius: var(--radius-button); cursor: pointer; font-size: var(--fs-small); color: var(--c-ink); }
.facet__option:hover { background: var(--c-surface-2); }
.facet__option input, .facet--toggle input { accent-color: var(--c-btn-bg); width: 1rem; height: 1rem; margin: 0; }
.facet__name { flex: 1; }
.facet__n { font-size: var(--fs-micro); color: var(--c-ink-subtle); }
.facet.is-open > .facet__panel--price { display: flex; }
.facet__panel--price { gap: 0.625rem; padding: 0.875rem; }
.facet__price { display: grid; gap: 0.3rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.facet__price input {
  width: 6.5rem; height: 2.375rem; padding: 0 0.75rem; background: var(--c-surface-2); color: var(--c-ink);
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
}
.facet__price input:focus { outline: none; border-color: var(--c-ink-subtle); background: var(--c-surface); }
.facet--toggle { cursor: pointer; }
.facets__clear { font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-btn-bg); text-decoration: underline; text-underline-offset: 0.2em; }
.facets__sort { display: flex; align-items: center; }
.facets__select { position: relative; padding-right: 0.5rem; }
.facets__select select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding: 0 1.25rem 0 0; background: transparent; border: 0; outline: none;
  font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-ink);
}
.facets__select select option { background: var(--c-surface); color: var(--c-ink); font-weight: var(--fw-body); }
.facets__select > .icon:last-child { position: absolute; right: 0.75rem; pointer-events: none; }
.facets__select:focus-within { outline: 2px solid var(--c-btn-bg); outline-offset: 2px; }
.facets__toggle { position: relative; }
.facets__toggle .facet__count { margin-left: 0.125rem; }
@media (min-width: 768px) {
  /* the panel shell steps out of the box model: its groups sit in the bar as pills.
     [hidden] is the drawer's closed state from a phone-width session — restated so
     rotating back to a wide screen never hides the filters */
  .facets__drawer, .facets__drawer[hidden], .facets__panel, .facets__foot { display: contents !important; }
  .facets__toggle, .facets__head, .facets__done { display: none; }
}
@media (max-width: 767px) {
  .toolbar { flex-wrap: nowrap; }
  .toolbar__count { flex: none; }
  .toolbar__tools { flex-wrap: nowrap; min-width: 0; margin-left: auto; }
  .facets__sort { min-width: 0; }
  /* min-width: 0 — a select is as wide as its longest option and would not shrink */
  .facets__select select { min-width: 0; max-width: 7.5rem; text-overflow: ellipsis; }
  .facets__label { display: none; }
  /* the panel: the menu drawer's shell (scrim, slide from the left) */
  .facets__drawer {
    position: fixed; inset: 0; z-index: 70;
    display: flex; justify-content: flex-start;
    background: transparent; visibility: hidden; pointer-events: none;
    transition: background var(--dur) var(--ease), visibility var(--dur) var(--ease);
  }
  .facets__drawer.is-open { background: var(--c-scrim); visibility: visible; pointer-events: auto; }
  .facets__panel {
    width: min(380px, 88vw); height: 100%;
    display: flex; flex-direction: column;
    background: var(--c-surface);
    transform: translateX(-100%); transition: transform var(--dur) var(--ease);
  }
  .facets__drawer.is-open .facets__panel { transform: none; }
  .facets__head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 1rem 1.1rem; border-bottom: var(--border-width) solid var(--c-line);
  }
  .facets__title { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; }
  .facets__close { display: grid; place-items: center; width: 2.5rem; height: 2.5rem; color: var(--c-ink); }
  /* every group expanded under its heading, values as chips */
  .facets__group { flex: 1 1 auto; min-height: 0; overflow-y: auto; display: block; padding: 0.25rem 1.1rem 1.25rem; }
  .facet { position: static; padding-block: 1rem; border-bottom: var(--border-width) solid var(--c-line); }
  .facet__trigger {
    min-height: 0; padding: 0; margin-bottom: 0.75rem; border: 0; background: none; pointer-events: none;
    font-size: var(--fs-small); font-weight: var(--fw-bold); color: var(--c-ink);
  }
  .facet.is-open > .facet__trigger { border: 0; }
  .facet__caret { display: none; }
  .facet__panel, .facet.is-open > .facet__panel {
    display: flex; flex-wrap: wrap; gap: 0.5rem;
    position: static; min-width: 0; max-height: none; overflow: visible; padding: 0;
    background: none; border: 0; border-radius: 0; box-shadow: none;
  }
  .facet__option {
    display: inline-flex; gap: 0.375rem; padding: 0.4375rem 0.875rem;
    border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button);
  }
  .facet__option:hover { background: none; }
  .facet__option input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
  .facet__option:has(input:checked) { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); font-weight: var(--fw-bold); }
  .facet__option:has(input:checked) .facet__n { color: inherit; }
  .facet__option:has(input:focus-visible) { outline: 2px solid var(--c-btn-bg); outline-offset: 2px; }
  .facet__name { flex: none; }
  .facet__panel--price { flex-wrap: nowrap; }
  .facet__price { flex: 1 1 0; }
  .facet__price input { width: 100%; }
  .facet--toggle { margin-top: 1rem; }
  .facets__foot {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.875rem 1.1rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
    border-top: var(--border-width) solid var(--c-line);
  }
  .facets__done { flex: 1 1 auto; }
}
.clist__empty { display: grid; justify-items: start; gap: 1rem; padding-block: 0.5rem 2rem; color: var(--c-ink-muted); font-size: var(--fs-small); }
/* pagination (base snippet, reference look). Every rule is scoped under
   .pagination-wrapper: the snippet lazy-loads the base component sheet AFTER this
   one, and its bare .pagination__item rules would win a tie */
.pagination-wrapper { margin-top: clamp(1.75rem, 4vw, 2.5rem); }
.pagination-wrapper .pagination__list { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.375rem; margin: 0; padding: 0; list-style: none; }
.pagination-wrapper .pagination__item {
  display: inline-grid; place-items: center; min-width: 2.5rem; height: 2.5rem; padding: 0 0.625rem;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); background: var(--c-surface);
  color: var(--c-ink); font-size: var(--fs-small); font-weight: var(--fw-bold); text-decoration: none;
}
.pagination-wrapper .pagination__item:hover { border-color: var(--c-ink-subtle); }
.pagination-wrapper .pagination__item--current { background: var(--c-ink); color: var(--c-bg); border-color: var(--c-ink); }
.pagination-wrapper .pagination__item .icon { width: 0.7rem; height: 0.7rem; }
.pagination-wrapper .pagination__item--next .icon { transform: rotate(90deg); }
.pagination-wrapper .pagination__item--prev .icon { transform: rotate(-90deg); }
.pagination-wrapper .pagination__item::after { display: none; }

/* ── 8. Cart — the base cart template in the reference's look ──────────────
   snippets/cart-template + cart-item keep the base theme's markup ON PURPOSE:
   the platform re-renders cart-template server-side after every add / quantity /
   remove / voucher change (/new_cart*), so the skin reads the base vocabulary
   (.quantity, .button, .title-wrapper-with-link …) in the reference's tokens. */
.cart-page .section__head { margin-bottom: 1rem; }
#cart-template, #cart-form { color: var(--c-ink); }
cart-items { display: block; }
/* the cart page and the drawer each carry their own heading */
#cart-template .title-wrapper-with-link { display: none; }
.cart__warnings { display: none; }
cart-items.is-empty .cart__warnings { display: grid; justify-items: start; gap: 1rem; padding-block: 1rem 2rem; }
cart-items.is-empty .cart__items, #main-cart-footer.is-empty { display: none; }
#cart-template .cart__items { padding-bottom: 0; border-bottom: 0; }
.cart__empty-text { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h3); }
/* base .button family -> the reference's .btn (accent / outline) */
#cart-template .button, .vouchers-modal .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 2.75rem; padding: 0.5rem 1.35rem; border: var(--border-width) solid var(--c-btn-bg);
  border-radius: var(--radius-button); background: var(--c-btn-bg); color: var(--c-btn-ink);
  font-family: var(--font-body); font-weight: var(--fw-bold); font-size: var(--fs-small);
  letter-spacing: 0; text-decoration: none; cursor: pointer; box-shadow: none;
  transition: filter var(--dur) var(--ease), background var(--dur) var(--ease);
}
#cart-template .button::before, #cart-template .button::after,
.vouchers-modal .button::before, .vouchers-modal .button::after { display: none; }
#cart-template .button:hover, .vouchers-modal .button:hover { filter: brightness(0.9); }
#cart-template .button--secondary, .vouchers-modal .button--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
#cart-template .button--secondary:hover, .vouchers-modal .button--secondary:hover { background: var(--c-surface-2); filter: none; }
#cart-template .button.loading { opacity: 0.6; pointer-events: none; }
/* Checkout / Express checkout while the cart form posts to /cart (cart.js flags the
   pressed submit .loading): a ring in the button's own label colour instead of the fade.
   The label is hidden with the text fill, not `color`, so currentColor still names it —
   under the hover fill too, which outlives the click until the pointer moves. (1,3,1)
   beats the `display: none` this sheet puts on every cart button's pseudo-elements. */
#cart-template .cart__ctas .button.loading { position: relative; opacity: 1; -webkit-text-fill-color: transparent; }
#cart-template .cart__ctas .button.loading::after {
  content: ""; display: block; position: absolute; top: 50%; left: 50%; width: 20px; height: 20px; margin: -10px 0 0 -10px;
  box-sizing: border-box; border: 2px solid currentColor; border-top-color: transparent; border-radius: 50%;
  animation: cart-submit-spin 0.8s linear infinite;
}
@keyframes cart-submit-spin { to { transform: rotate(360deg); } }
.cart-items { width: 100%; border-collapse: collapse; border-spacing: 0; }
.cart-items thead th {
  padding: 0 0 0.75rem; text-align: left; border-bottom: var(--border-width) solid var(--c-line);
  font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase;
  color: var(--c-ink-muted); opacity: 1;
}
.cart-items thead th.right { text-align: right; }
.cart-item td { padding-block: 1rem; vertical-align: top; border-bottom: var(--border-width) solid var(--c-line); }
.cart-item__media { width: 5rem; padding-right: 1rem; }
.cart-item__media a { display: block; background: var(--c-tile-bg); border-radius: var(--radius-button); overflow: hidden; }
.cart-item__image { display: block; width: 100%; aspect-ratio: 1 / 1; height: auto; object-fit: contain; padding: 8%; mix-blend-mode: multiply; }
.cart-item__details { padding-right: 1rem; font-size: var(--fs-small); }
.cart-item__name { display: block; font-weight: var(--fw-bold); line-height: 1.4; color: var(--c-ink); text-decoration: none; }
/* the draft keeps the name ink; a thin underline (the base sheet's is 2px) */
.cart-item__name:hover { color: var(--c-ink); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
.cart-item__details dl { margin: 0.25rem 0 0; }
.cart-item__details dd { margin: 0; }
.product-option { font-size: var(--fs-micro); color: var(--c-ink-muted); line-height: 1.5; }
.cart-item__quantity { white-space: nowrap; }
/* quantity stepper: the base <quantity-input class="quantity"> as the reference's .qty */
#cart-template .quantity {
  position: relative; display: inline-flex; align-items: center; vertical-align: middle;
  width: auto; min-height: 0; height: 2.5rem; padding: 0;
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); background: var(--c-surface);
  transition: border-color var(--dur) var(--ease);
}
/* the draft's .lqty: hover darkens the pill's border, never a fill on one button */
#cart-template .quantity:hover, #cart-template .quantity:focus-within { border-color: var(--c-ink); }
#cart-template .quantity::before, #cart-template .quantity::after { display: none; }
#cart-template .quantity__button {
  display: grid; place-items: center; width: 2.25rem; height: 100%; padding: 0;
  border: 0; border-radius: 999px; background: none; color: var(--c-ink); cursor: pointer;
  transition: transform .25s var(--ease-spring);
}
#cart-template .quantity__button:hover { background: none; }
#cart-template .quantity__button:active:not([disabled]) { transform: scale(.8); }
#cart-template .quantity__button .icon { width: 0.7rem; height: 0.7rem; stroke: none; pointer-events: none; }
#cart-template .quantity__input {
  width: 2.25rem; height: 100%; padding: 0; margin: 0; border: 0; background: none; color: var(--c-ink);
  font: inherit; font-size: var(--fs-small); font-weight: var(--fw-bold); text-align: center; font-variant-numeric: tabular-nums;
  outline: none; -moz-appearance: textfield; appearance: textfield;
}
#cart-template .quantity__input::-webkit-outer-spin-button,
#cart-template .quantity__input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
#cart-template .quantity__input[readonly] { width: 3rem; }
/* remove / edit: small icon buttons beside the stepper */
.cart-action-icon { display: inline-flex; vertical-align: middle; margin-left: 0.25rem; }
.cart-action-icon.hide { display: none; }
#cart-template .cart-action-icon .button {
  width: 2.25rem; height: 2.25rem; min-width: 0; min-height: 0; padding: 0; border: 0; background: none;
  color: var(--c-ink-subtle); box-shadow: none;
}
#cart-template .cart-action-icon .button:hover { background: var(--c-surface-2); color: var(--c-sale); filter: none; }
#cart-template .cart-action-icon .button svg { width: 1rem; height: 1rem; }
#cart-template .cart-action-icon .button .icon { fill: none; stroke: currentColor; }
.cart-item__totals { text-align: right; position: relative; font-size: var(--fs-small); font-weight: var(--fw-bold); }
.cart-item__price-wrapper .price { display: block; font-size: var(--fs-small); color: var(--c-ink); }
.cart-item__old-price { color: var(--c-ink-subtle); font-weight: var(--fw-body); }
.cart-item .loading-overlay { position: absolute; right: 0; top: 1rem; width: 1.5rem; }
.cart-item .loading-overlay__spinner { width: 1.5rem; }
.cart__items--disabled { pointer-events: none; opacity: 0.6; }
.discounts { margin: 0.375rem 0 0; font-size: var(--fs-micro); color: var(--c-success); }
.discounts__discount { display: flex; align-items: center; gap: 0.35rem; }
.discounts__discount svg { width: 0.9rem; height: 0.9rem; fill: currentColor; stroke: none; }
.cart_form__error { margin-top: 1rem; }
.note.errors, .errors { color: var(--c-sale); font-size: var(--fs-small); }
/* footer block: vouchers, totals, checkout */
.cart__footer { display: flex; justify-content: flex-end; padding-top: 1.5rem; }
.cart__blocks { width: 100%; max-width: 26rem; display: grid; gap: 0.875rem; }
.totals { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; position: relative; }
/* an <h3>: a small body-font label, not a display heading */
.totals__subtotal { margin: 0; font-family: var(--font-body); font-size: var(--fs-small); font-weight: var(--fw-bold); letter-spacing: 0; }
.totals__subtotal-value { margin: 0; font-size: 1.25rem; font-weight: var(--fw-bold); }
.totals .loading-overlay { position: absolute; right: 0; top: 0; width: 1.5rem; }
/* also .rte, whose body size (§10) would otherwise win on source order */
.tax-note, .tax-note.rte { display: block; margin-top: 0.375rem; font-size: var(--fs-micro); line-height: 1.5; color: var(--c-ink-muted); }
.cart__ctas { display: grid; grid-template-columns: minmax(0, 1fr); justify-content: stretch; gap: 0.5rem; }
.cart__ctas > * + * { margin-top: 0 !important; }
#cart-template .cart__checkout-button { width: 100%; max-width: none; min-height: 3.5rem; font-family: var(--font-display); font-size: var(--fs-body); }
#cart-template .cart__checkout-button .btn__chip { margin-right: -.4rem; background: var(--c-ink); color: var(--c-bg); transition: transform .4s var(--ease-spring); }
#cart-template .cart__checkout-button:hover .btn__chip { transform: rotate(-45deg) scale(1.06); }
/* while the form posts, the ring stands alone (the label is hidden by its text fill) */
#cart-template .cart__checkout-button.loading .btn__chip { visibility: hidden; }
.voucher-toggle-wrapper { border: 1.5px solid var(--c-line); border-radius: 16px; background: transparent; transition: border-color var(--dur) var(--ease); }
.voucher-toggle-wrapper:hover { border-color: var(--c-ink); }
.voucher-toggle-content { display: grid; gap: 0.1rem; }
.voucher-toggle-title { font-size: var(--fs-small); font-weight: var(--fw-bold); }
.voucher-toggle .text-muted { color: var(--c-ink-muted); font-size: var(--fs-micro); }
discount-input .field, .vouchers-modal discount-input .field { display: flex; gap: 0.5rem; position: relative; }
discount-input .field__input, .field__input, .vouchers-modal .search__input {
  flex: 1; min-width: 0; height: 2.75rem; padding: 0 1rem; background: var(--c-surface-2); color: var(--c-ink);
  border: var(--border-width) solid var(--c-line); border-radius: var(--radius-button); font: inherit; font-size: var(--fs-small);
}
discount-input .field__input:focus { outline: none; border-color: var(--c-ink-subtle); background: var(--c-surface); }
discount-input .field__label { display: none; }
discount-input .button { padding-inline: 1.125rem; }
.subtotal-discount-label, .remove_voucher_btn { color: var(--c-success); }
.remove_voucher_btn svg { width: 0.85rem; height: 0.85rem; fill: currentColor; vertical-align: middle; cursor: pointer; }
/* the base sheet makes the quantity cell a flex box, which pulls it out of the
   table row (cells stop sharing a height and the row rules misalign) */
@media (min-width: 750px) {
  .cart-page .cart-item td.cart-item__quantity { display: table-cell; padding-left: 1.25rem; }
}
.cart-item__quantity > quantity-input, .cart-item__quantity > .cart-action-icon { vertical-align: middle; }
.cart-item__totals, .cart-item__price-wrapper { white-space: nowrap; }
/* the platform voucher sheet loads after this one — out-rank it */
#cart-template .voucher-toggle-wrapper { display: block; line-height: normal; }
#cart-template .voucher-toggle {
  display: flex; align-items: center; gap: 0.75rem; width: 100%; margin: 0; padding: 0.75rem 1rem;
  border-radius: var(--radius-card); background: transparent; color: var(--c-ink); cursor: pointer;
}
#cart-template .voucher-toggle { padding: .8rem .95rem; border-radius: 16px; }
#cart-template .voucher-toggle .icon-chevron-right { transition: transform .35s var(--ease-spring); }
#cart-template .voucher-toggle:hover .icon-chevron-right { transform: translateX(4px); }
#cart-template .voucher-toggle-content .text-muted { color: var(--c-ink-muted); }
#cart-template .voucher-toggle .icon-chevron-right { width: 1.1rem; height: 1.1rem; margin: 0 0 0 auto; stroke: currentColor; }
/* the platform promotion widgets (cart/content_top + content_bottom app snippets) */
#cart-promotion-top:empty, #cart-promotion-section:empty { display: none; }
#cart-promotion-top, #cart-promotion-section { color: var(--c-ink); font-size: var(--fs-small); }
.drawer--cart #cart-promotion-top { margin-bottom: 0.75rem; }
.drawer--cart #cart-promotion-section { margin-top: 0.75rem; }
/* the vouchers modal (snippets/voucher-modal + the platform voucher widget),
   scoped under the element + id to out-rank the platform sheets that load later */
vouchers-modal #vouchers-modal {
  --voucher-widget-font-family: var(--font-body);
  --voucher-widget-theme-color: var(--c-btn-bg);
  --voucher-widget-border: var(--border-width) solid var(--c-line);
  background: var(--c-surface); color: var(--c-ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-pop); font-family: var(--font-body); overflow: hidden;
}
vouchers-modal #vouchers-modal-backdrop.active { background-color: var(--c-scrim); }
vouchers-modal .vouchers-modal__heading { margin: 0; font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h3); color: var(--c-ink); }
vouchers-modal .vouchers-modal__close { color: var(--c-ink); }
vouchers-modal #vouchers-modal discount-input .button { flex: none; min-height: 2.75rem; }
vouchers-modal .voucher-widget-button { color: var(--c-btn-bg); border-color: var(--c-btn-bg); }
vouchers-modal .voucher-widget-button:hover { background: var(--c-btn-bg); color: var(--c-btn-ink); }
vouchers-modal .voucher-widget-list__item.disabled { opacity: 0.55; }
/* on phones the cart table re-flows into rows */
@media (max-width: 749px) {
  .cart-items thead { display: none; }
  .cart-items, .cart-items tbody { display: block; }
  .cart-item {
    display: grid; grid-template-columns: 4.5rem minmax(0, 1fr) auto; column-gap: 0.875rem; row-gap: 0.5rem;
    padding-block: 1rem; border-bottom: var(--border-width) solid var(--c-line);
  }
  .cart-item td { display: block; padding: 0; border: 0; }
  .cart-item__media { width: auto; grid-row: span 2; padding: 0; }
  .cart-item__details { padding: 0; }
  .cart-item__quantity { grid-column: 2 / -1; }
  .cart__blocks { max-width: none; }
}
/* inside the ~440px drawer the page layout folds into compact rows */
.drawer--cart .cart-items thead { display: none; }
.drawer--cart .cart-items, .drawer--cart .cart-items tbody { display: block; }
.drawer--cart .cart-item {
  display: grid; grid-template-columns: 4rem minmax(0, 1fr) auto; column-gap: 0.75rem; row-gap: 0.5rem;
  padding-block: 0.875rem; border-bottom: var(--border-width) solid var(--c-line);
}
.drawer--cart .cart-item td { display: block; padding: 0; border: 0; width: auto; min-width: 0; max-width: 100%; }
.drawer--cart .cart-item__media { grid-row: span 2; }
.drawer--cart .cart-item__details { grid-column: 2; padding-right: 0; }
.drawer--cart .cart-item__totals.small-hide { display: none !important; }
.drawer--cart .cart-item__totals.medium-hide { display: block !important; grid-column: 3; grid-row: 1; }
.drawer--cart .cart-item__quantity { display: flex; align-items: center; gap: 0.25rem; grid-column: 2 / -1; padding: 0; }
.drawer--cart #cart-template .quantity { height: 2.25rem; }
.drawer--cart #cart-template .quantity__button { width: 2rem; }
.drawer--cart #cart-template .quantity__input { width: 2rem; }
.drawer--cart #main-cart-footer { margin-top: auto; }
.drawer--cart .cart__footer { padding-top: 1.125rem; }
.drawer--cart .cart__blocks { max-width: none; }
.drawer--cart cart-items.is-empty .cart__warnings { padding-block: 0.5rem 1rem; }
#main-cart-footer, .cart__footer { border-top: 0; }

/* ── 9. Quick view modal ─────────────────────────────────────────────────────
   The platform's modal dressed as the reference's product page in miniature: a
   centred dialog on desktop (the photograph on its quiet plate beside the buy
   box), a bottom sheet on phones with the stepper + add row sticky at its foot. */
.product-quickview-modal-backdrop { transition: opacity var(--dur) var(--ease); }
#product-quickview-modal[open] + .product-quickview-modal-backdrop { background-color: var(--c-scrim); }
#product-quickview-modal[open] {
  --color-foreground: 37, 19, 10;
  --color-background: 255, 255, 255;
  /* centred on every screen from 768px — the base sheet turns it into a bottom sheet up
     to 998px, which left a half-positioned dialog on tablets */
  top: 50%; left: 50%; bottom: auto; transform: translate(-50%, -50%);
  width: min(960px, calc(100% - 2rem)); max-width: none;
  max-height: min(90vh, 720px); min-height: min(26rem, 80vh);
  overflow: hidden; display: flex; flex-direction: column;
  background: var(--c-surface); color: var(--c-ink);
  border-radius: var(--radius-card); box-shadow: var(--shadow-pop);
}
#product-quickview-modal .product-quickview-modal__body { min-height: 0; overflow-y: auto; }
.product-quickview-modal-wrapper > .loading-overlay { width: 2.75rem; z-index: 2; }
.product-quickview-modal-wrapper > .loading-overlay .loading-overlay__spinner { width: 2.75rem; }
.product-quickview-modal-wrapper .loading-overlay .path { stroke: var(--c-btn-bg); }
/* the close button carries .modal__close-button, which the platform vouchers.css
   paints black — an id-scoped rule out-ranks it */
#product-quickview-modal .product-quickview-modal__close {
  top: 0.625rem; right: 0.625rem; z-index: 3; width: 2.5rem; height: 2.5rem;
  display: grid; place-items: center; border-radius: var(--radius-button);
  background: var(--c-surface); color: var(--c-ink); border: var(--border-width) solid var(--c-line);
}
#product-quickview-modal .product-quickview-modal__close .icon { color: var(--c-ink); }
#product-quickview-modal .product-quickview-modal__close:hover { background: var(--c-surface-2); }
.product-quickview-modal__close svg { width: 1rem; height: 1rem; }
/* equal halves of a 960px dialog: a 480px plate (the 5/6 split left it a 400px strip) */
.product-quickview.qv { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
/* the plate: a square packshot shown whole, pinned to the top of the column while the
   buy box (three option rows on this catalogue) scrolls under it. The column itself
   stretches to the row so the tile background runs the modal's full height; the
   image used to stretch with it (height: 100% + cover), which on a tall buy box
   blew the photograph up to a crop of one corner. */
.product-quickview .product-quickview__img-wrapper.qv__media { max-width: none; background: var(--c-surface); }
.product-quickview .product-quickview__img-wrapper.qv__media img {
  position: sticky; top: 0; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  background: var(--c-tile-bg);
}
/* the product-page buy-box rules (reference.css .buy__opts / .buy__row) bring their
   divider and generous margins along: in the modal they opened a 66px hole between
   the price and the first option. The info column's own gap spaces the blocks. */
.product-quickview .buy__opts { margin-top: 0; padding-top: 1rem; }
.product-quickview .qv__qtylabel { margin-top: 1.5rem; margin-bottom: 0.5rem; }
.product-quickview .product-quickview__content-wrapper.qv__info {
  max-width: none; max-height: none; overflow: visible; padding: 1.75rem 1.75rem 1.25rem;
  display: flex; flex-direction: column; gap: 0.9rem;
}
.product-quickview .quickview-title { display: block; color: var(--c-ink); text-decoration: none; }
.product-quickview h2.qv__title { margin: 0; padding-right: 2.5rem; font-size: var(--fs-h2); line-height: 1.06; }
.qv__price .price { margin: 0; font-size: 1.5rem; font-weight: var(--fw-bold); color: var(--c-ink); }
.qv__price .price .badge, .qv__price .price__badge-sale, .qv__price .price__badge-sold-out { display: none !important; }
.product-quickview #price { margin-bottom: 0; }
.product-quickview .product-form { margin-top: 0; }
.product-quickview .quickview-sticky-actions.qv__buy {
  position: sticky; bottom: 0; margin-top: 0; gap: 1.25rem;
  padding: 0.125rem 0 0.75rem; background: var(--c-surface); box-shadow: none;
}
.product-quickview .quickview-sticky-actions .btn { margin: 0; }
.quickview_promo-tag-wrapper:has(#quickview_promo-tag:empty) { display: none; }
/* opening motion: the dialog fades in and rises into place (a bottom sheet slides up
   on phones), the scrim fades in with it, and the product fades in once the
   platform has rendered it. Reduced motion and ?ts-anim=off flatten it. */
@keyframes ezpet-qv-rise {
  from { opacity: 0; transform: translate(-50%, -50%) translateY(16px) scale(0.98); }
  to { opacity: 1; transform: translate(-50%, -50%); }
}
@keyframes ezpet-qv-sheet {
  from { transform: translateY(100%); }
  to { transform: none; }
}
@keyframes ezpet-qv-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
#product-quickview-modal[open] { animation: ezpet-qv-rise 260ms var(--ease) both; }
#product-quickview-modal[open] + .product-quickview-modal-backdrop { animation: ezpet-qv-fade 260ms var(--ease) both; }
#product-quickview-modal .product-quickview { animation: ezpet-qv-fade 220ms var(--ease) both; }
/* the base sheet fixes the product at 80dvh up to 998px; a centred dialog fits its content */
@media (min-width: 768px) { .product-quickview.qv { height: auto; } }
@media (max-width: 767px) {
  #product-quickview-modal[open] {
    top: auto; bottom: 0; left: 0; transform: none;
    width: 100%; max-height: 92vh; min-height: 18rem;
    border-radius: var(--radius-card) var(--radius-card) 0 0;
    animation: ezpet-qv-sheet 300ms var(--ease) both;
  }
  .product-quickview.qv { grid-template-columns: minmax(0, 1fr); }
  .product-quickview .product-quickview__img-wrapper.qv__media { display: flex; justify-content: center; align-items: center; height: clamp(160px, 44vw, 220px); }
  .product-quickview .product-quickview__img-wrapper.qv__media img { width: auto; height: 100%; max-height: 100%; object-fit: contain; }
  .product-quickview .product-quickview__content-wrapper.qv__info { padding: 1.125rem 1rem calc(0.75rem + env(safe-area-inset-bottom)); }
  .product-quickview h2.qv__title { padding-right: 0; }
}

/* ── 10. Content pages ─────────────────────────────────────────────────────── */
.rte { color: var(--c-ink-muted); font-size: var(--fs-body); line-height: var(--lh-body); }
.rte > * + * { margin-top: 1em; }
.rte h1, .rte h2, .rte h3, .rte h4 { color: var(--c-ink); font-family: var(--font-display); font-weight: var(--fw-display); line-height: var(--lh-heading); margin-top: 1.5em; }
.rte h1 { font-size: var(--fs-h2); }
.rte h2 { font-size: var(--fs-h3); }
.rte h3, .rte h4 { font-size: var(--fs-body); }
.rte > :first-child { margin-top: 0; }
.rte a { color: var(--c-btn-bg); text-decoration: underline; text-underline-offset: 3px; }
.rte ul, .rte ol { padding-left: 1.25rem; }
.rte ul { list-style: disc; }
.rte ol { list-style: decimal; }
.rte li + li { margin-top: 0.35em; }
.rte img { height: auto; max-width: 100%; border-radius: var(--radius-card); }
.rte strong, .rte b { color: var(--c-ink); font-weight: var(--fw-bold); }
.rte blockquote { border-left: 3px solid var(--c-btn-bg); padding-left: 1.125rem; color: var(--c-ink); }
.rte table, .table-wrapper table { width: 100%; border-top: var(--border-width) solid var(--c-line); }
.rte td, .rte th { padding: 0.625rem 1rem 0.625rem 0; border-bottom: var(--border-width) solid var(--c-line); text-align: left; vertical-align: top; }
.rte th { font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.table-wrapper { overflow-x: auto; }
.rte iframe, .rte video { max-width: 100%; }
.page-body { padding-block: var(--section-y-tight) var(--section-y); }
/* blog + article */
.blog-grid { display: grid; gap: 1.75rem var(--gutter-lg); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .blog-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.post-card { display: grid; gap: 0.625rem; align-content: start; }
.post-card__media { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--c-surface-2); border-radius: var(--radius-card); }
.post-card__media img { width: 100%; height: 100%; object-fit: cover; transition: scale 620ms var(--ease); }
.post-card:hover .post-card__media img { scale: 1.03; }
.post-card__meta { font-size: var(--fs-micro); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--c-ink-subtle); }
.post-card__title { font-size: var(--fs-h3); line-height: var(--lh-heading); }
.post-card__title a:hover { color: var(--c-btn-bg); }
.post-card__excerpt { font-size: var(--fs-small); color: var(--c-ink-muted); }
.article-hero { aspect-ratio: 16 / 7; overflow: hidden; border-radius: var(--radius-card); margin: 0 0 1.75rem; background: var(--c-surface-2); }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-meta { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; margin-top: 0.625rem; font-size: var(--fs-micro); font-weight: var(--fw-bold); color: var(--c-ink-muted); }
.article-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: var(--border-width) solid var(--c-line); }
.article-back { margin-top: 2rem; }
/* products a page or post links (related-product-items, included in the body column) */
.page-body .section__head { margin-top: var(--section-y-tight); }
.tags { display: flex; flex-wrap: wrap; gap: 0.375rem; }
/* search page + 404: a ruled search field and its button */
.searchpage-form { display: flex; gap: 0.5rem; max-width: 40rem; margin-top: 1.25rem; }
.searchpage-field {
  flex: 1 1 auto; min-width: 0; position: relative; display: flex; align-items: center; gap: 0.6rem;
  height: 2.875rem; padding: 0 1.1rem;
  background: var(--c-surface); border: var(--border-width) solid var(--c-line); border-radius: var(--radius-input);
  color: var(--c-ink-muted); transition: border-color var(--dur) var(--ease);
}
.searchpage-field input { flex: 1; min-width: 0; border: 0; outline: none; background: transparent; font-size: var(--fs-body); color: var(--c-ink); }
.searchpage-field:focus-within { border-color: var(--c-ink-subtle); }
.searchpage-form .btn { flex: none; min-height: 2.875rem; border-radius: var(--radius-input); }
.notfound__code { font-family: var(--font-display); font-size: clamp(3.5rem, 10vw, 6.5rem); line-height: 1; color: var(--c-btn-bg); letter-spacing: -0.03em; margin-bottom: 0.5rem; }

/* ── 11. Platform-rendered controls ─────────────────────────────────────────
   The promotion app renders `btn btn-primary`, the sf auth views `btn
   button--full-width` / `button--secondary`; reference.css's .btn is already the
   solid button, so only the secondary variants need aliasing. */
.btn.button--secondary, .btn.btn--secondary { background: var(--c-surface); color: var(--c-ink); border-color: var(--c-line); }
.btn.button--secondary:hover, .btn.btn--secondary:hover { background: var(--c-surface-2); filter: none; }
.btn.button--full-width { width: 100%; }
#promotion-section, [id^="sf_promo-"], [class^="sf_promo-"] { color: var(--c-ink); }
#get-more-promotion, #view-more-promotion, #sf_promo-view-more-tag { color: var(--c-btn-bg) !important; }
.flex-container { scrollbar-width: thin; }

/* sf's /account/challenge — the manual reCAPTCHA step after a low invisible score.
   sf renders it with template 'app' and a bare <form class="text-center">: there is
   no .customer wrapper, so customer.css (not loaded) and its .customer-scoped
   .text-center never reach it, and its submit is an `input.btn` — reference.css's
   .btn paints the solid button, but the browser's 2px outset input border
   survives. The form itself becomes the login page's card. */
#MainContent form[action$="challenge"] {
  container-type: inline-size;
  width: min(27.5rem, 100% - 2 * var(--gutter-lg));
  margin: calc(3.75rem + clamp(2rem, 5vw, 3.5rem)) auto calc(5.625rem + var(--section-y));
  padding: clamp(1.25rem, 3vw, 2rem) clamp(1rem, 3vw, 2rem);
  background: var(--c-surface); border: var(--border-width) solid var(--c-line); border-radius: var(--radius-card);
  text-align: center;
}
#MainContent form[action$="challenge"] h2 {
  font-family: var(--font-display); font-weight: var(--fw-display); font-size: var(--fs-h1);
  line-height: var(--lh-heading); letter-spacing: var(--tracking-display);
}
#MainContent form[action$="challenge"] p { margin-bottom: 1.5rem; color: var(--c-ink-muted); }
/* the widget's own 304×78 box, held before its async script paints, so the button doesn't jump */
#MainContent form[action$="challenge"] .g-recaptcha { min-height: 78px; }
#MainContent form[action$="challenge"] > br { display: none; }
#MainContent form[action$="challenge"] .btn {
  width: 100%; min-height: 2.875rem; margin-top: 1.5rem; border: 0;
  background: var(--c-btn-bg); color: var(--c-btn-ink); font-family: var(--font-body);
  cursor: pointer; appearance: none; -webkit-appearance: none;
}
/* the widget is a fixed 304px iframe: step it down when the card is narrower (phones) */
@container (width < 304px) { #MainContent form[action$="challenge"] .g-recaptcha { scale: 0.9; } }
@container (width < 274px) { #MainContent form[action$="challenge"] .g-recaptcha { scale: 0.8; } }
/* currency picker (snippets/currency-picker) */
.currency-picker-block .select { position: relative; display: inline-flex; }
.currency-picker {
  appearance: none; -webkit-appearance: none; height: 2.125rem; padding: 0 2rem 0 0.875rem;
  background: var(--c-surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a4a41' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E") no-repeat right 0.6rem center / 0.85rem;
  border: 0; border-radius: var(--radius-button);
  color: var(--c-ink); font-size: var(--fs-micro); font-weight: var(--fw-bold);
}
.currency-picker option { background: var(--c-surface); color: var(--c-ink); }

/* ── 12. Footer additions ──────────────────────────────────────────────────── */
/* min-width lets a long link wrap inside its column instead of widening it */
.footer__grid > div { min-width: 0; }
.footer a { overflow-wrap: anywhere; }
.footer__social { display: inline-flex; align-items: center; gap: 0.5rem; }
.footer__base { align-items: center; }
.footer .currency-picker {
  background-color: rgb(255 255 255 / 0.1); color: var(--c-footer-ink);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23efe8e1' stroke-width='1.5'%3E%3Cpath d='m5 9 7 7 7-7'/%3E%3C/svg%3E");
}
.footer .currency-picker option { color: var(--c-ink); }

/* ── 13. Motion kill-switch ──────────────────────────────────────────────────
   ?ts-anim=off (animations.js) flattens every transition to its end state for
   deterministic screenshots; html.no-js never hides anything. */
html[data-anim-off] [data-reveal] { opacity: 1 !important; transform: none !important; }
html[data-anim-off] *, html[data-anim-off] *::before, html[data-anim-off] *::after { transition: none !important; animation: none !important; }

/* YouTube product images (snippets/pdp-video): the slide's thumbnail behind a
   round play button until clicked, then the player (init.js, "YouTube product
   images"). The box fills the slide when the slide has a height of its own and
   falls back to --pdp-video-ratio when it does not; the poster is shown whole
   on black, the way the player letterboxes the video. The poster img resets the
   gallery's own img rules (aspect, padding, blend, filters) it would inherit. */
.pdp-video { position: relative; width: 100%; height: 100%; aspect-ratio: var(--pdp-video-ratio, 1 / 1); overflow: hidden; background: #000; }
.pdp-video > iframe,
.pdp-video .pdp-video__poster { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.pdp-video .pdp-video__poster { display: block; cursor: pointer; }
.pdp-video .pdp-video__poster img { display: block; width: 100%; height: 100%; max-width: none; max-height: none; aspect-ratio: auto; margin: 0; padding: 0; border-radius: 0; object-fit: contain; mix-blend-mode: normal; filter: none; }
.pdp-video .pdp-video__play { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 64px; height: 64px; margin: -32px 0 0 -32px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #111; box-shadow: 0 2px 12px rgb(0 0 0 / 0.25); }
.pdp-video .pdp-video__play svg { width: 26px; height: 26px; margin-left: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .pdp-video .pdp-video__play { transition: transform 0.2s ease; }
  .pdp-video .pdp-video__poster:hover .pdp-video__play { transform: scale(1.08); }
}
[data-gallery-thumb]:has(.pdp-video__badge) { position: relative; }
.pdp-video__badge { position: absolute; top: 50%; left: 50%; display: flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin: -12px 0 0 -12px; border-radius: 50%; background: rgb(255 255 255 / 0.92); color: #111; pointer-events: none; }
.pdp-video__badge svg { width: 10px; height: 10px; margin-left: 1px; }

/* Product page: the description panel inside the draft's .acc holds rich text and
   the brand / SKU rows, which the draft's own `details > p` rule does not reach. */
.acc details > .acc__body { padding-bottom: 1.2rem; color: var(--c-ink-muted); font-size: .9375rem; }
.acc__body .tabs__rows { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; margin-top: 1rem; }
.acc__body .tabs__rows dt { font-weight: 600; color: var(--c-ink); }

/* Image and text with a YouTube link: the player fills the picture's rounded frame */
.meet__media .meet__video { position: absolute; inset: 0; aspect-ratio: auto; z-index: 1; }
.meet__media .meet__video .pdp-video__poster img { object-fit: cover; }

/* store locator: the "list may be out of date" box when Ezpet's store API is down */
.stores__notice { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; margin-top: 1rem; padding: .9rem 1.1rem; border-radius: 16px; background: var(--c-sun); box-shadow: 0 0 0 1px var(--c-line); font-size: .9375rem; line-height: 1.45; }
.stores__notice[hidden] { display: none; }
.stores__notice p { flex: 1 1 14rem; }
