/* =========================================================================
   Move Your Spine - nagłówek, stopka, warstwy (menu, koszyk, podgląd, toast)
   ====================================================================== */

/* -------------------------------------------------------------------------
   NAGŁÓWEK
   ---------------------------------------------------------------------- */

.mys-theme .mys-header {
	position: sticky;
	top: 0;
	z-index: 60;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
	padding: 14px clamp(18px, 4vw, 56px);
	background: rgba(255, 255, 255, .88);
	-webkit-backdrop-filter: blur(14px);
	backdrop-filter: blur(14px);
	border-bottom: 1px solid var(--mys-border);
}

.mys-theme .mys-logo {
	display: flex;
	flex-direction: column;
	gap: 3px;
	color: var(--mys-text);
}
.mys-theme .mys-logo:hover { opacity: 1; }
.mys-logo__name {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: clamp(17px, 1.5vw, 20px);
	letter-spacing: -.02em;
	line-height: 1;
	color: var(--mys-text);
}
.mys-logo__tag {
	white-space: nowrap;
	font-size: 10.5px;
	font-weight: 600;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(30, 27, 46, .52);
	line-height: 1.2;
}

/* Nawigacja i ikony tworzą prawy klaster (w projekcie to jedna grupa <nav>). */
.mys-nav { display: flex; align-items: center; margin-left: auto; }
.mys-theme .mys-nav__list {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 26px);
	margin: 0;
	padding: 0;
	list-style: none;
}
.mys-theme .mys-nav__list li { margin: 0; }
/* Tylko pozycje PIERWSZEGO poziomu. Bez kombinatora `> li >` reguła wchodziła
   też w linki megamenu i rozbijała ich układ (display:block zamiast flex). */
.mys-theme .mys-nav__list > li > a {
	position: relative;
	display: block;
	font-family: var(--mys-font-body);
	font-weight: 600;
	font-size: 15px;
	line-height: 1;
	color: var(--mys-text);
	padding: 6px 0;
	white-space: nowrap;
}
.mys-theme .mys-nav__list > li > a:hover { opacity: .75; }
.mys-theme .mys-nav__list .current-menu-item > a::after,
.mys-theme .mys-nav__list .current_page_item > a::after,
.mys-theme .mys-nav__list .current-menu-parent > a::after,
.mys-theme .mys-nav__list li.is-active > a::after {
	content: "";
	position: absolute;
	left: 0;
	right: 0;
	bottom: -1px;
	height: 2px;
	border-radius: 2px;
	background: var(--mys-accent-ink);
}

.mys-actions {
	display: flex;
	align-items: center;
	gap: clamp(12px, 1.6vw, 26px);
	margin-left: clamp(12px, 1.6vw, 26px);
}
@media (max-width: 1179px) {
	.mys-actions { margin-left: auto; }
}

.mys-cart-badge {
	position: absolute;
	top: -4px;
	right: -4px;
	min-width: 19px;
	height: 19px;
	padding: 0 5px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mys-accent);
	color: var(--mys-on-accent);
	font-family: var(--mys-font-body);
	font-weight: 700;
	font-size: 11px;
	line-height: 1;
	border-radius: var(--mys-radius-pill);
}
.mys-cart-badge.is-empty { display: none; }

.mys-theme .mys-burger {
	display: none;
	align-items: center;
	justify-content: center;
	width: 46px;
	height: 46px;
	border-radius: var(--mys-radius-pill);
	background: var(--mys-brand);
	color: var(--mys-on-dark);
}

/* Od 1200 px nagłówek trzyma tę samą oś co kontener treści (1180 + 64 px). */
@media (min-width: 1200px) {
	.mys-theme .mys-header {
		padding-left: calc((100% - var(--mys-container)) / 2 + var(--mys-section-x));
		padding-right: calc((100% - var(--mys-container)) / 2 + var(--mys-section-x));
	}
}

/* Menu ma 7 pozycji (Sklep z podmenu, Ebooki, Plany, Jadłospisy, Kalkulator,
   O mnie, Opinie). Poniżej 1180 px nie mieści się w jednym rzędzie razem z logo,
   koszykiem i CTA, więc zamiast zawijać nagłówek przechodzimy na hamburger. */
@media (min-width: 1180px) {
	.mys-theme .mys-header { flex-wrap: nowrap; }
	.mys-nav { min-width: 0; }
}
@media (min-width: 1180px) and (max-width: 1339px) {
	.mys-theme .mys-header { padding-inline: 26px; gap: 10px; }
	.mys-logo__tag { display: none; }
	.mys-theme .mys-nav__list { gap: 13px; }
	.mys-theme .mys-nav__list > li > a { font-size: 13.5px; }
	.mys-actions { gap: 10px; margin-left: 12px; }
	.mys-theme .mys-btn--head { padding: 11px 15px; font-size: 13px; }
	.mys-theme .mys-iconbtn--cart { width: 38px; height: 38px; }
}

