/*
Theme Name:   Poolex
Template:     modern
Theme URI:    http://localhost/wordpress
Author:       PoolEx Pool Products Inc.
Description:  Child tema za lokalno spletno stran Poolex.
Version:      1.2.0
*/

:root {
	--poolex-blue: #1565c0;
	--poolex-blue-deep: #0d47a1;
	--poolex-text: #12324d;
	--poolex-muted: #3e5a73;
	--poolex-price: #c1121f;
	--poolex-glass: rgba(255, 255, 255, 0.88);
	--poolex-glass-strong: rgba(255, 255, 255, 0.94);
}

html {
	scroll-behavior: auto;
}

body.poolex-layout {
	margin: 0;
	color: var(--poolex-text);
	font-family: "Segoe UI", Calibri, Arial, sans-serif;
	background-color: #063a6a;
	background-image: url("http://localhost/wordpress/wp-content/uploads/2026/10/poolex-pool-background.jpg");
	background-position: center 32%;
	background-size: cover;
	background-repeat: no-repeat;
	background-attachment: fixed;
}

body.poolex-layout .intro,
body.poolex-layout .site-header,
body.poolex-layout .site-footer,
body.poolex-layout .search-toggle,
body.poolex-layout .search-form,
body.poolex-layout .menu-toggle,
body.poolex-layout .menu-skip-links {
	display: none !important;
}

body.poolex-layout #page.site {
	min-height: 0;
	margin: 0;
	padding: 0;
	max-width: none;
	background: transparent;
	box-shadow: none;
}

body.poolex-layout .site-content,
body.poolex-layout .site-content-inner,
body.poolex-layout #primary.content-area,
body.poolex-layout .entry-content-container {
	width: 100%;
	max-width: none;
	margin: 0;
	padding: 0;
	background: transparent;
}

.poolex-shell {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
	max-width: 1180px;
	margin: 0 auto;
	padding: 12px 24px 20px;
	box-sizing: border-box;
}

body.admin-bar .poolex-shell {
	min-height: calc(100vh - 32px);
}

.poolex-top {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 6px 16px 10px;
}

.poolex-logo {
	display: block;
	line-height: 0;
}

.poolex-logo img {
	display: block;
	height: 72px;
	width: auto;
	max-width: 280px;
	filter: drop-shadow(0 6px 16px rgba(0, 30, 60, 0.25));
}

.poolex-mainnav {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	justify-content: center;
}

.poolex-mainnav__link {
	color: #0d47a1;
	background: var(--poolex-glass);
	text-decoration: none;
	font-size: 14px;
	font-weight: 650;
	padding: 7px 16px;
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.7);
	backdrop-filter: blur(8px);
}

.poolex-mainnav__link:hover,
.poolex-mainnav__link.is-current {
	background: #fff;
	color: var(--poolex-blue-deep);
	box-shadow: 0 4px 14px rgba(13, 71, 161, 0.12);
}

.poolex-cats {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	padding: 4px 0 12px;
}

.poolex-cat {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 8px 14px;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.78);
	color: var(--poolex-blue-deep);
	text-decoration: none;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.01em;
	border: 1px solid rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(10px);
	transition: background 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.poolex-cat:hover,
.poolex-cat.is-current {
	background: #fff;
	box-shadow: 0 6px 16px rgba(13, 71, 161, 0.14);
	transform: translateY(-1px);
}

.poolex-content {
	flex: 1;
	min-height: 0;
}

.home .poolex-content {
	display: flex;
}

.poolex-home {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-height: 0;
	background: var(--poolex-glass);
	backdrop-filter: blur(10px);
	border: 1px solid rgba(255, 255, 255, 0.65);
	border-radius: 22px;
	padding: 14px 18px 16px;
	box-shadow: 0 18px 40px rgba(6, 40, 80, 0.18);
}

.poolex-kicker {
	margin: 0;
	color: var(--poolex-price);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	text-align: center;
}

.poolex-home h1 {
	margin: 4px 0 12px;
	font-size: 28px;
	line-height: 1.15;
	color: var(--poolex-blue-deep);
	text-align: center;
	font-weight: 750;
}

.poolex-products {
	flex: 1;
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	min-height: 0;
}

.poolex-card {
	display: flex;
	flex-direction: column;
	background: var(--poolex-glass-strong);
	border: 1px solid rgba(210, 226, 242, 0.9);
	border-radius: 16px;
	padding: 12px 12px 14px;
	min-height: 0;
}

.poolex-card__photo {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 150px;
	background: #f7fbff;
	border-radius: 12px;
	overflow: hidden;
}

.poolex-card__photo img {
	max-width: 100%;
	max-height: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.poolex-card__photo--missing {
	padding: 12px;
	color: var(--poolex-muted);
	font-size: 13px;
	text-align: center;
	line-height: 1.4;
	background: repeating-linear-gradient(
		-45deg,
		#f7fbff,
		#f7fbff 10px,
		#eef5fc 10px,
		#eef5fc 20px
	);
}

.poolex-card h2 {
	margin: 10px 0 6px;
	font-size: 16px;
	line-height: 1.3;
	color: var(--poolex-blue-deep);
}

.poolex-card p {
	margin: 0 0 8px;
	font-size: 13.5px;
	line-height: 1.4;
	color: var(--poolex-muted);
}

.poolex-card .poolex-price {
	margin-top: auto;
	margin-bottom: 8px;
	color: var(--poolex-price);
	font-size: 16px;
	font-weight: 800;
}

.poolex-more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-top: auto;
	align-self: flex-start;
	background: linear-gradient(180deg, #1e88e5 0%, #1565c0 100%);
	color: #fff !important;
	text-decoration: none;
	font-size: 13px;
	font-weight: 700;
	padding: 8px 16px;
	border-radius: 999px;
	box-shadow: 0 6px 14px rgba(21, 101, 192, 0.28);
}

.poolex-more:hover {
	background: var(--poolex-blue-deep);
}

.poolex-page {
	background: var(--poolex-glass);
	backdrop-filter: blur(10px);
	border-radius: 20px;
	padding: 22px 26px;
	border: 1px solid rgba(255, 255, 255, 0.65);
}

.poolex-page h1 {
	margin: 0 0 12px;
	font-size: 28px;
	color: var(--poolex-blue-deep);
}

@media (min-width: 1100px) {
	html,
	body.poolex-layout {
		height: 100%;
		overflow: hidden;
	}

	.poolex-shell {
		height: 100vh;
		overflow: hidden;
	}

	body.admin-bar .poolex-shell {
		height: calc(100vh - 32px);
	}

	.poolex-home {
		flex: 0 1 auto;
	}
}

@media (max-width: 1099px) {
	body.poolex-layout {
		background-attachment: scroll;
		overflow: auto;
	}

	.poolex-shell {
		padding: 10px 12px 24px;
	}

	.poolex-logo img {
		height: 58px;
	}

	.poolex-products {
		grid-template-columns: 1fr;
	}

	.poolex-card__photo,
	.poolex-card__photo img {
		height: auto;
		max-height: 200px;
	}

	.home .poolex-content {
		display: block;
	}
}
