/*
 * Нов живот — base styles.
 * The pages (home, catalogue, product, cart, checkout, account, contact,
 * terms…) and the header/footer are styled by the NewLife Shop plugin.
 * This file gives them the same ground Divi used to: font, reset, base
 * typography — plus styles for plain pages and the fallback header/footer.
 */

@font-face {
	font-family: "Montserrat";
	src: url("../fonts/montserrat-var.woff2") format("woff2");
	font-weight: 100 900;
	font-style: normal;
	font-display: swap;
}

:root {
	--nlt-accent: #1d8bb2;
	--nlt-accent-ink: #146a89;
	--nlt-text: #1c2024;
	--nlt-muted: #5f6770;
	--nlt-line: #dde1e6;
	--nlt-bg: #f5f6f8;
	--nlt-radius: 10px;
	--nlt-font: "Montserrat", "Motserrat-var", Helvetica, Arial, sans-serif;
}

/* ---------- reset (as Divi had it) ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
font,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
figure,
article,
aside,
footer,
header,
main,
nav,
section {
	margin: 0;
	padding: 0;
	border: 0;
	outline: 0;
	font-size: 100%;
	vertical-align: baseline;
	background: transparent;
}

ol,
ul {
	list-style: none;
}

blockquote,
q {
	quotes: none;
}

table {
	border-collapse: collapse;
	border-spacing: 0;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body {
	min-height: 100vh;
	background: #fff;
	color: #000;
	font-family: var(--nlt-font);
	font-size: 18px;
	font-weight: 500;
	line-height: 1.7em;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

a {
	color: var(--nlt-accent);
	text-decoration: none;
}

p {
	padding-bottom: 1em;
}

p:last-of-type {
	padding-bottom: 0;
}

strong,
b {
	font-weight: 700;
}

em,
i {
	font-style: italic;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	color: #000;
	padding-bottom: 10px;
	line-height: 1em;
	font-weight: 500;
}

h1 { font-size: 31px; }
h2 { font-size: 26px; }
h3 { font-size: 22px; }
h4 { font-size: 19px; }
h5 { font-size: 17px; }
h6 { font-size: 15px; }

img,
video {
	max-width: 100%;
	height: auto;
}

button,
input,
select,
textarea {
	font-family: inherit;
	font-size: inherit;
}

input.text,
input.title,
input[type="email"],
input[type="password"],
input[type="tel"],
input[type="text"],
input[type="search"],
input[type="url"],
input[type="number"],
select,
textarea {
	background-color: #fff;
	border: 1px solid #bbb;
	padding: 2px;
	color: #4e4e4e;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
	outline: 2px solid var(--nlt-accent);
	outline-offset: 2px;
}

.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	clip: auto !important;
	clip-path: none;
	display: block;
	height: auto;
	width: auto;
	z-index: 100000;
	padding: 12px 20px;
	background: #fff;
	color: var(--nlt-text);
}

.alignleft { float: left; margin: 0 1.5em 1em 0; }
.alignright { float: right; margin: 0 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; }
.wp-caption { max-width: 100%; }
.wp-caption-text { font-size: 14px; color: var(--nlt-muted); }

.nlt-site {
	display: flex;
	flex-direction: column;
	min-height: 100vh;
}

.nlt-site > .nls-ftr,
.nlt-site > .nlt-ftr {
	margin-top: auto;
}

/* ---------- plain pages ---------- */
.nlt-main {
	background: var(--nlt-bg);
	color: var(--nlt-text);
	font-size: 16px;
	line-height: 1.6;
	padding: 32px 0 64px;
}

.nlt-wrap {
	width: 100%;
	max-width: 1160px;
	margin: 0 auto;
	padding: 0 20px;
}

.nlt-wrap--page {
	max-width: 900px;
}

.nlt-page {
	background: #fff;
	border: 1px solid var(--nlt-line);
	border-radius: var(--nlt-radius);
	padding: 32px 36px;
}

.nlt-page--woo {
	background: transparent;
	border: 0;
	padding: 0;
}

.nlt-title {
	margin: 0 0 18px;
	padding: 0;
	color: var(--nlt-text);
	font-size: 30px;
	line-height: 1.25;
	font-weight: 800;
}

.nlt-meta {
	margin: -8px 0 18px;
	color: var(--nlt-muted);
	font-size: 14px;
}

.nlt-content h2,
.nlt-content h3,
.nlt-content h4 {
	margin: 1.4em 0 .5em;
	padding: 0;
	color: var(--nlt-text);
	line-height: 1.3;
	font-weight: 700;
}

.nlt-content h2 { font-size: 23px; }
.nlt-content h3 { font-size: 19px; }
.nlt-content h4 { font-size: 17px; }

.nlt-content > :first-child {
	margin-top: 0;
}

.nlt-content p {
	padding: 0;
	margin: 0 0 1em;
}