@media (max-width: 1179px) {
	.mys-logo__tag { display: none; }
	.mys-nav { display: none; }
	.mys-theme .mys-btn--head { display: none; }
	.mys-theme .mys-burger { display: inline-flex; }
	.mys-theme .mys-iconbtn--cart { width: 46px; height: 46px; }
	.mys-actions { gap: 10px; }
}

/* -------------------------------------------------------------------------
   MENU MOBILNE
   ---------------------------------------------------------------------- */

.mys-navdrawer { position: fixed; inset: 0; z-index: 78; }
.mys-navdrawer[hidden] { display: none; }
.mys-navdrawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(30, 27, 46, .45);
	animation: mys-fade .25s ease;
}
.mys-navdrawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(330px, 88vw);
	background: var(--mys-bg);
	padding: 22px 22px 30px;
	display: flex;
	flex-direction: column;
	gap: 6px;
	animation: mys-slide .3s cubic-bezier(.22, 1, .36, 1);
	overflow-y: auto;
}
.mys-navdrawer__close { align-self: flex-end; width: 38px; height: 38px; margin-bottom: 14px; }
.mys-theme .mys-navdrawer__link {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	border-radius: 14px;
	padding: 16px 18px;
	font-family: var(--mys-font-head);
	font-weight: 700;
	font-size: 20px;
	color: var(--mys-text);
	background: transparent;
}
.mys-theme .mys-navdrawer__link:hover { opacity: 1; background: rgba(124, 92, 224, .08); }
.mys-theme .mys-navdrawer__link.is-active { background: rgba(124, 92, 224, .14); }
.mys-theme .mys-navdrawer__cta { margin-top: auto; padding: 16px; width: 100%; }

/* -------------------------------------------------------------------------
   SZUFLADA KOSZYKA
   ---------------------------------------------------------------------- */

.mys-drawer { position: fixed; inset: 0; z-index: 80; }
.mys-drawer[hidden] { display: none; }
.mys-drawer__scrim {
	position: absolute;
	inset: 0;
	background: rgba(30, 27, 46, .42);
	animation: mys-fade .25s ease;
}
.mys-drawer__panel {
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	width: min(420px, 92vw);
	background: var(--mys-bg);
	box-shadow: -20px 0 60px rgba(30, 27, 46, .22);
	display: flex;
	flex-direction: column;
	animation: mys-slide .32s cubic-bezier(.22, 1, .36, 1);
}
.mys-drawer__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 22px 24px;
	border-bottom: 1px solid rgba(30, 27, 46, .1);
	flex: none;
}
.mys-drawer__title { font-family: var(--mys-font-head); font-weight: 700; font-size: 19px; }
.mys-drawer__body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.mys-drawer__lines { flex: 1; overflow-y: auto; padding: 8px 24px; }

