/*
Theme Name: NajmiGo
Theme URI: https://najmigo.pl
Description: Samodzielny motyw WooCommerce z kolorystyką marki NajmiGo (granat + zieleń). Nie wymaga instalowania żadnego innego motywu.
Version: 1.0.0
Author: NajmiGo
Text Domain: najmigo
*/

/* ==========================================================================
   ZMIENNE KOLORÓW MARKI
   ========================================================================== */
:root {
	--najmigo-navy: #0d2c4b;
	--najmigo-navy-light: #163c63;
	--najmigo-green: #3aa856;
	--najmigo-green-dark: #2e8a45;
	--najmigo-amber: #a9760a;
	--najmigo-bg: #f5f7f6;
	--najmigo-border: #e3e7e5;
	--najmigo-text-muted: #5c6773;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
	color: #1b2530;
	background: var(--najmigo-bg);
	line-height: 1.55;
}
h1, h2, h3, h4 { font-family: 'Poppins', sans-serif; }
a { color: var(--najmigo-navy); text-decoration: none; }

/* Numer zamówienia w tabeli "Moje konto → Zamówienia" — WooCommerce owija
   go w znacznik <mark>, który ma własne, domyślne style przeglądarki
   (czasem powodujące zlewanie się z tłem/ramką). Nadpisujemy to jawnie. */
.woocommerce-orders-table__cell-order-number,
.woocommerce-MyAccount-orders mark,
.woocommerce-orders-table a mark {
	background: none !important;
	color: var(--najmigo-navy) !important;
	font-weight: 700;
}
.woocommerce-orders-table a:hover .woocommerce-orders-table__cell-order-number,
.woocommerce-MyAccount-orders a:hover mark {
	color: var(--najmigo-green-dark) !important;
}
a:hover { color: var(--najmigo-green-dark); }
img { max-width: 100%; height: auto; display: block; }

/* ==========================================================================
   NAGŁÓWEK
   ========================================================================== */
