/*
 * ZODIAC – style marki (zodiac-core).
 * Układ sekcji budujemy w Elementorze (klasy globalne z-*). Tu są tokeny, baza
 * i komponenty renderowane przez shortcody: logo, akcje nagłówka, wyszukiwarka, menu mobilne.
 */

:root {
	/* Marka – ciemne */
	--z-black: #0F0E0D;
	--z-surface-dark: #1C1A18;
	--z-line-dark: #2A2725;
	--z-bone: #EDE7DC;
	--z-muted-dark: #A39C92;

	/* Sklep – jasne (katalog) */
	--z-paper: #F4F0EA;
	--z-card: #FFFFFF;
	--z-image-bg: #ECE6DC;
	--z-ink: #141210;
	--z-muted: #5E574F;
	--z-border: #CFC6B8;

	/* Akcent */
	--z-red: #B3261E;
	--z-red-light: #E8604F;

	--z-radius: 6px;
	--z-radius-sm: 4px;

	--z-font-display: "Big Shoulders Display", "Arial Narrow", sans-serif;
	--z-font-body: "IBM Plex Sans", system-ui, sans-serif;
	--z-font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

/* ---------- Baza ---------- */

body {
	margin: 0;
	background: var(--z-black);
	color: var(--z-bone);
	font-family: var(--z-font-body);
	font-size: 16px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
}

:where(a, button, input, select, textarea, summary):focus-visible {
	outline: 2px solid var(--z-red-light);
	outline-offset: 2px;
}

.z-sr {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Elementor: stara reguła .e-con { --width: 100% } psuje zagnieżdżone flexboxy V4. */
.e-con.e-atomic-element .e-con.e-atomic-element {
	--width: auto;
}

/* Linki wpisane w treść akapitu (Elementor 4 resetuje je przez `all: unset`). */
.e-paragraph-base a:not([class]) {
	color: var(--z-bone);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}

.e-paragraph-base a:not([class]):hover {
	color: #FFFFFF;
}

.z-band-light .e-paragraph-base a:not([class]) {
	color: var(--z-black);
}

/*
 * Akapit z linkiem (menu, pigułki ras, stopka): Elementor daje odstępy na zewnętrznym <span>,
 * a sam <a> obejmuje tylko tekst (cel kliknięcia 18–21 px). Link rozciągamy na cały element (min. 44 px).
 */
.e-paragraph-base:has(> a.e-paragraph-link-base) {
	position: relative;
}

.e-paragraph-base > a.e-paragraph-link-base::after {
	content: "";
	position: absolute;
	inset: 0;
}

.e-paragraph-base:has(> a.e-paragraph-link-base:focus-visible) {
	outline: 2px solid var(--z-red-light);
	outline-offset: 2px;
}

.e-paragraph-base > a.e-paragraph-link-base:focus-visible {
	outline: 0;
}

/* Link „Przejdź do treści” z motywu Hello – kolory marki (kontrast). */
.skip-link.screen-reader-text:focus {
	background: var(--z-bone) !important;
	color: var(--z-black) !important;
	font-weight: 600;
	z-index: 100000;
}

/* Opisy zastępcze zdjęć na jasnym tle – czytelniejsze. */
.z-ph-light .z-ph-text {
	color: #6B645C;
}

/* Strony prawne: wygodna szerokość tekstu. */
.z-legal > * {
	max-width: 820px;
}

/* ---------- Nagłówek: przyklejony na desktopie, pasek informacyjny odjeżdża ---------- */

.elementor-location-header {
	position: relative;
	z-index: 100;
}

@media (min-width: 1025px) {
	.elementor-location-header {
		position: sticky;
		top: calc(var(--z-topbar-h, 0px) * -1);
	}

	.admin-bar .elementor-location-header {
		top: calc(32px - var(--z-topbar-h, 0px));
	}
}

/* ---------- Logo ---------- */

.z-logo.z-logo {
	display: inline-flex;
	align-items: center;
	gap: 12px;
	color: var(--z-bone);
	text-decoration: none;
	min-height: 44px;
}

.z-logo.z-logo:hover {
	color: #FFFFFF;
}

.z-logo__mark {
	flex: none;
}

.z-logo__text {
	display: flex;
	flex-direction: column;
	line-height: 0.9;
}

.z-logo__name {
	display: block;
	font-family: var(--z-font-display);
	font-weight: 900;
	font-size: 30px;
	letter-spacing: 0.06em;
	/* Wielkie litery na środku głowy byka, a nie całego rysunku z rogami. */
	transform: translateY(0.1em);
}

.z-logo__sub {
	font-family: var(--z-font-mono);
	font-weight: 500;
	font-size: 11px;
	letter-spacing: 0.3em;
	color: var(--z-muted-dark);
	margin-top: 4px;
}

@media (max-width: 767px) {
	.z-logo.z-logo {
		gap: 8px;
	}

	.z-logo__mark {
		width: 34px;
		height: 34px;
	}

	.z-logo__name {
		font-size: 24px;
	}

	.z-logo__sub {
		display: none;
	}
}

/* ---------- Przyciski ikon, konto, koszyk ---------- */

.z-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}

.z-iconbtn.z-iconbtn {
	box-sizing: border-box;
	width: 44px;
	height: 44px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	border: 1px solid var(--z-line-dark);
	border-radius: var(--z-radius-sm);
	color: var(--z-bone);
	cursor: pointer;
	text-decoration: none;
	transition: border-color 0.15s, color 0.15s;
}

.z-iconbtn.z-iconbtn:hover {
	border-color: var(--z-muted-dark);
	color: #FFFFFF;
}

.z-cart.z-cart {
	box-sizing: border-box;
	height: 44px;
	padding: 0 14px;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	background: var(--z-bone);
	border-radius: var(--z-radius-sm);
	color: var(--z-black);
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s;
}

.z-cart.z-cart:hover {
	background: #FFFFFF;
	color: var(--z-black);
}

.z-menu-toggle.z-menu-toggle {
	display: none;
}

@media (max-width: 1024px) {
	.z-menu-toggle.z-menu-toggle {
		display: inline-flex;
		border-color: transparent;
	}
}

@media (max-width: 767px) {
	.z-actions {
		gap: 0;
	}

	.z-actions .z-iconbtn.z-iconbtn {
		border-color: transparent;
	}

	.z-account.z-account {
		display: none;
	}

	/* Na telefonie koszyk jak w makiecie: sama ikona, licznik w kółku. */
	.z-cart.z-cart {
		position: relative;
		width: 44px;
		padding: 0;
		justify-content: center;
		background: transparent;
		color: var(--z-bone);
	}

	.z-cart.z-cart:hover {
		background: transparent;
		color: #FFFFFF;
	}

	.z-cart__count {
		position: absolute;
		top: 4px;
		right: 2px;
		min-width: 18px;
		height: 18px;
		padding: 0 4px;
		box-sizing: border-box;
		border-radius: 9px;
		background: var(--z-red);
		color: #FFFFFF;
		font-size: 11px;
		line-height: 18px;
		text-align: center;
	}
}

/* ---------- Wyszukiwarka (panel pod nagłówkiem) ---------- */

.z-search {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	background: var(--z-black);
	border-bottom: 1px solid var(--z-line-dark);
	padding: 16px 24px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.35);
}