.mys-line {
	display: flex;
	gap: 14px;
	align-items: center;
	padding: 16px 0;
	border-bottom: 1px solid rgba(30, 27, 46, .08);
}
.mys-line__main { flex: 1; min-width: 0; }
.mys-line__title { font-weight: 600; font-size: 15px; line-height: 1.25; }
.mys-line__meta { font-size: 12.5px; color: var(--mys-text-55); margin-top: 2px; }
.mys-line__meta .amount,
.mys-line__meta bdi { color: inherit; font-size: inherit; }
.mys-qty {
	display: inline-flex;
	align-items: center;
	margin-top: 10px;
	border: 1px solid var(--mys-border-strong);
	border-radius: var(--mys-radius-pill);
	overflow: hidden;
}
.mys-theme .mys-qty__btn {
	width: 40px;
	height: 40px;
	font-size: 17px;
	color: var(--mys-text);
	display: flex;
	align-items: center;
	justify-content: center;
}
.mys-theme .mys-qty__btn:hover { background: rgba(30, 27, 46, .05); }
.mys-qty__val { min-width: 30px; text-align: center; font-weight: 600; font-size: 14px; }
.mys-line__side { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.mys-line__price { font-family: var(--mys-font-head); font-weight: 700; font-size: 16px; }
.mys-line__price .amount { font-family: inherit; font-weight: inherit; font-size: inherit; color: inherit; }
.mys-theme .mys-line__remove { font-size: 12px; color: var(--mys-text-50); text-decoration: underline; }

.mys-drawer__foot {
	padding: 20px 24px 26px;
	border-top: 1px solid rgba(30, 27, 46, .1);
	background: var(--mys-surface);
	flex: none;
}
.mys-drawer__sum {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	margin-bottom: 16px;
}
.mys-drawer__sum > span:first-child { font-weight: 600; color: var(--mys-text-70); }
.mys-drawer__total,
.mys-drawer__total .amount {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: 24px;
	color: var(--mys-text);
}
.mys-drawer__note { text-align: center; font-size: 12px; color: var(--mys-text-50); margin: 12px 0 0; }
.mys-drawer__empty {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 16px;
	padding: 40px;
	text-align: center;
}
.mys-drawer__empty p { color: var(--mys-text-66); max-width: 24ch; margin: 0; }
.mys-drawer__emptyicon {
	width: 64px;
	height: 64px;
	border-radius: var(--mys-radius-pill);
	background: rgba(30, 27, 46, .05);
	color: rgba(30, 27, 46, .4);
	display: flex;
	align-items: center;
	justify-content: center;
}

/* -------------------------------------------------------------------------
   SZYBKI PODGLĄD
   ---------------------------------------------------------------------- */

.mys-modal {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: clamp(16px, 4vw, 48px);
}
.mys-modal[hidden] { display: none; }
.mys-modal__scrim { position: absolute; inset: 0; background: rgba(30, 27, 46, .5); animation: mys-fade .25s ease; }
/* Szybki podgląd: kompaktowa karta pozioma. Wersja szeroka z pasem zdjęcia
   na górze kadrowała okładkę (background-size: cover ucinał mockup) i przy
   720 px zasłaniała pół siatki produktów. */
.mys-modal__card {
	position: relative;
	display: flex;
	align-items: stretch;
	width: min(620px, 100%);
	max-height: 88vh;
	overflow: hidden;
	background: var(--mys-bg);
	border-radius: var(--mys-radius-lg);
	box-shadow: 0 24px 60px rgba(30, 27, 46, .28);
	animation: mys-pop .3s cubic-bezier(.16, 1, .36, 1) both;
}
.mys-modal__img {
	flex: 0 0 200px;
	align-self: stretch;
	min-height: 230px;
	border-radius: 0;
	background-color: var(--mys-bg-alt);
	background-size: contain;
	background-repeat: no-repeat;
	background-position: center;
}
.mys-modal__body { flex: 1 1 auto; min-width: 0; overflow-y: auto; }

@media (max-width: 599px) {
	.mys-modal__card { flex-direction: column; width: min(420px, 100%); }
	.mys-modal__img { flex: 0 0 auto; min-height: 0; height: 170px; }
}
.mys-theme .mys-iconbtn--float {
	position: absolute;
	z-index: 2;
	top: 12px;
	right: 12px;
	width: 38px;
	height: 38px;
	background: rgba(255, 255, 255, .94);
	border: none;
}
.mys-modal__body { padding: clamp(22px, 2.6vw, 30px); }
.mys-modal__type {
	font-family: var(--mys-font-body);
	font-weight: 600;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--mys-accent-ink);
}
.mys-modal__title {
	font-family: var(--mys-font-head);
	font-weight: 700;
	font-size: clamp(20px, 2.2vw, 26px);
	line-height: 1.2;
	margin: 10px 0 10px;
}
.mys-modal__text { margin: 0 0 20px; font-size: 14.5px; line-height: 1.6; color: var(--mys-text-70); }
.mys-modal__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.mys-modal__price,
.mys-modal__price .amount {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: 22px;
	color: var(--mys-text);
}
.mys-modal__price .mys-price-from { font-size: 18px; font-weight: 700; }

/* -------------------------------------------------------------------------
   TOAST
   ---------------------------------------------------------------------- */

.mys-toast {
	position: fixed;
	left: 50%;
	bottom: 26px;
	z-index: 95;
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 14px;
	background: var(--mys-brand);
	color: var(--mys-on-dark);
	border-radius: var(--mys-radius-pill);
	padding: 13px 20px;
	box-shadow: 0 16px 44px rgba(30, 27, 46, .34);
	animation: mys-toast .3s cubic-bezier(.16, 1, .36, 1) both;
	max-width: calc(100vw - 32px);
}
.mys-toast[hidden] { display: none; }
.mys-toast__icon {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	border-radius: var(--mys-radius-pill);
	background: var(--mys-accent);
	color: var(--mys-brand);
	flex: none;
}
.mys-toast__msg { font-weight: 500; font-size: 14.5px; line-height: 1.2; }
.mys-theme .mys-toast__link { color: var(--mys-accent-2); font-weight: 600; font-size: 14px; }
.mys-theme .mys-toast__link:hover { color: var(--mys-on-dark); }

/* -------------------------------------------------------------------------
   HERO PODSTRONY / PASEK PRAWNY / OKRUSZKI
   ---------------------------------------------------------------------- */

.mys-pagehero {
	position: relative;
	overflow: hidden;
	background: var(--mys-brand);
	color: var(--mys-on-dark);
}
.mys-pagehero__bg { position: absolute; inset: 0; }
.mys-pagehero__scrim {
	position: absolute;
	inset: 0;
	background: linear-gradient(90deg, rgba(22, 19, 34, .94) 0%, rgba(22, 19, 34, .72) 48%, rgba(22, 19, 34, .34) 100%);
	pointer-events: none;
}
.mys-pagehero__in { position: relative; padding-block: clamp(72px, 9vw, 150px); }
.mys-pagehero__title {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: clamp(38px, 5.5vw, 72px);
	line-height: 1;
	letter-spacing: -.03em;
	margin: 16px 0;
	color: var(--mys-on-dark);
	text-shadow: 0 2px 30px rgba(0, 0, 0, .35);
}
.mys-pagehero__lead {
	max-width: 52ch;
	font-size: 17px;
	line-height: 1.6;
	color: rgba(246, 243, 238, .92);
	margin: 0;
	text-shadow: 0 1px 16px rgba(0, 0, 0, .3);
}

