/*
Theme Name: Zakra Child (Тонер+)
Theme URI: https://toner-plus.ru/
Description: Дочерняя тема интернет-магазина «Тонер+» на базе темы Zakra. Позволяет безопасно править стили и шаблоны, не затрагивая родительскую тему.
Author: Тонер+
Author URI: https://toner-plus.ru/
Template: zakra
Version: 1.0.0
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: zakra-child
*/

/* ==========================================================================
   ШАПКА «ТОНЕР+» (структура и стили по образцу lazuritprint.ru)
   ========================================================================== */

.tp-header,
.tp-header * {
	box-sizing: border-box;
}

.tp-header {
	background: #fff;
	color: #1f2937;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	position: relative;
	z-index: 999;
	line-height: 1.4;
}

.tp-header a {
	text-decoration: none;
	color: inherit;
	transition: color .15s ease;
}

.tp-container {
	max-width: 1240px;
	margin: 0 auto;
	padding: 0 16px;
}

/* --- 1. Верхняя строка --------------------------------------------- */
.tp-topbar {
	border-bottom: 1px solid #eef0f3;
	font-size: 13px;
	color: #4b5563;
}

.tp-topbar__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
	gap: 16px;
}

.tp-topbar__left {
	display: flex;
	align-items: center;
	gap: 20px;
	flex-wrap: wrap;
}

.tp-topbar__city {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #374151;
	white-space: nowrap;
}

.tp-topbar__city svg {
	color: #3a6ab3;
}

.tp-topbar__links {
	display: flex;
	gap: 18px;
	flex-wrap: wrap;
}

.tp-topbar__links a:hover {
	color: #3a6ab3;
}

.tp-topbar__callback {
	color: #3a6ab3;
	font-weight: 600;
}

.tp-topbar__callback:hover {
	text-decoration: underline;
}

/* --- 2. Основная строка -------------------------------------------- */
.tp-mainbar {
	border-bottom: 1px solid #eef0f3;
}

.tp-mainbar__inner {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: 12px 0;
}

.tp-logo img {
	max-height: 52px;
	width: auto;
	display: block;
}

.tp-logo__text {
	font-weight: 800;
	font-size: 26px;
	color: #123a6b;
}

/* Кнопка «Каталог» — как на lazuritprint.ru: синяя, 8px, 60px высотой */
.tp-header .tp-catalog-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #002355;
	color: #fff;
	border: 0;
	border-radius: 8px;
	height: 48px;
	min-width: 140px;
	padding: 0 22px;
	font-size: 16px;
	font-weight: 400;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease;
	text-decoration: none;
}

.tp-header .tp-catalog-btn:hover,
.tp-header .tp-catalog-btn:focus,
.tp-header .tp-catalog-btn:visited {
	background: #00356e;
	color: #fff;
	text-decoration: none;
}

.tp-burger {
	display: inline-flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	width: 18px;
}

.tp-burger span {
	display: block;
	height: 2px;
	background: currentColor;
	border-radius: 2px;
}

/* Поле поиска — как на lazuritprint.ru: белое, рамка 2px #3a6ab3, лупа слева */
.tp-search {
	flex: 1;
	display: flex;
	align-items: center;
	background: #fff;
	border: 2px solid #3a6ab3;
	border-radius: 8px;
	overflow: hidden;
	min-width: 200px;
	height: 48px;
}

.tp-search__input {
	flex: 1;
	border: 0;
	background: transparent;
	padding: 0 16px 0 4px;
	font-size: 16px;
	color: #555;
	outline: none;
	min-width: 0;
	height: 100%;
	font-family: inherit;
}

.tp-search__input::placeholder {
	color: #9aa4b0;
}

.tp-search__btn {
	border: 0;
	border-right: 2px solid #3a6ab3;
	border-radius: 0;
	background: transparent;
	padding: 0 16px;
	height: 100%;
	cursor: pointer;
	color: #3a6ab3;
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
}

.tp-search__btn:hover {
	color: #2f5a9c;
}

.tp-phone {
	display: flex;
	flex-direction: column;
	line-height: 1.25;
	white-space: nowrap;
}

.tp-phone__number {
	font-size: 18px;
	font-weight: 700;
	color: #1f2937;
}

.tp-phone__number:hover {
	color: #3a6ab3;
}

.tp-phone__hours {
	font-size: 11px;
	color: #6b7280;
}

.tp-icons {
	display: flex;
	align-items: center;
	gap: 14px;
}

.tp-icon {
	position: relative;
	color: #374151;
	display: inline-flex;
	padding: 4px;
}

.tp-icon:hover {
	color: #3a6ab3;
}