.z-search[hidden] {
	display: none;
}

.z-search__form {
	max-width: 1392px;
	margin: 0 auto;
	display: flex;
	gap: 8px;
}

.z-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 48px;
	padding: 0 16px;
	box-sizing: border-box;
	border: 1px solid var(--z-line-dark);
	border-radius: var(--z-radius-sm);
	background: var(--z-surface-dark);
	color: var(--z-bone);
	font: inherit;
	font-size: 16px;
}

.z-search__input::placeholder {
	color: var(--z-muted-dark);
}

.z-search__submit {
	height: 48px;
	padding: 0 24px;
	border: 0;
	border-radius: var(--z-radius-sm);
	background: var(--z-red);
	color: #FFFFFF;
	font: inherit;
	font-weight: 600;
	cursor: pointer;
}

@media (max-width: 767px) {
	.z-search {
		padding: 12px 16px;
	}
}

/* ---------- Menu mobilne: zakładki produkt / rasa, akordeony ---------- */

.z-mmenu {
	position: fixed;
	inset: 0;
	z-index: 1000;
	display: flex;
	flex-direction: column;
	background: var(--z-black);
	color: var(--z-bone);
}

.z-mmenu[hidden] {
	display: none;
}

.z-mmenu__top {
	display: grid;
	grid-template-columns: 1fr auto 1fr;
	align-items: center;
	padding: 8px 8px 8px 16px;
	border-bottom: 1px solid var(--z-line-dark);
}

