/* =====================================================================
   jdtheme26 - /dog-food/ designed landing, page 1 only (inc/jd-dog-food-page.php; handoffs/2026-10-07-frontend-dog-food-landing.md).
   Same vocabulary as the home page and the other category landings: .paper-edge panels (paper-edge.css), home headings (jd-home-title.css),
   .jd-card tokens (jd-product-card.css), pill buttons .jd-btn (jd-button.css), spacing tokens of jd-layout.css. Running text keeps the site
   standard (jd-typography.css) - nothing here sets font-size / line-height on body copy.
   Page order (phone first, shopping first): hero -> shop by category (5 cards) -> popular picks (scroll-snap row) -> heading + sub-category chips + the shop's own
   grid (sort bar, cards, pagination are not styled here) -> little guide (3 cards) -> originals -> [store | FAQ] -> related tiles.
   Art = <img> (decorative, empty alt) or an empty .jd-df-art--missing placeholder. The hero scene carries its own colour field and irregular edge: no CSS fill,
   no frame mask. Fade-in: data-jd-reveal on the blocks (the hero is the first screen and is never hidden). Card blocks carry .jd-df-cardblock (jd-card-compare.js
   hides the LINE button while one is on screen, like the product grid).
   Breakpoints: phone <= 767, tablet 768-1024, desktop >= 1025.
   ===================================================================== */

.jd-df {
  --jd-df-max: 1440px;
  --jd-df-anchor-offset: 140px;   /* header + category bar stack height, so a jump target is never hidden under the sticky stack */
  --jd-df-eyebrow-color: #e2d4c8;   /* the home category band's English line */
  --jd-df-tone-green: #f2f8f2;   /* fills = about 65% of the earlier tones, like the /pet-toys/ chooser blocks */
  --jd-df-tone-pink: #fdeff0;
  --jd-df-tone-sand: #faf4e5;
  --jd-df-tone-blue: #f1f6f9;
  --jd-df-tone-lilac: #f6f1fb;
  --jd-df-tone-peach: #fef4e9;
  --jd-df-tone-butter: #fef8e0;
  --jd-df-cream: #fdf9f0;
  --jd-df-block-gap: var(--jd-space-l);   /* space between two blocks of the page */
  --jd-df-col-gap: var(--jd-space-m);
}
.jd-df .jd-home-head {
  --jd-home-eyebrow-color: var(--jd-df-eyebrow-color);
  gap: 8px;
  margin: 0 0 var(--jd-space-s);
}
.jd-df-wrap {
  box-sizing: border-box;
  max-width: var(--jd-df-max);
  margin-inline: auto;
}
.jd-df ul { margin: 0; padding: 0; list-style: none; }
.jd-df :where(li) { margin: 0; padding: 0; }   /* zero-specificity reset: a component class on an li always wins */
.jd-df li:not(.jd-df-wavy)::before { content: none; }   /* theme list markers (a list item that is itself a wavy field keeps its background layer) */
.jd-df a { text-decoration: none; }
.jd-df .jd-home-title { text-wrap: balance; }
.jd-df-phrase { display: inline-block; }   /* a phrase stays whole: lines break after the full-width pause mark, never inside a phrase */

/* page width: this page's WoodMart container (.wd-content-layout reads --wd-container-w) is the 1440 box like the home page's full-width blocks, so the sections AND
   the shop grid below them share one width and the same side gutters at every width; set on this page's body class only (other archives keep 1222px) */
body.jd-dog-food-page .main-page-wrapper { --wd-container-w: 1440px; }

/* blocks of the page: one rhythm between them */
.jd-df-wrap > * { margin-top: var(--jd-df-block-gap); }