.najmigo-sticky-top {
	position: sticky;
	top: 0;
	z-index: 45;
}
.najmigo-marquee-bar {
	background: var(--najmigo-navy);
	border-bottom: 1px solid rgba(255,255,255,.08);
	overflow: hidden;
}
.najmigo-marquee-track {
	display: flex;
	white-space: nowrap;
	animation: najmigoMarqueeScroll 26s linear infinite;
	font-size: 11.5px;
	font-weight: 600;
	letter-spacing: .05em;
	text-transform: uppercase;
	padding: 8px 0;
}
.najmigo-marquee-track span {
	padding: 0 24px;
	color: #a8bccf;
	display: flex;
	align-items: center;
	gap: 9px;
	flex-shrink: 0;
}
.najmigo-marquee-track span::before {
	content: "●";
	color: var(--najmigo-green);
	font-size: 7px;
}
@keyframes najmigoMarqueeScroll {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
.najmigo-site-header {
	background: linear-gradient(120deg, var(--najmigo-navy) 0%, #163457 45%, #0a2038 100%);
	color: #fff;
	box-shadow: 0 2px 24px rgba(13, 44, 75, 0.25);
	position: relative;
	overflow: hidden;
}
.najmigo-site-header::before {
	content: '';
	position: absolute;
	width: 220px; height: 220px;
	border-radius: 50%;
	background: radial-gradient(circle, rgba(58,168,86,.35), transparent 70%);
	filter: blur(40px);
	top: -100px; right: 10%;
	pointer-events: none;
}
.najmigo-header-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 14px 24px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	flex-wrap: wrap;
}
.najmigo-site-title {
	display: flex;
	align-items: center;
	gap: 10px;
}
.najmigo-site-name {
	font-family: 'Poppins', sans-serif;
	font-weight: 800;
	font-size: 20px;
	color: #fff !important;
	text-shadow: 0 0 18px rgba(122, 217, 150, 0.35);
}
.najmigo-site-title img,
.najmigo-site-title .custom-logo {
	height: 102px !important;
	width: 102px !important;
	max-height: 102px !important;
	max-width: 102px !important;
	object-fit: cover;
	border-radius: 50%;
	display: block;
}
.najmigo-site-title .custom-logo-link { display: flex; align-items: center; }
.najmigo-nav-list {
	list-style: none;
	display: flex;
	gap: 22px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.najmigo-nav-list a {
	color: #dbe6ef !important;
	font-size: 14px;
	font-weight: 600;
	position: relative;
	transition: color .2s ease;
}
.najmigo-nav-list a::after {
	content: '';
	position: absolute;
	left: 0; bottom: -4px;
	width: 0; height: 2px;
	background: var(--najmigo-green);
	box-shadow: 0 0 8px var(--najmigo-green);
	transition: width .25s ease;
}
.najmigo-nav-list a:hover { color: #fff !important; }
.najmigo-nav-list a:hover::after { width: 100%; }
.najmigo-cart-link {
	color: #fff !important;
	font-weight: 600;
	font-size: 14px;
	white-space: nowrap;
	background: rgba(255,255,255,.08);
	border: 1px solid rgba(255,255,255,.18);
	border-radius: 20px;
	padding: 7px 14px;
	transition: background .2s ease, box-shadow .2s ease;
}
.najmigo-cart-link:hover {
	background: rgba(58, 168, 86, .25);
	box-shadow: 0 0 16px rgba(58, 168, 86, .35);
}

/* ==========================================================================
   TREŚĆ / KONTENER
   ========================================================================== */
.najmigo-main { min-height: 40vh; }
.najmigo-content-wrap,
.najmigo-woo-wrap {
	max-width: 1100px;
	margin: 0 auto;
	padding: 32px 24px;
}
.najmigo-page-title {
	max-width: 1100px;
	margin: 32px auto 0;
	padding: 0 24px;
	color: var(--najmigo-navy);
}
.najmigo-post { margin-bottom: 28px; padding-bottom: 28px; border-bottom: 1px solid var(--najmigo-border); }

/* ==========================================================================
   PRZYCISKI WOOCOMMERCE
   ========================================================================== */
.woocommerce a.button,
.woocommerce button.button,
.woocommerce input.button,
.woocommerce #respond input#submit,
.woocommerce-page a.button,
.woocommerce-page button.button {
	background-color: var(--najmigo-green) !important;
	color: #fff !important;
	border: none !important;
	border-radius: 8px !important;
	font-weight: 600 !important;
	padding: 10px 18px !important;
	transition: background-color .2s ease, box-shadow .2s ease, transform .15s ease !important;
}
.woocommerce a.button:hover,
.woocommerce button.button:hover,
.woocommerce input.button:hover {
	background-color: var(--najmigo-green-dark) !important;
	color: #fff !important;
	box-shadow: 0 0 18px rgba(58, 168, 86, .45);
	transform: translateY(-1px);
}
.woocommerce a.button.alt,
.woocommerce button.button.alt,
.woocommerce input.button.alt {
	background-color: var(--najmigo-navy) !important;
}

/* ==========================================================================
   PASEK KATEGORII — Sklep
   ========================================================================== */
.najmigo-cat-bar {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin: 4px 0 24px;
}
.najmigo-cat-pill {
	background: #fff !important;
	border: 1.5px solid var(--najmigo-border);
	color: var(--najmigo-navy) !important;
	font-weight: 600;
	font-size: 13.5px;
	padding: 8px 18px;
	border-radius: 999px;
	text-decoration: none !important;
	transition: background .2s ease, border-color .2s ease, color .2s ease, transform .15s ease;
}
.najmigo-cat-pill:hover { border-color: var(--najmigo-green); color: var(--najmigo-green-dark) !important; transform: translateY(-1px); }
.najmigo-cat-pill.najmigo-cat-active {
	background: var(--najmigo-navy) !important;
	border-color: var(--najmigo-navy);
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(13, 44, 75, .25);
}

/* ==========================================================================
   SIATKA PRODUKTÓW — Sklep
   ========================================================================== */
/* Przełącznik widoku kafelki/lista na stronie Sklep */
.najmigo-shop-view-row {
	display: flex;
	justify-content: center;
	margin: 16px 0 20px;
}
.najmigo-view-toggle {
	display: flex;
	gap: 2px;
	background: #eef1f0;
	border-radius: 8px;
	padding: 3px;
}
.najmigo-view-toggle button {
	border: none;
	background: none;
	padding: 6px 12px;
	border-radius: 6px;
	font-size: 15px;
	cursor: pointer;
	color: #6b7280;
	transition: all .2s ease;
}
.najmigo-view-toggle button.najmigo-view-active {
	background: #fff;
	color: var(--najmigo-navy);
	box-shadow: 0 1px 3px rgba(0,0,0,.1);
}

.woocommerce ul.products {
	display: grid !important;
	grid-template-columns: repeat(auto-fit, minmax(230px, 300px)) !important;
	gap: 20px !important;
	justify-content: center !important;
	list-style: none !important;
	margin: 0 !important;
	padding: 0 !important;
	width: 100% !important;
}

/* Widok listy na Sklepie */
.woocommerce ul.products.najmigo-list-view {
	grid-template-columns: 1fr !important;
	max-width: 640px;
	margin: 0 auto !important;
}
.woocommerce ul.products.najmigo-list-view li.product {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	padding: 10px !important;
	gap: 14px;
}
.woocommerce ul.products.najmigo-list-view li.product a.woocommerce-loop-product__link {
	display: flex !important;
	flex-direction: row !important;
	align-items: center !important;
	flex: 1;
	gap: 14px;
	min-width: 0;
}
.woocommerce ul.products.najmigo-list-view li.product img {
	width: 72px !important;
	height: 72px !important;
	object-fit: cover;
	border-radius: 8px;
	flex-shrink: 0;
}
.woocommerce ul.products.najmigo-list-view li.product .woocommerce-loop-product__title {
	font-size: 14px;
	margin: 0 0 2px;
}
.woocommerce ul.products.najmigo-list-view li.product .price {
	font-size: 13px;
}
.woocommerce ul.products.najmigo-list-view li.product .button {
	width: auto !important;
	flex-shrink: 0;
	padding: 8px 16px !important;
	font-size: 12.5px !important;
}
@media (max-width: 480px) {
	/* Na wąskich ekranach na tekst (obrazek+tytuł+cena) i przycisk
	   "Zobacz terminy" nie starcza miejsca w jednym wierszu — zamiast
	   pozwalać im się ściskać i nachodzić na siebie, przycisk zawsze
	   ląduje w swoim własnym, pełnym wierszu pod spodem. */
	.woocommerce ul.products.najmigo-list-view li.product {
		flex-wrap: wrap;
	}
	.woocommerce ul.products.najmigo-list-view li.product a.woocommerce-loop-product__link {
		flex: 1 1 100%;
	}
	.woocommerce ul.products.najmigo-list-view li.product .button {
		width: 100% !important;
		margin-top: 8px;
		text-align: center !important;
	}
}
.woocommerce ul.products li.product {
	float: none !important;
	width: auto !important;
	margin: 0 !important;
	clear: none !important;
}
.woocommerce ul.products li.product a {
	display: block !important;
	width: 100% !important;
}
.woocommerce ul.products li.product .button {
	width: 100% !important;
	white-space: normal !important;
	text-align: center !important;
	box-sizing: border-box !important;
}
.woocommerce ul.products li.product {
	width: 100% !important;
	max-width: 100% !important;
	float: none !important;
	margin: 0 !important;
	background: #fff;
	border: 1px solid var(--najmigo-border);
	border-radius: 14px;
	padding: 16px;
	transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
	overflow: hidden;
	box-sizing: border-box;
}
.woocommerce ul.products li.product:hover {
	box-shadow: 0 14px 34px rgba(13, 44, 75, 0.16), 0 0 0 1px rgba(58, 168, 86, .25);
	transform: translateY(-4px);
	border-color: rgba(58, 168, 86, .35);
}
.woocommerce ul.products li.product img,
.woocommerce ul.products li.product a img {
	display: block !important;
	width: 100% !important;
	height: auto !important;
	aspect-ratio: 1 / 1;
	object-fit: cover;
	border-radius: 10px;
	margin-bottom: 12px;
	transition: transform .4s cubic-bezier(.2,.8,.2,1), filter .4s ease;
}
.woocommerce ul.products li.product:hover img {
	transform: scale(1.06);
	filter: saturate(1.12);
}
.woocommerce ul.products li.product .woocommerce-loop-product__title {
	color: var(--najmigo-navy);
	font-size: 16px;
	font-weight: 700;
}
.woocommerce ul.products li.product .price { color: var(--najmigo-green-dark); font-weight: 700; }

/* ==========================================================================
   POJEDYNCZY PRODUKT
   ========================================================================== */
.woocommerce div.product p.price,
.woocommerce div.product span.price {
	color: var(--najmigo-green-dark);
	font-weight: 700;
	font-size: 26px;
}
.woocommerce div.product .product_title { color: var(--najmigo-navy); }
.woocommerce div.product div.images {
	border-radius: 14px;
	overflow: hidden;
}
.woocommerce div.product div.images img {
	transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.woocommerce div.product div.images:hover img {
	transform: scale(1.04);
}
.najmigo-booking { margin-top: 24px; }

/* ==========================================================================
   KOSZYK / KASA / TABELE
   ========================================================================== */
.woocommerce table.shop_table {
	border-radius: 10px;
	overflow: hidden;
	border: 1px solid var(--najmigo-border);
	width: 100%;
}
.woocommerce table.shop_table th {
	background: var(--najmigo-navy);
	color: #fff;
}
.woocommerce-checkout #payment {
	background: #eefaf0 !important;
	border-radius: 10px;
}

/* ==========================================================================
   MOJE KONTO
   ========================================================================== */
.woocommerce-MyAccount-navigation ul {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	list-style: none;
	margin: 0 0 20px;
	padding: 0;
}
.woocommerce-MyAccount-navigation ul li {
	border: 1px solid var(--najmigo-border);
	border-radius: 8px;
}
.woocommerce-MyAccount-navigation ul li a {
	display: block;
	padding: 8px 14px;
	font-size: 13px;
	font-weight: 600;
	white-space: nowrap;
}
.woocommerce-MyAccount-navigation ul li.is-active {
	background: #eefaf0;
	border-color: #cdeed6;
}
.woocommerce form .form-row input.input-text,
.woocommerce form .form-row textarea,
.woocommerce form .form-row select {
	border-radius: 6px;
	border: 1px solid var(--najmigo-border);
	padding: 8px 10px;
}

/* ==========================================================================
   STOPKA
   ========================================================================== */
.najmigo-site-footer {
	background: linear-gradient(120deg, #0a2038 0%, var(--najmigo-navy) 55%, #163457 100%);
	color: #c4d3e0;
	margin-top: 40px;
}
.najmigo-footer-inner {
	max-width: 1100px;
	margin: 0 auto;
	padding: 36px 24px;
	display: grid;
	grid-template-columns: 1.3fr 1fr 1fr;
	gap: 28px;
	font-size: 13.5px;
}
.najmigo-footer-inner a { color: #c4d3e0 !important; font-weight: 600; text-decoration: none; }
.najmigo-footer-inner a:hover { color: #fff !important; }
.najmigo-footer-col { display: flex; flex-direction: column; gap: 8px; }
.najmigo-footer-heading {
	text-transform: uppercase;
	letter-spacing: .06em;
	font-size: 11px;
	font-weight: 700;
	color: #7f95ac;
	margin-bottom: 2px;
}
.najmigo-footer-brand { flex-direction: row; align-items: center; gap: 12px; }
.najmigo-footer-brand img,
.najmigo-footer-brand .custom-logo {
	height: 105px !important;
	width: 105px !important;
	max-height: 105px !important;
	max-width: 105px !important;
	object-fit: cover;
	border-radius: 50%;
	display: block;
	flex-shrink: 0;
}
.najmigo-footer-brand .custom-logo-link { display: block; }
.najmigo-footer-brand strong { color: #fff; font-size: 16px; font-family: 'Poppins', sans-serif; }

.najmigo-whatsapp-link {
	color: #4fd97a !important;
	display: inline-flex;
	align-items: center;
	gap: 6px;
}
.najmigo-whatsapp-link:hover { color: #7fe89e !important; }
.najmigo-email-link { color: #c4d3e0 !important; font-size: 12.5px; margin-top: 2px; }
.najmigo-email-link:hover { color: #fff !important; }

.najmigo-footer-bottom {
	max-width: 1100px;
	margin: 0 auto;
	padding: 18px 24px 28px;
	border-top: 1px solid rgba(255,255,255,.1);
	margin-top: 8px;
	text-align: center;
	font-size: 12.5px;
	color: #7f95ac;
}
.najmigo-credit-link {
	color: #4fd97a !important;
	font-weight: 700;
}
.najmigo-credit-link:hover { color: #7fe89e !important; text-decoration: underline; }

@media (max-width: 720px) {
	.najmigo-footer-inner { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
	.najmigo-footer-inner { grid-template-columns: 1fr; }
}

/* ==========================================================================
   NASZA STRONA GŁÓWNA Z SHORTCODE — drobne odstępy
   ========================================================================== */
.najmigo-home { padding-top: 12px; padding-bottom: 12px; }

@media (max-width: 640px) {
	.najmigo-header-inner { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   BANER COOKIES — prosty, informacyjny, stały pasek na dole ekranu
   ========================================================================== */
.najmigo-cookie-banner {
	position: fixed;
	left: 0; right: 0; bottom: 0;
	z-index: 100;
	background: var(--najmigo-navy);
	color: #e6edf5;
	padding: 16px 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 20px;
	flex-wrap: wrap;
	font-size: 13.5px;
	box-shadow: 0 -4px 20px rgba(0,0,0,.18);
	transform: translateY(100%);
	opacity: 0;
	transition: transform .35s ease, opacity .35s ease;
	pointer-events: none;
}
.najmigo-cookie-banner.najmigo-cookie-visible {
	transform: translateY(0);
	opacity: 1;
	pointer-events: auto;
}
.najmigo-cookie-banner p { margin: 0; max-width: 720px; }
.najmigo-cookie-banner a { color: #7fe89e; font-weight: 600; }
.najmigo-cookie-banner a:hover { color: #a8f0bf; }
.najmigo-cookie-banner button {
	background: var(--najmigo-green);
	color: #fff;
	border: none;
	border-radius: 8px;
	padding: 10px 22px;
	font-weight: 700;
	font-size: 13.5px;
	cursor: pointer;
	white-space: nowrap;
	transition: background .2s ease;
}
.najmigo-cookie-banner button:hover { background: #2e8a45; }
@media (max-width: 640px) {
	.najmigo-cookie-banner { justify-content: flex-start; text-align: left; padding: 14px 16px; }
	.najmigo-cookie-banner button { width: 100%; }
}

/* ==========================================================================
   Podświetlenie tekstu "Kontynuując zamówienie..." na checkout — szeroki,
   bezpieczny selektor (bez polegania na "prywatnych" nazwach klas
   wewnętrznych bloków WooCommerce, które mogą się zmieniać przy aktualizacji).
   ========================================================================== */
.woocommerce-terms-and-conditions-wrapper,
.wc-block-checkout__terms,
.wc-block-checkout__terms-text {
	background: #eef7f0;
	border: 1px solid #c7e6cf;
	border-radius: 8px;
	padding: 12px 16px;
	margin: 14px 0;
	font-size: 13px;
	color: #1f5c2e;
}
.woocommerce-terms-and-conditions-wrapper a,
.wc-block-checkout__terms a,
.wc-block-checkout__terms-text a {
	color: var(--najmigo-green-dark) !important;
	font-weight: 700;
	text-decoration: underline;
}
.woocommerce-terms-and-conditions-wrapper a:hover,
.wc-block-checkout__terms a:hover,
.wc-block-checkout__terms-text a:hover {
	color: var(--najmigo-navy) !important;
}
