/* Makroplast theme — mobile-first, no framework. */

:root {
	--brand: #1f6fb2;
	--brand-dark: #155080;
	--ink: #222;
	--muted: #666;
	--line: #e2e2e2;
	--bg-soft: #f6f7f9;
	--radius: 6px;
	--maxw: 1140px;
}

* { box-sizing: border-box; }

body {
	margin: 0;
	font-family: -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	color: var(--ink);
	line-height: 1.55;
	background: #fff;
}

img { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
	width: 100%;
	max-width: var(--maxw);
	margin: 0 auto;
	padding: 0 16px;
}

/* ---- Header / nav ---- */
.site-header {
	border-bottom: 1px solid var(--line);
	background: #fff;
	position: sticky;
	top: 0;
	z-index: 50;
}
.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding-top: 12px;
	padding-bottom: 12px;
}
.site-logo {
	font-size: 1.25rem;
	font-weight: 700;
	color: var(--brand-dark);
}
.site-logo:hover { text-decoration: none; }
.custom-logo-link { display: inline-block; line-height: 0; }
.custom-logo { display: block; width: auto; height: auto; max-height: 60px; }

.nav-toggle {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 5px;
	width: 40px;
	height: 40px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	cursor: pointer;
}
.nav-toggle span {
	display: block;
	height: 2px;
	width: 22px;
	margin: 0 auto;
	background: var(--ink);
}

.site-nav { display: none; width: 100%; }
.site-nav.is-open { display: block; }
.site-nav__menu {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
	width: 100%;
}
.site-nav__menu li { border-top: 1px solid var(--line); }
.site-nav__menu a { display: block; padding: 12px 4px; color: var(--ink); }

@media (min-width: 860px) {
	.nav-toggle { display: none; }
	.site-header__inner { flex-wrap: nowrap; }
	.site-nav { display: block; width: auto; }
	.site-nav__menu { display: flex; gap: 22px; margin: 0; }
	.site-nav__menu li { border-top: 0; }
	.site-nav__menu a { padding: 6px 0; }
}

/* ---- Layout ---- */
.site-main { padding: 24px 0 48px; }
.page-title { font-size: 1.7rem; margin: 8px 0 20px; }
.section-title { font-size: 1.3rem; margin: 32px 0 14px; }
.breadcrumbs { font-size: .85rem; color: var(--muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--muted); }
.back-link { margin-top: 28px; }
.empty { color: var(--muted); }

/* ---- Hero ---- */
.hero {
	background: var(--bg-soft);
	border-radius: var(--radius);
	padding: 36px 24px;
	margin-bottom: 28px;
	text-align: center;
}
.hero__title { margin: 0 0 8px; font-size: 2rem; color: var(--brand-dark); }
.hero__lead { color: var(--muted); margin: 0 0 18px; }

.btn {
	display: inline-block;
	background: var(--brand);
	color: #fff;
	padding: 11px 22px;
	border: 0;
	border-radius: var(--radius);
	font-size: 1rem;
	cursor: pointer;
}
.btn:hover { background: var(--brand-dark); text-decoration: none; }

/* ---- Category & product grids ---- */
.category-grid, .product-grid {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 14px;
}
@media (min-width: 620px) { .category-grid, .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 900px) { .category-grid, .product-grid { grid-template-columns: repeat(4, 1fr); } }

.catalog-group__title {
	font-size: 1.15rem;
	margin: 28px 0 12px;
}
.catalog-group__title:first-of-type { margin-top: 8px; }
.catalog-group__title a { color: var(--ink); }
.catalog-group__title a:hover { color: var(--brand); }

.category-card a {
	display: flex;
	flex-direction: column;
	gap: 6px;
	padding: 18px 14px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	color: var(--ink);
	height: 100%;
}
.category-card a:hover { border-color: var(--brand); text-decoration: none; }
.category-card__title { font-weight: 600; }
.category-card__count { font-size: .8rem; color: var(--muted); }

.product-card__link {
	display: flex;
	flex-direction: column;
	gap: 8px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	color: var(--ink);
	height: 100%;
}
.product-card__link:hover { border-color: var(--brand); text-decoration: none; }
.product-card__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: var(--bg-soft);
	overflow: hidden;
}
.product-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card__noimg { display: block; width: 100%; height: 100%; }
.product-card__title { padding: 0 12px 12px; font-weight: 600; font-size: .95rem; }

/* ---- Product page ---- */
.product__body { margin-bottom: 28px; }
.product__body img { border-radius: var(--radius); }

/* ---- Colour picker ---- */
.picker {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--line);
}
.picker__title { font-size: 1.3rem; margin: 0 0 16px; }
.picker__preview { margin-bottom: 16px; }

/* Stage: a fixed square box; every group's layer is stacked absolutely so a
   tile base and a transparent corner overlay composite into one image. */
