/*
 * Оформление emar7.ru
 *
 * Сайт работает на теме sintera — той же, что и sintera.info. Из-за этого
 * обе главные выглядели одинаково: Montserrat, плоский синий #5394ed,
 * центрированные заголовки блоков, карточки с мягкой тенью.
 *
 * Этот файл задаёт emar7 своё лицо, отталкиваясь от его же логотипа:
 * в нём градиент от синего #1878d8 к бирюзовому #00c2d4. Тему не ломаем —
 * меняем только цвет, шрифт и форму, геометрию блоков не трогаем.
 *
 * Подключается mu-плагином emar7-oformlenie.php последним, после
 * sintera.min.css и custom.css.
 */

:root {
	--em-sinij:      #1878d8;
	--em-biryuza:    #00c2d4;
	--em-gradient:   linear-gradient(120deg, #1878d8 0%, #00c2d4 100%);
	--em-temnyj:     #12161c;
	--em-seryj:      #5d6975;
	--em-ramka:      #dde5ec;
	--em-podlozhka:  #f2f6f9;
	--em-radius:     10px;
}

/* ---------- шрифт: Inter вместо Montserrat ---------- */

body,
button, input, select, textarea,
.sintera-block-title,
h1, h2, h3, h4, h5, h6 {
	font-family: 'Inter', -apple-system, 'Segoe UI', Roboto, sans-serif;
}

body { color: var(--em-temnyj); -webkit-font-smoothing: antialiased; }

h1, h2, h3, h4 { letter-spacing: -0.015em; }

/* ---------- фирменная полоса вверху страницы ---------- */

body::before {
	content: '';
	position: fixed;
	top: 0; left: 0; right: 0;
	height: 3px;
	background: var(--em-gradient);
	z-index: 9999;
	pointer-events: none;
}

/* ---------- заголовки блоков: слева, с чертой ---------- */

.sintera-block-title {
	position: relative;
	text-align: left;
	padding-top: 18px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--em-temnyj);
}

.sintera-block-title::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 54px; height: 4px;
	border-radius: 2px;
	background: var(--em-gradient);
}

/* ---------- кнопки ---------- */

.sintera-outline-button,
.main-slider-item-button {
	border-radius: 8px;
	font-weight: 600;
	letter-spacing: 0.01em;
	transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.main-slider-item-button {
	background: var(--em-gradient);
	border: 0;
	color: #fff;
}

.main-slider-item-button:hover {
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(24, 120, 216, .28);
	color: #fff;
}

.sintera-outline-button {
	border: 1.5px solid var(--em-sinij);
	color: var(--em-sinij);
	background: transparent;
}

.sintera-outline-button:hover {
	background: var(--em-sinij);
	border-color: var(--em-sinij);
	color: #fff;
}

/* ---------- карточка товара: плоская, с рамкой ---------- */

.product.col-6,
.product.col-lg-3 {
	margin-bottom: 22px;
}

.products .product > .product-image {
	display: block;
	border: 1px solid var(--em-ramka);
	border-radius: var(--em-radius);
	background: #fff;
	overflow: hidden;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.products .product > .product-image:hover {
	border-color: var(--em-biryuza);
	box-shadow: 0 8px 22px rgba(18, 22, 28, .09);
	transform: translateY(-2px);
}

.product-name {
	display: block;
	margin-top: 12px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--em-temnyj);
}

.product-name:hover { color: var(--em-sinij); }

.product-price {
	margin-top: 6px;
	font-weight: 700;
	font-size: 1.05em;
	color: var(--em-sinij);
}

/* ---------- блок брендов ---------- */

.product-brand {
	border: 1px solid var(--em-ramka);
	border-radius: var(--em-radius);
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.product-brand:hover {
	border-color: var(--em-biryuza);
	box-shadow: 0 8px 22px rgba(18, 22, 28, .08);
}

.product-brand-name {
	font-weight: 600;
	letter-spacing: .04em;
	color: var(--em-temnyj);
}

.brand-item-inside {
	border-radius: var(--em-radius);
	transition: background-color .15s ease;
}

.brand-item-inside:hover { background: var(--em-podlozhka); }

.brand-item-title { font-weight: 500; color: var(--em-seryj); }

/* ---------- плитки разделов (свой блок главной) ---------- */

.popular-categories-block .emar7-razdel-link {
	border-color: var(--em-ramka);
	border-radius: var(--em-radius);
	background: #fff;
}

.popular-categories-block .emar7-razdel-link:hover {
	border-color: var(--em-biryuza);
	box-shadow: 0 8px 22px rgba(18, 22, 28, .08);
}

.popular-categories-block .emar7-razdel-name { color: var(--em-temnyj); }
.popular-categories-block .emar7-razdel-count { color: var(--em-seryj); }

/* ---------- текстовый блок главной ---------- */

.emar7-about {
	margin-top: 12px;
	padding: 34px 28px 24px;
	background: var(--em-podlozhka);
	border-radius: 14px;
}

.emar7-about h2 {
	position: relative;
	padding-top: 18px;
	font-weight: 700;
}

.emar7-about h2::before {
	content: '';
	position: absolute;
	top: 0; left: 0;
	width: 54px; height: 4px;
	border-radius: 2px;
	background: var(--em-gradient);
}

.emar7-about h3 { font-weight: 600; color: var(--em-temnyj); }
.emar7-about a { color: var(--em-sinij); text-decoration-color: rgba(24, 120, 216, .35); }
.emar7-about a:hover { color: #0e5ea8; text-decoration-color: currentColor; }

@media (max-width: 767px) {
	.emar7-about { padding: 24px 18px 18px; border-radius: 10px; }
}

/* ---------- ссылки и мелочь ---------- */

a { color: var(--em-sinij); }
a:hover { color: #0e5ea8; }

.woocommerce-Price-amount { color: inherit; }

/* ---------- вёрстка собственных блоков главной ----------
 * Раньше эти правила лежали прямо в шаблонных частях. Оттуда они
 * перебивали палитру выше по файлу, поэтому переехали сюда целиком.
 */

.popular-categories-block .emar7-razdel { margin-bottom: 16px; }

.popular-categories-block .emar7-razdel-link {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 84px;
	height: 100%;
	padding: 14px 18px;
	border: 1px solid var(--em-ramka);
	border-radius: var(--em-radius);
	background: #fff;
	text-decoration: none;
	color: inherit;
	transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}

.popular-categories-block .emar7-razdel-link:hover {
	border-color: var(--em-biryuza);
	box-shadow: 0 8px 22px rgba(18, 22, 28, .08);
	transform: translateY(-2px);
}

.popular-categories-block .emar7-razdel-name { font-weight: 600; line-height: 1.3; }

.popular-categories-block .emar7-razdel-count {
	margin-top: 6px;
	font-size: 14px;
	color: var(--em-seryj);
}

.emar7-about { max-width: 1000px; }
.emar7-about h2 { font-size: 28px; line-height: 1.25; margin: 0 0 18px; }
.emar7-about h3 { font-size: 20px; line-height: 1.3; margin: 26px 0 10px; }
.emar7-about p { margin: 0 0 12px; line-height: 1.65; }
.emar7-about .emar7-about-list { margin: 0 0 12px; padding-left: 20px; }
.emar7-about .emar7-about-list li { margin-bottom: 8px; line-height: 1.6; }
.emar7-about a { text-decoration: underline; }

@media (max-width: 767px) {
	.emar7-about h2 { font-size: 23px; }
	.emar7-about h3 { font-size: 18px; }
}