.z-mmenu__logo.z-mmenu__logo {
	justify-self: center;
}

.z-mmenu__close.z-mmenu__close {
	justify-self: end;
}

.z-mmenu__title {
	font-family: var(--z-font-display);
	font-weight: 900;
	font-size: 24px;
	letter-spacing: 0.06em;
	text-transform: uppercase;
}

.z-mmenu__close.z-mmenu__close {
	border-color: transparent;
}

.z-mmenu__tabs {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 12px 16px;
}

.z-mmenu__tab {
	height: 44px;
	border: 1px solid #4A4540;
	border-radius: var(--z-radius-sm);
	background: transparent;
	color: var(--z-bone);
	font-family: var(--z-font-body);
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
}

.z-mmenu__tab[aria-pressed="true"] {
	background: var(--z-bone);
	border-color: var(--z-bone);
	color: var(--z-black);
}

.z-mmenu__body {
	flex: 1 1 auto;
	overflow-y: auto;
	padding: 0 16px;
}

.z-mmenu__group {
	border-bottom: 1px solid var(--z-line-dark);
}

.z-mmenu__group-btn {
	width: 100%;
	min-height: 56px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--z-bone);
	font-family: var(--z-font-display);
	font-weight: 700;
	font-size: 24px;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
}

.z-mmenu__sign::after {
	content: "+";
	font-family: var(--z-font-body);
	font-weight: 400;
	font-size: 22px;
	color: var(--z-muted-dark);
}

.z-mmenu__group-btn[aria-expanded="true"] .z-mmenu__sign::after {
	content: "\2212";
}

.z-mmenu__subs {
	display: flex;
	flex-direction: column;
	padding-bottom: 12px;
}

.z-mmenu__subs[hidden] {
	display: none;
}

/* Linki w akapicie Elementora: podwójna klasa wygrywa z resetem `all: unset`. */
a.z-mmenu__link.z-mmenu__link {
	display: flex;
	align-items: center;
	min-height: 44px;
	color: var(--z-bone);
	text-decoration: none;
}

a.z-mmenu__link--all.z-mmenu__link--all {
	padding-left: 12px;
	font-weight: 600;
}

a.z-mmenu__link--sub.z-mmenu__link--sub {
	padding-left: 12px;
	border-left: 2px solid var(--z-line-dark);
	color: #C9C2B7;
}

a.z-mmenu__outlet.z-mmenu__outlet {
	min-height: 56px;
	border-bottom: 1px solid var(--z-line-dark);
	font-family: var(--z-font-display);
	font-weight: 700;
	font-size: 24px;
	text-transform: uppercase;
	color: var(--z-red-light);
}

a.z-mmenu__breed.z-mmenu__breed {
	min-height: 48px;
	border-bottom: 1px solid var(--z-line-dark);
	font-weight: 500;
}

.z-mmenu__foot {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 8px;
	padding: 16px 16px calc(16px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--z-line-dark);
}

a.z-mmenu__btn.z-mmenu__btn {
	height: 48px;
	justify-content: center;
	border: 1px solid #4A4540;
	border-radius: var(--z-radius-sm);
	font-size: 14px;
	font-weight: 600;
}

/* ---------- Mega menu (desktop) ---------- */

.z-mega {
	position: absolute;
	left: 0;
	right: 0;
	top: 100%;
	z-index: 60;
	background: #161412;
	border-bottom: 1px solid var(--z-line-dark);
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.45);
	color: var(--z-bone);
}

.z-mega[hidden] {
	display: none;
}

@media (max-width: 1024px) {
	.z-mega {
		display: none !important;
	}
}

.z-mega__inner {
	max-width: 1440px;
	margin: 0 auto;
	padding: 20px 24px 40px;
	box-sizing: border-box;
}

.z-mega__tabs {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 24px;
	padding-bottom: 16px;
	border-bottom: 1px solid var(--z-line-dark);
}

.z-mega__tab {
	min-height: 44px;
	padding: 10px 14px;
	border: 0;
	border-radius: var(--z-radius-sm);
	background: transparent;
	color: var(--z-bone);
	font-family: var(--z-font-body);
	font-size: 16px;
	font-weight: 600;
	cursor: pointer;
}

