/*
Theme Name: Storefront Child — Oviqo
Theme URI: https://oviqo.eu
Description: Child theme Storefront dla sklepu Oviqo. Strona główna budowana przez Customizer (custom_css #226) + stopka Oviqo (poniżej).
Author: Oviqo / EIAS Studio
Template: storefront
Version: 1.0.3
Text Domain: storefront-child
*/

/* =====================================================================
   STOPKA OVIQO (.ov-foot) — site-wide. Zastępuje domyślną stopkę Storefront
   (widgety + kredyt zdjęte w functions.php). Paleta CZARNO-BIAŁA, spójna
   z headerem Storefront: białe tło, ciemnoszary tekst (#333), linki #747474,
   font dziedziczony (Source Sans Pro), cienkie jasne linie działowe.
   ===================================================================== */

.site-footer {
	background: #ffffff !important;
	padding: 0 !important;
	margin-top: 0;
	border-top: 1px solid #e5e5e5;
	color: #404040;
}
.site-footer .col-full {
	padding-top: 0;
	padding-bottom: 0;
	max-width: 1200px;
}

.ov-foot {
	padding: 54px 0 26px;
	line-height: 1.55;
}
.ov-foot a {
	color: #747474;
	text-decoration: none;
	transition: color .15s ease;
}
.ov-foot a:hover { color: #000000; }

.ov-foot__top {
	display: grid;
	grid-template-columns: 1.1fr 2fr;
	gap: 44px;
	padding-bottom: 32px;
	border-bottom: 1px solid #ededed;
}
.ov-foot__logo {
	font-size: 1.7rem;
	font-weight: 700;
	color: #333333;
	letter-spacing: -.01em;
	line-height: 1;
}
.ov-foot__brand p {
	margin: 14px 0 0;
	color: #767676;
	font-size: .97rem;
	max-width: 320px;
}

.ov-foot__cols {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}
.ov-foot__col h3 {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .1em;
	color: #333333;
	margin: 0 0 15px;
	font-weight: 700;
}
.ov-foot__col ul { list-style: none; margin: 0; padding: 0; }
.ov-foot__col li { margin: 0 0 9px; }
.ov-foot__col a { font-size: .95rem; }

.ov-foot__seller {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 28px;
	padding: 28px 0;
	border-bottom: 1px solid #ededed;
}
.ov-foot__seller h4 {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .09em;
	color: #333333;
	margin: 0 0 10px;
	font-weight: 700;
}
.ov-foot__seller p {
	margin: 0;
	color: #767676;
	font-size: .95rem;
	line-height: 1.75;
}

.ov-foot__bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	padding-top: 22px;
}
.ov-foot__copy {
	margin: 0;
	color: #969696;
	font-size: .85rem;
	max-width: 640px;
}
.ov-foot__legal {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 8px 18px;
	margin: 0;
	padding: 0;
}
.ov-foot__legal a { font-size: .85rem; color: #747474; }
.ov-foot__legal a:hover { color: #000000; }

@media (max-width: 900px) {
	.ov-foot__top { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 640px) {
	.ov-foot__cols { grid-template-columns: 1fr 1fr; }
	.ov-foot__seller { grid-template-columns: 1fr; }
	.ov-foot__bottom { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 420px) {
	.ov-foot__cols { grid-template-columns: 1fr; }
}

/* =====================================================================
   SORTOWANIE ARCHIWUM/SKLEPU (.storefront-sorting) — site-wide.
   Zastępuje natywny "Standardsortierung" spójnym wyglądem Oviqo:
   zieleń marki #2F6F4E, piaskowa ramka #dcd8ce, radius, własny chevron.
   Dodane do enqueue storefront-child-style (bump 1.0.4).
   ===================================================================== */
.storefront-sorting {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem 1rem;
	margin-bottom: 1.75rem;
}
.woocommerce .woocommerce-result-count,
.woocommerce-page .woocommerce-result-count {
	margin: 0;
	color: #6e786f;
	font-size: .9rem;
	line-height: 1.3;
}
.woocommerce .woocommerce-ordering,
.woocommerce-page .woocommerce-ordering {
	margin: 0;
}
.woocommerce .woocommerce-ordering select.orderby,
.woocommerce-page .woocommerce-ordering select.orderby {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	font: inherit;
	font-size: .92rem;
	line-height: 1.2;
	color: #2b2b2b;
	background-color: #fff;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%232F6F4E' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right .85rem center;
	background-size: 14px 14px;
	border: 1px solid #dcd8ce;
	border-radius: 10px;
	padding: .6rem 2.5rem .6rem .95rem;
	margin: 0;
	min-width: 15rem;
	max-width: 100%;
	cursor: pointer;
	box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
	transition: border-color .15s ease, box-shadow .15s ease;
}
.woocommerce .woocommerce-ordering select.orderby:hover,
.woocommerce-page .woocommerce-ordering select.orderby:hover {
	border-color: #2F6F4E;
}
.woocommerce .woocommerce-ordering select.orderby:focus,
.woocommerce .woocommerce-ordering select.orderby:focus-visible,
.woocommerce-page .woocommerce-ordering select.orderby:focus {
	outline: none;
	border-color: #2F6F4E;
	box-shadow: 0 0 0 3px rgba(47, 111, 78, .15);
}
@media (max-width: 767px) {
	.storefront-sorting {
		gap: .5rem;
	}
	.woocommerce .woocommerce-ordering,
	.woocommerce-page .woocommerce-ordering,
	.woocommerce .woocommerce-ordering select.orderby,
	.woocommerce-page .woocommerce-ordering select.orderby {
		width: 100%;
		min-width: 0;
	}
}

/* ---------------------------------------------------------------------------
 * Galeria produktu: stabilne miniatury.
 * Flexslider ustawia atrybuty width/height z naturalnego rozmiaru pliku
 * (onload na <img>), co przesuwa .summary o ~0,21 CLS. Nadpisanie CSS
 * odcina układ od atrybutów — miniatura zawsze wypełnia swoje <li>.
 * ------------------------------------------------------------------------- */
.single-product div.product .woocommerce-product-gallery ol.flex-control-nav img {
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
}

/* =====================================================================
   STRONA „O NAS" / ÜBER UNS (.ov-about) — site-wide, 6 języków.
   Współdzieli globalne klasy hero z home (.ov-hero/.ov-btn z custom_css
   #226), reszta jest własna i zamknięta w .ov-about, żeby nie kolidować
   z archiwum sklepu. Paleta jak home: zieleń #2F6F4E, piaskowy #F6F4EE,
   zaokrąglenia 14–18 px, ramki #E3E6E0.
   ===================================================================== */
.ov-about {
	--ink: #16211b;
	--muted: #5b6b62;
	--line: #e3e6e0;
	--sand: #f6f4ee;
	--green: #2f6f4e;
	--green-d: #245740;
	max-width: 1160px;
	margin: 0 auto;
	color: var(--ink);
	line-height: 1.62;
}
.ov-about * { box-sizing: border-box; }
.ov-about h2 {
	font-size: clamp(22px, 2.2vw, 30px);
	line-height: 1.18;
	letter-spacing: -.01em;
	margin: 0 0 .55em;
	color: var(--ink);
}
.ov-about h3 {
	font-size: 17px;
	line-height: 1.35;
	margin: 0 0 .45em;
	color: var(--ink);
}
.ov-about p { margin: 0 0 1em; max-width: 72ch; }
.ov-about .oa-lead { font-size: 1.05rem; color: var(--muted); }

.ov-about .oa-cap {
	width: 100%;
	max-width: 1160px;
	margin: 10px auto 0;
	font-size: .8rem;
	color: var(--muted);
	text-align: right;
}

.oa-sec { margin: 44px 0 0; }
.oa-sec:first-of-type { margin-top: 30px; }

.oa-cols {
	display: grid;
	grid-template-columns: 1.55fr 1fr;
	gap: 34px;
	align-items: start;
}
.oa-facts {
	background: var(--sand);
	border: 1px solid #eceee7;
	border-radius: 16px;
	padding: 20px 24px;
}
.oa-facts dl { margin: 0; }
.oa-facts div {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	padding: 10px 0;
	border-bottom: 1px solid #e6e8e1;
}
.oa-facts div:last-child { border-bottom: 0; }
.oa-facts dt {
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .08em;
	color: #55645b;
	font-weight: 700;
}
.oa-facts dd {
	margin: 0;
	font-size: .95rem;
	text-align: right;
	color: var(--ink);
}

.oa-split {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 30px;
	align-items: start;
	margin-top: 22px;
}
.oa-fig { margin: 0; }
.oa-fig img {
	width: 100%;
	height: auto;
	display: block;
	border-radius: 14px;
	aspect-ratio: 3 / 2;
	object-fit: cover;
}
.oa-fig figcaption {
	font-size: .82rem;
	color: #5f6d64;
	margin-top: 10px;
	line-height: 1.5;
}

.oa-list { list-style: none; margin: 0 0 1em; padding: 0; }
.oa-list li { position: relative; padding-left: 2.1em; margin: 0 0 .85em; }
.oa-list li::before {
	content: "";
	position: absolute;
	left: .25em;
	top: .62em;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--green);
}
.oa-list--checks li::before {
	content: "✓";
	background: none;
	width: auto;
	height: auto;
	top: 0;
	left: .1em;
	color: var(--green);
	font-weight: 700;
	font-size: 1.05rem;
	line-height: 1.6;
}
.oa-list b { color: var(--ink); }

.oa-cards {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 18px;
	margin-top: 22px;
}
.oa-card {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 22px 24px;
}
.oa-card p { margin: 0; color: var(--muted); font-size: .96rem; max-width: none; }

.oa-steps {
	list-style: none;
	counter-reset: oa;
	margin: 22px 0 0;
	padding: 0;
	display: grid;
	gap: 12px;
}
.oa-steps li {
	counter-increment: oa;
	position: relative;
	padding: 18px 22px 18px 66px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
}
.oa-steps li::before {
	content: counter(oa);
	position: absolute;
	left: 20px;
	top: 17px;
	width: 30px;
	height: 30px;
	border-radius: 50%;
	background: var(--green);
	color: #fff;
	font-weight: 700;
	font-size: .88rem;
	line-height: 30px;
	text-align: center;
}
.oa-steps b { display: block; margin-bottom: 3px; }
.oa-steps span { color: var(--muted); font-size: .94rem; }

.oa-note {
	margin: 22px 0 0;
	padding: 16px 20px;
	background: var(--sand);
	border-left: 3px solid var(--green);
	border-radius: 0 12px 12px 0;
	font-size: .93rem;
	color: #46554c;
	max-width: 100%;
}

.oa-sand {
	background: var(--sand);
	border: 1px solid #eceee7;
	border-radius: 18px;
	padding: 30px 32px;
}
.oa-sand .oa-lead { color: #4f5f56; }

.oa-roles {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	margin-top: 20px;
}
.oa-role {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 18px 20px;
}
.oa-role h3 { font-size: 16px; }
.oa-role p { margin: 0; color: var(--muted); font-size: .94rem; max-width: none; }

.oa-cta {
	background: var(--sand);
	border: 1px solid #eceee7;
	border-radius: 18px;
	padding: 34px 32px;
}
.oa-cta .ov-actions { justify-content: flex-start; margin: 4px 0 0; }
/* Drugi CTA w hero leży na zdjęciu. Arkusz „Dodatkowe CSS" wymusza
   color:#fff!important na .ov-btn (blok OVIQO PAGE), więc wariant biały
   byłby biały na białym — dlatego ciemny, półprzezroczysty pill. */
.ov-about .oa-btn--dark {
	background: rgba(12, 22, 16, .62);
	border-color: rgba(255, 255, 255, .9);
	color: #fff;
}
.ov-about .oa-btn--dark:hover {
	background: rgba(12, 22, 16, .8);
	border-color: #fff;
	color: #fff;
}
.ov-about .ov-hero { background: #1e2b23; }

/* CTA końcowe: jedna akcja główna + link tekstowy zamiast drugiego
   przycisku (mniej ryzyka wizualnego, wyraźna hierarchia). */
.oa-cta__link {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	font-weight: 700;
	font-size: 15px;
	color: var(--green);
	text-decoration: underline;
	text-underline-offset: 3px;
	text-decoration-thickness: 2px;
}
.oa-cta__link:hover { color: var(--green-d); }
.oa-cta .ov-actions { align-items: center; gap: 10px 22px; }
.oa-btn--outline:hover { background: var(--green); color: #fff; border-color: var(--green); }
.oa-small { margin: 18px 0 0; font-size: .84rem; color: #55645b; }

.ov-about a:focus-visible {
	outline: 3px solid var(--green-d);
	outline-offset: 3px;
	border-radius: 4px;
}
.ov-about .ov-btn:focus-visible { outline-offset: 4px; }
.ov-about .ov-btn:focus { color: #fff; }

@media (max-width: 860px) {
	.oa-cols,
	.oa-split,
	.oa-cards,
	.oa-roles { grid-template-columns: 1fr; gap: 22px; }
	.oa-sec { margin-top: 34px; }
	.oa-sand,
	.oa-cta { padding: 24px 20px; }
	.oa-steps li { padding: 16px 18px 16px 60px; }
	.ov-about .oa-cap { text-align: left; }
}
@media (max-width: 767px) {
	/* Storefront handheld bar (69 px, position:fixed) zasłania koniec
	   KAŻDEJ strony sklepu, nie tylko „O nas". Rezerwa na body, żeby ostatni
	   blok (CTA, stopka) nie kończył się pod paskiem; scroll-padding chroni
	   cele skoków z kotwic. */
	body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
	html { scroll-padding-bottom: calc(84px + env(safe-area-inset-bottom, 0px)); }
	.ov-about { padding-bottom: 8px; }
}
