/* Shop page - category tiles, sticky filters, three-column product grid.
   Markup: includes/buy-now/class-shop-page.php. Palette follows the store: deep green,
   leaf green, soft mint, warm cream, amber. */
.wd-sp {
	--sp-deep: var(--theme-palette-color-2, #0e3d27);
	--sp-leaf: var(--theme-palette-color-1, #1e7a4c);
	--sp-soft: var(--theme-palette-color-6, #e4f2e8);
	--sp-line: var(--theme-palette-color-5, #d3e6d9);
	--sp-cream: #fffaf2;
	--sp-amber: #f5a524;
	--sp-text: #1d2a24;
	--sp-mute: #6b7a72;
	--sp-top: 104px;
	background: var(--sp-cream);
	padding: 30px 0 80px;
	color: var(--sp-text);
	font-family: var(--theme-font-family, Lexend, sans-serif);
}
body.admin-bar .wd-sp { --sp-top: 136px; }
.wd-sp *, .wd-sp *::before, .wd-sp *::after { box-sizing: border-box; }
.wd-sp__wrap { max-width: 1290px; margin: 0 auto; padding: 0 24px; }
.wd-sp a { text-decoration: none; }

/* ── heading ─────────────────────────────────────────────────────────── */
.wd-sp__head { margin: 0 0 22px; }
.wd-sp__title { margin: 0; font-size: 34px; line-height: 1.15; font-weight: 800; color: var(--sp-deep); letter-spacing: -.01em; }
.wd-sp__sub { margin: 6px 0 0; font-size: 15.5px; color: var(--sp-mute); }

/* ── category tiles ──────────────────────────────────────────────────── */
.wd-sp__tilebox { margin: 0 0 30px; padding: 22px 20px 16px; background: #fff; border: 1px solid var(--sp-line); border-radius: 26px; box-shadow: 0 18px 36px -30px rgba(14, 61, 39, .5); }
.wd-sp__tiles { display: flex; gap: 14px; margin: 0; padding: 2px 0 6px; overflow-x: auto; scrollbar-width: none; }
.wd-sp__tiles::-webkit-scrollbar { display: none; }
.wd-sp__tile { flex: 1 1 0; min-width: 118px; display: grid; justify-items: center; gap: 12px; padding: 4px 6px; color: var(--sp-deep); text-align: center; transition: transform .18s ease; }
.wd-sp__tile:hover { transform: translateY(-3px); }
.wd-sp__tile-ic { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: var(--sp-soft); border: 2px solid transparent; color: var(--sp-deep); transition: background .18s, color .18s, border-color .18s, box-shadow .18s; }
.wd-sp__tile-ic svg { width: 42px; height: 42px; }
.wd-sp__tile:hover .wd-sp__tile-ic { border-color: var(--sp-leaf); }
.wd-sp__tile.is-on .wd-sp__tile-ic { background: var(--sp-deep); color: #fff; box-shadow: 0 14px 26px -14px rgba(14, 61, 39, .85); }
.wd-sp__tile-name { font-size: 15px; line-height: 1.3; font-weight: 700; }
.wd-sp__tile.is-on .wd-sp__tile-name { color: var(--sp-leaf); }

/* ── layout ──────────────────────────────────────────────────────────── */
.wd-sp__layout { display: grid; grid-template-columns: 284px minmax(0, 1fr); gap: 34px; align-items: start; }
.wd-sp__side { position: sticky; top: var(--sp-top); align-self: start; }
.wd-sp__side-in { background: #fff; border: 1px solid var(--sp-line); border-radius: 22px; padding: 6px 8px 14px 20px; overflow: hidden; }
.wd-sp__scroll { max-height: calc(100vh - var(--sp-top) - 48px); overflow-y: auto; overflow-x: hidden; padding: 0 12px 4px 0; scrollbar-width: thin; scrollbar-color: #c9dcd0 transparent; }
.wd-sp__scroll::-webkit-scrollbar { width: 6px; }
.wd-sp__scroll::-webkit-scrollbar-thumb { background: #c9dcd0; border-radius: 6px; }
.wd-sp__scroll::-webkit-scrollbar-track { background: transparent; }

/* ── filters ─────────────────────────────────────────────────────────── */
.wd-sp__ftop { display: flex; align-items: center; gap: 12px; padding: 14px 0 10px; font-size: 17px; color: var(--sp-deep); }
.wd-sp__ftop strong { font-weight: 800; }
.wd-sp__clear { margin-left: auto; font-size: 13px; font-weight: 700; color: var(--sp-leaf); }
.wd-sp__clear:hover { text-decoration: underline; }
.wd-sp__fclose { display: none; margin-left: auto; width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--sp-soft); color: var(--sp-deep); font-size: 22px; line-height: 1; cursor: pointer; }
.wd-sp__clear + .wd-sp__fclose { margin-left: 0; }
.wd-sp__sec { border-top: 1px solid #edf3ef; padding: 14px 0; }
.wd-sp__sec > summary { display: flex; align-items: center; justify-content: space-between; cursor: pointer; list-style: none; font-size: 14.5px; font-weight: 800; color: var(--sp-deep); }
.wd-sp__sec > summary::-webkit-details-marker { display: none; }
.wd-sp__sec > summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--sp-mute); border-bottom: 2px solid var(--sp-mute); transform: rotate(45deg); transition: transform .18s; margin-right: 3px; }
.wd-sp__sec[open] > summary::after { transform: rotate(-135deg); margin-top: 4px; }
.wd-sp__sec > :not(summary) { margin-top: 12px; }
.wd-sp__list { display: grid; gap: 2px; }
.wd-sp__opt { display: flex; align-items: center; gap: 10px; padding: 7px 4px; border-radius: 10px; cursor: pointer; font-size: 14.5px; color: var(--sp-text); transition: background .12s; }
.wd-sp__opt:hover { background: #f4f9f6; }
.wd-sp__opt input { position: absolute; opacity: 0; pointer-events: none; }
.wd-sp__box { flex: none; width: 19px; height: 19px; border: 2px solid #b9cdc1; border-radius: 6px; background: #fff; display: grid; place-items: center; transition: background .12s, border-color .12s; }
.wd-sp__opt input:checked + .wd-sp__box { background: var(--sp-leaf); border-color: var(--sp-leaf); }
.wd-sp__opt input:checked + .wd-sp__box::after { content: ""; width: 9px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: rotate(-45deg) translate(1px, -1px); }
.wd-sp__opt input:focus-visible + .wd-sp__box { box-shadow: 0 0 0 3px rgba(30, 122, 76, .28); }
.wd-sp__opt-t { flex: 1 1 auto; display: inline-flex; align-items: center; gap: 6px; line-height: 1.25; }
.wd-sp__opt em { font-style: normal; font-size: 12.5px; color: var(--sp-mute); background: #f1f6f3; border-radius: 999px; padding: 1px 8px; }
.wd-sp__opt.is-zero { opacity: .45; }

.wd-sp__pets { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.wd-sp__pet { position: relative; display: block; cursor: pointer; }
.wd-sp__pet input { position: absolute; opacity: 0; pointer-events: none; }
.wd-sp__pet span { display: block; padding: 10px 0; border: 1.5px solid var(--sp-line); border-radius: 999px; background: #fff; text-align: center; font-size: 14px; line-height: 1.2; font-weight: 700; color: var(--sp-deep); transition: background .15s, color .15s, border-color .15s; }
.wd-sp__pet:hover span { border-color: var(--sp-leaf); }
.wd-sp__pet.is-on span, .wd-sp__pet input:checked + span { background: var(--sp-deep); border-color: var(--sp-deep); color: #fff; }
.wd-sp__pet input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30, 122, 76, .3); }
.wd-sp__sec--static > .wd-sp__sec-h { margin: 0 0 12px; font-size: 14.5px; font-weight: 800; color: var(--sp-deep); }
.wd-sp__sec--static > :not(.wd-sp__sec-h) { margin-top: 0; }
.wd-sp__sec--static .wd-sp__presets { margin-top: 12px; }
.wd-sp__price { display: grid; grid-template-columns: 1fr auto 1fr auto; align-items: end; gap: 6px; }
.wd-sp__price label { display: grid; gap: 3px; font-size: 11.5px; font-weight: 700; color: var(--sp-mute); text-transform: uppercase; letter-spacing: .04em; }
.wd-sp__price input { width: 100%; height: 40px; padding: 0 10px; border: 1px solid var(--sp-line); border-radius: 11px; background: #fff; font: inherit; font-size: 14px; color: var(--sp-text); -moz-appearance: textfield; }
.wd-sp__price input::-webkit-outer-spin-button, .wd-sp__price input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.wd-sp__price input:focus { outline: 0; border-color: var(--sp-leaf); box-shadow: 0 0 0 3px rgba(30, 122, 76, .16); }
.wd-sp__price i { padding-bottom: 10px; color: var(--sp-mute); font-style: normal; }
.wd-sp__go { height: 40px; padding: 0 14px; border: 0; border-radius: 11px; background: var(--sp-deep); color: #fff; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.wd-sp__go:hover { background: var(--sp-leaf); }
.wd-sp__go--wide { width: 100%; margin-top: 12px; }
.wd-sp__presets { display: flex; flex-wrap: wrap; gap: 6px; }
.wd-sp__preset { padding: 6px 11px; border: 1px solid var(--sp-line); border-radius: 999px; background: #fff; color: var(--sp-deep); font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .12s, color .12s, border-color .12s; }
.wd-sp__preset:hover { border-color: var(--sp-leaf); }
.wd-sp__preset.is-on { background: var(--sp-deep); border-color: var(--sp-deep); color: #fff; }
.wd-sp__show { display: none; width: 100%; height: 48px; margin-top: 14px; border: 0; border-radius: 999px; background: var(--sp-deep); color: #fff; font: inherit; font-size: 14.5px; font-weight: 700; cursor: pointer; }

/* ── results bar ─────────────────────────────────────────────────────── */
.wd-sp__bar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 16px; }
.wd-sp__count { margin: 0 !important; font-size: 14.5px; color: var(--sp-mute); }
.wd-sp__sort { margin: 0 !important; }
.wd-sp__sort select { height: 44px; min-width: 210px; padding: 0 38px 0 16px; border: 1px solid var(--sp-line) !important; border-radius: 12px !important; background-color: #fff; font: inherit; font-size: 14.5px; font-weight: 600; color: var(--sp-deep); cursor: pointer; }
.wd-sp__sort select:focus { outline: 0; border-color: var(--sp-leaf) !important; box-shadow: 0 0 0 3px rgba(30, 122, 76, .16); }
.wd-sp__chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }
.wd-sp__chip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px; background: var(--sp-soft); color: var(--sp-deep); font-size: 13px; font-weight: 700; transition: background .12s; }
.wd-sp__chip:hover { background: #d4e9db; }
.wd-sp__chip--clear { background: transparent; border: 1px dashed var(--sp-line); color: var(--sp-leaf); }

/* ── product grid ────────────────────────────────────────────────────── */
.wd-sp__main { min-width: 0; transition: opacity .15s; }
.wd-sp__main.is-loading { opacity: .5; pointer-events: none; }
.wd-sp__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.wd-sp__card { position: relative; display: flex; flex-direction: column; margin: 0; background: #fff; border: 1px solid #e4eee8; border-radius: 24px; overflow: hidden; transition: transform .22s ease, box-shadow .22s ease, border-color .22s; }
.wd-sp__card:hover { transform: translateY(-5px); border-color: var(--sp-line); box-shadow: 0 24px 40px -26px rgba(14, 61, 39, .45); }
.wd-sp__media { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--sp-soft); overflow: hidden; }
.wd-sp__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease, opacity .35s ease; }
.wd-sp__img--alt { opacity: 0; }
.wd-sp__card:hover .wd-sp__img { transform: scale(1.05); }
.wd-sp__card:hover .wd-sp__img--alt { opacity: 1; }
.wd-sp__media .woocommerce-placeholder { object-fit: cover; }
.wd-sp__card.is-out .wd-sp__img { filter: grayscale(.85); opacity: .7; }
.wd-sp__badges { position: absolute; left: 14px; top: 14px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; z-index: 2; }
.wd-sp__badge { display: inline-block; padding: 5px 11px; border-radius: 999px; font-size: 12px; line-height: 1.2; font-weight: 800; letter-spacing: .01em; background: var(--sp-amber); color: #3a2500; box-shadow: 0 6px 14px -8px rgba(0, 0, 0, .5); }
.wd-sp__badge--best { background: var(--sp-deep); color: #fff; }
.wd-sp__badge--drop { background: #dff0ff; color: #0c447c; }
.wd-sp__badge--new { background: #ffe3ef; color: #8a1d4a; }
.wd-sp__badge--out { background: #3b3f3d; color: #fff; }
.wd-sp__body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 14px 18px 18px; }
.wd-sp__cat { font-size: 11.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: var(--sp-leaf); }
.wd-sp__name { margin: 3px 0 6px; font-size: 17px; line-height: 1.3; font-weight: 700; }
.wd-sp__name a { color: var(--sp-deep); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wd-sp__name a:hover { color: var(--sp-leaf); }
.wd-sp__meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0 0 8px; font-size: 13px; color: var(--sp-mute); }
.wd-sp__rate { display: inline-flex; align-items: center; gap: 6px; }
.wd-sp__rate em { font-style: normal; }
.wd-sp__rate--none { font-size: 12.5px; }
.wd-sp__low { color: #b45309; font-weight: 700; font-size: 12.5px; }
.wd-sp__stars { display: inline-block; width: 78px; height: 14px; background: linear-gradient(90deg, var(--sp-amber) var(--r, 0%), #d9e1dc var(--r, 0%));
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 1l3.2 6.9 7.5.9-5.6 5.1 1.5 7.4L12 17.5 5.4 21.3l1.5-7.4L1.3 8.8l7.5-.9z'/%3E%3C/svg%3E") 0 0 / 15.6px 14px repeat-x;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 22'%3E%3Cpath d='M12 1l3.2 6.9 7.5.9-5.6 5.1 1.5 7.4L12 17.5 5.4 21.3l1.5-7.4L1.3 8.8l7.5-.9z'/%3E%3C/svg%3E") 0 0 / 15.6px 14px repeat-x; }
.wd-sp__price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 8px; margin: 0 0 12px; }
.wd-sp__price-v { display: inline-flex; align-items: baseline; flex-wrap: wrap; gap: 6px; }
.wd-sp__now { font-size: 22px; font-weight: 800; color: var(--sp-deep); }
.wd-sp__price-v del { font-size: 14.5px; color: #8a978f; font-weight: 500; }
.wd-sp__price-v del .amount { text-decoration: line-through; }
.wd-sp__from { font-size: 13px; color: var(--sp-mute); font-weight: 600; }
.wd-sp__sfx { font-size: 11.5px; color: var(--sp-mute); }
.wd-sp .wd-sp__add { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 46px; padding: 0 18px; border: 2px solid var(--sp-deep); border-radius: 999px; background: var(--sp-deep); color: #fff; font-family: var(--theme-button-font-family, Montserrat, sans-serif); font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; transition: background .18s, color .18s, border-color .18s, transform .1s; }
.wd-sp .wd-sp__add:hover { background: var(--sp-leaf); border-color: var(--sp-leaf); color: #fff; }
.wd-sp .wd-sp__add:active { transform: scale(.98); }
.wd-sp .wd-sp__add--opt { background: #fff; color: var(--sp-deep); }
.wd-sp .wd-sp__add--opt:hover { background: var(--sp-deep); border-color: var(--sp-deep); color: #fff; }
.wd-sp .wd-sp__add--off { background: #eef1ef; border-color: #eef1ef; color: #8a978f; cursor: not-allowed; }
.wd-sp .wd-sp__add.is-busy { opacity: .75; cursor: wait; }
.wd-sp .wd-sp__add.is-done { background: var(--sp-leaf); border-color: var(--sp-leaf); }
.wd-sp .wd-sp__add.is-done .wd-sp__add-t::before { content: "\2713"; margin-right: 8px; }
.wd-sp .wd-sp__add.is-fail { background: #b42318; border-color: #b42318; }

/* ── pager, empty ────────────────────────────────────────────────────── */
.wd-sp__pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 38px 0 0; }
.wd-sp__pg { display: grid; place-items: center; min-width: 44px; height: 44px; padding: 0 12px; border: 1px solid var(--sp-line); border-radius: 50%; background: #fff; color: var(--sp-deep); font-size: 15px; font-weight: 700; transition: background .12s, color .12s, border-color .12s; }
.wd-sp__pg:hover { border-color: var(--sp-leaf); }
.wd-sp__pg.is-on { background: var(--sp-deep); border-color: var(--sp-deep); color: #fff; }
.wd-sp__empty { display: grid; justify-items: center; gap: 10px; padding: 64px 24px; text-align: center; background: #fff; border: 1px dashed var(--sp-line); border-radius: 24px; }
.wd-sp__empty-ic { display: grid; place-items: center; width: 84px; height: 84px; border-radius: 50%; background: var(--sp-soft); color: var(--sp-deep); }
.wd-sp__empty-ic svg { width: 40px; height: 40px; }
.wd-sp__empty h2 { margin: 6px 0 0; font-size: 22px; font-weight: 800; color: var(--sp-deep); }
.wd-sp__empty p { margin: 0; color: var(--sp-mute); }
.wd-sp__btn { display: inline-flex; align-items: center; min-height: 46px; padding: 0 26px; margin-top: 8px; border-radius: 999px; background: var(--sp-deep); color: #fff; font-size: 13.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.wd-sp__btn:hover { background: var(--sp-leaf); color: #fff; }

/* ── add-to-cart notice (top of the screen) ──────────────────────────── */
.wd-sp-note { position: fixed; top: 0; left: 0; right: 0; z-index: 2147483000; display: flex; justify-content: center; padding: 14px 16px; pointer-events: none; transform: translateY(-120%); transition: transform .32s cubic-bezier(.2, .8, .2, 1); font-family: var(--theme-font-family, Lexend, sans-serif); }
body.admin-bar .wd-sp-note { top: 32px; }
.wd-sp-note.is-show { transform: translateY(0); }
.wd-sp-note__in { pointer-events: auto; display: flex; align-items: center; gap: 14px; max-width: 760px; width: 100%; padding: 12px 14px 12px 12px; border-radius: 18px; background: #0e3d27; color: #fff; box-shadow: 0 22px 44px -16px rgba(0, 0, 0, .55); }
.wd-sp-note.is-error .wd-sp-note__in { background: #7a1c14; }
.wd-sp-note__img { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; background: #1e7a4c; overflow: hidden; }
.wd-sp-note__img img { width: 100%; height: 100%; object-fit: cover; }
.wd-sp-note__img svg { width: 26px; height: 26px; }
.wd-sp-note__txt { flex: 1 1 auto; min-width: 0; font-size: 14.5px; line-height: 1.4; }
.wd-sp-note__txt b { display: block; font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wd-sp-note__act { display: flex; gap: 8px; flex: none; }
.wd-sp-note__btn { display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #0e3d27; background: #fff; }
.wd-sp-note__btn--go { background: #f5a524; color: #3a2500; }
.wd-sp-note__x { flex: none; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; font-size: 20px; line-height: 1; cursor: pointer; }

/* ── filters button + drawer (tablet / phone) ────────────────────────── */
.wd-sp__fab, .wd-sp__scrim { display: none; }
@media (max-width: 1100px) {
	.wd-sp__layout { grid-template-columns: 240px minmax(0, 1fr); gap: 24px; }
	.wd-sp__grid { gap: 18px; }
	.wd-sp__tile-ic { width: 78px; height: 78px; }
	.wd-sp__tile-ic svg { width: 36px; height: 36px; }
}
@media (max-width: 900px) {
	.wd-sp { padding: 22px 0 90px; }
	.wd-sp__wrap { padding: 0 16px; }
	.wd-sp__title { font-size: 28px; }
	.wd-sp__layout { grid-template-columns: minmax(0, 1fr); }
	.wd-sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
	.wd-sp__side { position: fixed; z-index: 100000; top: 0; bottom: 0; left: 0; width: min(88vw, 360px); transform: translateX(-105%); transition: transform .28s ease; }
	.wd-sp__side.is-open { transform: translateX(0); }
	.wd-sp__side-in { height: 100%; border-radius: 0 24px 24px 0; padding-bottom: 0; }
	.wd-sp__scroll { max-height: none; height: 100%; padding-bottom: 20px; }
	.wd-sp__fclose { display: inline-grid; place-items: center; }
	.wd-sp__show { display: block; position: sticky; bottom: 0; }
	.wd-sp__scrim { position: fixed; inset: 0; z-index: 99999; background: rgba(14, 40, 28, .5); }
	.wd-sp__scrim:not([hidden]) { display: block; }
	.wd-sp__fab { display: inline-flex; align-items: center; gap: 8px; position: fixed; z-index: 9990; left: 50%; bottom: 20px; transform: translateX(-50%); min-height: 48px; padding: 0 26px; border: 0; border-radius: 999px; background: var(--sp-deep); color: #fff; font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; box-shadow: 0 18px 30px -12px rgba(0, 0, 0, .55); cursor: pointer; }
	.wd-sp__tilebox { padding: 16px 12px 10px; border-radius: 22px; }
	.wd-sp__tile { min-width: 96px; }
	.wd-sp__tile-ic { width: 70px; height: 70px; }
	.wd-sp__tile-ic svg { width: 32px; height: 32px; }
	.wd-sp__tile-name { font-size: 13.5px; }
	.wd-sp__bar { flex-wrap: wrap; }
	.wd-sp__sort select { min-width: 0; }
	.wd-sp__body { padding: 14px 14px 16px; }
	.wd-sp__name { font-size: 15px; }
	.wd-sp__now { font-size: 18px; }
	.wd-sp .wd-sp__add { min-height: 44px; font-size: 12.5px; padding: 0 10px; }
	.wd-sp-note__in { flex-wrap: wrap; }
	.wd-sp-note__act { width: 100%; }
	.wd-sp-note__btn { flex: 1; justify-content: center; }
}
@media (max-width: 420px) {
	.wd-sp__body { padding: 12px 12px 14px; }
	.wd-sp__badges { left: 8px; top: 8px; }
	.wd-sp__badge { font-size: 11px; padding: 4px 9px; }
}
@media (prefers-reduced-motion: reduce) {
	.wd-sp *, .wd-sp-note { transition: none !important; }
}

/* ═════════ Filter sidebar, second pass: sleeker, with a search box, icon rows, switches and a two-thumb price slider ═════════ */
.wd-sp__side-in { border-color: #e1ece5; border-radius: 26px; box-shadow: 0 26px 50px -36px rgba(14, 61, 39, .55); padding: 8px 10px 14px 22px; }
.wd-sp__ftop { padding: 16px 0 14px; }
.wd-sp__ftitle { display: inline-flex; align-items: center; gap: 9px; font-size: 18px; font-weight: 800; color: var(--sp-deep); }
.wd-sp__ftitle svg { width: 20px; height: 20px; color: var(--sp-leaf); }
.wd-sp__nf { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--sp-leaf); color: #fff; font-size: 12px; font-weight: 800; }
.wd-sp__clear { padding: 5px 11px; border-radius: 999px; background: var(--sp-soft); font-size: 12.5px; }
.wd-sp__clear:hover { background: #d4e9db; text-decoration: none; }
.wd-sp__search { position: relative; display: block; margin: 0 0 6px; }
.wd-sp__search svg { position: absolute; left: 14px; top: 50%; width: 18px; height: 18px; transform: translateY(-50%); color: #7d8c84; pointer-events: none; }
.wd-sp__search input { width: 100%; height: 46px; padding: 0 14px 0 42px; border: 1.5px solid transparent; border-radius: 14px; background: #f1f6f3; font: inherit; font-size: 14.5px; color: var(--sp-text); transition: background .15s, border-color .15s, box-shadow .15s; }
.wd-sp__search input::placeholder { color: #7d8c84; }
.wd-sp__search input:focus { outline: 0; background: #fff; border-color: var(--sp-leaf); box-shadow: 0 0 0 4px rgba(30, 122, 76, .12); }
.wd-sp__sec { border-top: 0; padding: 12px 0 8px; }
.wd-sp__sec + .wd-sp__sec { border-top: 1px solid #eef4f0; }
.wd-sp__sec > summary, .wd-sp__sec-h { font-size: 12.5px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; color: #3d5448; }
.wd-sp__sec > summary { padding: 4px 0; }
.wd-sp__sec > summary::after { width: 7px; height: 7px; border-color: #8a9a91; }
.wd-sp__sec > :not(summary) { margin-top: 10px; }

/* pet pills with icons */
.wd-sp__pets { gap: 6px; }
.wd-sp__pet span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0 9px; border-radius: 16px; border: 1.5px solid #e3ede7; font-size: 13px; }
.wd-sp__pet svg { width: 22px; height: 22px; }
.wd-sp__pet.is-on span, .wd-sp__pet input:checked + span { box-shadow: 0 12px 20px -14px rgba(14, 61, 39, .9); }

/* category rows */
.wd-sp__rows { display: grid; gap: 3px; }
.wd-sp__row { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px; cursor: pointer; color: var(--sp-text); font-size: 14.5px; transition: background .14s; }
.wd-sp__row:hover { background: #f3f8f5; }
.wd-sp__row input { position: absolute; opacity: 0; pointer-events: none; }
.wd-sp__row-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eef5f1; color: var(--sp-deep); transition: background .14s, color .14s; }
.wd-sp__row-ic svg { width: 19px; height: 19px; }
.wd-sp__row-t { flex: 1 1 auto; font-weight: 600; line-height: 1.25; }
.wd-sp__row em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #6f7f76; }
.wd-sp__row.is-on, .wd-sp__row:has(input:checked) { background: var(--sp-soft); }
.wd-sp__row:has(input:checked) .wd-sp__row-ic { background: var(--sp-deep); color: #fff; }
.wd-sp__row:has(input:checked) .wd-sp__row-t { color: var(--sp-deep); font-weight: 800; }
.wd-sp__row:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(30, 122, 76, .3); }
.wd-sp__row.is-zero, .wd-sp__tg.is-zero, .wd-sp__rate-opt.is-zero { opacity: .45; }

/* price: range + slider on one row, the button on its own row */
.wd-sp__sec-top { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.wd-sp__sec-top .wd-sp__sec-h { margin: 0; }
.wd-sp__pv { font-size: 13px; font-weight: 800; color: var(--sp-leaf); white-space: nowrap; }
.wd-sp__range { position: relative; height: 30px; margin: 14px 2px 6px; }
.wd-sp__rail, .wd-sp__fill { position: absolute; top: 13px; height: 4px; border-radius: 4px; }
.wd-sp__rail { left: 0; right: 0; background: #e3ede7; }
.wd-sp__fill { left: 0; right: 0; background: var(--sp-leaf); }
.wd-sp__r { position: absolute; left: 0; top: 0; width: 100%; height: 30px; margin: 0; background: none; pointer-events: none; -webkit-appearance: none; appearance: none; }
.wd-sp__r::-webkit-slider-runnable-track { background: none; height: 30px; }
.wd-sp__r::-moz-range-track { background: none; height: 30px; }
.wd-sp__r::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; pointer-events: auto; width: 20px; height: 20px; margin-top: 5px; border-radius: 50%; background: #fff; border: 3px solid var(--sp-leaf); box-shadow: 0 4px 10px -3px rgba(14, 61, 39, .55); cursor: grab; }
.wd-sp__r::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--sp-leaf); box-shadow: 0 4px 10px -3px rgba(14, 61, 39, .55); cursor: grab; }
.wd-sp__r:active::-webkit-slider-thumb { cursor: grabbing; transform: scale(1.1); }
.wd-sp__price { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 8px; margin-top: 4px; }
.wd-sp__price label { position: relative; display: block; }
.wd-sp__price label i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); font-style: normal; font-weight: 700; color: #7d8c84; pointer-events: none; }
.wd-sp__price input { width: 100%; height: 42px; padding: 0 10px 0 28px; border: 1.5px solid transparent; border-radius: 12px; background: #f1f6f3; font: inherit; font-size: 14px; font-weight: 700; color: var(--sp-text); }
.wd-sp__price input:focus { outline: 0; background: #fff; border-color: var(--sp-leaf); box-shadow: 0 0 0 4px rgba(30, 122, 76, .12); }
.wd-sp__to { font-size: 12px; font-weight: 700; color: #7d8c84; text-transform: uppercase; }
.wd-sp .wd-sp__go { display: block; width: 100%; height: 42px; margin-top: 10px; border: 0; border-radius: 12px; background: var(--sp-deep); color: #fff; font: inherit; font-size: 13.5px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: background .15s; }
.wd-sp .wd-sp__go:hover { background: var(--sp-leaf); }

/* special offers: switches */
.wd-sp__tg { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 14px; cursor: pointer; transition: background .14s; }
.wd-sp__tg:hover { background: #f3f8f5; }
.wd-sp__tg input { position: absolute; opacity: 0; pointer-events: none; }
.wd-sp__tg-ic { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: #eef5f1; color: var(--sp-deep); }
.wd-sp__tg-ic svg { width: 19px; height: 19px; }
.wd-sp__tg-t { flex: 1 1 auto; font-size: 14.5px; font-weight: 600; line-height: 1.25; }
.wd-sp__tg em { font-style: normal; font-size: 12.5px; font-weight: 700; color: #6f7f76; }
.wd-sp__sw { flex: none; position: relative; width: 40px; height: 24px; border-radius: 999px; background: #d3ddd7; transition: background .18s; }
.wd-sp__sw::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 2px 5px rgba(0, 0, 0, .25); transition: transform .18s; }
.wd-sp__tg input:checked ~ .wd-sp__sw { background: var(--sp-leaf); }
.wd-sp__tg input:checked ~ .wd-sp__sw::after { transform: translateX(16px); }
.wd-sp__tg:has(input:checked) .wd-sp__tg-ic { background: var(--sp-deep); color: #fff; }
.wd-sp__tg:has(input:checked) .wd-sp__tg-t { font-weight: 800; color: var(--sp-deep); }
.wd-sp__tg:has(input:focus-visible) { box-shadow: 0 0 0 3px rgba(30, 122, 76, .3); }

/* rating pills */
.wd-sp__rates { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.wd-sp__rate-opt { position: relative; display: block; cursor: pointer; }
.wd-sp__rate-opt input { position: absolute; opacity: 0; pointer-events: none; }
.wd-sp__rate-opt span { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px 5px; padding: 10px 6px; border: 1.5px solid #e3ede7; border-radius: 14px; font-size: 13px; font-weight: 600; color: var(--sp-text); transition: background .14s, border-color .14s, color .14s; text-align: center; line-height: 1.2; }
.wd-sp__rate-opt svg { width: 16px; height: 16px; color: var(--sp-amber); fill: var(--sp-amber); }
.wd-sp__rate-opt b { font-weight: 800; color: var(--sp-deep); }
.wd-sp__rate-opt em { font-style: normal; font-size: 12px; color: #6f7f76; }
.wd-sp__rate-opt:hover span { border-color: var(--sp-leaf); }
.wd-sp__rate-opt input:checked + span, .wd-sp__rate-opt.is-on span { background: var(--sp-deep); border-color: var(--sp-deep); color: #fff; }
.wd-sp__rate-opt input:checked + span b, .wd-sp__rate-opt.is-on span b, .wd-sp__rate-opt input:checked + span em { color: #fff; }
.wd-sp__rate-opt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30, 122, 76, .3); }

/* ═════════ category tiles: a little life ═════════ */
.wd-sp__tile-ic svg { transition: transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.wd-sp__tile:hover .wd-sp__tile-ic svg { transform: rotate(-8deg) scale(1.1); }
.wd-sp__tile.is-on .wd-sp__tile-ic { animation: wdsp-ring 2.6s ease-out infinite; }
.wd-sp__tile.is-on .wd-sp__tile-ic svg { animation: wdsp-bob 2.4s ease-in-out infinite; }
@keyframes wdsp-ring { 0% { box-shadow: 0 0 0 0 rgba(30, 122, 76, .45), 0 14px 26px -14px rgba(14, 61, 39, .85); } 70%, 100% { box-shadow: 0 0 0 14px rgba(30, 122, 76, 0), 0 14px 26px -14px rgba(14, 61, 39, .85); } }
@keyframes wdsp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px) rotate(-4deg); } }
@media (prefers-reduced-motion: reduce) { .wd-sp__tile.is-on .wd-sp__tile-ic, .wd-sp__tile.is-on .wd-sp__tile-ic svg { animation: none; } }

/* ═════════ price on the card: one row, no GST line ═════════ */
.wd-sp__price-row { flex-wrap: nowrap; white-space: nowrap; overflow: hidden; }
.wd-sp__price-v { flex-wrap: nowrap; align-items: baseline; gap: 8px; min-width: 0; }
.wd-sp__now { font-size: 21px; line-height: 1.1; }
@media (max-width: 900px) { .wd-sp__now { font-size: 17px; } .wd-sp__price-v del { font-size: 12.5px; } .wd-sp__price-v { gap: 6px; } }

/* price boxes: the rupee sign sits centred in its own gutter (the theme's input padding used to win) */
.wd-sp .wd-sp__price label { position: relative; display: block; }
.wd-sp .wd-sp__price label i { position: absolute; left: 0; top: 0; bottom: 0; width: 30px; display: flex; align-items: center; justify-content: center; margin: 0; padding: 0; font-style: normal; font-size: 14px; font-weight: 700; line-height: 1; color: #6f7f76; pointer-events: none; transform: none; }
.wd-sp .wd-sp__price label input[type="number"] { display: block; width: 100%; height: 42px !important; padding: 0 10px 0 30px !important; margin: 0 !important; border: 1.5px solid transparent !important; border-radius: 12px !important; background: #f1f6f3 !important; font-size: 14px; font-weight: 700; line-height: 42px; color: var(--sp-text); box-shadow: none; }
.wd-sp .wd-sp__price label input[type="number"]:focus { background: #fff !important; border-color: var(--sp-leaf) !important; box-shadow: 0 0 0 4px rgba(30, 122, 76, .12); outline: 0; }

/* the space under the page equals the space above it (30px) */
@media (min-width: 901px) { .wd-sp { padding-bottom: 30px; } }

/* filter panel: a fade and a small pill tell you there is more to scroll to */
.wd-sp__side-in { position: relative; }
.wd-sp__side-in::before, .wd-sp__side-in::after { content: ""; position: absolute; left: 0; right: 10px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2; }
.wd-sp__side-in::before { top: 0; height: 22px; background: linear-gradient(to bottom, #fff 10%, rgba(255, 255, 255, 0)); border-radius: 26px 26px 0 0; }
.wd-sp__side-in::after { bottom: 0; height: 74px; background: linear-gradient(to top, #fff 25%, rgba(255, 255, 255, 0)); border-radius: 0 0 26px 26px; }
.wd-sp__side-in.has-above::before, .wd-sp__side-in.has-below::after { opacity: 1; }
.wd-sp__more { position: absolute; left: calc(50% - 5px); bottom: 12px; transform: translate(-50%, 6px); z-index: 3; display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--sp-deep); color: #fff; font: inherit; font-size: 11.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; box-shadow: 0 10px 20px -10px rgba(14, 61, 39, .8); cursor: pointer; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; }
.wd-sp__more svg { animation: wdsp-nudge 1.6s ease-in-out infinite; }
.wd-sp__side-in.has-below .wd-sp__more { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.wd-sp__more:hover { background: var(--sp-leaf); }
@keyframes wdsp-nudge { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(2px); } }
@media (prefers-reduced-motion: reduce) { .wd-sp__more svg { animation: none; } }
@media (max-width: 900px) { .wd-sp__side-in::before { border-radius: 0 24px 0 0; } .wd-sp__side-in::after { border-radius: 0 0 24px 0; } }

/* ═════════ Phones and small tablets ═════════ */
.wd-sp__tarr, .wd-sp__dock, .wd-sp__sortp { display: none; }
.wd-sp__l1, .wd-sp__l2 { display: inline; }

@media (max-width: 900px) {
	.wd-sp { padding-bottom: 96px; }
	.wd-sp__fab { display: none !important; }

	/* categories: three icons at a time, arrows + swipe */
	.wd-sp__tilebox { position: relative; padding: 14px 0 8px; margin-bottom: 18px; }
	.wd-sp__tiles { gap: 0; margin: 0 34px; padding: 0; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -webkit-overflow-scrolling: touch; }
	.wd-sp__tile { flex: 0 0 33.3333%; min-width: 0; padding: 2px 4px; scroll-snap-align: start; gap: 9px; }
	.wd-sp__tile-ic { width: 66px; height: 66px; }
	.wd-sp__tile-ic svg { width: 30px; height: 30px; }
	.wd-sp__tile-name { display: block; min-height: 2.55em; font-size: 12.5px; line-height: 1.27; }
	.wd-sp__l1, .wd-sp__l2 { display: block; }
	.wd-sp__tarr { position: absolute; top: 30px; z-index: 3; display: grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid var(--sp-line); border-radius: 50%; background: #fff; color: var(--sp-deep); box-shadow: 0 8px 16px -8px rgba(14, 61, 39, .5); cursor: pointer; transition: opacity .18s; }
	.wd-sp__tarr--l { left: 6px; }
	.wd-sp__tarr--r { right: 6px; }
	.wd-sp__tarr.is-off { opacity: .28; pointer-events: none; }
	.wd-sp__tilebox.is-static .wd-sp__tarr { display: none; }
	.wd-sp__tilebox.is-static .wd-sp__tiles { margin: 0 8px; }

	/* result count in the middle; sorting lives in the bottom bar */
	.wd-sp__bar { justify-content: center; margin-bottom: 14px; }
	.wd-sp__count { width: 100%; text-align: center; }
	.wd-sp__sort { display: none !important; }

	/* bottom bar: Filters | Sort */
	.wd-sp__dock { position: fixed; z-index: 9995; left: 0; right: 0; bottom: 0; display: flex; padding-bottom: env(safe-area-inset-bottom); background: #fff; border-top: 1px solid var(--sp-line); box-shadow: 0 -14px 28px -18px rgba(14, 61, 39, .45); }
	.wd-sp__dock-b { position: relative; flex: 1 1 50%; display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 56px; border: 0; background: transparent; color: var(--sp-deep); font: inherit; font-size: 14px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; cursor: pointer; }
	.wd-sp__dock-b + .wd-sp__dock-b::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: var(--sp-line); }
	.wd-sp__dock-b svg { width: 20px; height: 20px; color: var(--sp-leaf); }
	.wd-sp__dock-b:active { background: var(--sp-soft); }
	.wd-sp__dock-n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--sp-leaf); color: #fff; font-size: 11.5px; letter-spacing: 0; }
	.wd-sp__dock-n[hidden] { display: none; }

	/* sort panel: slides in from the right (filters come from the left) */
	.wd-sp__sortp { position: fixed; z-index: 100000; top: 0; bottom: 0; right: 0; display: block; width: min(88vw, 340px); background: #fff; border-radius: 24px 0 0 24px; box-shadow: -20px 0 40px -24px rgba(0, 0, 0, .5); transform: translateX(105%); transition: transform .28s ease; }
	.wd-sp__sortp.is-open { transform: translateX(0); }
	.wd-sp__sortp-in { padding: 8px 20px 24px; }
	.wd-sp__sortp-top { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 12px; font-size: 18px; color: var(--sp-deep); }
	.wd-sp__sortp-top strong { font-weight: 800; }
	.wd-sp__sortp-x { display: inline-grid; margin-left: 0; place-items: center; }
	.wd-sp__sortp-list { display: grid; gap: 6px; margin-top: 6px; }
	.wd-sp__sopt { position: relative; display: block; cursor: pointer; }
	.wd-sp__sopt input { position: absolute; opacity: 0; pointer-events: none; }
	.wd-sp__sopt span { display: flex; align-items: center; justify-content: space-between; min-height: 52px; padding: 0 16px; border: 1.5px solid #e3ede7; border-radius: 16px; font-size: 15px; font-weight: 700; color: var(--sp-text); transition: background .14s, border-color .14s, color .14s; }
	.wd-sp__sopt span::after { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #b9cdc1; background: #fff; transition: border-color .14s, background .14s, box-shadow .14s; }
	.wd-sp__sopt.is-on span, .wd-sp__sopt input:checked + span { background: var(--sp-soft); border-color: var(--sp-leaf); color: var(--sp-deep); }
	.wd-sp__sopt.is-on span::after, .wd-sp__sopt input:checked + span::after { border-color: var(--sp-leaf); background: var(--sp-leaf); box-shadow: inset 0 0 0 4px #fff; }
	.wd-sp__sopt input:focus-visible + span { box-shadow: 0 0 0 3px rgba(30, 122, 76, .3); }

	/* the notice bar sits above the bottom bar's reach, at the top: nothing to change */
}

/* one product per row on phones; two on small tablets */
@media (max-width: 600px) {
	.wd-sp__grid { grid-template-columns: minmax(0, 1fr); gap: 18px; }
	.wd-sp__media { aspect-ratio: 5 / 4; }
	.wd-sp__body { padding: 16px 18px 18px; }
	.wd-sp__name { font-size: 18px; }
	.wd-sp__now { font-size: 22px; }
	.wd-sp__price-v del { font-size: 14.5px; }
	.wd-sp .wd-sp__add { min-height: 48px; font-size: 13.5px; }
	.wd-sp__badges { left: 12px; top: 12px; }
	.wd-sp__badge { font-size: 12px; padding: 5px 11px; }
}

/* the phone parts live under <body> (see shop-page.js): the holder adds no box of its own */
.wd-sp--float { display: contents; padding: 0 !important; background: none !important; }
@media (max-width: 900px) {
	/* arrows centred on the icons and in their own gutters */
	.wd-sp__tiles { margin: 0 44px; }
	.wd-sp__tarr { top: 35px; width: 34px; height: 34px; }
	.wd-sp__tarr--l { left: 5px; }
	.wd-sp__tarr--r { right: 5px; }
	.wd-sp__tarr svg { display: block; margin: 0; }
	.wd-sp__tilebox.is-static .wd-sp__tiles { margin: 0 8px; }
}

/* price | divider | rating on one row (phones; very small screens keep the stacked version) */
.wd-sp__pm { display: block; }
@media (max-width: 600px) and (min-width: 381px) {
	.wd-sp__pm { display: flex; flex-direction: row-reverse; align-items: center; justify-content: flex-end; gap: 0; margin-bottom: 14px; }
	.wd-sp__pm .wd-sp__price-row { margin: 0; flex: 0 1 auto; }
	.wd-sp__pm .wd-sp__meta { flex: 1 1 auto; justify-content: flex-start; margin: 0 0 0 14px; padding-left: 14px; border-left: 1.5px solid #e3ede7; min-width: 0; flex-wrap: wrap; gap: 2px 8px; }
	.wd-sp__pm .wd-sp__rate--none { font-size: 12px; }
}

/* any picture in the card media fills it (also the theme-less placeholder) */
.wd-sp__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 900px) {
	/* arrows centred on the whole tile (icon and name), not on the icon */
	.wd-sp__tilebox { padding: 14px 0; }
	.wd-sp__tarr { top: 50%; transform: translateY(-50%); }

	/* drawers: an explicit screen height (they were sizing to their content) */
	.wd-sp__side, .wd-sp__sortp { height: 100vh; height: 100dvh; }
	.wd-sp__side-in { height: 100%; }
	.wd-sp__scroll { height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }

	/* space: tight under the page, and the footer can scroll clear of the bottom bar */
	.wd-sp { padding: 22px 0 22px; }
	body.wd-sp-on { padding-bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* phone cards: a little more air between the lines */
@media (max-width: 600px) {
	.wd-sp__body { padding: 20px 20px 22px; }
	.wd-sp__cat { display: block; margin-bottom: 2px; }
	.wd-sp__name { margin: 8px 0 14px; line-height: 1.32; }
	.wd-sp__pm { margin-bottom: 20px; }
	.wd-sp__pm .wd-sp__meta { margin-left: 16px; padding-left: 16px; }
	.wd-sp__tiles + * { margin-top: 0; }
}

/* quiet inline message under the Add to cart button */
.wd-sp__err { margin: 8px 2px 0; font-size: 12.5px; line-height: 1.4; font-weight: 700; color: #b42318; }

/* ═════════ phone drawers, round three ═════════ */
@media (max-width: 900px) {
	/* the filter drawer is flat against the screen's left edge (like the sort panel against the right) and curved on its inner side */
	.wd-sp__side { border-radius: 0 24px 24px 0; }
	.wd-sp__side-in { border-radius: 0 24px 24px 0; border-left: 0; }
	/* "Show N products" sits above the fade and the "More filters" pill, not under them */
	.wd-sp__show { z-index: 4; bottom: 14px; margin-bottom: 14px; }
	.wd-sp__side-in::after { bottom: 82px; }
	.wd-sp__more { bottom: 92px; }
}

/* sticker badges under the sort options */
.wd-sp__fun { margin-top: 22px; padding-top: 18px; border-top: 1.5px dashed var(--sp-line); }
.wd-sp__fun-t { margin: 0 0 12px; font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #7d8c84; text-align: center; }
.wd-sp__fun-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 8px; }
.wd-sp__fb { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px 8px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; line-height: 1; white-space: nowrap; border: 2px solid currentColor; box-shadow: 0 8px 14px -10px currentColor; transition: transform .2s; }
.wd-sp__fb svg { width: 18px; height: 18px; flex: none; }
.wd-sp__fb--1 { background: #fff4d6; color: #8a5a00; transform: rotate(-3deg); }
.wd-sp__fb--2 { background: #ffe6ef; color: #9a2a57; transform: rotate(2deg); }
.wd-sp__fb--3 { background: #e4f2e8; color: #0e3d27; transform: rotate(-1.5deg); }
.wd-sp__fb--4 { background: #e3efff; color: #1b4f8f; transform: rotate(3deg); }
.wd-sp__fb--5 { background: #f0e8ff; color: #5a3aa5; transform: rotate(-2.5deg); }
.wd-sp__fb--6 { background: #ffe9e0; color: #a1411c; transform: rotate(1.5deg); }
.wd-sp__fb:hover { transform: rotate(0) scale(1.06); }

/* pets peeking into the bottom corners of the sort panel */
.wd-sp__sortp { overflow: hidden; }
.wd-sp__deco { position: absolute; bottom: -8px; width: 118px; height: 118px; pointer-events: none; opacity: .96; }
.wd-sp__deco svg { display: block; width: 100%; height: 100%; }
.wd-sp__deco--dog { left: 6px; transform: rotate(-6deg); transform-origin: bottom center; animation: wdsp-peek 4.2s ease-in-out infinite; }
.wd-sp__deco--cat { right: 6px; transform: rotate(6deg); transform-origin: bottom center; animation: wdsp-peek 4.2s ease-in-out -2.1s infinite; }
@keyframes wdsp-peek { 0%, 100% { translate: 0 6px; } 50% { translate: 0 -2px; } }
@media (prefers-reduced-motion: reduce) { .wd-sp__deco--dog, .wd-sp__deco--cat { animation: none; } }

/* filter drawer: "Show N products" at the very bottom; the "More filters" pill stays where it is, clear above it */
@media (max-width: 900px) {
	.wd-sp__scroll { padding-bottom: 10px; }
	.wd-sp__side-in { padding-bottom: 0; }
	.wd-sp__show { bottom: 10px; margin: 14px 0 0; }
	.wd-sp__side-in::after { bottom: 58px; height: 76px; }
	.wd-sp__more { bottom: 82px; }
}

/* one dog-and-cat picture, centred a little above the bottom of the sort panel (replaces the two corner pets) */
.wd-sp__deco { display: none; }
.wd-sp__duo { position: absolute; left: 50%; bottom: 26px; width: 214px; height: 126px; translate: -50% 0; pointer-events: none; animation: wdsp-duo 4.6s ease-in-out infinite; }
.wd-sp__duo svg { display: block; width: 100%; height: 100%; }
@keyframes wdsp-duo { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .wd-sp__duo { animation: none; } }

/* in-between widths: never a single huge card, never three squeezed ones */
@media (min-width: 521px) and (max-width: 900px) { .wd-sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 901px) and (max-width: 1040px) { .wd-sp__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* sort panel: the dog+cat picture sits under the badges and never on top of them; short screens scroll */
@media (max-width: 900px) {
	.wd-sp__sortp { display: flex; flex-direction: column; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
	.wd-sp__sortp-in { flex: none; }
	.wd-sp__duo { position: relative; left: auto; bottom: auto; translate: none; flex: none; margin: auto auto 26px; padding-top: 14px; box-sizing: content-box; }
}

/* filter panel: a little wider on desktop; the native scrollbar is replaced - on desktop and in the phone drawer alike - by a short slider (a fifth of the track) that shows while scrolling */
@media (min-width: 1101px) { .wd-sp__layout { grid-template-columns: 300px minmax(0, 1fr); } }
.wd-sp__scroll { scrollbar-width: none; }
.wd-sp__scroll::-webkit-scrollbar { display: none; width: 0; height: 0; }
.wd-sp__side-in { position: relative; }
.wd-sp__sbar { display: block; position: absolute; top: 16px; bottom: 16px; right: 5px; width: 10px; z-index: 5; opacity: 0; pointer-events: none; transition: opacity .25s ease; }
.wd-sp__sbar.is-off { display: none; }
.wd-sp__sbar.is-live, .wd-sp__side-in:hover .wd-sp__sbar { opacity: 1; }
.wd-sp__sbar-t { position: absolute; right: 2px; top: 0; width: 5px; border-radius: 5px; background: #b3cdbb; pointer-events: auto; cursor: grab; touch-action: none; transition: background .15s, width .15s; }
.wd-sp__sbar-t:hover, .wd-sp__sbar.is-drag .wd-sp__sbar-t { background: var(--sp-leaf); width: 7px; right: 1px; }
.wd-sp__sbar.is-drag .wd-sp__sbar-t { cursor: grabbing; }
@media (max-width: 900px) {
	/* in the drawer the track is the stretch above the "Show products" button */
	.wd-sp__sbar { top: 64px; bottom: 96px; right: 4px; }
	.wd-sp__side-in:hover .wd-sp__sbar:not(.is-live) { opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .wd-sp__sbar { transition: none; } }
/* the round close buttons (filters + sort): the cross is an SVG, centred exactly */
.wd-sp__fclose { padding: 0; font-size: 0; line-height: 0; }
.wd-sp__fclose svg { display: block; width: 16px; height: 16px; pointer-events: none; }
@media (max-width: 900px) { .wd-sp__fclose, .wd-sp__sortp-x { display: inline-grid; place-items: center; } }
/* category tiles: room above and below the circles, so the ring, the lift and the icon bob are not cut off by the scrolling row */
.wd-sp__tilebox .wd-sp__tiles { padding-top: 18px; padding-bottom: 16px; margin-top: -12px; margin-bottom: -8px; }