.mys-crumbs {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: rgba(246, 243, 238, .7);
	margin-bottom: 18px;
}
.mys-theme .mys-crumbs a { color: inherit; }
.mys-theme .mys-crumbs a:hover { opacity: .75; }
.mys-crumbs__cur { color: var(--mys-on-dark); font-weight: 600; }
.mys-crumbs--light { color: var(--mys-text-50); }
.mys-crumbs--light .mys-crumbs__cur { color: var(--mys-text); }

.mys-legalhead { background: var(--mys-bg-alt); }
.mys-legalhead .mys-container { padding-top: clamp(44px, 5vw, 80px); padding-bottom: clamp(36px, 4vw, 56px); }
.mys-legalhead__title {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: clamp(34px, 5vw, 64px);
	line-height: 1.02;
	letter-spacing: -.03em;
	margin: 0 0 14px;
}
.mys-legalhead__meta { font-size: 14px; color: var(--mys-text-55); margin: 0; }

/* -------------------------------------------------------------------------
   STOPKA
   ---------------------------------------------------------------------- */

.mys-footer { background: var(--mys-brand); color: var(--mys-on-dark); }
.mys-footer__cols {
	display: flex;
	flex-wrap: wrap;
	gap: clamp(30px, 4vw, 64px);
	padding-top: clamp(48px, 6vw, 84px);
	padding-bottom: 32px;
}
.mys-footer__brand { flex: 1 1 280px; }
.mys-footer__name {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: 24px;
	letter-spacing: -.02em;
}
.mys-footer__desc {
	margin: 14px 0 20px;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--mys-on-dark-60);
	max-width: 34ch;
}
.mys-footer__social { display: flex; gap: 10px; }
.mys-theme .mys-soc {
	width: 42px;
	height: 42px;
	border-radius: var(--mys-radius-icon);
	background: rgba(246, 243, 238, .08);
	border: 1px solid var(--mys-border-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--mys-on-dark);
}
.mys-theme .mys-soc:hover { background: rgba(246, 243, 238, .16); opacity: 1; }
.mys-theme .mys-soc--text {
	width: auto;
	padding: 0 16px;
	font-family: var(--mys-font-body);
	font-weight: 600;
	font-size: 13px;
}
.mys-footer__col--menu { flex: 1 1 150px; }
.mys-footer__col--contact { flex: 1 1 260px; }
.mys-footer__head {
	font-family: var(--mys-font-body);
	font-weight: 600;
	font-size: 12px;
	line-height: 1;
	letter-spacing: .15em;
	text-transform: uppercase;
	color: rgba(246, 243, 238, .45);
	margin-bottom: 16px;
}
.mys-footer__links { display: flex; flex-direction: column; gap: 2px; }
.mys-theme .mys-footer__links a {
	padding: 9px 0;
	color: var(--mys-on-dark-82);
	font-weight: 500;
	font-size: 15px;
	line-height: 1;
}
.mys-theme .mys-footer__links a:hover { color: var(--mys-accent-2); opacity: 1; }
.mys-footer__contact { display: flex; flex-direction: column; gap: 4px; font-size: 15px; color: var(--mys-on-dark-82); }
.mys-theme .mys-footer__contact a { color: inherit; padding: 7px 0; }
.mys-theme .mys-footer__contact a:hover { color: var(--mys-accent-2); opacity: 1; }
.mys-footer__contact span { color: rgba(246, 243, 238, .66); padding: 7px 0; }

.mys-footer__bar { border-top: 1px solid rgba(246, 243, 238, .12); }
.mys-footer__barin {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 24px;
	align-items: center;
	justify-content: space-between;
	padding-top: 20px;
	padding-bottom: 20px;
	font-size: 13px;
	color: rgba(246, 243, 238, .5);
}
.mys-footer__legal { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.mys-theme .mys-footer__legal a {
	color: rgba(246, 243, 238, .62);
	font-weight: 500;
	font-size: 13px;
	padding: 8px 0;
}
.mys-theme .mys-footer__legal a:hover { color: var(--mys-accent-2); opacity: 1; }

/* -------------------------------------------------------------------------
   404 / komunikaty / paginacja
   ---------------------------------------------------------------------- */

.mys-404 { padding-block: clamp(72px, 9vw, 140px); text-align: center; }
.mys-404 .mys-eyebrow { margin-bottom: 16px; }
.mys-404__title {
	font-family: var(--mys-font-head);
	font-weight: 800;
	font-size: clamp(34px, 5vw, 60px);
	line-height: 1.05;
	letter-spacing: -.03em;
	margin: 0 0 16px;
}
.mys-404__text { margin: 0 auto 30px; max-width: 46ch; color: var(--mys-text-70); }
.mys-404__btns { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }

.mys-notices:empty { display: none; }
.mys-theme .woocommerce-message,
.mys-theme .woocommerce-info,
.mys-theme .woocommerce-error {
	background: var(--mys-surface);
	border: 1px solid var(--mys-border);
	border-top: 3px solid var(--mys-accent-ink);
	border-radius: var(--mys-radius-input);
	color: var(--mys-text);
	font-size: 15px;
	padding: 16px 20px;
	margin: 0 0 24px;
	list-style: none;
}
.mys-theme .woocommerce-error { border-top-color: var(--mys-error); }

.mys-pagination,
.mys-shop__pagination { margin-top: 44px; }
.mys-theme .woocommerce-pagination ul,
.mys-theme .mys-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0;
	padding: 0;
	border: none;
}
.mys-theme .woocommerce-pagination li { border: none; margin: 0; }
.mys-theme .woocommerce-pagination a,
.mys-theme .woocommerce-pagination span,
.mys-theme .mys-pagination a,
.mys-theme .mys-pagination span.current {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 40px;
	height: 40px;
	padding: 0 12px;
	border-radius: var(--mys-radius-pill);
	border: 1px solid var(--mys-border-strong);
	background: transparent;
	color: var(--mys-text);
	font-weight: 600;
	font-size: 14px;
}
.mys-theme .woocommerce-pagination .current,
.mys-theme .mys-pagination span.current {
	background: var(--mys-brand);
	border-color: var(--mys-brand);
	color: var(--mys-on-dark);
}