.tp-icon__count {
	position: absolute;
	top: -4px;
	right: -6px;
	background: #e8453c;
	color: #fff;
	font-size: 10px;
	font-weight: 700;
	border-radius: 10px;
	min-width: 16px;
	height: 16px;
	line-height: 16px;
	text-align: center;
	padding: 0 4px;
}

.tp-mobile-toggle {
	display: none;
	background: transparent;
	border: 0;
	color: #3a6ab3;
	cursor: pointer;
	padding: 6px;
}

/* --- 3. Нижняя строка ---------------------------------------------- */
.tp-navbar {
	border-bottom: 1px solid #eef0f3;
}

.tp-navbar__inner {
	display: flex;
	align-items: center;
	gap: 22px;
	min-height: 44px;
	font-size: 14px;
	flex-wrap: wrap;
}

.tp-navbar__promo {
	color: #374151;
	font-weight: 500;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.tp-navbar__promo:hover {
	color: #3a6ab3;
}

.tp-navbar__sale {
	color: #e8453c;
	font-weight: 800;
}

.tp-brands {
	display: flex;
	align-items: center;
	gap: 18px;
	list-style: none;
	margin: 0 0 0 auto;
	padding: 0;
	flex-wrap: wrap;
}

.tp-brands a {
	color: #4b5563;
}

.tp-brands a:hover {
	color: #3a6ab3;
}

.tp-brands__all {
	color: #3a6ab3;
	font-weight: 600;
}

/* --- Мобильное меню ------------------------------------------------ */
.tp-mobile-menu {
	display: none;
	border-bottom: 1px solid #eef0f3;
	background: #fff;
	padding: 10px 0 18px;
}

.tp-mobile-menu ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-mobile-menu a {
	display: block;
	padding: 10px 0;
	font-size: 15px;
	border-bottom: 1px solid #f1f3f6;
}

.tp-mobile-menu a:hover {
	color: #3a6ab3;
}

.tp-mobile-menu .tp-mobile-title {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: .04em;
	color: #9ca3af;
	margin: 14px 0 6px;
}

/* --- Адаптивность -------------------------------------------------- */
@media (max-width: 1100px) {
	.tp-phone {
		display: none;
	}
}

@media (max-width: 860px) {
	.tp-topbar__links {
		display: none;
	}

	/* Кнопка «Каталог» в мобильной: показываем, компактная, сразу после логотипа.
	   Была display:none — из-за этого в мобильной её вообще не было. */
	.tp-header .tp-catalog-btn {
		display: inline-flex;
		order: 2;
		flex: 0 0 auto;
		height: 40px;
		min-width: 0;
		padding: 0 14px;
		font-size: 14px;
		gap: 8px;
	}

	.tp-logo {
		order: 1;
		min-width: 0;
	}

	.tp-logo img {
		max-height: 40px;
	}

	.tp-icons {
		order: 3;
	}

	.tp-mobile-toggle {
		order: 4;
	}

	.tp-mainbar__inner {
		flex-wrap: wrap;
		gap: 12px;
	}

	.tp-search {
		order: 5;
		flex-basis: 100%;
		margin-top: 10px;
		height: 44px;
	}

	.tp-mobile-toggle {
		display: inline-flex;
		margin-left: auto;
	}

	.tp-navbar {
		display: none;
	}

	.tp-header.tp-nav-open .tp-mobile-menu {
		display: block;
	}
}

/* Очень узкие экраны: ужимаем логотип и кнопку, иначе ряд «логотип + Каталог»
   перестаёт влезать в строку (проверено замером на 320px). */
@media (max-width: 380px) {
	.tp-logo img {
		max-height: 32px;
	}

	.tp-header .tp-catalog-btn {
		height: 36px;
		padding: 0 10px;
		font-size: 13px;
		gap: 6px;
	}

	.tp-mainbar__inner {
		gap: 8px;
	}

	.tp-icons {
		gap: 6px;
	}
}

/* ==========================================================================
   ФУТЕР «ТОНЕР+» — светлый, стиль по образцу lazuritprint.ru
     footer      — padding 40/40, margin-top 40, font-size 16
     заголовок   — #000, 18px, 600, uppercase, pt 20 / pb 15
     ссылка      — #202020, 16px, 500, mt 10, hover #3a6ab3
     li          — padding-bottom 7px
     нижняя стр. — #eff2f6 border-top, #555A64, 12px, opacity .5
   ========================================================================== */

.tp-footer {
	background: #FAFAFA;
	color: #333;
	font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;
	font-size: 16px;
	line-height: 1.5;
	margin-top: 40px;
	padding-top: 40px;
	padding-bottom: 40px;
}

.tp-footer a {
	color: #202020;
	text-decoration: none;
	transition: color .15s ease;
}

.tp-footer a:hover {
	color: #3a6ab3;
}

.tp-footer__grid {
	display: grid;
	grid-template-columns: 1.3fr 1fr 1.1fr 1.1fr;
	gap: 30px;
	align-items: start;
}

.tp-footer__logo {
	max-width: 200px;
	width: auto;
	height: auto;
	display: block;
}

.tp-footer__logo-text {
	font-weight: 800;
	font-size: 26px;
	color: #123a6b;
}

.tp-footer__title {
	color: #000;
	font-size: 18px;
	font-weight: 600;
	text-transform: uppercase;
	padding-top: 20px;
	padding-bottom: 15px;
}

.tp-footer__list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.tp-footer__list li {
	padding: 0 0 7px 0;
}

.tp-footer__list a {
	font-size: 16px;
	font-weight: 500;
	display: inline-block;
	margin-top: 10px;
}

/* Контакты ---------------------------------------------------------- */
.tp-footer__phone-row {
	display: flex;
	align-items: center;
	gap: 10px;
	padding-top: 20px;
	margin-bottom: 15px;
}

.tp-footer__phone-icon {
	color: #3a6ab3;
	display: inline-flex;
}

.tp-footer__phone {
	font-size: 18px;
	font-weight: 600;
	color: #000 !important;
}

.tp-footer__phone:hover {
	color: #3a6ab3 !important;
}

.tp-footer__email {
	display: inline-block;
	font-size: 16px;
	font-weight: 500;
	margin-bottom: 15px;
}

.tp-footer__hours,
.tp-footer__hours-val {
	margin: 0;
	font-size: 16px;
	color: #202020;
	font-weight: 500;
}

/* Нижняя строка ----------------------------------------------------- */
.tp-footer__bottom {
	border-top: 1px solid #eff2f6;
	margin-top: 30px;
	padding-top: 35px;
	padding-bottom: 20px;
	text-align: center;
}

.tp-footer__bottom p {
	margin: 0 0 8px;
	color: #555A64;
	font-size: 12px;
	font-weight: 300;
	opacity: .5;
	line-height: 1.4;
}

.tp-footer__bottom a {
	color: #5c5c5c;
	text-decoration: underline;
}

.tp-footer__bottom a:hover {
	color: #3a6ab3;
}

/* Адаптивность ------------------------------------------------------ */
@media (max-width: 960px) {
	.tp-footer__grid {
		grid-template-columns: 1fr 1fr;
		gap: 24px;
	}
}

@media (max-width: 560px) {
	.tp-footer__grid {
		grid-template-columns: 1fr;
	}
}

/* ==========================================================================
   КНОПКИ-КАРТИНКИ БРЕНДОВ в магазине (по образцу lazuritprint.ru/shop/cartridge/)
   ========================================================================== */

.tp-shop-brands {
	margin: 0 0 26px;
}

.tp-shop-brands__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 18px;
}

