/* Spabi – nowy nagłówek z mega menu (propozycja). Tokeny jak w karcie i na stronie głównej. */
body.snk-naglowek {
	--snk-yellow: #ffcf01;
	--snk-yellow-hover: #f5c400;
	--snk-yellow-soft: #fff7d1;
	--snk-ink: #141414;
	--snk-text: #2b2b2b;
	--snk-muted: #6b6b6b;
	--snk-line: #e7e7e4;
	--snk-bg: #f6f6f3;
}
/* Motyw ma overflow: hidden na #view – wyłącza przyklejony nagłówek. clip przycina tak samo. */
@supports (overflow: clip) {
	body.snk-naglowek #view { overflow: visible; overflow-x: clip; }
}

.snk-header { position: relative; z-index: 60; background: #fff; color: var(--snk-text); font-size: 15px; line-height: 1.4; }
.snk-header *, .snk-drawer *, .snk-header *::before, .snk-header *::after { box-sizing: border-box; }
.snk-header a, .snk-drawer a { text-decoration: none; }
.snk-header p, .snk-drawer p { margin: 0; }
.snk-header ul, .snk-drawer ul { margin: 0; padding: 0; list-style: none; }
.snk-header .snk-ico, .snk-drawer .snk-ico { width: 20px; height: 20px; flex: none; }
.snk-hwrap { width: 100%; max-width: 1440px; margin: 0 auto; padding: 0 24px; }

/* Pasek informacyjny */
.snk-topbar { background: var(--snk-bg); border-bottom: 1px solid var(--snk-line); font-size: 13px; }
.snk-topbar__row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 36px; }
.snk-topbar__info { display: flex; align-items: center; gap: 8px; color: #4a4a4a; }
.snk-topbar__info .snk-ico { width: 16px; height: 16px; }
.snk-topbar__links { display: flex; align-items: center; gap: 22px; }
.snk-header .snk-topbar__links a { color: #3a3a3a; }
.snk-header .snk-topbar__links a:hover { color: var(--snk-ink); text-decoration: underline; text-decoration-color: var(--snk-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.snk-header .snk-topbar__tel { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--snk-ink) !important; }
.snk-topbar__tel .snk-ico { width: 15px; height: 15px; }

/* Główny wiersz (makieta: logo · kategorie · hurt · szukaj · konto · koszyk) */
.snk-hmain { position: relative; z-index: 2; background: #fff; border-bottom: 1px solid var(--snk-line); }
.snk-hmain__row {
	display: grid; align-items: center; column-gap: 18px;
	grid-template-columns: auto auto auto minmax(240px, 1fr) auto auto;
	grid-template-areas: "logo nav b2b search konto koszyk";
	min-height: 84px;
}
.snk-burger { grid-area: burger; display: none; }
.snk-logo { grid-area: logo; display: inline-flex; align-items: center; }
.snk-logo img { display: block; width: auto !important; height: 44px !important; max-width: none; }
.snk-nav { grid-area: nav; align-self: stretch; }
.snk-hb2b { grid-area: b2b; }
.snk-hsearch { grid-area: search; }
.snk-hicon:not(.shopping-bag-button) { grid-area: konto; }
.snk-hicon.shopping-bag-button { grid-area: koszyk; }

.snk-nav__list { display: flex; height: 100%; }
.snk-nav__item { position: static; display: flex; }
.snk-header .snk-nav__link {
	position: relative; display: flex; align-items: center; gap: 5px; padding: 0 10px;
	font-size: 16px; font-weight: 600; color: var(--snk-ink); white-space: nowrap;
}
.snk-nav__link .snk-ico { width: 18px; height: 18px; transition: transform .15s; }
.snk-nav__link::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--snk-yellow); transform: scaleX(0); transition: transform .15s; }
.snk-nav__item.is-open .snk-nav__link::after,
.snk-nav__link:hover::after { transform: scaleX(1); }
.snk-nav__item.is-open .snk-nav__link .snk-ico { transform: rotate(180deg); }

.snk-header .snk-hb2b, .snk-drawer .snk-hb2b {
	display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 14px 0 16px; border-radius: 10px;
	background: var(--snk-yellow); color: var(--snk-ink); font-size: 15px; font-weight: 700; white-space: nowrap;
}
.snk-header .snk-hb2b:hover, .snk-drawer .snk-hb2b:hover { background: var(--snk-yellow-hover); color: var(--snk-ink); }
.snk-hb2b .snk-ico--prawo { width: 16px; height: 16px; }

.snk-hsearch { display: flex; height: 48px; border: 1px solid #cfcfca; border-radius: 10px; overflow: hidden; background: #fff; }
.snk-hsearch:focus-within { border-color: var(--snk-ink); box-shadow: 0 0 0 3px var(--snk-yellow-soft); }
.snk-header .snk-hsearch input[type="search"] { flex: 1; min-width: 0; height: 100%; margin: 0; padding: 0 14px; border: 0; border-radius: 0; background: transparent; box-shadow: none; font-size: 15px; color: var(--snk-ink); }
.snk-header .snk-hsearch input[type="search"]:focus { outline: none; }
.snk-header .snk-hsearch button { display: flex; align-items: center; justify-content: center; width: 54px; height: 100%; margin: 0; padding: 0; border: 0; border-radius: 0; background: var(--snk-yellow); color: var(--snk-ink); cursor: pointer; }
.snk-header .snk-hsearch button:hover { background: var(--snk-yellow-hover); }
.snk-hsearch button .snk-ico { width: 22px; height: 22px; }

.snk-header .snk-hicon { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 52px; font-size: 13px; font-weight: 500; color: var(--snk-ink); }
.snk-hicon .snk-ico { width: 26px; height: 26px; }
.snk-header .snk-hicon .shop-cart-count {
	position: absolute; top: -6px; right: 4px; display: flex; align-items: center; justify-content: center;
	min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--snk-yellow); color: var(--snk-ink);
	font-size: 12px; font-weight: 700; line-height: 1;
}
.snk-header .snk-hicon .shop-cart-count.hide { display: none; }

/* Mega menu – pełna szerokość pod wierszem nagłówka */
.snk-mega {
	position: absolute; left: 0; right: 0; top: 100%; z-index: 3;
	padding: 28px 0 22px; background: #fff; border-top: 1px solid var(--snk-line);
	box-shadow: 0 28px 48px rgba(20, 20, 20, .14);
	visibility: hidden; opacity: 0; transform: translateY(-6px);
	transition: opacity .16s ease, transform .16s ease, visibility 0s linear .16s;
}
.snk-nav__item.is-open > .snk-mega,
.snk-nav__item:focus-within > .snk-mega { visibility: visible; opacity: 1; transform: none; transition-delay: 0s; }

.snk-mega__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 280px; gap: 40px; }
.snk-mega__head { margin-bottom: 10px !important; font-size: 15px; font-weight: 700; color: var(--snk-ink); }
.snk-mega__head + .snk-mega__list--plain + .snk-mega__head { margin-top: 20px !important; }
.snk-header .snk-mega__head a, .snk-drawer .snk-mega__head a { color: var(--snk-ink); }
.snk-header .snk-mega__head a:hover, .snk-drawer .snk-mega__head a:hover { text-decoration: underline; text-decoration-color: var(--snk-yellow); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.snk-mega__sub { font-size: 13px; font-weight: 400; color: var(--snk-muted); }

.snk-header .snk-mega__list a, .snk-drawer .snk-mega__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid #efefeb; font-size: 15px; color: var(--snk-text); }
.snk-header .snk-mega__list a:hover, .snk-drawer .snk-mega__list a:hover { color: var(--snk-ink); }
.snk-mega__list a:hover span:first-child { text-decoration: underline; text-decoration-color: var(--snk-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.snk-header .snk-mega__list--plain a, .snk-drawer .snk-mega__list--plain a { display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding: 6px 0; border: 0; line-height: 1.35; }
.snk-header .snk-mega__list--plain a:hover, .snk-drawer .snk-mega__list--plain a:hover { text-decoration: underline; text-decoration-color: var(--snk-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.snk-mega__price { flex: none; font-size: 14px; color: var(--snk-muted); white-space: nowrap; }
.snk-mega .snk-dot, .snk-drawer .snk-dot { display: inline-block; width: 14px; height: 14px; border-radius: 50%; box-shadow: 0 0 0 1px #b9b9b4; }

.snk-mega__cols--zestawy { grid-template-columns: repeat(2, minmax(0, 1fr)) 280px; }
.snk-mega__count { color: var(--snk-muted); font-weight: 400; }
.snk-mega__cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px !important; }
.snk-header .snk-mega__cats a, .snk-drawer .snk-mega__cats a { display: inline-flex; align-items: center; gap: 4px; padding: 6px 12px; border-radius: 999px; background: var(--snk-bg); font-size: 14px; font-weight: 600; color: var(--snk-ink); }
.snk-header .snk-mega__cats a:hover, .snk-drawer .snk-mega__cats a:hover { background: var(--snk-yellow-soft); }
.snk-mega__sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.snk-header .snk-mega__sizes a, .snk-drawer .snk-mega__sizes a {
	display: flex; flex-direction: column; padding: 9px 12px; border: 1px solid #e3e3df; border-radius: 10px; color: var(--snk-text);
	transition: border-color .12s, background-color .12s;
}
.snk-header .snk-mega__sizes a:hover, .snk-drawer .snk-mega__sizes a:hover { border-color: var(--snk-ink); background: var(--snk-yellow-soft); }
.snk-mega__sizes strong { font-size: 15px; font-weight: 700; color: var(--snk-ink); white-space: nowrap; }
.snk-mega__sizes span { font-size: 12px; color: var(--snk-muted); }

.snk-header .snk-mega__promo, .snk-drawer .snk-mega__promo { display: flex; flex-direction: column; padding: 18px; border-radius: 14px; background: var(--snk-bg); color: var(--snk-text); }
.snk-mega__promo img { width: 100% !important; height: 120px !important; object-fit: contain; mix-blend-mode: multiply; margin-bottom: 10px; }
.snk-mega__promo-title { font-size: 17px; font-weight: 700; line-height: 1.25; color: var(--snk-ink); }
.snk-mega__promo-text { margin-top: 4px; font-size: 14px; color: var(--snk-muted); }
.snk-mega__promo-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; font-weight: 700; color: var(--snk-ink); text-decoration: underline; text-decoration-color: var(--snk-yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.snk-mega__promo-link .snk-ico { width: 16px; height: 16px; }

.snk-mega__cols--akcesoria { display: block; }
.snk-mega__products { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px 24px; }
.snk-header .snk-mega__products a, .snk-drawer .snk-mega__products a { display: grid; grid-template-columns: 60px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 8px; border-radius: 12px; color: var(--snk-text); }
.snk-header .snk-mega__products a:hover, .snk-drawer .snk-mega__products a:hover { background: var(--snk-bg); }
.snk-mega__products img { grid-row: span 2; width: 60px !important; height: 60px !important; object-fit: contain; border-radius: 8px; background: var(--snk-bg); mix-blend-mode: multiply; }
.snk-mega__pname { align-self: end; font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--snk-ink); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.snk-mega__products .snk-mega__price { align-self: start; font-size: 13px; }
.snk-mega__products .snk-mega__price .iworks-omnibus, .snk-mega__products .snk-mega__price .woocommerce-price-suffix { display: none; }
.snk-mega__products .snk-mega__price del { opacity: .7; }
.snk-mega__products .snk-mega__price ins { text-decoration: none; }

.snk-mega__all { margin-top: 20px !important; padding-top: 16px; border-top: 1px solid var(--snk-line); }
.snk-header .snk-mega__all a, .snk-drawer .snk-mega__all a { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--snk-ink); text-decoration: underline; text-decoration-color: var(--snk-yellow); text-decoration-thickness: 3px; text-underline-offset: 5px; }

.snk-mega-backdrop { position: fixed; inset: 0; z-index: 1; background: rgba(20, 20, 20, .35); opacity: 0; pointer-events: none; transition: opacity .16s; }
body.snk-mega-open .snk-mega-backdrop { opacity: 1; pointer-events: auto; }

/* Desktop: pasek informacyjny odjeżdża, wiersz z kategoriami, szukaniem i koszykiem zostaje */
@media (min-width: 1024px) {
	.snk-header { position: sticky; top: calc(-1 * var(--snk-topbar-h, 37px)); }
	.snk-header.is-stuck .snk-hmain { box-shadow: 0 6px 18px rgba(20, 20, 20, .08); }
}

/* Węższy desktop: kategorie w drugim wierszu */
@media (min-width: 1024px) and (max-width: 1359px) {
	.snk-hmain__row {
		grid-template-columns: auto minmax(200px, 1fr) auto auto auto;
		grid-template-areas: "logo search b2b konto koszyk" "nav nav nav nav nav";
		min-height: 0; padding-top: 14px;
	}
	.snk-nav { margin: 6px 0 0 -10px; }
	.snk-header .snk-nav__link { min-height: 50px; }
}

/* Telefon i tablet: hamburger, logo, konto, koszyk; wyszukiwarka pod spodem */
@media (max-width: 1023px) {
	.snk-topbar, .snk-nav, .snk-header .snk-hb2b { display: none; }
	.snk-hwrap { padding: 0 16px; }
	.snk-hmain__row {
		grid-template-columns: 44px auto 1fr 48px 48px;
		grid-template-areas: "burger logo . konto koszyk" "search search search search search";
		column-gap: 8px; row-gap: 10px; min-height: 0; padding-top: 10px; padding-bottom: 12px;
	}
	.snk-header .snk-burger { display: flex; align-items: center; justify-content: center; width: 44px; max-width: none; height: 44px; margin: 0 0 0 -8px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--snk-ink); }
	.snk-burger .snk-ico { width: 26px; height: 26px; }
	.snk-logo { min-height: 44px; }
	.snk-logo img { height: 34px !important; }
	.snk-hsearch { height: 46px; }
	.snk-header .snk-hicon { min-width: 44px; min-height: 44px; justify-content: center; font-size: 12px; }
	.snk-hicon .snk-ico { width: 24px; height: 24px; }
}

/* Szuflada menu (telefon) */
.snk-drawer {
	position: fixed; inset: 0 auto 0 0; width: min(420px, 92vw); max-width: none; height: 100dvh; max-height: none;
	margin: 0; padding: 0 0 24px; border: 0; background: #fff; color: var(--snk-text); overflow-y: auto;
	font-size: 15px; line-height: 1.4;
}
.snk-drawer::backdrop { background: rgba(20, 20, 20, .45); }
.snk-drawer__head { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; background: #fff; border-bottom: 1px solid var(--snk-line); }
.snk-drawer .snk-logo img { height: 32px !important; }
.snk-drawer .snk-drawer__close { display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 0; border-radius: 10px; background: var(--snk-bg); color: var(--snk-ink); }
.snk-drawer__close .snk-ico { width: 22px; height: 22px; }
.snk-acc { border-bottom: 1px solid var(--snk-line); }
.snk-acc summary { display: flex; align-items: center; justify-content: space-between; padding: 16px; font-size: 17px; font-weight: 700; color: var(--snk-ink); list-style: none; cursor: pointer; }
.snk-acc summary::-webkit-details-marker { display: none; }
.snk-acc summary .snk-ico { transition: transform .15s; }
.snk-acc[open] summary .snk-ico { transform: rotate(180deg); }
.snk-acc__body { padding: 0 16px 18px; }
.snk-drawer .snk-mega__cols { display: flex; flex-direction: column; gap: 20px; }
.snk-drawer .snk-mega__sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.snk-drawer .snk-mega__products { grid-template-columns: 1fr; }
.snk-drawer .snk-mega__promo { display: none; }
/* Szuflada: wszystkie linki z celem dotyku min. 44 px */
.snk-drawer .snk-mega__list--plain a { min-height: 44px; padding: 10px 0; }
.snk-drawer .snk-mega__cats a { min-height: 44px; padding: 10px 14px; }
.snk-drawer .snk-mega__list a { min-height: 44px; align-items: center; }
.snk-drawer .snk-hb2b--block { display: flex; justify-content: center; margin: 20px 16px 0; }
.snk-drawer__links { margin: 16px 0 0 !important; padding: 0 16px !important; }
.snk-drawer__links a { display: block; padding: 10px 0; font-size: 16px; color: var(--snk-ink); border-bottom: 1px solid #efefeb; }
.snk-drawer__contact { display: flex; flex-direction: column; gap: 10px; margin-top: 18px !important; padding: 0 16px; }
.snk-drawer__contact a { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--snk-ink); }

@media (prefers-reduced-motion: reduce) {
	.snk-mega, .snk-mega-backdrop, .snk-nav__link::after { transition: none !important; }
}

/* Koszyk blokowy WooCommerce na telefonie: cena wypadała poza ekran – WooCommerce ma siatkę 80px 132px,
   a cenę w dodatkowej kolumnie rozpychała niezawijana plakietka „Oszczędzasz …”. Zostawiamy jego układ
   (cena po prawej), ale kolumna nazwy jest elastyczna, kolumna ceny ma szerokość treści, plakietka się zawija. */
body .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row { grid-template-columns: 80px minmax(0, 1fr) auto; }
body .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__product { grid-column: 2 / 3; min-width: 0; }
body .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-items__row .wc-block-cart-item__total { grid-column: 3; min-width: 0; max-width: 96px; }
body .wc-block-cart.is-mobile table.wc-block-cart-items .wc-block-cart-item__total .wc-block-components-product-badge { white-space: normal; text-align: right; }