/* -------------------------------------------------------------------------
   Animacje warstw
   ---------------------------------------------------------------------- */

@keyframes mys-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mys-slide { from { transform: translateX(100%); } to { transform: none; } }
@keyframes mys-pop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes mys-toast { from { opacity: 0; transform: translate(-50%, 18px); } to { opacity: 1; transform: translateX(-50%); } }

body.mys-lock { overflow: hidden; }

.mys-drawer__panel.is-busy .mys-drawer__body { opacity: .55; transition: opacity .15s ease; }
.mys-theme .mys-notice-link { color: var(--mys-accent-ink); font-weight: 600; }

/* -------------------------------------------------------------------------
   NAWIGACJA - rozwijane podmenu „Sklep"
   ---------------------------------------------------------------------- */

.mys-theme .mys-nav__list > li { position: relative; }
.mys-theme .mys-nav__list > li > a {
	display: inline-flex;
	align-items: center;
	gap: 5px;
}
.mys-theme .mys-nav__has-sub > a svg { transition: transform .2s ease; opacity: .55; }
.mys-theme .mys-nav__has-sub:hover > a svg,
.mys-theme .mys-nav__has-sub:focus-within > a svg { transform: rotate(180deg); opacity: 1; }

/* MOSTEK NAJAZDU
   Panel wisi pod dolną krawędzią nagłówka, a pozycja menu kończy się razem
   z tekstem linku. Między nimi zostaje pas (dopełnienie nagłówka), na którym
   kursor wypada poza <li>, hover ginie i panel się zwija w trakcie zjeżdżania.
   Niewidoczny mostek pod linkiem domyka tę dziurę. Rozwija się dopiero na
   hoverze - inaczej przechwytywałby kliknięcia w treść pod nagłówkiem. */
.mys-theme .mys-nav__has-sub > a::before {
	content: "";
	position: absolute;
	left: -16px;
	right: -16px;
	top: 100%;
	height: 0;
}
.mys-theme .mys-nav__has-sub:hover > a::before,
.mys-theme .mys-nav__has-sub:focus-within > a::before { height: 64px; }

/* Podmenu wisi na hoverze i na fokusie klawiatury. Mostek `padding-top`
   na liście, żeby ruch myszą w dół nie gubił hovera. */
