/* Medatech – style główne. Mobile-first (360px → 1920px). Fonty hostowane lokalnie, font-display: swap. */

@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Inter; font-style: normal; font-weight: 100 900; font-display: swap; src: url("../fonts/inter-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: Manrope; font-style: normal; font-weight: 200 800; font-display: swap; src: url("../fonts/manrope-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
	/* Paleta dopasowana do logo: czerń, biel, ciemna zieleń (kontrast akcentu z bielą 7,1:1). */
	--ink: #101418;
	--ink-soft: #4a5560;
	--accent: #0f6619;
	--accent-dark: #0a4d12;
	--accent-bright: #34b24d;
	--bg: #f5f7f5;
	--tile: #e5ece6;
	--white: #fff;
	--line: #d6ddd7;
	--danger: #b3261e;
	--r: 10px;
	--font-head: Manrope, system-ui, sans-serif;
	--font-text: Inter, system-ui, sans-serif;
	--gutter: 16px;
	--max: 1240px;
	--shadow: 0 6px 24px rgba(16, 20, 24, .09);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1rem/1.6 var(--font-text); color: var(--ink); background: var(--bg); }
img, svg, video { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; letter-spacing: -.01em; margin: 0 0 .6em; }
h1 { font-size: clamp(1.75rem, 4vw, 2.75rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); font-weight: 700; }
a { color: var(--accent); text-underline-offset: 3px; }
a:hover { color: var(--accent-dark); }
p { margin: 0 0 1em; }