.z-mega__tab[aria-selected="true"] {
	background: var(--z-bone);
	color: var(--z-black);
}

a.z-mega__outlet.z-mega__outlet {
	margin-left: auto;
	padding: 10px 14px;
	color: var(--z-red-light);
	font-weight: 600;
	text-decoration: none;
}

.z-mega__panel {
	display: flex;
	flex-wrap: wrap;
	gap: 32px;
}

.z-mega__panel[hidden] {
	display: none;
}

.z-mega__groups {
	list-style: none;
	margin: 0;
	padding: 0;
	flex: 0 1 240px;
	display: flex;
	flex-direction: column;
	gap: 4px;
}

.z-mega__group {
	width: 100%;
	min-height: 48px;
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 0 16px;
	border: 0;
	border-radius: var(--z-radius-sm);
	background: transparent;
	color: var(--z-bone);
	font-family: var(--z-font-display);
	font-weight: 700;
	font-size: 24px;
	text-transform: uppercase;
	text-align: left;
	cursor: pointer;
}

.z-mega__group:hover {
	background: var(--z-surface-dark);
}

.z-mega__group[aria-pressed="true"] {
	background: var(--z-red);
	color: #FFFFFF;
}

.z-mega__subs-wrap {
	flex: 1 1 420px;
	min-width: 0;
	padding-left: 32px;
	border-left: 1px solid var(--z-line-dark);
}

.z-mega__subs {
	display: flex;
	flex-direction: column;
}

.z-mega__subs[hidden] {
	display: none;
}

a.z-mega__sub.z-mega__sub {
	display: flex;
	flex-direction: column;
	padding: 12px 0;
	border-bottom: 1px solid var(--z-line-dark);
	color: var(--z-bone);
	text-decoration: none;
}

a.z-mega__sub.z-mega__sub:hover .z-mega__sub-name {
	color: #FFFFFF;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.z-mega__sub-name {
	font-weight: 600;
}

.z-mega__sub-desc {
	font-size: 13px;
	color: var(--z-muted-dark);
}

.z-mega__promo {
	flex: 0 1 360px;
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	align-content: start;
}

a.z-mega__tile.z-mega__tile {
	display: flex;
	flex-direction: column;
	gap: 8px;
	color: var(--z-bone);
	text-decoration: none;
}

.z-mega__tile-img {
	aspect-ratio: 1 / 1;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 8px;
	border-radius: var(--z-radius);
	background: var(--z-surface-dark);
	font-family: var(--z-font-mono);
	font-size: 11px;
	color: var(--z-muted-dark);
	text-align: center;
}

.z-mega__tile-img.is-red {
	background: #2A1614;
}

.z-mega__tile-name {
	font-weight: 600;
	font-size: 14px;
}

.z-mega__breeds {
	flex: 1 1 100%;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	gap: 4px 32px;
}

a.z-mega__breed.z-mega__breed {
	padding: 12px 0;
	border-bottom: 1px solid var(--z-line-dark);
	color: var(--z-bone);
	font-weight: 500;
	text-decoration: none;
}

a.z-mega__breed.z-mega__breed:hover {
	color: #FFFFFF;
}

a.z-mega__breed--all.z-mega__breed--all {
	color: var(--z-muted-dark);
}

/* Przycisk ze strzałką przy linku w menu nagłówka (otwiera panel z klawiatury). */
/* Węższy desktop: menu w jednej linii (mniejsze odstępy, „Dobór rozmiaru” zostaje w stopce i menu mobilnym). */
@media (min-width: 1025px) and (max-width: 1279px) {
	/* !important: klasy atomowe Elementora mają wyższą specyficzność niż ta wąska poprawka. */
	.elementor-location-header .z-nav {
		gap: 30px !important;
	}

	.elementor-location-header .z-nav .z-nav-link-muted {
		display: none !important;
	}
}

/* Od dodania „Studio” 30 px nie wystarcza poniżej 1200 px – 24 px mieści menu w jednej linii, strzałki (20 px) się nie nakładają. */
@media (min-width: 1025px) and (max-width: 1199px) {
	.elementor-location-header .z-nav {
		gap: 24px !important;
	}
}

/* Elementor owija link w <span> – strzałkę wstawiamy do niego, więc ustawiamy ją za napisem. */
.z-mega-toggle {
	position: absolute;
	left: 100%;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	width: 20px;
	height: 44px;
	margin-left: 2px;
	padding: 0;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	color: var(--z-muted-dark);
	cursor: pointer;
}