.mys-theme .mys-nav__sub {
	position: absolute;
	top: 100%;
	left: 50%;
	transform: translateX(-50%) translateY(6px);
	transition-delay: .18s;
	min-width: 226px;
	margin: 0;
	padding: 8px;
	list-style: none;
	background: var(--mys-surface);
	border: 1px solid var(--mys-border);
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(30, 27, 46, .14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
	z-index: 5;
}
.mys-theme .mys-nav__sub::before {
	content: "";
	position: absolute;
	inset: -12px 0 100% 0;
}
.mys-theme .mys-nav__has-sub:hover > .mys-nav__sub,
.mys-theme .mys-nav__has-sub:focus-within > .mys-nav__sub {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: translateX(-50%) translateY(2px);
	transition-delay: 0s;
}
.mys-theme .mys-nav__sub li { margin: 0; }
.mys-theme .mys-nav__sub a {
	display: block;
	padding: 11px 14px;
	border-radius: 11px;
	font-size: 14.5px;
	font-weight: 500;
	color: var(--mys-text);
	white-space: nowrap;
}
.mys-theme .mys-nav__sub a:hover { background: var(--mys-accent-soft); color: var(--mys-accent-ink); opacity: 1; }
.mys-theme .mys-nav__sub li.is-active > a { background: var(--mys-accent-soft); color: var(--mys-accent-ink); font-weight: 600; }

/* Podmenu w szufladzie mobilnej. */
.mys-navdrawer__sub {
	display: flex;
	flex-direction: column;
	gap: 2px;
	margin: -2px 0 8px;
	padding-left: 18px;
	border-left: 2px solid var(--mys-accent-soft-2);
}
.mys-theme .mys-navdrawer__sublink {
	padding: 10px 14px;
	border-radius: 11px;
	font-family: var(--mys-font-body);
	font-weight: 500;
	font-size: 15px;
	color: var(--mys-text-70);
}
.mys-theme .mys-navdrawer__sublink:hover { background: var(--mys-accent-soft); color: var(--mys-accent-ink); opacity: 1; }
.mys-theme .mys-navdrawer__sublink.is-active { color: var(--mys-accent-ink); font-weight: 600; }

/* -------------------------------------------------------------------------
   STOPKA - pasek informacji sklepowych
   ---------------------------------------------------------------------- */

.mys-footer__cols { align-items: flex-start; }
.mys-footer__col { flex: 1 1 160px; }
.mys-footer__contact--brand { margin: 0 0 18px; gap: 0; }
.mys-theme .mys-footer__contact--brand a,
.mys-footer__contact--brand > span {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14.5px;
}
.mys-footer__contact--brand svg { flex: none; opacity: .5; }

/* Pasek informacji sklepowych - celowo cienki. W wersji kaflowej rozciągał
   stopkę o ponad 150 px i przejmował uwagę, choć to treść drugoplanowa. */
.mys-footer__shopinfo {
	display: flex;
	flex-wrap: wrap;
	gap: 8px clamp(20px, 3vw, 40px);
	padding-top: 18px;
	padding-bottom: 18px;
	border-top: 1px solid rgba(246, 243, 238, .08);
}
.mys-shopinfo {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	font-size: 13px;
	line-height: 1.45;
	color: var(--mys-on-dark-60);
}
.mys-shopinfo svg { flex: none; color: var(--mys-beige); opacity: .75; }
.mys-theme .mys-shopinfo a { color: var(--mys-on-dark-82); }
.mys-theme .mys-shopinfo a:hover { color: var(--mys-beige); opacity: 1; }

/* -------------------------------------------------------------------------
   GWIAZDKI OCENY
   ---------------------------------------------------------------------- */

.mys-stars { display: inline-flex; gap: 3px; }
.mys-stars > span { display: flex; color: rgba(30, 27, 46, .18); }
.mys-stars > span.is-on { color: #E8A33D; }
.mys-stars > span.is-on svg { fill: currentColor; }

/* -------------------------------------------------------------------------
   MEGAMENU „SKLEP"

   Panel jest pozycjonowany względem `.mys-header` (sticky = element
   pozycjonowany), dlatego pozycja „Sklep" dostaje `position: static` -
   inaczej panel liczyłby szerokość od samego linku.
   ---------------------------------------------------------------------- */

.mys-theme .mys-nav__list > li.mys-nav__has-mega { position: static; }

.mys-mega {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 4;
	background: var(--mys-surface);
	border-top: 1px solid var(--mys-border);
	box-shadow: 0 24px 50px rgba(30, 27, 46, .14);
	opacity: 0;
	visibility: hidden;
	pointer-events: none;
	transform: translateY(-6px);
	transition: opacity .2s ease, transform .2s ease, visibility .2s;
	transition-delay: .18s;
}
.mys-theme .mys-nav__has-mega:hover > .mys-mega,
.mys-theme .mys-nav__has-mega:focus-within > .mys-mega {
	opacity: 1;
	visibility: visible;
	pointer-events: auto;
	transform: none;
	transition-delay: 0s;
}

.mys-mega__in {
	display: grid;
	grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.1fr) minmax(0, .82fr);
	gap: clamp(24px, 3vw, 52px);
	padding-block: 30px;
	align-items: start;
}
@media (max-width: 1339px) {
	.mys-mega__in { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); }
	.mys-mega__col--cta { grid-column: 1 / -1; }
	.mys-megacta { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 14px; }
	.mys-megacta__text { grid-column: 1; }
	.mys-theme .mys-megacta .mys-btn--block { width: auto; }
}

.mys-mega__head {
	display: block;
	font-family: var(--mys-font-body);
	font-weight: 600;
	font-size: 11px;
	line-height: 1;
	letter-spacing: .16em;
	text-transform: uppercase;
	color: var(--mys-text-50);
	margin-bottom: 16px;
}

/* --- kolumna kategorii --- */

/* Pionowa lista, ten sam rytm co kolumna „Polecane" - obie mają po cztery
   wiersze i kończą się na tej samej wysokości. Pełna szerokość wiersza
   sprawia też, że opisy kategorii mieszczą się bez ucinania. */
.mys-mega__cats { display: flex; flex-direction: column; gap: 4px; }