/* Dostępność */
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: absolute; left: 8px; top: -60px; z-index: 1000; background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--r); }
.skip-link:focus { top: 8px; }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.container { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.container-narrow { max-width: 780px; }
.site-main { padding-block: 24px 56px; min-height: 50vh; }
.page-title { margin-bottom: .5em; }
.eyebrow { font: 700 .8rem var(--font-head); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: .6em; }

/* Przyciski i formularze */
.btn, .button, button.button, .woocommerce a.button, .wp-element-button,
.single_add_to_cart_button, input[type=submit] {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 24px;
	font: 700 1rem var(--font-head); color: #fff; background: var(--accent); border: 2px solid var(--accent);
	border-radius: var(--r); text-decoration: none; cursor: pointer; transition: background .15s;
}
.btn:hover, .button:hover, .single_add_to_cart_button:hover, input[type=submit]:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.button.alt, .button.checkout { background: var(--ink); border-color: var(--ink); }
input[type=text], input[type=email], input[type=tel], input[type=search], input[type=number], input[type=password], select, textarea {
	width: 100%; min-height: 48px; padding: 10px 14px; font: inherit; color: var(--ink); background: #fff;
	border: 1px solid #8a97a8; border-radius: var(--r);
}
label { display: block; font-weight: 600; margin-bottom: 4px; }
.icon { stroke: currentColor; }
.icon-btn { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; color: var(--ink); background: none; border: 0; border-radius: var(--r); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--tile); color: var(--ink); }
.cart-count { position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; font: 700 .75rem/20px var(--font-head); text-align: center; color: #fff; background: var(--accent); border-radius: 10px; }

/* Pasek informacyjny */
.topbar { background: var(--ink); color: #fff; font-size: .875rem; text-align: center; }
.topbar p { margin: 0; padding: 8px 0; }

/* Nagłówek */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--white); border-bottom: 1px solid var(--line); }
.header-row { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 8px; min-height: 64px; }
.site-logo { justify-self: center; text-decoration: none; color: var(--ink); }
.logo-img, .custom-logo { display: block; height: 38px; width: auto; }
.footer-logo { height: 40px; width: auto; margin-bottom: 14px; }
@media (min-width: 900px) { .logo-img, .custom-logo { height: 46px; } }
.header-actions { display: flex; }
.header-search-wrap { grid-column: 1 / -1; grid-row: 2; padding-bottom: 10px; }
.header-search { display: flex; }
.popular { display: none; margin: 6px 0 0; font-size: .8rem; color: var(--ink-soft); }
.popular a { margin-left: 10px; color: var(--ink); text-decoration: none; }
.popular a:hover { color: var(--accent); text-decoration: underline; }
.account-link { display: none; align-items: center; gap: 8px; padding: 0 10px; min-height: 48px; font-weight: 600; color: var(--ink); text-decoration: none; border-radius: var(--r); }
.account-link:hover { background: var(--tile); color: var(--ink); }
.topbar-row { display: flex; justify-content: center; align-items: center; gap: 24px; }
.topbar-links { display: none; list-style: none; margin: 0; padding: 0; gap: 20px; }
.topbar-links a { color: #fff; text-decoration: none; }
.topbar-links a:hover { text-decoration: underline; color: #fff; }
.header-search input[type=search] { border-radius: var(--r) 0 0 var(--r); border-right: 0; }
.header-search .icon-btn { border: 1px solid #8a97a8; border-radius: 0 var(--r) var(--r) 0; background: var(--tile); }
.header-search { position: relative; }
.search-suggest { position: absolute; top: calc(100% - 6px); left: 0; right: 0; z-index: 70; max-height: 70vh; overflow-y: auto; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
.search-suggest[hidden] { display: none; }
.sg-head { padding: 10px 14px 4px; font: 700 .75rem var(--font-head); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-soft); }
.sg-item { display: flex; align-items: center; gap: 10px; padding: 8px 14px; color: var(--ink); text-decoration: none; }
.sg-item span { flex: 1; font-weight: 600; font-size: .95rem; }
.sg-item small { color: var(--ink-soft); white-space: nowrap; }
.sg-item img { border-radius: 6px; object-fit: contain; }
.sg-item:hover, .sg-item.is-active { background: var(--tile); color: var(--ink); }
.sg-empty { padding: 14px; color: var(--ink-soft); }
.primary-nav { display: none; border-top: 1px solid var(--line); background: var(--white); }
.primary-nav.is-open { display: block; }
.primary-nav .menu, .footer-menu { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu a { display: block; padding: 14px 4px; font: 700 1.05rem var(--font-head); color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.primary-nav .menu a:hover { color: var(--accent); }
.primary-nav .sub-menu { list-style: none; padding-left: 14px; margin: 0; }

@media (min-width: 900px) {
	.header-row { grid-template-columns: auto minmax(240px, 1fr) auto; gap: 24px; min-height: 76px; }
	.nav-toggle { display: none; }
	.site-logo { justify-self: start; grid-column: 1; grid-row: 1; }
	.header-search-wrap { grid-column: 2; grid-row: 1; padding: 8px 0; max-width: 620px; }
	.popular { display: block; }
	.account-link { display: inline-flex; }
	.topbar-row { justify-content: space-between; }
	.topbar-links { display: flex; }
	.header-actions { grid-column: 3; align-items: center; }
	.primary-nav .mega > li > a { padding-inline: 4px; }
	.primary-nav .mega { gap: 32px; }
	.has-panel { position: static !important; }
	.primary-nav .container { position: relative; }
	.mega-panel { display: none; position: absolute; left: var(--gutter); top: 100%; z-index: 80; min-width: 280px; padding: 14px 8px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 var(--r) var(--r); box-shadow: var(--shadow); }
	.has-panel:hover > .mega-panel, .has-panel:focus-within > .mega-panel { display: block; }
	.mega-panel ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
	.mega-panel a { display: block; padding: 8px 14px; font-weight: 600; border-radius: 6px; }
	.mega-panel a:hover { background: var(--tile); }
	.mega-all a { color: var(--accent); }
	.mega-panel .count { color: var(--ink-soft); font-weight: 400; }
	.menu-info { margin-left: auto; }
	.menu-info + .menu-info { margin-left: 0; }
	.primary-nav { display: block; border-top: 0; }
	.primary-nav .menu { display: flex; gap: 28px; }
	.primary-nav .menu a { padding: 10px 0 14px; border: 0; font-size: 1rem; }
	.primary-nav .menu > li { position: relative; }
	.primary-nav .sub-menu { display: none; position: absolute; top: 100%; left: 0; min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); }
	.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { display: block; }
	.primary-nav .sub-menu a { padding: 8px 12px; font-weight: 600; }
}

/* Megamenu – mobile: podkategorie jako zagnieżdżona lista */
.mega-panel ul { list-style: none; margin: 0; padding: 0 0 6px 14px; }
.mega-panel a { display: block; padding: 8px 4px; font: 500 .95rem var(--font-text); color: var(--ink-soft); text-decoration: none; }
.mega-all a { font-weight: 700; color: var(--accent); }

/* Slider hero (scroll-snap, bez zależności) */
.hero-slider { position: relative; background: linear-gradient(180deg, var(--white), var(--tile)); }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; scroll-behavior: smooth; }
.slides::-webkit-scrollbar { display: none; }
.hero-slider { overflow: hidden; }
.slide { position: relative; flex: 0 0 100%; scroll-snap-align: start; } /* position: relative – ukryte etykiety sr-only nie mogą rozpychać strony poza kontenerem przewijania */
.slide-inner { display: grid; gap: 16px; align-items: center; padding-block: 28px 56px; }
.slide-title { font-size: clamp(1.6rem, 4.5vw, 2.8rem); font-weight: 800; max-width: 16ch; }
.slide-img { width: min(70%, 360px); height: auto; aspect-ratio: 1; object-fit: contain; justify-self: center; background: #fff; border-radius: var(--r); }
.slider-controls { position: absolute; right: var(--gutter); bottom: 10px; display: flex; gap: 6px; }
.slider-controls .icon-btn { background: #fff; border: 1px solid var(--line); }
.slider-controls [data-slide="-1"] svg { transform: scaleX(-1); }
@media (min-width: 800px) { .slide-inner { grid-template-columns: 1.1fr .9fr; padding-block: 44px 64px; } .slide-img { width: min(100%, 440px); } }

/* Sekcje działowe */
.dept-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.dept-head .section-title { margin-bottom: 8px; }
.dept-all { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 16px; padding: 0; }
.chips a { display: inline-flex; align-items: center; min-height: 36px; padding: 4px 14px; font-weight: 600; font-size: .9rem; color: var(--ink); text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.chips a:hover { border-color: var(--accent); color: var(--accent); }
.tiles.tiles-4 { grid-template-columns: 1fr; }
@media (min-width: 600px) { .tiles.tiles-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .tiles.tiles-4 { grid-template-columns: repeat(4, 1fr); } }
.dept { border-top: 1px solid var(--line); }
.promo { border-top: 1px solid var(--line); }

/* Dlaczego Medatech */
.why { background: var(--white); border-block: 1px solid var(--line); }
.why-grid { list-style: none; counter-reset: why; margin: 0; padding: 0; display: grid; gap: 16px; }
.why-grid li { counter-increment: why; position: relative; padding: 18px 18px 18px 64px; background: var(--bg); border-radius: var(--r); display: grid; gap: 4px; }
.why-grid li::before { content: counter(why); position: absolute; left: 16px; top: 16px; width: 34px; height: 34px; display: grid; place-items: center; font: 800 1rem var(--font-head); color: #fff; background: var(--accent); border-radius: 50%; }
.why-grid span { color: var(--ink-soft); }
@media (min-width: 800px) { .why-grid { grid-template-columns: repeat(4, 1fr); } .why-grid li { padding: 64px 18px 18px; } }
.usp-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .usp-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .usp-4 { grid-template-columns: repeat(4, 1fr); } }
.blog-grid { display: grid; gap: 16px; }
.blog-grid .post-card img { border-radius: 6px; margin-bottom: 12px; }
@media (min-width: 800px) { .blog-grid { grid-template-columns: repeat(3, 1fr); } }

/* Newsletter i stopka 4-kolumnowa */
.footer-newsletter { background: #0b0e11; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.nl-inner { display: grid; gap: 16px; padding-block: 28px; align-items: center; }
.nl-inner h2 { color: #fff; margin: 0 0 4px; font-size: 1.4rem; }
.nl-inner p { margin: 0; }
.nl-row { display: flex; gap: 8px; }
.nl-row input { flex: 1; min-width: 0; }
.nl-consent { display: block; margin-top: 8px; font-size: .78rem; font-weight: 400; color: #aeb8b1; }
.nl-msg { margin: 8px 0 0; color: #7fe39a; font-weight: 600; }
.nl-err { color: #ff9b94; }
@media (min-width: 800px) { .nl-inner { grid-template-columns: 1fr 1.2fr; } }
.footer-grid-4 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .footer-grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .footer-grid-4 { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }

/* Hero i sekcje strony głównej */
.hero { background: linear-gradient(180deg, var(--white), var(--tile)); }
.hero-inner { padding-block: 56px 64px; max-width: var(--max); }
.hero h1 { max-width: 18ch; }
.hero-lead { max-width: 52ch; font-size: 1.15rem; color: var(--ink-soft); }
.section { padding-block: 40px; }
.section-title { margin-bottom: 20px; }
.tiles { display: grid; gap: 16px; }
.tile { display: flex; flex-direction: column; gap: 8px; padding: 24px; color: var(--ink); background: var(--white); border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; transition: box-shadow .2s, transform .2s; }
.tile:hover { box-shadow: var(--shadow); transform: translateY(-2px); color: var(--ink); }
.tile .icon { color: var(--accent); }
.tile-title { font: 800 1.35rem var(--font-head); }
.tile-text { color: var(--ink-soft); }
.tile-more { margin-top: auto; display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--accent); }
.usp { background: var(--ink); color: #fff; }
.usp-grid { display: grid; gap: 24px; padding-block: 36px; }
.usp-item { display: grid; gap: 4px; }
.usp-item .icon { color: var(--accent-bright); margin-bottom: 6px; }
.usp-item span { color: #c4ccc6; }
.about { max-width: 780px; }
@media (min-width: 700px) { .tiles { grid-template-columns: repeat(3, 1fr); } .usp-grid { grid-template-columns: repeat(3, 1fr); } }

/* Lista produktów (markup WooCommerce) */
ul.products { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.woocommerce ul.products[class*=columns-] li.product, ul.products li.product { position: relative; display: flex; flex-direction: column; margin: 0; padding: 12px; background: var(--white); border: 1px solid var(--line); border-radius: var(--r); width: auto; float: none; }
ul.products li.product a { color: inherit; text-decoration: none; }
ul.products li.product a.woocommerce-LoopProduct-link { display: flex; flex-direction: column; flex: 1; } /* cena i przycisk wyrównane do dołu karty */
ul.products li.product img { width: 100%; aspect-ratio: 1; object-fit: contain; background: #fff; border-radius: 6px; margin-bottom: 10px; }
.woocommerce-loop-product__title { font: 700 .95rem/1.35 var(--font-head); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
ul.products li.product .price { margin-top: auto; font: 800 1.1rem var(--font-head); color: var(--ink); }
ul.products li.product .price del { font-weight: 500; font-size: .85rem; color: var(--ink-soft); display: block; }
ul.products li.product .price ins { text-decoration: none; }
ul.products li.product a.button { color: #fff; }
ul.products li.product a.button:hover { color: #fff; }
ul.products li.product .button { margin-top: 10px; min-height: 44px; padding: 8px 14px; font-size: .9rem; width: 100%; }
.onsale { position: absolute; top: 18px; left: 18px; z-index: 2; padding: 2px 10px; font: 700 .8rem var(--font-head); color: #fff; background: var(--danger); border-radius: 20px; }
@media (min-width: 700px) { ul.products { grid-template-columns: repeat(3, 1fr); gap: 16px; } }
@media (min-width: 1000px) { ul.products { grid-template-columns: repeat(4, 1fr); } }

/* Filtry i ulubione */
.shop-filters { margin-bottom: 20px; }
.shop-filters fieldset { display: flex; flex-wrap: wrap; align-items: end; gap: 12px 16px; margin: 0; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
.shop-filters legend { font: 700 .8rem var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-soft); padding: 0 6px; }
.filter-price { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filter-price label { margin: 0; font-weight: 500; }
.filter-price input { width: 110px; }
.filter-stock { display: flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; }
.shop-filters .btn { min-height: 44px; padding: 8px 18px; }
[aria-busy="true"] { opacity: .5; transition: opacity .15s; }
.wish-btn { position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; color: var(--ink); background: rgba(255, 255, 255, .92); border: 1px solid var(--line); border-radius: 50%; cursor: pointer; }
.wish-btn[aria-pressed="true"] { color: #fff; background: var(--accent); border-color: var(--accent); }
.wish-btn[aria-pressed="true"] svg { fill: currentColor; }
.single-product .summary { position: relative; }
.single-product .summary .wish-btn { top: 0; }

/* Archiwum */
.woocommerce-breadcrumb { font-size: .875rem; color: var(--ink-soft); margin-bottom: 16px; }
.woocommerce-breadcrumb a { color: var(--ink-soft); }
.woocommerce-result-count { margin: 0 0 12px; color: var(--ink-soft); font-size: .9rem; }
.woocommerce-ordering { margin-bottom: 16px; }
.woocommerce-pagination ul, .navigation .page-numbers { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 32px 0 0; justify-content: center; }
.page-numbers { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 0 12px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); text-decoration: none; color: var(--ink); }
.page-numbers.current { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Karta produktu */
.single-product div.product { display: grid; gap: 24px; }
.single-product .woocommerce-product-gallery { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.single-product .woocommerce-product-gallery__wrapper { margin: 0; }
.single-product .flex-control-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; list-style: none; margin: 12px 0 0; padding: 0; }
.single-product .flex-control-thumbs img { border: 1px solid var(--line); border-radius: 6px; cursor: pointer; opacity: .7; }
.single-product .flex-control-thumbs img.flex-active { opacity: 1; border-color: var(--accent); }
.single-product .product_title { font-size: clamp(1.4rem, 3vw, 2rem); }
.single-product .summary .price { font: 800 1.8rem var(--font-head); display: block; margin-bottom: 12px; }
.single-product .summary .price del { font-size: 1rem; font-weight: 500; color: var(--ink-soft); }
.single-product .summary .price ins { text-decoration: none; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.single-product .quantity input { width: 84px; text-align: center; }
.single-product .woocommerce-tabs ul.tabs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; border-bottom: 1px solid var(--line); }
.single-product .woocommerce-tabs ul.tabs a { display: block; padding: 12px 16px; font-weight: 700; color: var(--ink-soft); text-decoration: none; border-bottom: 3px solid transparent; }
.single-product .woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--accent); }
.single-product .entry-summary, .woocommerce-Tabs-panel { overflow-wrap: anywhere; }
.woocommerce-Tabs-panel img { margin-block: 12px; border-radius: 6px; }
.woocommerce-Tabs-panel h1, .woocommerce-Tabs-panel h2 { font-size: 1.25rem; }
.stock.in-stock { color: var(--accent-dark); font-weight: 600; }
.stock.out-of-stock { color: var(--danger); font-weight: 600; }
.related.products, .upsells.products { margin-top: 48px; }
@media (min-width: 900px) {
	.single-product div.product { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
	.single-product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
}

/* Komunikaty WooCommerce */
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; margin: 0 0 20px; padding: 14px 16px; background: #fff; border-left: 4px solid var(--accent); border-radius: var(--r); display: flex; flex-wrap: wrap; align-items: center; gap: 12px; justify-content: space-between; }
.woocommerce-error { border-color: var(--danger); }

/* Drawer mini-koszyka */
.drawer-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(16, 20, 24, .55); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; z-index: 100; width: min(420px, 100%); display: flex; flex-direction: column; background: #fff; box-shadow: -8px 0 32px rgba(0, 0, 0, .15); }
.drawer[hidden], .drawer-overlay[hidden] { display: none; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 8px 20px; border-bottom: 1px solid var(--line); }
.drawer-head h2 { margin: 0; font-size: 1.2rem; }
.drawer .widget_shopping_cart_content { flex: 1; overflow-y: auto; padding: 16px 20px; display: flex; flex-direction: column; }
.woocommerce-mini-cart { list-style: none; margin: 0; padding: 0; }
.woocommerce-mini-cart-item { position: relative; display: grid; grid-template-columns: 64px 1fr; gap: 4px 12px; padding: 12px 28px 12px 0; border-bottom: 1px solid var(--line); }
.woocommerce-mini-cart-item img { grid-row: span 2; width: 64px; height: 64px; object-fit: contain; }
.woocommerce-mini-cart-item a:not(.remove) { font-weight: 600; color: var(--ink); text-decoration: none; }
.woocommerce-mini-cart-item .remove { position: absolute; top: 10px; right: 0; width: 28px; height: 28px; line-height: 26px; text-align: center; font-size: 1.3rem; text-decoration: none; color: var(--ink-soft); border-radius: 50%; }
.woocommerce-mini-cart__total { display: flex; justify-content: space-between; margin: 16px 0; font-weight: 700; }
.woocommerce-mini-cart__buttons { display: grid; gap: 8px; margin-top: auto; }

/* Stopka */
.site-footer { margin-top: 48px; background: var(--ink); color: #c4ccc6; }
.site-footer a { color: #fff; }
.footer-grid { display: grid; gap: 28px; padding-block: 40px; }
.footer-title { font: 800 1rem var(--font-head); color: #fff; margin-bottom: 10px; }
.footer-menu li { margin-bottom: 6px; }
.footer-bottom { padding-block: 16px; border-top: 1px solid rgba(255, 255, 255, .15); font-size: .875rem; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr; } }

/* Specyfikacja, Omnibus, ostrzeżenia */
.spec-table { width: 100%; border-collapse: collapse; margin-bottom: 16px; }
.spec-table th, .spec-table td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.spec-table th { width: 45%; font-weight: 600; color: var(--ink-soft); }
.omnibus { display: block; margin-top: 4px; font: 400 .8rem/1.4 var(--font-text); color: var(--ink-soft); }
.omnibus .amount { font-weight: 600; }
.notice-safety, .notice-weee { padding: 12px 14px; border-radius: var(--r); background: #fff7e0; border: 1px solid #e6cf85; }
.notice-weee { background: var(--tile); border-color: var(--line); }

/* Checkout / koszyk (klasyczne) */
.woocommerce-checkout #customer_details, .woocommerce-cart .cart-collaterals { max-width: 760px; }
.form-row { margin-bottom: 14px; }
.form-row-first, .form-row-last { display: block; }
@media (min-width: 700px) { .form-row-first, .form-row-last { display: inline-block; width: calc(50% - 8px); vertical-align: top; } .form-row-first { margin-right: 12px; } }
.woocommerce-checkout-review-order { margin-top: 24px; padding: 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table.shop_table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--r); }
table.shop_table th, table.shop_table td { padding: 12px; border-bottom: 1px solid var(--line); text-align: left; }
#place_order { width: 100%; min-height: 56px; font-size: 1.1rem; margin-top: 12px; }
.woocommerce-form-coupon-toggle, .checkout_coupon { margin-bottom: 16px; }

/* Sticky "Dodaj do koszyka" (mobile) */
.sticky-atc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: none; align-items: center; gap: 12px; padding: 10px var(--gutter); background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -4px 18px rgba(16, 20, 24, .1); }
.sticky-atc.is-visible { display: flex; }
.sticky-atc-price { flex: 1; font: 800 1.1rem var(--font-head); }
.sticky-atc .btn { flex: 0 0 auto; }
@media (min-width: 900px) { .sticky-atc.is-visible { display: none; } }

.post-card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 20px; margin-bottom: 16px; }
.entry :where(h2, h3) { margin-top: 1.4em; }
.not-found { text-align: center; padding-block: 72px; }

/* Lazy-loaded obrazy poza ekranem nie powinny przesuwać układu */
img[loading=lazy] { content-visibility: auto; }