.tp-shop-brand {
	display: flex;
	align-items: center;
	justify-content: center;
	background: #fff;
	border: 1px solid #e6e9ee;
	border-radius: 8px;
	padding: 14px 18px;
	min-height: 96px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.tp-shop-brand img {
	max-width: 100%;
	max-height: 62px;
	width: auto;
	height: auto;
	display: block;
	object-fit: contain;
}

.tp-shop-brand:hover {
	border-color: #002355;
	box-shadow: 0 4px 14px rgba(0, 35, 85, .12);
}

.tp-shop-brand.is-active {
	border-color: #002355;
	box-shadow: inset 0 0 0 1px #002355;
}

@media (max-width: 900px) {
	.tp-shop-brands__grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 520px) {
	.tp-shop-brands__grid {
		grid-template-columns: 1fr;
	}
}

/* Блок брендов занимает отдельную строку над результатами/сортировкой */
.zak-wc-filter {
	flex-wrap: wrap;
}

.tp-shop-brands {
	flex: 0 0 100%;
	width: 100%;
}

/* ==========================================================================
   ФОРМА Contact Form 7 «Заявка» (по образцу формы с lazuritprint.ru)
     строка из 3 колонок: Имя | Телефон | Кнопка
     ниже — сообщения и текст согласия
   ========================================================================== */

.tp-cf7-row {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	align-items: flex-start;
}

.tp-cf7-col {
	flex: 1 1 0;
	min-width: 0;
}

.tp-cf7-col--full {
	flex: 0 0 100%;
}

.tp-cf7-col--btn {
	flex: 0 1 auto;
	min-width: 0;
}

.tp-cf7-row input[type="text"],
.tp-cf7-row input[type="tel"],
.tp-cf7-row input[type="email"] {
	width: 100%;
	height: 52px;
	padding: 0 16px;
	border: 1px solid #d7dbe0;
	border-radius: 8px;
	font-size: 16px;
	color: #333;
	background: #fff;
	box-sizing: border-box;
	transition: border-color .15s ease;
}

.tp-cf7-row input[type="text"]:focus,
.tp-cf7-row input[type="tel"]:focus,
.tp-cf7-row input[type="email"]:focus {
	border-color: #002355;
	outline: none;
}

.tp-cf7-row input::placeholder {
	color: #9aa4b0;
}

.tp-cf7-row button[type="submit"],
.tp-cf7-row input[type="submit"] {
	height: 52px;
	padding: 0 28px;
	background: #002355;
	color: #fff;
	border: 0;
	border-radius: 8px;
	font-size: 16px;
	font-family: inherit;
	cursor: pointer;
	white-space: nowrap;
	transition: background .15s ease;
}

.tp-cf7-row button[type="submit"]:hover,
.tp-cf7-row input[type="submit"]:hover {
	background: #00356e;
	color: #fff;
}

.tp-cf7-row .minpbp {
	font-size: 12px;
	color: #6b7280;
	line-height: 1.45;
}

.tp-cf7-row .minpbp a {
	color: #3a6ab3;
	text-decoration: underline;
}

.tp-cf7-row .wpcf7-response-output {
	margin: 0 0 6px;
	padding: 12px 16px;
	border-radius: 8px;
	font-size: 14px;
	border-width: 1px;
	border-style: solid;
}

.tp-cf7-row .wpcf7-not-valid-tip {
	color: #e8453c;
	font-size: 12px;
	margin-top: 4px;
}

.tp-cf7-row .wpcf7-spinner {
	margin: 0 0 0 12px;
}

@media (max-width: 560px) {
	.tp-cf7-col,
	.tp-cf7-col--btn {
		flex: 1 1 100%;
		min-width: 0;
	}

	.tp-cf7-row button[type="submit"] {
		width: 100%;
	}
}

/* CF7 оборачивает поля в <p> — убираем лишние отступы внутри формы */
.tp-cf7-row p {
	margin: 0;
}

.tp-cf7-row .wpcf7-form-control-wrap {
	display: block;
}

/* ==========================================================================
   Кнопка «В запрос» (плагин ELEX) — на всю ширину карточки товара
   ========================================================================== */

ul.products li.product .add_to_quote,
ul.products li.product button.add_to_quote {
	display: block;
	width: calc(100% - 2px);
	max-width: calc(100% - 2px);
	box-sizing: border-box;
	text-align: center;
	/* !important — иначе плагин ELEX перебивает классом .my-2
	   (margin-top/bottom: .5rem !important) */
	margin: 1px !important;
	/* Скругление как у кнопки «Подробнее».
	   !important — перебиваем плагин ELEX:
	   .elex-rqst-quote-front-wrap .rounded-2 { border-radius: var(--bs-border-radius) !important; } */
	border-radius: 4px !important;
}

/* Родительский блок кнопки тоже на всю ширину */
ul.products li.product .add_to_quote-btn-wrap,
ul.products li.product .w-100 {
	width: 100%;
}

/* Кнопка «Подробнее» (бывш. «Читать далее») — на всю ширину карточки */
ul.products li.product a.button.product_type_simple,
ul.products li.product .product_type_simple {
	display: block;
	width: calc(100% - 2px);
	max-width: calc(100% - 2px);
	box-sizing: border-box;
	text-align: center;
	margin: 1px;
}

/* ==========================================================================
   Блок товаров из шорткода [toner_products] / [rekomenduem]
   ========================================================================== */

.tp-products-block {
	margin: 0 0 30px;
}

.tp-products-block__title {
	margin: 0 0 20px;
	font-family: Roboto, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
	font-size: 32px;
	font-weight: 600;
	line-height: 1.2;
	color: #3C3C3C;
	text-align: center;
}

.tp-products-block__more {
	margin-top: 20px;
	text-align: center;
}

.tp-products-block__btn {
	display: inline-block;
	padding: 10px 24px;
	background: #002355;
	color: #fff;
	border-radius: 4px;
	text-decoration: none;
}

.tp-products-block__btn:hover {
	background: #00356e;
	color: #fff;
}

/* ==========================================================================
   Кнопка «Пролистать наверх» — цвет как у кнопки «Каталог» в шапке
   ========================================================================== */

#zak-scroll-to-top {
	background-color: #002355;
}

#zak-scroll-to-top:hover,
#zak-scroll-to-top:focus {
	background-color: #00356e;
}

#zak-scroll-to-top svg {
	fill: #ffffff;
}