.mys-theme .mys-megacat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border-radius: 14px;
	color: var(--mys-text);
	transition: background-color .18s ease;
}
.mys-theme .mys-megacat:hover { background: var(--mys-accent-soft); opacity: 1; }
.mys-megacat__ico {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	flex: none;
	border-radius: var(--mys-radius-pill);
	background: var(--mys-cat, var(--mys-accent));
	color: #fff;
}
.mys-megacat__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mys-megacat__top { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mys-megacat__name { font-weight: 600; font-size: 15px; line-height: 1.2; }

/* Licznik siedzi przy nazwie, a nie na końcu wiersza - inaczej zabierał
   szerokość opisowi i ten urywał się w połowie słowa. */
.mys-megacat__n {
	flex: none;
	padding: 2px 8px;
	border-radius: var(--mys-radius-pill);
	background: var(--mys-bg-alt);
	color: var(--mys-text-50);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.5;
}
.mys-megacat__desc {
	font-size: 12.5px;
	line-height: 1.45;
	color: var(--mys-text-55);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* --- kolumna produktów --- */

.mys-mega__picks { display: flex; flex-direction: column; gap: 6px; }

.mys-theme .mys-megaprod {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 8px 10px;
	border-radius: 14px;
	color: var(--mys-text);
	transition: background-color .18s ease;
}
.mys-theme .mys-megaprod:hover { background: var(--mys-bg-alt); opacity: 1; }
.mys-megaprod__img {
	flex: none;
	width: 62px;
	height: 48px;
	border-radius: 9px;
	overflow: hidden;
	background: var(--mys-bg-alt);
}
.mys-megaprod__img img { width: 100%; height: 100%; object-fit: contain; }
.mys-megaprod__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mys-megaprod__name {
	font-weight: 600;
	font-size: 14px;
	line-height: 1.25;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.mys-theme .mys-megaprod__price,
.mys-theme .mys-megaprod__price .amount,
.mys-theme .mys-megaprod__price bdi {
	font-family: var(--mys-font-head);
	font-weight: 700;
	font-size: 14.5px;
	color: var(--mys-accent-ink);
}
.mys-megaprod__price del { display: none; }
.mys-megaprod__price ins { text-decoration: none; }

/* --- panel CTA --- */

.mys-megacta {
	background: var(--mys-bg-lav);
	border-radius: 16px;
	padding: 20px;
}
.mys-megacta__title {
	display: block;
	font-family: var(--mys-font-head);
	font-weight: 700;
	font-size: 17px;
	line-height: 1.2;
	color: var(--mys-text);
}
.mys-megacta__text { margin: 8px 0 14px; font-size: 13px; line-height: 1.5; color: var(--mys-text-66); }
.mys-theme .mys-megacta .mys-btn { margin-bottom: 8px; }
.mys-theme .mys-megacta .mys-btn:last-child { margin-bottom: 0; }

/* --- stopka panelu --- */

.mys-mega__foot { background: var(--mys-bg-alt); border-top: 1px solid var(--mys-border); }
.mys-mega__footin {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 12px 24px;
	padding-block: 12px;
}
.mys-theme .mys-mega__footin .mys-textlink { font-size: 14.5px; padding: 4px 0; }
.mys-mega__note { font-size: 12.5px; color: var(--mys-text-55); }

/* Poniżej progu hamburgera megamenu nie istnieje - kategorie są w szufladzie. */
@media (max-width: 1179px) {
	.mys-mega { display: none; }
}

/* -------------------- WYSZUKIWARKA I CTA W NAGLOWKU -------------------- */

.mys-theme .mys-header__cta { white-space: nowrap; }
@media (max-width: 1100px) {
	/* Na waskim ekranie CTA schodzi do szuflady mobilnej. */
	.mys-theme .mys-header__cta { display: none; }
}

.mys-navdrawer__cta { margin-top: 22px; }

.mys-search {
	position: fixed;
	inset: 0;
	z-index: 90;
	display: flex;
	align-items: flex-start;
	justify-content: center;
}
.mys-search[hidden] { display: none; }
.mys-search__scrim {
	position: absolute;
	inset: 0;
	background: rgba(30, 27, 46, .55);
	opacity: 0;
	transition: opacity .22s ease;
}
.mys-search.is-open .mys-search__scrim { opacity: 1; }
.mys-search__box {
	position: relative;
	width: min(760px, calc(100% - 32px));
	margin-top: clamp(70px, 12vh, 140px);
	padding: 22px;
	background: var(--mys-surface);
	border-radius: var(--mys-radius-lg);
	box-shadow: 0 30px 70px rgba(30, 27, 46, .28);
	transform: translateY(-14px);
	opacity: 0;
	transition: transform .22s var(--mys-ease), opacity .22s ease;
}
.mys-search.is-open .mys-search__box { transform: none; opacity: 1; }
.mys-search__form {
	display: flex;
	align-items: center;
	gap: 10px;
}
.mys-search__ico { display: inline-flex; color: var(--mys-ink-soft); }
.mys-theme .mys-search__input {
	flex: 1 1 auto;
	min-width: 0;
	height: 50px;
	padding: 0 6px;
	border: 0;
	border-bottom: 1px solid var(--mys-border);
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-family: var(--mys-font-body);
	font-size: 17px;
	color: var(--mys-ink);
}
.mys-theme .mys-search__input:focus { outline: none; border-bottom-color: var(--mys-accent); }
.mys-theme .mys-search__input::-webkit-search-cancel-button { display: none; }
.mys-search__hints {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 16px;
	font-size: 14px;
	color: var(--mys-ink-soft);
}
.mys-theme .mys-search__hints a {
	padding: 5px 12px;
	background: var(--mys-bg-alt);
	border-radius: 999px;
	color: var(--mys-ink);
	text-decoration: none;
	transition: background .18s ease;
}
.mys-theme .mys-search__hints a:hover { background: color-mix(in srgb, var(--mys-accent) 14%, #FFFFFF); }
@media (max-width: 640px) {
	.mys-search__form { flex-wrap: wrap; }
	.mys-theme .mys-search__input { flex: 1 1 100%; order: -1; }
	.mys-search__ico { display: none; }
}

/* -------------------- POPUP NEWSLETTERA -------------------- */

/* Popup jest CIEMNY, tak jak sekcja newslettera na stronie - formularz
   (.mys-nlform) ma style pisane pod ciemne tlo, wiec na bialej karcie pola
   i podpisy robily sie niewidoczne. Zdjecie w tle + welon trzymaja kontrast. */
.mys-popup {
	position: fixed;
	inset: 0;
	z-index: 95;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
}
.mys-popup[hidden] { display: none; }
.mys-popup__scrim {
	position: absolute;
	inset: 0;
	background: rgba(30, 27, 46, .6);
	opacity: 0;
	transition: opacity .24s ease;
}
.mys-popup.is-open .mys-popup__scrim { opacity: 1; }
.mys-popup__box {
	position: relative;
	isolation: isolate;
	display: flex;
	width: min(600px, 100%);
	max-height: calc(100vh - 40px);
	overflow: hidden;
	background: var(--mys-brand);
	color: var(--mys-on-dark);
	border-radius: var(--mys-radius-lg);
	box-shadow: 0 34px 80px rgba(30, 27, 46, .44);
	transform: translateY(16px) scale(.98);
	opacity: 0;
	transition: transform .26s var(--mys-ease), opacity .26s ease;
}
.mys-popup.is-open .mys-popup__box { transform: none; opacity: 1; }
.mys-popup__bg {
	position: absolute;
	inset: 0;
	z-index: -2;
	background-size: cover;
	background-position: center;
	border-radius: inherit;
}
.mys-popup__veil {
	position: absolute;
	inset: 0;
	z-index: -1;
	border-radius: inherit;
	background:
		linear-gradient(180deg, rgba(30, 27, 46, .74) 0%, rgba(30, 27, 46, .9) 58%, rgba(30, 27, 46, .96) 100%);
}
.mys-popup__in {
	flex: 1 1 auto;
	min-width: 0;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: clamp(28px, 4vw, 44px);
}
.mys-theme .mys-popup__close {
	position: absolute;
	top: 14px;
	right: 14px;
	z-index: 2;
	background: rgba(246, 243, 238, .12);
	border-color: rgba(246, 243, 238, .22);
	color: var(--mys-on-dark);
}
.mys-theme .mys-popup__close:hover { background: rgba(246, 243, 238, .2); }
.mys-theme .mys-popup__title {
	margin: 10px 0 0;
	font-family: var(--mys-font-head);
	font-weight: 700;
	font-size: clamp(24px, 3vw, 32px);
	line-height: 1.16;
	color: var(--mys-on-dark);
}
.mys-theme .mys-popup__lead {
	margin: 12px 0 22px;
	font-size: 16px;
	line-height: 1.7;
	color: var(--mys-on-dark-70);
}
.mys-popup .mys-nlform { max-width: none; }

/* Nad zdjeciem przezroczyste pola z sekcji sa za slabe - podbijamy wypelnienie
   i ramke, zeby bylo widac, gdzie sie klika. */
.mys-theme .mys-popup .mys-nlform .mys-field__input {
	background: rgba(12, 10, 22, .5);
	border-color: rgba(246, 243, 238, .3);
	color: var(--mys-on-dark);
}
.mys-theme .mys-popup .mys-nlform .mys-field__input::placeholder { color: rgba(246, 243, 238, .55); }
.mys-theme .mys-popup .mys-nlform .mys-field__label { color: var(--mys-on-dark); }
.mys-theme .mys-popup .mys-check { color: var(--mys-on-dark-70); }
.mys-theme .mys-popup .mys-nlform__note { color: var(--mys-on-dark-70); }
.mys-theme .mys-popup .mys-nlform__done { background: rgba(12, 10, 22, .5); }

.mys-theme .mys-popup__no {
	display: block;
	width: 100%;
	margin-top: 16px;
	padding: 6px;
	border: 0;
	background: transparent;
	font-family: var(--mys-font-body);
	font-size: 14px;
	color: var(--mys-on-dark-70);
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.mys-theme .mys-popup__no:hover { color: var(--mys-on-dark); }

/* Podpis realizacji w stopce - link ma byc widoczny, ale nie krzykliwy. */
.mys-theme .mys-footer__goweb {
	color: inherit;
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 1px;
	transition: color .18s ease;
}
.mys-theme .mys-footer__goweb:hover { color: var(--mys-beige, var(--mys-on-dark)); }
