/*
Theme Name: MJ Pets
Theme URI: https://mjpetsandveterinaryservices.com/
Author: MJ Pets and Veterinary Services
Description: Lightweight block theme for MJ Pets & Veterinary Services. Built on WordPress core blocks and WooCommerce — no page builder required.
Requires at least: 6.5
Tested up to: 6.8
Requires PHP: 7.4
Version: 1.3.3
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: mjpets
*/

:root {
	--mj-ink: var(--wp--preset--color--ink, #1C2541);
	--mj-ink-soft: var(--wp--preset--color--ink-soft, #4A5372);
	--mj-orange: var(--wp--preset--color--orange, #FF7A2F);
	--mj-orange-deep: var(--wp--preset--color--orange-deep, #C2410C);
	--mj-yellow: var(--wp--preset--color--yellow, #FFC94D);
	--mj-blue: var(--wp--preset--color--blue, #4DA3FF);
	--mj-line: var(--wp--preset--color--line, #F1E6D6);
	--mj-cream: var(--wp--preset--color--cream, #FFFAF3);
	--mj-shadow: 0 20px 45px rgba(28, 37, 65, 0.12);
	--mj-paw: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%231C2541'%3E%3Ccircle cx='6' cy='9' r='2.2'/%3E%3Ccircle cx='10' cy='5.5' r='2.2'/%3E%3Ccircle cx='14' cy='5.5' r='2.2'/%3E%3Ccircle cx='18' cy='9' r='2.2'/%3E%3Cpath d='M12 11c-3 0-6 3.6-6 6.2 0 1.8 1.4 2.8 3 2.8 1.2 0 2-.6 3-.6s1.8.6 3 .6c1.6 0 3-1 3-2.8C18 14.6 15 11 12 11z'/%3E%3C/svg%3E");
}

/* ---------- Base ---------- */
html { scroll-behavior: smooth; }
html.mj-lock { overflow: hidden; }
body { -webkit-font-smoothing: antialiased; }
img { height: auto; max-width: 100%; }
:where(a) { text-underline-offset: 0.18em; }
h1, h2, h3, h4 { color: var(--mj-ink); }

.eyebrow {
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
	color: var(--mj-orange-deep);
	margin: 0 0 0.5rem;
}

.pill {
	display: inline-block;
	padding: 0.45rem 1rem;
	border-radius: 999px;
	font-size: 0.8125rem;
	font-weight: 800;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	background: #fff;
	color: var(--mj-ink);
	margin: 0;
}
p.pill.pill--amber { background: var(--mj-yellow); color: var(--mj-ink); }
p.pill.pill--white { background: #fff; color: var(--mj-ink); }

.lead { font-size: 1.125rem; line-height: 1.6; color: var(--mj-ink-soft); }

.section-head { align-items: flex-end; margin-bottom: 2rem; }
.section-head h2 { margin: 0; }
.section-head .more-link { margin: 0; }
.section-head .more-link a { font-weight: 800; text-decoration: none; }

/* Button styles */
.wp-block-button__link { transition: background-color .2s ease, color .2s ease, transform .2s ease; }
.wp-block-button__link:hover { transform: translateY(-2px); }
.wp-block-button.is-style-outline > .wp-block-button__link {
	border: 2px solid var(--mj-ink);
	background: transparent;
	color: var(--mj-ink);
}
.wp-block-button.is-style-light > .wp-block-button__link { background: #fff; color: var(--mj-ink); }
.wp-block-button.is-style-light > .wp-block-button__link:hover,
.wp-block-button.is-style-outline > .wp-block-button__link:hover { background: var(--mj-ink); color: #fff; }
.wp-block-button.is-style-dark > .wp-block-button__link { background: var(--mj-ink); color: #fff; }
.wp-block-button.is-style-dark > .wp-block-button__link:hover { background: var(--mj-orange); color: var(--mj-ink); }

/* =========================================================
   HEADER
   ========================================================= */
.topbar { background: var(--mj-ink); color: #fff; font-size: 0.8125rem; font-weight: 600; }
.topbar p { margin: 0; }
.topbar a { color: #fff; text-decoration: none; }
.topbar a:hover { color: var(--mj-yellow); }
.topbar strong { color: var(--mj-yellow); letter-spacing: 0.04em; }
.topbar__hot {
	background: var(--mj-orange);
	color: var(--mj-ink);
	font-weight: 800;
	text-transform: uppercase;
	font-size: 0.6875rem;
	letter-spacing: 0.08em;
	padding: 0.2rem 0.55rem;
	border-radius: 999px;
	margin-right: 0.4rem;
}
@media (max-width: 781px) { .topbar__mid { display: none; } }

.site-header {
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 100;
	box-shadow: 0 1px 0 var(--mj-line);
}
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

.site-header__main { gap: 1rem 2rem !important; }
.site-header__brand .wp-block-site-title a { text-decoration: none; color: var(--mj-ink); }
.site-header .wp-block-site-logo + .wp-block-site-title { display: none; }

.site-header__search { flex: 1 1 340px; max-width: 600px; margin: 0; }
.site-header__search .wp-block-search__inside-wrapper {
	border: 2px solid var(--mj-line) !important;
	border-radius: 999px;
	background: var(--mj-cream);
	padding: 4px 4px 4px 18px;
	transition: border-color .2s;
}
.site-header__search .wp-block-search__inside-wrapper:focus-within { border-color: var(--mj-orange) !important; }
.site-header__search .wp-block-search__input { border: 0; background: transparent; font-size: 0.9375rem; padding: 0.55rem 0; }
.site-header__search .wp-block-search__input:focus { outline: none; }
.site-header__search .wp-block-search__button {
	border-radius: 999px;
	background: var(--mj-orange);
	color: var(--mj-ink);
	padding: 0.55rem 0.8rem;
	margin: 0;
	border: 0;
}
.site-header__search .wp-block-search__button:hover { background: var(--mj-ink); color: #fff; }

.site-header__actions { align-items: center; }
.header-call { margin: 0; }
.header-call a {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
	text-decoration: none;
	color: var(--mj-ink);
	padding: 0.35rem 1rem 0.35rem 3rem;
	position: relative;
	font-size: 0.8125rem;
}
.header-call a::before {
	content: "";
	position: absolute;
	left: 0;
	top: 50%;
	width: 40px;
	height: 40px;
	transform: translateY(-50%);
	border-radius: 50%;
	background: var(--wp--preset--color--peach) var(--mj-paw) center / 20px no-repeat;
}
.header-call span { color: var(--mj-ink-soft); }
.header-call strong { font-size: 0.9375rem; }
@media (max-width: 1100px) { .header-call { display: none; } }

.site-header .wc-block-mini-cart__button,
.site-header .wc-block-customer-account a {
	border-radius: 999px;
	min-height: 44px;
	min-width: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.site-header .wc-block-mini-cart__button { background: var(--mj-ink); color: #fff; padding: 0 1rem; font-weight: 800; }
.site-header .wc-block-mini-cart__button:hover { background: var(--mj-orange); color: var(--mj-ink); }
.site-header .wc-block-mini-cart__badge { background: var(--mj-orange) !important; color: var(--mj-ink) !important; }
.site-header .wc-block-customer-account a { background: var(--mj-cream); color: var(--mj-ink); }

@media (max-width: 781px) {
	.site-header { position: relative; }
	.site-header__search { order: 3; flex-basis: 100%; max-width: none; }
}

/* ---------- Nav row + mega menu ---------- */
.site-header__nav { border-top: 1px solid var(--mj-line); }
.site-header__nav > .alignwide { position: relative; }
.site-header__nav .wp-block-shortcode,
.site-header__nav p:empty { margin: 0; }

.mj-icon { flex: none; }
.mj-nav { font-family: var(--wp--preset--font-family--body); }
.mj-menu { list-style: none; margin: 0; padding: 0; }
.mj-menu__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	font: inherit;
	font-size: 1rem;
	font-weight: 800;
	color: var(--mj-ink);
	text-decoration: none;
	background: none;
	border: 0;
	cursor: pointer;
	padding: 1.05rem 0;
	position: relative;
}
.mj-menu__link .mj-icon { transition: transform .2s ease; }
.mj-menu__item.is-open > .mj-menu__link .mj-icon { transform: rotate(180deg); }
.mj-badge {
	background: var(--mj-orange);
	color: var(--mj-ink);
	font-size: 0.6875rem;
	font-weight: 900;
	padding: 0.15rem 0.45rem;
	border-radius: 999px;
}
.mj-nav__call {
	display: inline-flex;
	align-items: center;
	gap: 0.6rem;
	color: var(--mj-ink);
	text-decoration: none;
	font-size: 0.875rem;
	font-weight: 600;
}
.mj-nav__call strong { color: var(--mj-orange-deep); }

/* Mega panel content (shared) */
.mj-mega__grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 1.5rem; }
.mj-mega__pet { display: flex; align-items: center; gap: 0.7rem; text-decoration: none; color: var(--mj-ink); margin-bottom: 0.75rem; }
.mj-mega__img {
	width: 56px;
	height: 56px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	flex: none;
	transition: transform .2s ease;
}
.mj-mega__img img { width: 46px; height: 46px; object-fit: contain; }
.mj-mega__pet:hover .mj-mega__img { transform: scale(1.08) rotate(-4deg); }
.mj-mega__pet-name { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.15rem; line-height: 1.1; }
.mj-mega__links { list-style: none; margin: 0 0 0.75rem; padding: 0; }
.mj-mega__links a { display: block; padding: 0.28rem 0; color: var(--mj-ink-soft); text-decoration: none; font-size: 0.9rem; line-height: 1.3; }
.mj-mega__links a:hover { color: var(--mj-orange-deep); transform: translateX(3px); }
.mj-mega__all { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.85rem; font-weight: 800; color: var(--mj-orange-deep); text-decoration: none; }
.mj-mega__promo {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
	background: var(--wp--preset--color--butter);
	border-radius: 20px;
	padding: 1.25rem;
	text-decoration: none;
	color: var(--mj-ink);
	position: relative;
	overflow: hidden;
}
.mj-mega__promo img { width: 100%; max-height: 130px; object-fit: contain; margin-top: auto; transition: transform .3s ease; }
.mj-mega__promo:hover img { transform: scale(1.05); }
.mj-mega__promo-tag { align-self: flex-start; background: var(--mj-orange); font-size: 0.6875rem; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; padding: 0.25rem 0.6rem; border-radius: 999px; }
.mj-mega__promo-title { font-family: var(--wp--preset--font-family--display); font-weight: 600; font-size: 1.3rem; line-height: 1.1; }
.mj-mega__promo-code { font-size: 0.8125rem; font-weight: 800; }

.mj-drop { list-style: none; margin: 0; padding: 0.5rem 0; }
.mj-drop a { display: block; padding: 0.55rem 1.25rem; color: var(--mj-ink); text-decoration: none; font-size: 0.9375rem; font-weight: 600; }
.mj-drop a:hover { background: var(--mj-cream); color: var(--mj-orange-deep); }

/* Desktop */
@media (min-width: 1024px) {
	.mj-nav { display: flex; align-items: center; justify-content: space-between; }
	.mj-nav__toggle, .mj-nav__drawer-head, .mj-nav__overlay { display: none !important; }
	.mj-nav__panel { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 2rem; }
	.mj-menu { display: flex; gap: 2.25rem; }
	.mj-menu__item { position: static; }
	.mj-menu__item.has-drop { position: relative; }
	.mj-menu__link::after {
		content: "";
		position: absolute;
		left: 0;
		right: 0;
		bottom: 0.55rem;
		height: 3px;
		border-radius: 3px;
		background: var(--mj-orange);
		transform: scaleX(0);
		transform-origin: left;
		transition: transform .25s ease;
	}
	.mj-menu__link:hover::after,
	.mj-menu__item.is-open > .mj-menu__link::after { transform: scaleX(1); }

	.mj-mega,
	.mj-drop {
		position: absolute;
		top: 100%;
		background: #fff;
		box-shadow: var(--mj-shadow);
		border: 1px solid var(--mj-line);
		opacity: 0;
		visibility: hidden;
		transform: translateY(10px);
		transition: opacity .2s ease, transform .2s ease, visibility .2s;
		z-index: 120;
	}
	.mj-mega { left: 0; right: 0; border-radius: 0 0 28px 28px; padding: 2rem; }
	.mj-mega__inner { display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 2rem; }
	.mj-drop { left: -1.25rem; min-width: 260px; border-radius: 18px; }
	.mj-menu__item.is-open > .mj-mega,
	.mj-menu__item.is-open > .mj-drop,
	.mj-menu__item:focus-within > .mj-mega,
	.mj-menu__item:focus-within > .mj-drop,
	.no-js .mj-menu__item:hover > .mj-mega,
	.no-js .mj-menu__item:hover > .mj-drop { opacity: 1; visibility: visible; transform: none; }
}
@media (min-width: 1024px) and (max-width: 1240px) {
	.mj-mega__inner { grid-template-columns: 1fr; }
	.mj-mega__promo { display: none; }
	.mj-menu { gap: 1.5rem; }
	.mj-nav__call span { display: none; }
}

/* Mobile drawer */
@media (max-width: 1023px) {
	.mj-nav__toggle {
		display: flex;
		align-items: center;
		gap: 0.7rem;
		width: 100%;
		background: none;
		border: 0;
		font: inherit;
		font-weight: 800;
		color: var(--mj-ink);
		padding: 0.85rem 0;
		cursor: pointer;
	}
	.mj-burger { display: inline-flex; flex-direction: column; gap: 4px; width: 22px; }
	.mj-burger span { height: 2.5px; border-radius: 2px; background: var(--mj-ink); }
	.mj-burger span:nth-child(2) { width: 70%; }
	.mj-nav__panel {
		position: fixed;
		top: 0;
		left: 0;
		bottom: 0;
		width: min(380px, 88vw);
		background: #fff;
		z-index: 1001;
		overflow-y: auto;
		padding: 1rem 1.25rem 2rem;
		transform: translateX(-102%);
		transition: transform .3s ease;
		box-shadow: var(--mj-shadow);
	}
	.mj-nav.is-drawer-open .mj-nav__panel { transform: none; }
	.mj-nav__overlay { position: fixed; inset: 0; background: rgba(28, 37, 65, 0.45); z-index: 1000; }
	.mj-nav__drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.5rem; }
	.mj-nav__drawer-title { font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; font-weight: 600; }
	.mj-nav__close { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mj-cream); color: var(--mj-ink); display: flex; align-items: center; justify-content: center; cursor: pointer; }
	.mj-menu__item { border-bottom: 1px solid var(--mj-line); }
	.mj-menu__link { width: 100%; justify-content: space-between; padding: 1rem 0; font-size: 1.05rem; }
	.mj-mega, .mj-drop { display: none; padding-bottom: 1rem; }
	.mj-menu__item.is-open > .mj-mega, .mj-menu__item.is-open > .mj-drop { display: block; }
	.mj-mega__grid { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
	.mj-mega__links, .mj-mega__all { display: none; }
	.mj-mega__pet { flex-direction: column; text-align: center; margin: 0; padding: 0.75rem 0.5rem; border-radius: 16px; background: var(--mj-cream); }
	.mj-mega__pet-name { font-size: 1rem; }
	.mj-mega__promo { margin-top: 0.75rem; }
	.mj-mega__promo img { max-height: 90px; }
	.mj-drop a { padding: 0.55rem 0.75rem; }
	.mj-nav__call { margin-top: 1.25rem; padding: 0.9rem 1rem; border-radius: 16px; background: var(--wp--preset--color--peach); width: 100%; }
}

/* =========================================================
   HERO SLIDER
   ========================================================= */
.mj-slider { display: grid; position: relative; overflow: hidden; margin-top: 0 !important; }
.mj-slider > .mj-slide {
	grid-area: 1 / 1;
	margin: 0 !important;
	padding-top: clamp(2.5rem, 5vw, 4.5rem);
	padding-bottom: clamp(5rem, 7vw, 6rem);
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility .7s;
	position: relative;
	overflow: hidden;
}
.mj-slider:not(.is-ready) > .mj-slide:first-child,
.mj-slider > .mj-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }

/* playful background shapes */
.mj-slide::before,
.mj-slide::after {
	content: "";
	position: absolute;
	border-radius: 50%;
	pointer-events: none;
}
.mj-slide::before { width: 520px; height: 520px; right: -140px; top: -160px; background: rgba(255, 255, 255, 0.45); }
.mj-slide::after { width: 120px; height: 120px; left: 46%; bottom: 40px; background: var(--mj-paw) center / 60% no-repeat; opacity: 0.07; border-radius: 0; transform: rotate(-18deg); }

.mj-slide__cols { position: relative; z-index: 1; gap: 2rem 3rem !important; }
.mj-slide__text .pill { margin-bottom: 1.1rem; }
.mj-slide__title { font-size: var(--wp--preset--font-size--xx-large) !important; line-height: 1.02; margin: 0 0 1rem; }
.mj-slide__text .lead { max-width: 32rem; margin: 0 0 1.75rem; }

.mj-slide__media { position: relative; text-align: center; }
.mj-slide__media::before {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: min(430px, 85%);
	aspect-ratio: 1;
	transform: translate(-50%, -50%);
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 30px 60px rgba(28, 37, 65, 0.08);
}
.mj-slide__media .wp-block-image { position: relative; margin: 0; }
.mj-slide__media .wp-block-image img { max-height: 400px; width: auto; object-fit: contain; filter: drop-shadow(0 24px 30px rgba(28, 37, 65, 0.18)); }
.mj-sticker {
	position: absolute;
	right: 8%;
	top: 6%;
	width: 112px;
	height: 112px;
	border-radius: 50%;
	background: var(--mj-orange);
	color: var(--mj-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	font-family: var(--wp--preset--font-family--display);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.05;
	padding: 0.75rem;
	margin: 0;
	transform: rotate(10deg);
	box-shadow: 0 12px 24px rgba(28, 37, 65, 0.18);
	z-index: 2;
}

/* entrance animation (like Revolution Slider layers) */
@keyframes mjFadeUp { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }
@keyframes mjPop { from { opacity: 0; transform: scale(.85) rotate(-6deg); } to { opacity: 1; transform: none; } }
@keyframes mjSticker { from { opacity: 0; transform: scale(.4) rotate(-30deg); } to { opacity: 1; transform: rotate(10deg); } }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__text > * { animation: mjFadeUp .7s cubic-bezier(.2, .7, .2, 1) both; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__text > *:nth-child(2) { animation-delay: .1s; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__text > *:nth-child(3) { animation-delay: .2s; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__text > *:nth-child(4) { animation-delay: .3s; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__media .wp-block-image { animation: mjPop .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
.mj-slider.is-ready > .mj-slide.is-active .mj-sticker { animation: mjSticker .6s cubic-bezier(.3, 1.5, .5, 1) .5s both; }

/* controls */
.mj-slider__controls {
	position: absolute;
	z-index: 5;
	bottom: 1.5rem;
	left: 50%;
	transform: translateX(-50%);
	width: min(1320px, calc(100% - 3rem));
	display: flex;
	align-items: center;
	gap: 1rem;
}
.mj-slider__arrow {
	width: 48px;
	height: 48px;
	border-radius: 50%;
	border: 0;
	background: #fff;
	color: var(--mj-ink);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 8px 18px rgba(28, 37, 65, 0.12);
	transition: background .2s, color .2s;
}
.mj-slider__arrow:hover { background: var(--mj-ink); color: #fff; }
.mj-slider__dots { display: flex; gap: 0.5rem; }
.mj-slider__dot { width: 44px; height: 44px; border: 0; background: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
.mj-slider__dot span { display: block; width: 100%; height: 6px; border-radius: 6px; background: rgba(28, 37, 65, 0.18); overflow: hidden; position: relative; }
.mj-slider__dot span::after { content: ""; position: absolute; inset: 0; background: var(--mj-ink); transform: scaleX(0); transform-origin: left; }
.mj-slider__dot.is-active span::after { animation: mjProgress var(--mj-delay, 6500ms) linear forwards; }
.mj-slider.is-paused .mj-slider__dot.is-active span::after { animation: none; transform: scaleX(1); }
@keyframes mjProgress { to { transform: scaleX(1); } }

@media (max-width: 781px) {
	.mj-slide__media { order: -1; }
	.mj-slide__media .wp-block-image img { max-height: 240px; }
	.mj-slide__media::before { width: 260px; }
	.mj-sticker { width: 84px; height: 84px; font-size: 0.85rem; right: 4%; }
	.mj-slide::before { width: 300px; height: 300px; }
	.mj-slider__controls { justify-content: center; }
	.mj-slider__arrow { display: none; }
}

/* In the editor: show every slide stacked so each one can be edited */
.editor-styles-wrapper .mj-slider { display: block; }
.editor-styles-wrapper .mj-slider > .mj-slide { opacity: 1; visibility: visible; margin-bottom: 12px !important; }

@media (prefers-reduced-motion: reduce) {
	.mj-slider > .mj-slide, .mj-slider .mj-slide * { animation: none !important; transition: none !important; }
}

/* ---------- Quick links ---------- */
.quick-links { margin-top: 2rem !important; gap: 1.25rem !important; }
.quick-link {
	position: relative;
	overflow: hidden;
	border-radius: 24px;
	padding: 1.5rem 1.75rem;
	transition: transform .2s ease, box-shadow .2s ease;
}
.quick-link:hover { transform: translateY(-4px); box-shadow: var(--mj-shadow); }
.quick-link::after {
	content: "";
	position: absolute;
	right: -18px;
	bottom: -18px;
	width: 110px;
	height: 110px;
	background: var(--mj-paw) center / contain no-repeat;
	opacity: 0.12;
	transform: rotate(-20deg);
}
.quick-link--orange { background: var(--mj-orange); }
.quick-link--blue { background: var(--mj-blue); }
.quick-link--yellow { background: var(--mj-yellow); }
.quick-link p { margin: 0; color: var(--mj-ink); }
.quick-link__title { font-family: var(--wp--preset--font-family--display); font-size: 1.5rem; font-weight: 600; line-height: 1.15; }
.quick-link__title a { color: var(--mj-ink); text-decoration: none; }
.quick-link__title a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.quick-link__sub { font-weight: 700; font-size: 0.9375rem; margin-top: 0.25rem !important; }

/* ---------- Trust strip ---------- */
.trust {
	background: #fff;
	border: 1px solid var(--mj-line);
	border-radius: 24px;
	padding: 1.5rem 1.75rem;
	margin-top: 1.25rem !important;
}
.trust__item { margin: 0; font-size: 0.9375rem; line-height: 1.4; position: relative; padding-left: 3.6rem; min-height: 46px; display: flex; flex-direction: column; justify-content: center; }
.trust__item::before { content: ""; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; background: var(--mj-paw) center / 22px no-repeat; }
.trust__item--orange::before { background-color: var(--wp--preset--color--peach); }
.trust__item--blue::before { background-color: var(--wp--preset--color--sky); }
.trust__item--yellow::before { background-color: var(--wp--preset--color--butter); }
.trust__item--mint::before { background-color: var(--wp--preset--color--mint); }
.trust strong { display: block; font-weight: 800; }
.trust span { color: var(--mj-ink-soft); }

/* ---------- Shop by pet ---------- */
.pet-tile {
	background: #fff;
	border: 1px solid var(--mj-line);
	border-radius: 28px;
	padding: 1.25rem 1rem 1.5rem;
	text-align: center;
	transition: transform .25s ease, box-shadow .25s ease, border-color .25s;
	position: relative;
}
.pet-tile:hover { transform: translateY(-6px); box-shadow: var(--mj-shadow); border-color: transparent; }
.pet-tile .wp-block-image { margin: 0 auto 0.85rem; }
.pet-tile .wp-block-image img {
	width: 124px;
	height: 124px;
	object-fit: contain;
	border-radius: 50%;
	padding: 12px;
	transition: transform .3s ease;
}
.pet-tile:hover .wp-block-image img { transform: scale(1.08) rotate(-4deg); }
.pet-tile--peach .wp-block-image img { background: var(--wp--preset--color--peach); }
.pet-tile--blush .wp-block-image img { background: var(--wp--preset--color--blush); }
.pet-tile--sky .wp-block-image img { background: var(--wp--preset--color--sky); }
.pet-tile--butter .wp-block-image img { background: var(--wp--preset--color--butter); }
.pet-tile--lilac .wp-block-image img { background: var(--wp--preset--color--lilac); }
.pet-tile--mint .wp-block-image img { background: var(--wp--preset--color--mint); }
.pet-tile h3 { margin: 0 0 0.35rem; font-size: 1.35rem; }
.pet-tile h3 a { color: var(--mj-ink); text-decoration: none; }
.pet-tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: 28px; }
.pet-tile p { margin: 0; font-size: 0.875rem; color: var(--mj-ink-soft); }

/* ---------- Promo cards ---------- */
.promo-wrap > .wp-block-column { display: flex; flex-direction: column; }
.promo-card { border-radius: 32px; padding: 2.5rem; height: 100%; position: relative; overflow: hidden; }
.promo-card::before { content: ""; position: absolute; width: 320px; height: 320px; border-radius: 50%; right: -80px; bottom: -120px; }
.promo-card > * { position: relative; }
.promo-card .wp-block-heading { font-size: 2.1rem; line-height: 1.08; margin: 1rem 0 0.75rem; }
.promo-card .wp-block-image img { max-height: 240px; width: 100%; object-fit: contain; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, 0.25)); }

.promo-card.promo-card--ink { background: var(--mj-ink); color: #fff; }
.promo-card.promo-card--ink::before { background: rgba(255, 201, 77, 0.16); }
.promo-card.promo-card--ink .wp-block-heading { color: #fff !important; }
.promo-card.promo-card--ink p:not(.pill) { color: #D6DBEA; }
.promo-card.promo-card--ink .code { color: var(--mj-yellow); letter-spacing: 0.06em; }
.promo-card.promo-card--ink .wp-block-button__link { background: var(--mj-yellow); color: var(--mj-ink); }
.promo-card.promo-card--ink .wp-block-button__link:hover { background: #fff; }

.promo-card.promo-card--blue { background: var(--wp--preset--color--sky); color: var(--mj-ink); }
.promo-card.promo-card--blue::before { background: rgba(77, 163, 255, 0.22); }
.promo-card.promo-card--blue p:not(.pill) { color: var(--mj-ink-soft); }

/* =========================================================
   BEST SELLERS (WooCommerce loop)
   ========================================================= */
.bestsellers { background: var(--wp--preset--color--peach); }
.bestsellers .woocommerce { width: 100%; }
.woocommerce ul.products,
.wp-block-shortcode ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
	gap: 1.5rem;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none;
}
.woocommerce ul.products::before, .woocommerce ul.products::after { display: none !important; }
.woocommerce ul.products li.product {
	width: auto !important;
	margin: 0 !important;
	float: none !important;
	background: #fff;
	border-radius: 26px;
	padding: 14px 14px 18px;
	display: flex;
	flex-direction: column;
	position: relative;
	transition: transform .25s ease, box-shadow .25s ease;
}
.woocommerce ul.products li.product:hover { transform: translateY(-6px); box-shadow: var(--mj-shadow); }
.woocommerce ul.products li.product a.woocommerce-LoopProduct-link { text-decoration: none; }
.woocommerce ul.products li.product a img {
	border-radius: 18px;
	aspect-ratio: 1 / 1;
	object-fit: contain;
	background: var(--mj-cream);
	margin: 0 0 0.9rem !important;
	width: 100%;
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	font-family: var(--wp--preset--font-family--body);
	font-size: 1rem !important;
	font-weight: 800;
	line-height: 1.3;
	padding: 0 4px !important;
	color: var(--mj-ink);
}
.woocommerce ul.products li.product .star-rating { margin: 0.4rem 4px; color: var(--mj-orange); }
.woocommerce ul.products li.product .price {
	font-family: var(--wp--preset--font-family--display);
	font-weight: 600;
	font-size: 1.3rem !important;
	color: var(--mj-ink) !important;
	padding: 0 4px;
	margin-top: auto !important;
}
.woocommerce ul.products li.product .price del { color: var(--mj-ink-soft); font-size: 0.85em; opacity: 0.7; }
.woocommerce ul.products li.product .price ins { text-decoration: none; color: var(--mj-orange-deep); }
.woocommerce ul.products li.product .button {
	border-radius: 999px;
	background: var(--mj-orange);
	color: var(--mj-ink);
	font-weight: 800;
	padding: 0.75rem 1.2rem;
	margin: 0.75rem 4px 0;
	text-align: center;
	transition: background .2s, color .2s;
}
.woocommerce ul.products li.product .button:hover { background: var(--mj-ink); color: #fff; }
.woocommerce ul.products li.product .added_to_cart { display: block; text-align: center; font-weight: 700; margin-top: 0.4rem; }
.woocommerce span.onsale {
	background: var(--mj-ink);
	color: #fff;
	border-radius: 999px;
	min-height: 0;
	min-width: 0;
	line-height: 1;
	padding: 0.45rem 0.75rem;
	top: 24px !important;
	left: 24px !important;
	right: auto !important;
	margin: 0 !important;
	font-size: 0.75rem;
	font-weight: 800;
}

/* ---------- Vet band ---------- */
.vet-band .lead { font-size: 1.0625rem; line-height: 1.65; }
.vet-band .trust { padding: 2rem; box-shadow: var(--mj-shadow); border: 0; }
.vet-band .trust h3 { margin-top: 0; }
.vet-band .wp-block-list { list-style: none; padding: 0; margin: 0; }
.vet-band .wp-block-list li { position: relative; padding: 0.7rem 0 0.7rem 2.6rem; border-bottom: 1px dashed var(--mj-line); }
.vet-band .wp-block-list li:last-child { border-bottom: 0; }
.vet-band .wp-block-list li::before { content: ""; position: absolute; left: 0; top: 0.75rem; width: 28px; height: 28px; border-radius: 50%; background: var(--wp--preset--color--peach) var(--mj-paw) center / 15px no-repeat; }

/* ---------- Brands carousel ---------- */
.brands { background: #fff; border-top: 1px solid var(--mj-line); border-bottom: 1px solid var(--mj-line); overflow: hidden; }
.brand-marquee { overflow: hidden; }
.brand-track { gap: 1.25rem !important; justify-content: center; flex-wrap: wrap !important; }
.brand-marquee.is-animated { -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.brand-marquee.is-animated .brand-track { flex-wrap: nowrap !important; justify-content: flex-start; width: max-content; animation: mjMarquee 38s linear infinite; }
.brand-marquee.is-animated:hover .brand-track { animation-play-state: paused; }
@keyframes mjMarquee { to { transform: translateX(calc(-50% - 0.625rem)); } }
.brand-card.wp-block-image {
	margin: 0 !important;
	flex: none;
	width: 190px;
	height: 100px;
	background: #fff;
	border: 1px solid var(--mj-line);
	border-radius: 20px;
	display: flex !important;
	align-items: center;
	justify-content: center;
	padding: 1rem 1.25rem;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
}
.brand-card.wp-block-image:hover { transform: translateY(-3px); box-shadow: 0 12px 24px rgba(28, 37, 65, 0.08); border-color: transparent; }
.brand-card.wp-block-image a { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; }
.brand-card.wp-block-image img { max-height: 60px; max-width: 100%; width: auto; object-fit: contain; }

/* ---------- Advice (query loop) ---------- */
.advice .wp-block-post-featured-image { margin-bottom: 1rem; background: var(--wp--preset--color--sky); border-radius: 24px; overflow: hidden; }
.advice .wp-block-post-featured-image img { border-radius: 24px; transition: transform .4s ease; }
.advice .wp-block-post:hover .wp-block-post-featured-image img { transform: scale(1.05); }
.advice .wp-block-post-terms { font-size: 0.75rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.advice .wp-block-post-terms a { text-decoration: none; color: var(--mj-orange-deep); }
.advice .wp-block-post-title { font-size: 1.5rem; line-height: 1.2; margin-top: 0.5rem; }
.advice .wp-block-post-title a { text-decoration: none; color: var(--mj-ink); }
.advice .wp-block-post-title a:hover { color: var(--mj-orange-deep); }

/* ---------- Deals banner ---------- */
.newsletter {
	background: var(--mj-orange);
	color: var(--mj-ink);
	border-radius: 36px;
	padding: 3rem;
	position: relative;
	overflow: hidden;
}
.newsletter::after { content: ""; position: absolute; right: 30%; top: -40px; width: 180px; height: 180px; background: var(--mj-paw) center / contain no-repeat; opacity: 0.1; transform: rotate(20deg); }
.newsletter > * { position: relative; z-index: 1; }
.newsletter h2 { color: var(--mj-ink); margin: 0 0 0.5rem; }
.newsletter p { color: var(--mj-ink); margin: 0; font-weight: 600; }
.newsletter .wp-block-button__link { background: var(--mj-ink); color: #fff; }
.newsletter .wp-block-button__link:hover { background: #fff; color: var(--mj-ink); }

/* =========================================================
   FOOTER
   ========================================================= */
.site-footer { background: var(--mj-ink); color: #C9CFE0; font-size: 0.9375rem; }
.site-footer h2, .site-footer .footer-brand { color: #fff !important; }
.site-footer h2 { font-family: var(--wp--preset--font-family--body); font-size: 1rem; font-weight: 800; margin: 0 0 0.85rem; }
.site-footer p { margin: 0 0 0.6rem; line-height: 1.8; }
.site-footer a { color: #C9CFE0; text-decoration: none; }
.site-footer a:hover { color: var(--mj-yellow); }
.site-footer .accent a { color: var(--mj-yellow); font-weight: 700; word-break: break-word; }
.site-footer .footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.12); font-size: 0.8125rem; }
.site-footer .wp-block-social-links .wp-social-link { color: #fff; }

/* ---------- Generic pages ---------- */
.entry-card .wp-block-post-featured-image img { border-radius: 20px; }

/* =========================================================
   ELEMENTOR & SLIDER REVOLUTION COMPATIBILITY
   ========================================================= */
.wp-site-blocks > .mj-full-width,
.wp-site-blocks > main:has(> .mj-revslider:first-child) { margin-top: 0; }
.mj-full-width > .wp-block-post-content,
.mj-full-width > .wp-block-post-content > .elementor { margin: 0; max-width: none; }
.mj-full-width > .wp-block-post-content > * { margin-block-start: 0; }
.mj-revslider, .mj-revslider .wp-block-shortcode { margin: 0 !important; }
.mj-revslider p:empty { display: none; }

/* Elementor widgets pick up the theme look */
.elementor-widget-heading .elementor-heading-title { font-family: var(--wp--preset--font-family--display); color: var(--mj-ink); }
.elementor-widget-text-editor { font-family: var(--wp--preset--font-family--body); color: var(--mj-ink-soft); }
.elementor-button { border-radius: 999px; background-color: var(--mj-orange); color: var(--mj-ink); font-weight: 800; font-family: var(--wp--preset--font-family--body); }
.elementor-button:hover { background-color: var(--mj-ink); color: #fff; }
.elementor-page .wp-block-post-content > .elementor { width: 100%; }

/* =========================================================
   SLIDER CONTROL RESET (WooCommerce button styles were
   turning the dots and arrows into dark pills)
   ========================================================= */
.mj-slider .mj-slider__dot,
.mj-slider .mj-slider__arrow {
	-webkit-appearance: none;
	appearance: none;
	border: 0 !important;
	box-shadow: none;
	min-height: 0 !important;
	min-width: 0 !important;
	font-size: 0;
	line-height: 0;
	text-transform: none;
	letter-spacing: 0;
	margin: 0;
}
.mj-slider .mj-slider__dot {
	background: transparent !important;
	padding: 0 !important;
	width: 44px !important;
	height: 44px !important;
	border-radius: 0 !important;
}
.mj-slider .mj-slider__arrow {
	background: #fff !important;
	color: var(--mj-ink) !important;
	padding: 0 !important;
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	box-shadow: 0 8px 18px rgba(28, 37, 65, 0.12) !important;
}
.mj-slider .mj-slider__arrow:hover { background: var(--mj-ink) !important; color: #fff !important; }
.mj-slider .mj-slider__arrow svg { width: 22px; height: 22px; }

/* =========================================================
   SLIDE WITH TWO IMAGES (dog + product), e.g. Bully Max
   The dog photo is cropped at the bottom, so it sits on the
   slide's bottom edge; the product stands in front of it.
   ========================================================= */
.mj-slide__media--duo {
	align-self: stretch !important;
	position: relative;
	min-height: 520px;
	margin-bottom: calc(-1 * clamp(5rem, 7vw, 6rem)) !important;
}
.mj-slide__media--duo > * { margin: 0 !important; }
.mj-slide__media--duo::before {
	top: 46%;
	width: min(460px, 88%);
}
.mj-slide__media--duo .mj-media-main {
	position: absolute !important;
	right: -2rem;
	bottom: 0;
	width: min(112%, 720px);
	z-index: 1;
}
.mj-slide__media--duo .mj-media-main img {
	width: 100% !important;
	max-height: none !important;
	height: auto;
	display: block;
	filter: drop-shadow(0 20px 30px rgba(28, 37, 65, 0.18)) !important;
}
.mj-slide__media--duo .mj-media-product {
	position: absolute !important;
	left: -14%;
	bottom: 0;
	width: 40%;
	max-width: 290px;
	z-index: 2;
}
.mj-slide__media--duo .mj-media-product img {
	width: 100% !important;
	max-height: none !important;
	height: auto;
	display: block;
	filter: drop-shadow(0 16px 18px rgba(0, 0, 0, 0.3)) !important;
}
.mj-slide__media--duo .mj-sticker { position: absolute; top: 6%; right: 8%; z-index: 3; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__media--duo .mj-media-main { animation: mjFadeUp .8s cubic-bezier(.2, .7, .2, 1) .1s both; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__media--duo .mj-media-product { animation: mjPop .7s cubic-bezier(.2, .7, .2, 1) .45s both; }
@media (max-width: 781px) {
	.mj-slide__media--duo { min-height: 300px; width: 100%; order: 0 !important; }
	.mj-slide__media--duo .mj-media-main { right: -1.5rem; width: 108%; }
	.mj-slide__media--duo .mj-media-product { left: 0; width: 38%; }
}
.editor-styles-wrapper .mj-slide__media--duo { margin-bottom: 0 !important; }

/* Make the dog + product always sit on the slide's real bottom edge, even
   when another slide is taller and stretches this one. */
.mj-slider > .mj-slide--duo { display: flex; flex-direction: column; }
.mj-slider > .mj-slide--duo > .mj-slide__cols { flex: 1 1 auto; width: 100%; }
.mj-slide--duo .mj-slide__media--duo { align-self: stretch !important; }

@media (max-width: 781px) {
	.mj-slider > .mj-slide { padding-top: 4.25rem; padding-bottom: 3rem; }
	.mj-slide--duo > .mj-slide__cols { flex-direction: column; flex-wrap: nowrap !important; }
	.mj-slider .mj-slide--duo > .wp-block-columns.mj-slide__cols > .wp-block-column.mj-slide__text { flex: 0 0 auto !important; flex-basis: auto !important; }
	.mj-slider .mj-slide--duo > .wp-block-columns.mj-slide__cols > .wp-block-column.mj-slide__media--duo {
		flex: 1 0 300px !important;
		flex-basis: 300px !important;
		min-height: 300px;
		margin-bottom: -3rem !important;
	}
	/* white circle: anchor it to the bottom so it reads as a "stage" the dog sits on */
	.mj-slide__media--duo::before {
		top: auto;
		bottom: -70px;
		transform: translateX(-50%);
		width: 320px;
	}
	/* slider arrows/dots move to the top on phones so they don't cover the images */
	.mj-slider__controls {
		top: 0.75rem;
		bottom: auto;
		justify-content: flex-end;
		width: calc(100% - 2rem);
	}
	.mj-slider .mj-slider__dot { width: 30px !important; }
}

/* Slide with a product in front of the main picture (e.g. PetAg KMR + kitten) */
.mj-slide__media--product .mj-media-main img { max-height: 380px; }
.mj-slide__media--product .mj-media-product {
	position: absolute !important;
	left: -4%;
	bottom: -2%;
	width: 54%;
	max-width: 300px;
	margin: 0 !important;
	z-index: 2;
}
.mj-slide__media--product .mj-media-product img {
	width: 100% !important;
	max-height: none !important;
	height: auto;
	filter: drop-shadow(0 18px 22px rgba(28, 37, 65, 0.28)) !important;
}
.mj-slide__media--product .mj-media-main { margin-left: 22% !important; }
.mj-slider.is-ready > .mj-slide.is-active .mj-slide__media--product .mj-media-product { animation: mjPop .7s cubic-bezier(.2, .7, .2, 1) .45s both; }
@media (max-width: 781px) {
	.mj-slide__media--product .mj-media-main img { max-height: 230px; }
	.mj-slide__media--product .mj-media-product { width: 48%; left: 0; }
}

/* Menu items: undo WooCommerce's global button styling */
.mj-nav .mj-menu__link {
	background: none !important;
	border: 0 !important;
	box-shadow: none !important;
	border-radius: 0 !important;
	min-height: 0 !important;
	color: var(--mj-ink) !important;
	font-family: var(--wp--preset--font-family--body) !important;
	font-size: 1rem !important;
	font-weight: 800 !important;
	line-height: 1.3 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.mj-nav .mj-nav__toggle,
.mj-nav .mj-nav__close {
	box-shadow: none !important;
	min-height: 0 !important;
	text-transform: none !important;
	letter-spacing: 0 !important;
}
.mj-nav .mj-nav__toggle { background: none !important; color: var(--mj-ink) !important; border: 0 !important; }
@media (min-width: 1024px) {
	.mj-menu { align-items: center; }
	.mj-nav .mj-menu__link { height: 58px; padding: 0 !important; }
	.mj-menu__link::after { bottom: 0.7rem; }
}
@media (max-width: 1023px) {
	.mj-nav .mj-menu__link { padding: 1rem 0 !important; width: 100%; justify-content: space-between; font-size: 1.05rem !important; }
}