.z-mega-toggle .z-icon {
	transform: rotate(90deg);
	transition: transform 0.15s;
}

.z-mega-toggle[aria-expanded="true"] .z-icon {
	transform: rotate(-90deg);
}

.z-nav-link.is-mega-open {
	color: #FFFFFF;
	box-shadow: inset 0 -2px 0 var(--z-red-light);
}

body.z-noscroll {
	overflow: hidden;
}

/* ---------- Bestsellery na stronie głównej: [zodiac_bestsellers] ----------
 * Te same karty co w katalogu (Catalog_Page::card()), wariant ciemny z makiety Main.dc.html.
 * catalog.css nie ładuje się na stronie głównej, więc style karty są tu w całości.
 */

.z-best {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 24px;
	width: 100%;
	margin: 0;
	padding: 0;
	list-style: none;
	font-family: var(--z-font-body);
	color: var(--z-bone);
}

.z-best .z-card {
	margin: 0;
	min-width: 0;
}

.z-best a.z-card__link.z-card__link {
	display: flex;
	flex-direction: column;
	gap: 12px;
	height: 100%;
	color: var(--z-bone);
	text-decoration: none;
	cursor: pointer;
}

.z-best a.z-card__link.z-card__link:focus-visible {
	outline: 2px solid var(--z-bone);
	outline-offset: 4px;
	border-radius: var(--z-radius);
}

.z-best .z-card__media {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 5;
	overflow: hidden;
	border-radius: var(--z-radius);
	background: var(--z-surface-dark);
}

.z-best .z-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.3s;
}

.z-best a.z-card__link:hover .z-card__img {
	transform: scale(1.03);
}

.z-best .z-card__ph {
	padding: 16px;
	text-align: center;
	font-family: var(--z-font-mono);
	font-size: 12px;
	color: #8A8379;
}

.z-best .z-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 8px;
	border-radius: 3px;
	background: var(--z-bone);
	color: var(--z-black);
	font-size: 11px;
	font-weight: 600;
}

.z-best .z-card__lines {
	position: absolute;
	left: 12px;
	right: 12px;
	bottom: 12px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.z-best .z-card__line {
	padding: 3px 7px;
	border-radius: 3px;
	background: var(--z-black);
	color: var(--z-bone);
	font-family: var(--z-font-mono);
	font-weight: 500;
	font-size: 10px;
	letter-spacing: 0.1em;
}

.z-best .z-card__line.is-taurus {
	background: var(--z-red);
	color: #FFFFFF;
}

.z-best .z-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.z-best .z-card__dots {
	display: flex;
	align-items: center;
	gap: 6px;
}

.z-best .z-card__dot {
	width: 16px;
	height: 16px;
	box-sizing: border-box;
	border-radius: 50%;
	border: 1px solid #5A544E;
}

.z-best .z-card__more {
	font-size: 12px;
	color: var(--z-muted-dark);
}

.z-best .z-card__name {
	font-weight: 600;
	font-size: 17px;
	line-height: 1.3;
}

.z-best .z-card__meta {
	display: none;
}

.z-best .z-card__price {
	font-size: 14px;
	color: var(--z-muted-dark);
}

.z-best .z-card__price .amount {
	color: inherit;
}

.z-best .z-card__price--short {
	display: none;
}

@media (max-width: 767px) {
	.z-best {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 20px 12px;
	}

	.z-best a.z-card__link.z-card__link,
	.z-best .z-card__body {
		gap: 6px;
	}

	.z-best .z-card__ph {
		font-size: 10px;
	}

	.z-best .z-card__badge {
		top: 8px;
		left: 8px;
		padding: 3px 6px;
		font-size: 10px;
	}

	.z-best .z-card__lines {
		left: 8px;
		right: 8px;
		bottom: 8px;
		gap: 4px;
	}

	.z-best .z-card__line {
		padding: 2px 5px;
		font-size: 9px;
	}

	.z-best .z-card__dots {
		display: none;
	}

	.z-best .z-card__name {
		font-size: 14px;
	}

	.z-best .z-card__price {
		font-size: 12px;
	}

	.z-best .z-card__price--full {
		display: none;
	}

	.z-best .z-card__price--short {
		display: block;
	}
}