.picker__stage {
	position: relative;
	max-width: 320px;
	margin: 0 auto;
	aspect-ratio: 1 / 1;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
	background: #fff;
}
.picker__layer {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: contain;
	transition: opacity .2s ease;
}
.picker__layer.is-fading { opacity: .25; }

.picker__names { text-align: center; margin: 10px 0 0; }
.picker__name { margin: 2px 0; font-weight: 600; }
.picker__name-label { color: var(--muted); font-weight: 500; }

.picker__tabs { display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap; }
.picker__tab {
	padding: 8px 16px;
	border: 1px solid var(--line);
	background: #fff;
	border-radius: var(--radius);
	cursor: pointer;
	font-size: .95rem;
}
.picker__tab.is-active { background: var(--brand); color: #fff; border-color: var(--brand); }
.picker__group-label { font-size: 1rem; margin: 0 0 12px; color: var(--muted); }

.swatches {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	gap: 8px;
}
.swatches li { text-align: center; }
.swatch {
	display: block;
	width: 100%;
	padding: 0;
	border: 2px solid var(--line);
	border-radius: var(--radius);
	background: #fff;
	cursor: pointer;
	overflow: hidden;
}
.swatch:hover { border-color: var(--brand); }
.swatch.is-active { border-color: var(--brand-dark); box-shadow: 0 0 0 2px var(--brand-dark); }
.swatch img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }

/* ---- Post lists (news/articles) ---- */
.post-list { list-style: none; padding: 0; margin: 0; }
.post-list__item { padding: 16px 0; border-bottom: 1px solid var(--line); }
.post-list__date { font-size: .8rem; color: var(--muted); }
.post-list__title { font-size: 1.1rem; margin: 4px 0; }
.post-list__excerpt { color: var(--muted); margin: 4px 0 0; }
.post-list--compact .post-list__item { display: flex; gap: 12px; align-items: baseline; }

.editorial__date { color: var(--muted); font-size: .85rem; }
.editorial__body img { border-radius: var(--radius); }

/* ---- Contacts ---- */
.contacts { display: grid; gap: 24px; margin: 8px 0 8px; }
@media (min-width: 760px) { .contacts { grid-template-columns: 1fr 1fr; align-items: start; } }
.contacts__list { list-style: none; margin: 0; padding: 0; }
.contacts__list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.contacts__list li:last-child { border-bottom: 0; }
.contacts__label {
	display: block;
	font-size: .78rem;
	text-transform: uppercase;
	letter-spacing: .03em;
	color: var(--muted);
	margin-bottom: 2px;
}
.contacts__map {
	position: relative;
	width: 100%;
	aspect-ratio: 4 / 3;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	overflow: hidden;
}
.contacts__map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.contacts__map-link {
	position: absolute;
	left: 8px;
	bottom: 8px;
	margin: 0;
	font-size: .82rem;
	background: rgba(255, 255, 255, .9);
	padding: 4px 8px;
	border-radius: var(--radius);
}

/* ---- Enquiry form ---- */
.enquiry {
	margin-top: 32px;
	padding: 24px;
	background: var(--bg-soft);
	border-radius: var(--radius);
	max-width: 560px;
}
.enquiry__title { margin-top: 0; }
.enquiry__hp { position: absolute; left: -9999px; }
.field { margin: 0 0 14px; }
.field label { display: block; font-weight: 600; margin-bottom: 4px; }
.field input, .field textarea {
	width: 100%;
	padding: 10px;
	border: 1px solid var(--line);
	border-radius: var(--radius);
	font: inherit;
}
.field--hint { font-size: .82rem; color: var(--muted); }
.req { color: #c0392b; }

.notice { padding: 10px 14px; border-radius: var(--radius); }
.notice--ok { background: #e6f5ea; color: #1d6b35; }
.notice--err { background: #fdecea; color: #b3261e; }

/* ---- Footer ---- */
.site-footer {
	border-top: 1px solid var(--line);
	background: var(--bg-soft);
	padding: 24px 0;
	margin-top: 48px;
}
.footer-nav__menu {
	list-style: none;
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	padding: 0;
	margin: 0 0 12px;
}
.site-footer__copy { color: var(--muted); font-size: .85rem; margin: 0; }

/* ---- WP core classes ---- */
.alignleft { float: left; margin: 0 16px 12px 0; }
.alignright { float: right; margin: 0 0 12px 16px; }
.aligncenter { display: block; margin: 0 auto 12px; }
.pagination, .nav-links { margin-top: 24px; display: flex; gap: 8px; flex-wrap: wrap; }
.pagination .page-numbers, .nav-links .page-numbers {
	padding: 6px 12px; border: 1px solid var(--line); border-radius: var(--radius);
}
.pagination .current { background: var(--brand); color: #fff; border-color: var(--brand); }