.nlt-content ul,
.nlt-content ol {
	margin: 0 0 1em 1.4em;
}

.nlt-content ul { list-style: disc; }
.nlt-content ol { list-style: decimal; }

.nlt-content li {
	margin: 0 0 .35em;
}

.nlt-content a {
	color: var(--nlt-accent-ink);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.nlt-content table {
	width: 100%;
	margin: 0 0 1em;
	font-size: 15px;
}

.nlt-content th,
.nlt-content td {
	padding: 8px 10px;
	border: 1px solid var(--nlt-line);
	text-align: left;
}

.nlt-content input[type="text"],
.nlt-content input[type="email"],
.nlt-content input[type="tel"],
.nlt-content input[type="password"],
.nlt-content input[type="number"],
.nlt-content input[type="search"],
.nlt-content select,
.nlt-content textarea {
	width: 100%;
	max-width: 100%;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #c4cad1;
	border-radius: 8px;
	color: var(--nlt-text);
	font-size: 16px;
}

.nlt-content textarea {
	min-height: 110px;
}

.nlt-content label {
	font-weight: 600;
}

.nlt-btn,
.nlt-content button[type="submit"],
.nlt-content input[type="submit"],
.nlt-content .button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 22px;
	border: 0;
	border-radius: 8px;
	background: var(--nlt-accent);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none !important;
	cursor: pointer;
}

.nlt-btn:hover,
.nlt-content button[type="submit"]:hover,
.nlt-content input[type="submit"]:hover,
.nlt-content .button:hover {
	background: var(--nlt-accent-ink);
}

.nlt-list-item {
	padding: 16px 0;
	border-bottom: 1px solid var(--nlt-line);
}

.nlt-list-title {
	font-weight: 700;
	font-size: 18px;
}

.nlt-search {
	display: flex;
	gap: 8px;
	max-width: 520px;
	margin: 16px 0;
}

.nlt-search input[type="search"] {
	flex: 1;
	min-height: 44px;
	padding: 8px 14px;
	border: 1px solid #c4cad1;
	border-radius: 8px;
}

.nlt-search button {
	min-height: 44px;
	padding: 8px 18px;
	border: 0;
	border-radius: 8px;
	background: var(--nlt-accent);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

.nlt-404 {
	text-align: center;
	padding-top: 40px;
}

.nlt-404 .nlt-search {
	margin: 20px auto;
}

@media (max-width: 767px) {
	.nlt-main {
		padding: 16px 0 40px;
	}

	.nlt-wrap {
		padding: 0 12px;
	}

	.nlt-page {
		padding: 20px 16px;
	}

	.nlt-title {
		font-size: 24px;
	}
}

/* ---------- WooCommerce pages not drawn by the plugin ---------- */
.nlt-main--woo .woocommerce-products-header__title,
.nlt-main--woo .product_title {
	font-size: 28px;
	font-weight: 800;
	line-height: 1.25;
	color: var(--nlt-text);
}

/* ---------- fallback header / footer (plugin header off) ---------- */
.nlt-skip {
	position: absolute;
	left: 8px;
	top: -100px;
	z-index: 100000;
	padding: 10px 16px;
	background: #fff;
	color: var(--nlt-text);
	font-weight: 600;
}

.nlt-skip:focus {
	top: 8px;
}

.nlt-hdr {
	background: #fff;
	border-bottom: 1px solid var(--nlt-line);
}

.nlt-hdr-row {
	display: flex;
	align-items: center;
	gap: 16px;
	min-height: 72px;
}

.nlt-logo img,
.custom-logo {
	display: block;
	height: 52px;
	width: auto;
}

.nlt-cart {
	margin-left: auto;
	font-weight: 700;
}

.nlt-menu-btn {
	display: none;
	padding: 8px 12px;
	border: 1px solid var(--nlt-line);
	border-radius: 8px;
	background: #fff;
	font-weight: 700;
}

.nlt-nav {
	background: var(--nlt-accent);
}

.nlt-nav-list {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
}

.nlt-nav-list a {
	display: block;
	padding: 10px 12px;
	color: #fff;
	font-size: 13px;
	font-weight: 600;
	text-transform: uppercase;
}

.nlt-ftr {
	padding: 32px 0;
	background: #16242d;
	color: #c9d3da;
	font-size: 14px;
}

.nlt-ftr a {
	color: #fff;
}

.nlt-ftr-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 20px;
	margin-bottom: 16px;
}

@media (max-width: 980px) {
	.nlt-menu-btn {
		display: inline-block;
	}

	.nlt-nav {
		display: none;
	}

	.nlt-nav.is-open {
		display: block;
	}

	.nlt-nav-list {
		flex-direction: column;
	}
}

/* ---------- moved from Divi's Custom CSS (still used) ---------- */
.out-of-stock-bg {
	color: #1d8bb2;
	font-size: 20px;
	font-weight: 700;
}