/* ---- pictures ---- */
.jd-df-art { display: block; max-width: 100%; height: auto; }
.jd-df-art--missing { box-sizing: border-box; width: 100%; aspect-ratio: 1; border: 1px dashed var(--jd-cream-200, #eadfcc); border-radius: 20px; }

/* ---- hero: shared frame (jd-hero-frame.css) holding the painted scene; its own irregular edge replaces the frame mask; the copy sits in the plain middle field ---- */
.jd-df-hero__frame {
  --jd-hero-ratio: 2172 / 724;   /* native size of the painted scene */
  --jd-hero-mask: none;
}
.jd-df-hero { --jd-df-eyebrow-color: #f6a95e; }   /* butter-orange English line on the cream field (the home eyebrow tint family) */
.jd-df-hero__copy { gap: var(--jd-space-xs); padding-bottom: var(--jd-space-xs); }
.jd-df-hero__eyebrow { margin: 0; }
.jd-df-hero__title { display: flex; flex-direction: column; align-items: center; gap: 6px; margin: 0; color: var(--jd-ink-900, #3b2a1f); font-family: var(--jd-font-display, inherit); font-weight: 700; }
.jd-df-hero__word { font-size: clamp(30px, 3.4vw, 50px); line-height: 1.2; letter-spacing: .12em; }
.jd-df-hero__sub { font-size: clamp(16px, 1.7vw, 24px); line-height: 1.45; letter-spacing: .08em; text-wrap: balance; }
.jd-df-hero__lead { max-width: 32em; margin: 0 0 var(--jd-space-xs); text-wrap: pretty; }
@media (max-width: 767.98px) {
  .jd-df-hero__copy .jd-btn { align-self: stretch; }   /* the main action is full width on phones */
  .jd-df-hero__copy { padding-inline: var(--jd-space-s); }
}
@media (min-width: 1025px) {
  /* copy column = the plain middle field of the art (dog + bowl end at about 40% of the picture, the bag starts at about 73%) */
  .jd-df-hero__copy { padding: var(--jd-space-s) 31% var(--jd-space-s) 31%; gap: 6px; }
  .jd-df-hero__lead { margin-bottom: 4px; }
}
@media (min-width: 1025px) and (max-width: 1279.98px) {
  .jd-df-hero__copy { padding-inline: 29%; }
  .jd-df-hero__copy .jd-btn { --jd-btn-h: 44px; --jd-btn-px: 22px; --jd-btn-fs: 14px; }
}

/* small pill buttons of this page are 44px high (the site makes them 44px on touch screens only) */
.jd-df .jd-btn--sm { --jd-btn-h: 44px; }

/* tone helpers: a card takes its fill from the tone */
.jd-df-tone--green { --jd-df-tone: var(--jd-df-tone-green); }
.jd-df-tone--pink { --jd-df-tone: var(--jd-df-tone-pink); }
.jd-df-tone--sand { --jd-df-tone: var(--jd-df-tone-sand); }
.jd-df-tone--blue { --jd-df-tone: var(--jd-df-tone-blue); }
.jd-df-tone--lilac { --jd-df-tone: var(--jd-df-tone-lilac); }
.jd-df-tone--peach { --jd-df-tone: var(--jd-df-tone-peach); }
.jd-df-tone--butter { --jd-df-tone: var(--jd-df-tone-butter); }

/* every coloured block = a flat light field on ::before, its outline bent a little by the soft button filter #jd-btn-wavy on that layer only (text stays crisp, no new filter);
   blocks differ by their own corner radii and a mirrored layer (none / X / Y / both) - same recipe as the /pet-toys/ chooser blocks. Big panels keep a plain irregular field on phones
   (the filter region of a tall panel would exceed the iOS filter-size limit). */
.jd-df-wavy {
  --jd-df-fill: var(--jd-df-tone, var(--jd-df-tone-sand));
  --jd-df-r: 34px 30px 36px 28px / 30px 36px 28px 34px;
  position: relative;
  isolation: isolate;
}
.jd-df-wavy::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  border-radius: var(--jd-df-r);
  background: var(--jd-df-fill);
  filter: url(#jd-btn-wavy);
  transition: transform .2s ease;
}
.jd-df-wavy:nth-child(4n + 2) { --jd-df-r: 28px 36px 30px 34px / 36px 28px 34px 30px; }
.jd-df-wavy:nth-child(4n + 3) { --jd-df-r: 36px 28px 34px 30px / 28px 34px 30px 36px; }
.jd-df-wavy:nth-child(4n + 4) { --jd-df-r: 30px 34px 28px 36px / 34px 30px 36px 28px; }
.jd-df-wavy:nth-child(4n + 2)::before { transform: scaleX(-1); }
.jd-df-wavy:nth-child(4n + 3)::before { transform: scaleY(-1); }
.jd-df-wavy:nth-child(4n + 4)::before { transform: scale(-1, -1); }
.jd-df-wavy.jd-df-wavy--panel { --jd-df-r: 44px 38px 46px 40px / 38px 46px 40px 44px; }
.jd-df-wavy.jd-df-wavy--b { --jd-df-r: 40px 48px 38px 46px / 46px 38px 48px 40px; }
.jd-df-wavy.jd-df-wavy--b::before { transform: scaleX(-1); }
.jd-df-wavy.jd-df-wavy--c { --jd-df-r: 46px 40px 44px 38px / 40px 44px 38px 46px; }
.jd-df-wavy.jd-df-wavy--c::before { transform: scaleY(-1); }
.jd-df-wavy.jd-df-wavy--d { --jd-df-r: 38px 46px 40px 44px / 44px 40px 46px 38px; }
.jd-df-wavy.jd-df-wavy--d::before { transform: scale(-1, -1); }
@media (max-width: 767.98px) {
  .jd-df-wavy.jd-df-wavy--panel::before { filter: none; }
}

/* FAQ question buttons keep the landing look on hover (WoodMart greys every button) */
.jd-df-faq .jd-df-faq__btn:hover,
.jd-df-faq .jd-df-faq__btn:focus { background: none; color: var(--jd-ink-900, #3b2a1f); }
.jd-df-faq .jd-df-faq__btn:hover .jd-df-faq__qtext { text-decoration: underline; text-decoration-color: #f7c5c8; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* links of the landing keep the brand ink on hover / focus (WoodMart turns links inside headings blue) */
.jd-df-hot .jd-df-prod__name a:hover,
.jd-df-hot .jd-df-prod__name a:focus,
.jd-df-hot .jd-df-hot__all:hover,
.jd-df-hot .jd-df-hot__all:focus,
.jd-df-hot .jd-df-prod__add:hover,
.jd-df-hot .jd-df-prod__add:focus { color: var(--jd-ink-900, #3b2a1f); }
.jd-df a:not(.jd-btn):hover,
.jd-df a:not(.jd-btn):focus-visible { color: var(--jd-ink-900, #3b2a1f); }

/* ---- shop by category: one stretched link per card; rows on phones, 3 + 2 on tablets, 5 across on desktop ---- */
.jd-df-cats { min-width: 0; }
.jd-df-cats .jd-home-head { margin-bottom: var(--jd-space-xs); }
.jd-df-cats__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.jd-df-cat {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  min-height: 76px;
  padding: 10px 14px;
  transition: transform .2s ease;
}
.jd-df-cat__art { flex: none; display: block; width: 56px; aspect-ratio: 1; }
.jd-df-cat__art .jd-df-art { width: 100%; height: 100%; object-fit: contain; }
.jd-df-cat__body { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; }
.jd-df-cat__name { margin: 0; color: var(--jd-ink-900, #3b2a1f); font-size: 16px; font-weight: 700; letter-spacing: .06em; }
.jd-df-cat__link { color: inherit; }
.jd-df-cat__link::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.jd-df-cat__link:focus-visible { outline: none; }
.jd-df-cat__link:focus-visible::after { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
.jd-df-cat__hint { display: block; text-wrap: balance; }
.jd-df-cat__go { flex: none; display: grid; place-items: center; width: 28px; height: 28px; color: var(--jd-ink-900, #3b2a1f); }
.jd-df-cat__go svg { width: 18px; height: 18px; }
@media (hover: hover) {
  .jd-df-cat:hover { transform: translateY(-3px); }
}
@media (min-width: 768px) {
  .jd-df-cats__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--jd-space-s); }
  .jd-df-cat { grid-column: span 2; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 0; padding: var(--jd-space-s) var(--jd-space-xs) var(--jd-space-s); text-align: center; --jd-df-r: 70px 56px 64px 60px / 58px 66px 60px 72px; }
  .jd-df-cat:nth-child(n+4) { grid-column: span 3; }
  .jd-df-cat:nth-child(4n + 2) { --jd-df-r: 56px 68px 60px 64px / 66px 58px 72px 60px; }
  .jd-df-cat__art { width: 110px; }
  .jd-df-cat__body { align-items: center; flex: none; }
  .jd-df-cat__name { font-size: 17px; }
  .jd-df-cat__go { width: 32px; height: 32px; }
}
@media (min-width: 1025px) {
  .jd-df-cats__list { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .jd-df-cat,
  .jd-df-cat:nth-child(n+4) { grid-column: auto; --jd-df-r: 46% 54% 48% 52% / 40% 44% 56% 60%; }   /* narrow columns: the soft blob outline of the home blocks */
  .jd-df-cat:nth-child(4n + 2) { --jd-df-r: 52% 48% 54% 46% / 44% 40% 60% 56%; }
  .jd-df-cat__art { width: 120px; }
}

/* ---- popular picks (cream panel): head, then a scroll-snap row of real products; arrows from 768px (shown only while the row overflows) ---- */
.jd-df-hot { width: 100%; min-width: 0; max-width: none; padding: var(--jd-space-m); --jd-df-fill: var(--jd-df-cream); }   /* width: paper-edge centres with auto margins, which would shrink it */
.jd-df-hot__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 var(--jd-space-s); margin-bottom: var(--jd-space-xs); }
.jd-df-hot__head .jd-home-head { margin-bottom: var(--jd-space-xs); flex: none; width: auto; }
.jd-df-hot__all { flex: none; margin-left: auto; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--jd-ink-900, #3b2a1f); font-size: 14px; font-weight: 500; white-space: nowrap; }
.jd-df-hot__all svg { width: 16px; height: 16px; }
@media (max-width: 767.98px) {
  /* the link keeps its full text for assistive tech and search; phones show the short form (visually hidden suffix, not display:none) */
  .jd-df-hot__all-x { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
}
.jd-df-hot__all:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 3px; border-radius: 4px; }
@media (hover: hover) {
  .jd-df-hot__all:hover { text-decoration: underline; text-decoration-color: #f7c5c8; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}
.jd-df-hot__frame { position: relative; --jd-bleed: 16px; }   /* = the panel padding on phones: the row runs on to the panel edge (the half card is cut there) */
.jd-df-hot__row {
  --jd-df-hot-gap: 12px;
  --jd-df-hot-per: 2.5;   /* cards in view: 2 whole + one cut in half at the right edge (the peek says "there is more") */
  display: flex;
  gap: var(--jd-df-hot-gap);
  padding: 2px 0 14px 2px;   /* room for the card shadow and the focus ring; no right padding: the half card runs to the edge */
  margin: -2px calc(-1 * var(--jd-bleed)) -2px -2px;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.jd-df-hot__row::-webkit-scrollbar { display: none; }
.jd-df-hot__row:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
.jd-df-prod {
  position: relative;
  flex: 0 0 calc((100% - (var(--jd-df-hot-per) - .5) * var(--jd-df-hot-gap)) / var(--jd-df-hot-per));
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 10px 10px 8px;
  scroll-snap-align: start;
}
.jd-df-prod__img { display: block; aspect-ratio: 1; }
.jd-df-prod__photo { display: block; width: 100%; height: 100%; object-fit: contain; }
.jd-df-prod__brand { display: block; min-height: 1.4em; margin-top: 8px; overflow: hidden; color: var(--jd-ink-500, #7a6656); font-size: 12px; line-height: 1.4; letter-spacing: .06em; text-overflow: ellipsis; white-space: nowrap; }
.jd-df-prod__name { margin: 2px 0 0; font-size: 13px; font-weight: 500; line-height: 1.45; letter-spacing: .06em; min-height: 2.9em; }
.jd-df-prod__name a::after { content: ""; position: absolute; inset: 0; border-radius: var(--jd-card-radius); }   /* the whole card is the link target (44px+ tap area); the cart button stays above it */
.jd-df-prod__name a { color: var(--jd-ink-900, #3b2a1f); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.jd-df-prod__name a:focus-visible { outline: none; }
.jd-df-prod__name a:focus-visible::after { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: -3px; }
.jd-df-prod__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; min-height: 26px; margin-top: 6px; }
.jd-df-prod__foot { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-top: auto; padding-top: 4px; }
.jd-df-prod__price { min-width: 0; color: var(--jd-price-color, var(--jd-ink-900, #3b2a1f)); font-size: 15px; font-weight: 600; }
.jd-df-prod__price del { margin-right: 4px; opacity: .6; font-weight: 400; }
.jd-df-prod__price ins { text-decoration: none; }
.jd-df-prod__from { margin-left: 2px; font-size: 12px; font-weight: 500; }
.jd-df-prod__add {
  position: relative;
  z-index: 1;
  flex: none;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -6px;
  border-radius: 50%;
  color: var(--jd-ink-900, #3b2a1f);
  transition: background-color .2s ease;
}
.jd-df-prod__add:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: -2px; }
.jd-df-prod__add.loading { opacity: .5; }
.jd-df-prod__add.added { background: var(--jd-mint-100, #d4eedf); }
.jd-df-prod .added_to_cart { display: none; }   /* WooCommerce appends a 'view cart' link after an ajax add; the mini cart already shows it */
.jd-df-hot__arrow {
  position: absolute;
  top: 34%;
  z-index: 2;
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid var(--jd-card-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--jd-card-shadow);
  color: var(--jd-ink-900, #3b2a1f);
  cursor: pointer;
}
.jd-df-hot__arrow[hidden] { display: none; }
.jd-df-hot__arrow[aria-disabled="true"] { opacity: .35; cursor: default; }   /* at an end of the row: dimmed, still focusable */
.jd-df-hot__arrow svg { width: 18px; height: 18px; }
.jd-df-hot__arrow--prev { left: calc(-1 * var(--jd-space-m) + 2px); }
.jd-df-hot__arrow--prev svg { transform: scaleX(-1); }
.jd-df-hot__arrow--next { right: calc(-1 * var(--jd-space-m) + 2px); }
.jd-df-hot__arrow:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
@media (min-width: 768px) {
  .jd-df-hot__row { --jd-df-hot-gap: 14px; --jd-df-hot-per: 3.5; }
  .jd-df-hot__frame { --jd-bleed: var(--jd-space-m); }
  .jd-df-hot__arrow { display: grid; }
  .jd-df-hot__arrow[hidden] { display: none; }
}
@media (min-width: 1025px) {
  .jd-df-hot__row { --jd-df-hot-per: 5.5; }
}

/* ---- heading + sub-category chips above the real grid (anchor of the hero button and the see-all link) ---- */
.jd-df-gridhead { scroll-margin-top: var(--jd-df-anchor-offset); }
.jd-df-chips { min-width: 0; }
.jd-df-chips__list { display: flex; flex-wrap: nowrap; gap: 8px; margin-inline: calc(-1 * var(--jd-space-s)); padding: 2px var(--jd-space-s); overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; }   /* a sideways row on phones, a wrapped row from 768px */
.jd-df-chips__list::-webkit-scrollbar { display: none; }
.jd-df-chips__list > li { flex: none; scroll-snap-align: start; }
.jd-df-chip {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid var(--jd-border, #e6dcd2);
  border-radius: 999px;
  background: #fff;
  color: var(--jd-ink-900, #3b2a1f);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .08em;
  white-space: nowrap;
}
.jd-df-chip.is-current { border-color: var(--btn-accented-bgcolor, #fde794); background: var(--btn-accented-bgcolor, #fde794); }
.jd-df-chip:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
@media (hover: hover) {
  .jd-df-chip:not(.is-current):hover { border-color: var(--jd-ink-900, #3b2a1f); }
}
@media (min-width: 768px) {
  .jd-df-chips__list { flex-wrap: wrap; margin-inline: 0; padding-inline: 0; overflow: visible; }
}

/* head row: heading left, 「看更多」 link + small 「1 / N」 right */
.jd-df-gridhead__top { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 0 var(--jd-space-s); }
.jd-df-gridhead__top .jd-home-head { margin-bottom: var(--jd-space-xs); }
.jd-df-gridhead__tools { display: flex; align-items: center; gap: var(--jd-space-s); margin-left: auto; }
.jd-df-gridhead__more { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; color: var(--jd-ink-900, #3b2a1f); font-size: 14px; font-weight: 500; white-space: nowrap; }
.jd-df-gridhead__more svg { width: 16px; height: 16px; }
.jd-df-gridhead__more:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 3px; border-radius: 4px; }

/* ---- the shop's own grid on the landing = a two-row sideways row at every width: --jd-df-per columns in view, the last one CUT IN HALF at the right edge (phone 2.5,
   tablet 3.5, 1025-1279 4.5, from 1280 5.5), one scroll-snap point per column (free scroll, not per page). Works without JS (swipe / scroll); the height is that of two rows
   from the first paint. Phone / tablet: the row starts at the page gutter and runs to the screen edge (--jd-bleed). ---- */
.jd-dog-food-page .wd-products.products {
  --jd-df-per: 2.5;
  --jd-df-slide-gap: 12px;
  grid-template-columns: none;
  grid-template-rows: repeat(2, auto);
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--jd-df-per) - .5) * var(--jd-df-slide-gap)) / var(--jd-df-per));
  gap: var(--jd-df-slide-gap);
  margin: -4px calc(-1 * var(--jd-bleed)) 0 -4px;
  padding: 4px 0 14px 4px;   /* room for the card shadow (an overflow container clips it); no right padding: the half card runs to the edge */
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-padding-inline-start: 4px;
  scrollbar-width: none;
}
.jd-dog-food-page .wd-products.products::-webkit-scrollbar { display: none; }
.jd-dog-food-page .wd-products.products:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
.jd-dog-food-page .wd-products.products > .wd-product:nth-child(odd),
.jd-dog-food-page .wd-products.products > .jd-lm-all { scroll-snap-align: start; }
@media (min-width: 768px) {
  .jd-dog-food-page .wd-products.products { --jd-df-per: 3.5; --jd-df-slide-gap: 14px; }
}
@media (min-width: 1025px) {
  .jd-df-slider { --jd-bleed: 0px; }
  .jd-dog-food-page .wd-products.products { --jd-df-per: 4.5; --jd-df-slide-gap: 16px; }
}
@media (min-width: 1280px) {
  .jd-dog-food-page .wd-products.products { --jd-df-per: 5.5; }
}

/* big side arrows (desktop): 56px round buttons centred on the left / right edge of the grid, half over the cards; added by the pager script */
.jd-df-slider { position: relative; --jd-bleed: var(--jd-space-s); }
.jd-df-side {
  position: absolute;
  top: 50%;
  z-index: 3;
  display: none;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-top: -28px;
  padding: 0;
  border: 1px solid var(--jd-card-border);
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--jd-card-shadow);
  color: var(--jd-ink-900, #3b2a1f);
  cursor: pointer;
}
.jd-df-side svg { width: 22px; height: 22px; }
.jd-df-side--prev { left: -12px; }
.jd-df-side--prev svg { transform: scaleX(-1); }
.jd-df-side--next { right: -12px; }
.jd-df-side[aria-disabled="true"] { opacity: .35; cursor: default; }   /* at an end: faded, still focusable */
.jd-df-side:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
@media (hover: hover) {
  .jd-df-side:not([aria-disabled="true"]):hover { box-shadow: 0 2px 4px rgba(60, 30, 40, .08), 0 12px 28px rgba(60, 30, 40, .16); }
}
@media (min-width: 1025px) {
  .jd-df-side:not([hidden]) { display: grid; }
}
@media (min-width: 1500px) {
  .jd-df-side--prev { left: -28px; }
  .jd-df-side--next { right: -28px; }
}

/* ---- little guide (after the grid): three cards ---- */
.jd-df-guide { min-width: 0; }
.jd-df-guide__list { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--jd-space-s); }
.jd-df-tip {
  display: flex;
  flex-direction: column;
  gap: var(--jd-space-xs);
  min-width: 0;
  padding: var(--jd-space-m);
}
.jd-df-tip__art { display: flex; align-items: flex-end; gap: 6px; height: 72px; }
.jd-df-tip__art .jd-df-art { width: auto; height: 100%; max-width: 90px; object-fit: contain; }
.jd-df-tip__body { display: flex; flex: 1; flex-direction: column; gap: var(--jd-space-xs); min-width: 0; }
.jd-df-tip__title { margin: 0; color: var(--jd-ink-900, #3b2a1f); font-size: 18px; font-weight: 700; line-height: 1.4; letter-spacing: .06em; text-wrap: balance; }
.jd-df-tip__text { margin: 0; text-wrap: pretty; }
.jd-df-tip__links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
@media (min-width: 768px) {
  .jd-df-guide__list { grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
  .jd-df-tip__art { height: 84px; }
  .jd-df-tip__art .jd-df-art { max-width: 104px; }
}

/* ---- JUST DOG originals: cream panel, text left, the pouches + happy dog right ---- */
.jd-df-orig { --jd-df-fill: var(--jd-df-cream); width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--jd-space-s); align-items: center; padding: var(--jd-space-m); }
.jd-df-orig__text { min-width: 0; }
.jd-df-orig__text p { margin: 0 0 var(--jd-space-s); max-width: 40em; text-wrap: pretty; }
.jd-df-orig__links { display: flex; flex-wrap: wrap; gap: 10px; }
.jd-df-orig__art { display: flex; align-items: flex-end; justify-content: center; gap: 4px; min-width: 0; }
.jd-df-orig__art .jd-df-art { flex: 0 1 30%; width: 30%; min-width: 0; max-width: 160px; height: auto; }
.jd-df-orig__art .jd-df-orig__dog { max-width: 170px; }
@media (min-width: 768px) {
  .jd-df-orig { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: var(--jd-space-m); padding: var(--jd-space-m) var(--jd-space-l); }
}

/* ---- row: store card | FAQ panel ---- */
.jd-df-end { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--jd-df-block-gap) var(--jd-df-col-gap); align-items: start; }
.jd-df-visit { --jd-df-fill: #f3f8ef; padding: var(--jd-space-s) var(--jd-space-m); width: 100%; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--jd-space-xs); align-items: center; }
.jd-df-visit__art { display: block; width: min(100%, 300px); margin-inline: auto; }
/* the wide painting is cropped to its shop + tree part (x 3%-43%, y 22%-80% of the 2:1 picture); the right cut fades into the card colour */
.jd-df-visit__crop { display: block; aspect-ratio: 1.37; overflow: hidden; -webkit-mask: linear-gradient(90deg, #000 78%, transparent); mask: linear-gradient(90deg, #000 78%, transparent); }
.jd-df-visit__crop .jd-df-art { width: 250%; max-width: none; height: auto; margin: -27% 0 0 -8.3%; }
.jd-df-visit__crop .jd-df-art--missing { width: 100%; margin: 0; aspect-ratio: auto; height: 100%; }
.jd-df-visit__text { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.jd-df-visit__text .jd-home-head { margin-bottom: var(--jd-space-xs); }
.jd-df-visit__text p { margin: 0 0 var(--jd-space-xs); text-wrap: pretty; }
.jd-df-visit__text .jd-df-visit__addr { margin-bottom: var(--jd-space-s); color: var(--jd-ink-900, #3b2a1f); font-weight: 600; }
@media (max-width: 767.98px) {
  .jd-df-visit__text .jd-btn { width: 100%; }
}
@media (min-width: 768px) {
  .jd-df-visit { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: var(--jd-space-s); }
}
@media (min-width: 1025px) {
  .jd-df-end { grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
}

/* FAQ panel: one H3 per question inside a full-width button (opener mark on the right); answers close with the hidden attribute (footer script) */
.jd-df-faq { --jd-df-fill: var(--jd-df-cream); width: 100%; min-width: 0; padding: var(--jd-space-m); }
.jd-df-faq__q { margin: 0; font-size: 14px; line-height: 1.5; }
.jd-df-faq__item + .jd-df-faq__item { border-top: 1px solid var(--jd-border, #eadfcc); }
.jd-df-faq__btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--jd-space-s);
  width: 100%;
  min-height: 48px;
  padding: 10px 0;
  border: 0;
  background: none;
  color: var(--jd-ink-900, #3b2a1f);
  font: inherit;
  font-weight: 600;
  letter-spacing: .06em;
  text-align: start;
  cursor: pointer;
}
.jd-df-faq__qtext { min-width: 0; text-wrap: pretty; }
.jd-df-faq__mark { position: relative; flex: none; width: 16px; height: 16px; }
.jd-df-faq__mark::before,
.jd-df-faq__mark::after { content: ""; position: absolute; top: 50%; left: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; border-radius: 2px; background: currentColor; transition: transform .2s ease; }
.jd-df-faq__mark::after { transform: rotate(90deg); }
.jd-df-faq__btn[aria-expanded="true"] .jd-df-faq__mark::after { transform: rotate(0deg); }
.jd-df-faq__btn:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; border-radius: 6px; }
.jd-df-faq__a { padding: 0 0 var(--jd-space-s); }
.jd-df-faq__a p { margin: 0; text-wrap: pretty; }
.jd-df-faq__a a { text-decoration: underline; text-decoration-color: #f7c5c8; text-decoration-thickness: 2px; text-underline-offset: 3px; color: inherit; }

/* ---- related topics: six tiles (3 x 2 on phones, 6 across from 1025px) ---- */
.jd-df-related { min-width: 0; }
.jd-df-related__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.jd-df-rel { min-width: 0; }
.jd-df-rel__link {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  height: 100%;
  min-height: 44px;
  padding: 10px 4px 12px;
  color: var(--jd-ink-900, #3b2a1f);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: .04em;
  text-align: center;
}
.jd-df-rel__art { display: block; width: 56px; aspect-ratio: 1; overflow: hidden; border-radius: 50%; }
.jd-df-rel__art .jd-df-art { width: 100%; height: 100%; object-fit: contain; }
.jd-df-rel:last-child .jd-df-rel__art .jd-df-art { width: 100%; height: 100%; object-fit: cover; object-position: 14% 50%; transform: scale(1.7); transform-origin: 14% 55%; }   /* the store picture is a wide scene: crop to the shop part */
.jd-df-rel__link:focus-visible { outline: 2px solid var(--jd-ink-900, #3b2a1f); outline-offset: 2px; }
@media (hover: hover) {
  .jd-df-rel__link:hover .jd-df-rel__label { text-decoration: underline; text-decoration-color: #f7c5c8; text-decoration-thickness: 2px; text-underline-offset: 4px; }
}
@media (min-width: 768px) {
  .jd-df-related__list { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: var(--jd-space-s); }
  .jd-df-rel__link { padding-block: var(--jd-space-s); font-size: 14px; }
  .jd-df-rel__art { width: 72px; }
}

/* ---- phones ---- */
@media (max-width: 767.98px) {
  .jd-df { --jd-df-block-gap: var(--jd-space-l); }
  .jd-df-hot,
  .jd-df-orig,
  .jd-df-faq { padding: 28px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .jd-df-cat,
  .jd-df-prod__add,
  .jd-df-dot::before,
  .jd-df-wavy::before,
  .jd-df-faq__mark::before,
  .jd-df-faq__mark::after { transition: none; }
}
