/*
Theme Name: PROFVISION
Description: Тема сайту PROFVISION — системи безпеки. Магазин (WooCommerce) + сайт-візитка.
Version: 1.3.0
Requires at least: 6.4
Requires PHP: 8.0
Text Domain: profvision
*/

/* ===== Токени ===== */
:root {
	--black: #000;
	--graphite: #1d1d1d;
	--graphite-2: #2b2b2b;
	--concrete: #ececea;
	--concrete-2: #f6f6f4;
	--white: #fff;
	--yellow: #f6d31b;
	--yellow-hi: #ffe24a;
	--muted: #6a6a66;
	--line: #dcdcd8;
	--ok: #2e9e44;

	--display: "Unbounded", "Arial Black", sans-serif;
	--text: "Golos Text", "Segoe UI", Arial, sans-serif;

	--wrap: 1240px;
	--gutter: clamp(16px, 4vw, 40px);
	--r-pill: 999px;
	--r-tile: 18px;
	--r-card: 10px;
}

/* ===== База ===== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	font: 400 17px/1.6 var(--text);
	color: var(--black);
	background: var(--white);
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--black); }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
h1, h2, h3, h4 { font-family: var(--display); font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(32px, 4.6vw, 54px); }
h2 { font-size: clamp(26px, 3.2vw, 40px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(1px,1px,1px,1px); }
.skip-link:focus { position: fixed; top: 8px; left: 8px; z-index: 999; background: var(--yellow); padding: 8px 14px; clip: auto; width: auto; height: auto; }

/* ===== Кнопки ===== */
.btn {
	display: inline-flex; align-items: center; gap: 12px;
	padding: 14px 26px; border-radius: var(--r-pill);
	font: 700 16px/1.2 var(--text); text-decoration: none; border: 2px solid transparent;
	cursor: pointer; transition: background .15s, color .15s, border-color .15s;
}
.btn-yellow { background: var(--yellow); color: var(--black); }
.btn-yellow:hover { background: var(--yellow-hi); color: var(--black); }
.btn-yellow .btn-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--black); display: grid; place-items: center; margin-left: -12px; }
.btn-yellow .btn-dot svg { width: 16px; height: 16px; fill: var(--yellow); }
.btn-ghost { border-color: currentColor; color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--black); border-color: var(--white); }
.btn-dark { background: var(--black); color: var(--white); }
.btn-dark:hover { background: var(--graphite-2); color: var(--white); }

/* ===== Шапка ===== */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--black); color: var(--white); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 0; } }
.header-row { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand img { height: 40px; width: auto; }
.main-nav { margin-right: auto; }
.main-nav ul { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.main-nav a { display: block; white-space: nowrap; padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none; font-weight: 500; color: #d9d9d6; }
.main-nav a:hover, .main-nav .current-menu-item > a { color: var(--white); background: var(--graphite-2); }
.header-phone { font-family: var(--display); font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; color: var(--white); }
.header-phone:hover { color: var(--yellow); }
.header-icons { display: flex; gap: 6px; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; color: var(--white); text-decoration: none; background: transparent; border: 0; cursor: pointer; }
.icon-btn:hover { background: var(--graphite-2); color: var(--white); }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cart-count { position: absolute; top: 3px; right: 1px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 10px; background: var(--yellow); color: var(--black); font: 700 11px/19px var(--text); text-align: center; }
.nav-toggle { display: none; }

@media (max-width: 1020px) {
	.header-phone { display: none; }
}
@media (max-width: 860px) {
	.header-row { height: 64px; gap: 8px; }
	.brand { margin-right: auto; }
	.brand img { height: 32px; }
	.nav-toggle { display: grid; }
	.main-nav { position: fixed; inset: 64px 0 auto 0; background: var(--black); padding: 8px var(--gutter) 20px; border-top: 1px solid var(--graphite-2); display: none; margin: 0; }
	.admin-bar .main-nav { top: 110px; }
	.nav-open .main-nav { display: block; }
	.main-nav ul { flex-direction: column; }
	.main-nav a { padding: 12px 6px; font-size: 18px; border-radius: 6px; }
	.main-nav .nav-phones { display: flex; flex-direction: column; gap: 6px; margin-top: 12px; }
}
.main-nav .nav-phones { display: none; }
@media (max-width: 860px) { .main-nav .nav-phones { display: flex; } }
.nav-phones a { font-family: var(--display); color: var(--yellow); text-decoration: none; font-size: 18px; padding: 4px 6px; }

/* ===== Герой — кадр з камери ===== */
.hero { position: relative; background: var(--black); color: var(--white); overflow: hidden; }
.hero-feed { position: absolute; inset: 0; }
.hero-feed img { width: 100%; height: 100%; object-fit: cover; object-position: 62% 40%; filter: saturate(.85) contrast(1.05); }
.hero-feed::after {
	content: ""; position: absolute; inset: 0;
	background:
		linear-gradient(90deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.78) 34%, rgba(0,0,0,.15) 68%, rgba(0,0,0,.25) 100%),
		repeating-linear-gradient(0deg, rgba(255,255,255,.035) 0 1px, transparent 1px 3px);
}
.hero-inner { position: relative; min-height: min(78vh, 720px); display: flex; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.hero-copy { max-width: 600px; }
.hero-title { font-size: clamp(44px, 8vw, 104px); line-height: .95; margin: 0 0 18px; text-transform: uppercase; letter-spacing: -.02em; }
.hero-title .tag { display: inline-block; font-size: .3em; line-height: 1; letter-spacing: .02em; background: var(--yellow); color: var(--black); padding: .32em .5em .36em; margin: .25em 0 .3em; }
.hero-title .line2 { display: block; font-size: .44em; letter-spacing: .01em; }
.hero-lead { font-size: 19px; color: #dadad6; max-width: 520px; margin-bottom: 26px; }
.hero-pills { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0 0 30px; }
.hero-pills li { display: flex; align-items: center; gap: 8px; padding: 7px 16px 7px 8px; border-radius: var(--r-pill); background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 15px; backdrop-filter: blur(6px); }
.hero-pills svg { width: 26px; height: 26px; padding: 5px; border-radius: 50%; background: var(--white); fill: none; stroke: var(--black); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* HUD: видошукач камери */
.hud { position: absolute; inset: 22px; pointer-events: none; font: 600 13px/1 var(--display); letter-spacing: .06em; color: rgba(255,255,255,.85); }
.hud-corner { position: absolute; width: 34px; height: 34px; border: 3px solid rgba(255,255,255,.8); }
.hud-corner.tl { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 0; right: 0; border-left: 0; border-top: 0; }
.hud-rec { position: absolute; top: 14px; right: 52px; display: flex; align-items: center; gap: 8px; }
.hud-rec i { width: 11px; height: 11px; border-radius: 50%; background: #ff3b30; animation: rec 1.2s steps(2, jump-none) infinite; }
.hud-cam { position: absolute; top: 14px; left: 52px; }
.hud-time { position: absolute; bottom: 14px; right: 52px; font-variant-numeric: tabular-nums; }
.hud-aim { position: absolute; left: 66%; top: 46%; width: 70px; height: 70px; margin: -35px 0 0 -35px; border: 2px solid var(--yellow); border-radius: 4px; opacity: .9; }
.hud-aim::before, .hud-aim::after { content: ""; position: absolute; background: var(--yellow); }
.hud-aim::before { left: 50%; top: -14px; bottom: -14px; width: 2px; margin-left: -1px; clip-path: polygon(0 0,100% 0,100% 12px,0 12px,0 calc(100% - 12px),100% calc(100% - 12px),100% 100%,0 100%); }
.hud-aim::after { top: 50%; left: -14px; right: -14px; height: 2px; margin-top: -1px; clip-path: polygon(0 0,12px 0,12px 100%,0 100%,0 0,calc(100% - 12px) 0,100% 0,100% 100%,calc(100% - 12px) 100%); }
@keyframes rec { 50% { opacity: 0; } }
@media (max-width: 860px) {
	.hud { inset: 12px; font-size: 11px; }
	.hud-aim { display: none; }
	.hud-rec { right: 40px; top: 12px; } .hud-cam { left: 40px; top: 12px; } .hud-time { right: 40px; bottom: 12px; }
	.hero-feed::after { background: linear-gradient(180deg, rgba(0,0,0,.55) 0%, rgba(0,0,0,.85) 55%, rgba(0,0,0,.95) 100%); }
	.hero-inner { min-height: 0; padding-top: 64px; padding-bottom: 56px; }
}
@media (prefers-reduced-motion: reduce) { .hud-rec i { animation: none; } html { scroll-behavior: auto; } }

/* ===== Секції ===== */
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 40px; margin-bottom: 40px; }
.section-head h2 { margin: 0; max-width: 680px; }
.section-head p { margin: 0; max-width: 420px; color: var(--muted); }
.section-dark { background: var(--black); color: var(--white); }
.section-dark .section-head p { color: #a9a9a4; }
.section-soft { background: var(--concrete-2); }

/* Послуги */
.services { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 24px; }
@media (min-width: 1201px) { .services .service h3 { font-size: 19px; } }
.services .service-actions { min-height: 92px; align-content: flex-start; }
@media (max-width: 1200px) { .services { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 24px; } }
.service { display: flex; flex-direction: column; }
.service-icon { width: 92px; height: 92px; border-radius: var(--r-tile); background: var(--graphite); display: grid; place-items: center; margin-bottom: 18px; }
.service-icon svg { width: 50px; height: 50px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin-bottom: 8px; }
.service p { color: var(--muted); font-size: 16px; margin-bottom: 14px; }
.service-link { justify-self: start; margin-top: auto; font-weight: 600; text-decoration: none; border-bottom: 2px solid var(--yellow); align-self: flex-start; padding-bottom: 2px; }
@media (max-width: 1000px) { .services { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; } }
@media (max-width: 520px) { .services { grid-template-columns: 1fr; } .service { display: grid; grid-template-columns: 72px 1fr; column-gap: 18px; } .service-icon { width: 72px; height: 72px; grid-row: span 3; margin: 0; } .service-icon svg { width: 38px; height: 38px; } }

/* Що ми пропонуємо */
.offer { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; }
.offer-photo { position: relative; border-radius: var(--r-tile); overflow: hidden; background: var(--white); }
.offer-photo img { width: 100%; }
.checks { list-style: none; padding: 0; margin: 0 0 30px; }
.checks li { position: relative; padding: 12px 0 12px 48px; border-bottom: 1px solid var(--line); font-size: 18px; }
.checks li:last-child { border-bottom: 0; }
.checks li::before { content: ""; position: absolute; left: 0; top: 11px; width: 30px; height: 30px; border-radius: 50%; background: var(--yellow) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/16px no-repeat; }
.checks b { display: block; font-weight: 700; }
.checks span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .offer { grid-template-columns: 1fr; } }

/* Наші роботи — стіна моніторів */
.works { position: relative; }
.works-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 40px) / 3); gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.works-track::-webkit-scrollbar { display: none; }
.work { scroll-snap-align: start; margin: 0; }
.work-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: var(--graphite); border: 2px solid var(--graphite-2); }
.work-screen img { width: 100%; height: 100%; object-fit: cover; }
.work-screen::after { content: ""; position: absolute; inset: 0; background: repeating-linear-gradient(0deg, rgba(255,255,255,.04) 0 1px, transparent 1px 3px), linear-gradient(180deg, rgba(0,0,0,.45), transparent 26%, transparent 70%, rgba(0,0,0,.55)); pointer-events: none; }
.work-hud { position: absolute; z-index: 1; left: 12px; right: 12px; display: flex; justify-content: space-between; font: 600 11px/1 var(--display); letter-spacing: .06em; color: rgba(255,255,255,.9); }
.work-hud.top { top: 12px; } .work-hud.bottom { bottom: 12px; }
.work-hud .live { display: flex; align-items: center; gap: 6px; }
.work-hud .live i { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; }
.work figcaption { padding: 14px 2px 0; }
.work figcaption b { display: block; font-weight: 600; }
.work figcaption span { color: #a9a9a4; font-size: 15px; }
.works-nav { display: flex; gap: 10px; }
.works-nav button { width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--graphite-2); background: transparent; color: var(--white); cursor: pointer; display: grid; place-items: center; }
.works-nav button:hover { background: var(--yellow); color: var(--black); border-color: var(--yellow); }
.works-nav svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.works-empty { color: #a9a9a4; border: 1px dashed var(--graphite-2); padding: 24px; border-radius: var(--r-card); }
@media (max-width: 1000px) { .works-track { grid-auto-columns: calc((100% - 20px) / 2); } }
@media (max-width: 600px) { .works-track { grid-auto-columns: 86%; } }

/* Каталог — категорії */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-tile); padding: 26px; display: flex; flex-direction: column; }
.cat h3 { font-size: 21px; margin-bottom: 4px; }
.cat h3 a { text-decoration: none; }
.cat-count { color: var(--muted); font-size: 15px; margin-bottom: 16px; }
.cat ul { list-style: none; padding: 0; margin: 0 0 20px; display: flex; flex-wrap: wrap; gap: 6px; }
.cat li a { display: block; padding: 6px 12px; border-radius: var(--r-pill); background: var(--concrete); text-decoration: none; font-size: 14px; }
.cat li a:hover { background: var(--yellow); }
.cat .btn { margin-top: auto; align-self: flex-start; padding: 11px 20px; font-size: 15px; }
@media (max-width: 960px) { .cats { grid-template-columns: 1fr; } }

/* Чому ми */
.why { display: grid; grid-template-columns: 5fr 7fr; gap: clamp(28px, 5vw, 80px); }
.why-quote { font: 800 clamp(24px, 3vw, 36px)/1.15 var(--display); margin: 0 0 24px; }
.why-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.why-item { padding: 22px 0; border-top: 1px solid var(--line); }
.why-item b { display: block; font-size: 19px; margin-bottom: 4px; }
.why-item span { color: var(--muted); font-size: 16px; }
@media (max-width: 860px) { .why, .why-list { grid-template-columns: 1fr; } }

/* Контакти */
.contact { display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: end; }
.contact h2 { max-width: 640px; }
.contact-lead { color: #c4c4bf; max-width: 560px; font-size: 18px; }
.phones { display: flex; flex-direction: column; gap: 6px; }
.phones a { font: 700 clamp(26px, 3.6vw, 44px)/1.15 var(--display); text-decoration: none; color: var(--white); white-space: nowrap; }
.phones a:hover { color: var(--yellow); }
.contact-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.contact-meta a { display: inline-flex; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--graphite-2); text-decoration: none; color: #d9d9d6; }
.contact-meta a:hover { border-color: var(--yellow); color: var(--yellow); }
/* Соцмережі */
.socials { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.socials a { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--graphite-2); color: #d9d9d6; transition: background .2s, color .2s, border-color .2s; }
.socials a:hover, .socials a:focus-visible { background: var(--yellow); border-color: var(--yellow); color: var(--black); }
.socials svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 860px) { .contact { grid-template-columns: 1fr; } }

/* ===== Підвал ===== */
.site-footer { background: var(--black); color: #a9a9a4; border-top: 1px solid var(--graphite-2); padding: 48px 0 28px; font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { font: 700 15px/1.3 var(--text); color: var(--white); margin: 0 0 12px; }
.footer-grid ul { list-style: none; margin: 0; padding: 0; }
.footer-grid li { margin-bottom: 6px; }
.footer-grid a { text-decoration: none; color: #a9a9a4; }
.footer-grid a:hover { color: var(--yellow); }
.footer-brand img { height: 38px; width: auto; margin-bottom: 14px; }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--graphite-2); display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }

/* ===== Внутрішні сторінки ===== */
.page-head { background: var(--concrete-2); padding: 36px 0 30px; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: clamp(26px, 3.4vw, 40px); margin: 0; }
.page-body { padding-top: 40px; padding-bottom: 72px; }
.entry-content { max-width: 760px; }
.entry-content h2 { font-size: 26px; margin-top: 1.4em; }

/* ===== WooCommerce ===== */
.shop-layout { display: grid; grid-template-columns: 270px 1fr; gap: 40px; align-items: start; }
.shop-side { position: sticky; top: 100px; max-height: calc(100vh - 120px); overflow: auto; }
.shop-side h4 { font: 700 15px/1.3 var(--text); margin: 0 0 10px; }
.shop-side { padding-right: 6px; }
.shop-side .woocommerce-product-search { display: flex; margin-bottom: 22px; }
.shop-side .search-field { flex: 1; min-width: 0; padding: 11px 14px; border: 1px solid var(--line); border-radius: var(--r-pill) 0 0 var(--r-pill); font: inherit; font-size: 15px; }
.shop-side .woocommerce-product-search button { border: 0; background: var(--black); color: var(--white); padding: 0 16px; border-radius: 0 var(--r-pill) var(--r-pill) 0; font: 600 14px var(--text); cursor: pointer; }
.cat-tree, .cat-tree ul { list-style: none; margin: 0; padding: 0; }
.cat-tree ul { padding-left: 14px; display: none; }
.cat-tree .is-open > ul { display: block; }
.cat-tree a { display: flex; justify-content: space-between; gap: 8px; padding: 6px 10px; border-radius: 8px; text-decoration: none; font-size: 15px; }
.cat-tree a:hover { background: var(--concrete); }
.cat-tree .is-current > a { background: var(--yellow); font-weight: 600; }
.cat-tree .count { color: var(--muted); font-size: 13px; }
.cat-tree > li > a { font-weight: 600; }
.shop-filter-toggle { display: none; }
@media (max-width: 900px) {
	.shop-layout { grid-template-columns: 1fr; gap: 0; }
	.shop-side { position: static; max-height: none; display: none; margin-bottom: 24px; }
	.filters-open .shop-side { display: block; }
	.shop-filter-toggle { display: inline-flex; margin-bottom: 16px; }
}

.woocommerce .woocommerce-breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 18px; }
.woocommerce .woocommerce-breadcrumb a { color: var(--muted); }
.woocommerce-products-header__title { font-family: var(--display); }
.woocommerce ul.products li.product { background: var(--white); border: 1px solid var(--line); border-radius: var(--r-card); padding: 14px 14px 18px; display: flex; flex-direction: column; }
.woocommerce ul.products li.product a img { aspect-ratio: 1; object-fit: contain; background: var(--white); margin-bottom: 12px; }
.woocommerce ul.products li.product .woocommerce-loop-product__title { font: 500 15px/1.35 var(--text); padding: 0; margin-bottom: 6px; }
.woocommerce ul.products li.product .price { color: var(--black); font: 700 18px/1.2 var(--display); margin: 6px 0 12px; }
.woocommerce ul.products li.product .button { margin-top: auto; align-self: flex-start; }
.woocommerce ul.products li.product > a.woocommerce-LoopProduct-link { display: block; text-decoration: none; }
.woocommerce a.button, .woocommerce button.button, .woocommerce input.button, .woocommerce #respond input#submit {
	background: var(--black); color: var(--white); border-radius: var(--r-pill); font: 600 15px/1.2 var(--text); padding: 11px 20px;
}
.woocommerce a.button:hover, .woocommerce button.button:hover, .woocommerce input.button:hover { background: var(--graphite-2); color: var(--white); }
.woocommerce a.button.alt, .woocommerce button.button.alt, .woocommerce input.button.alt, .woocommerce .single_add_to_cart_button {
	background: var(--yellow) !important; color: var(--black) !important; font-weight: 700;
}
.woocommerce a.button.alt:hover, .woocommerce button.button.alt:hover, .woocommerce .single_add_to_cart_button:hover { background: var(--yellow-hi) !important; }
.woocommerce div.product .product_title { font-size: clamp(22px, 2.6vw, 32px); }
.woocommerce div.product p.price, .woocommerce div.product span.price { color: var(--black); font: 800 30px/1.2 var(--display); }
.woocommerce div.product .woocommerce-tabs ul.tabs li { border-radius: 8px 8px 0 0; background: var(--concrete); }
.woocommerce div.product .woocommerce-tabs ul.tabs li.active { background: var(--white); }
.woocommerce table.shop_attributes th { width: 40%; font-weight: 500; color: var(--muted); }
.woocommerce table.shop_attributes td p { padding: 6px 0; }
.woocommerce span.onsale { background: var(--yellow); color: var(--black); }
.woocommerce-message, .woocommerce-info { border-top-color: var(--yellow); }
.woocommerce-message::before, .woocommerce-info::before { color: var(--black); }

/* Фільтри (плагін Viatec Sync) — у стилі Viatec */
.side-cats > summary, .vf-group > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 8px; font: 700 16px/1.3 var(--text); padding: 14px 0; }
.side-cats > summary::-webkit-details-marker, .vf-group > summary::-webkit-details-marker, .vf-more > summary::-webkit-details-marker { display: none; }
.side-cats > summary::after, .vf-group > summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--black); border-bottom: 2px solid var(--black); transform: rotate(45deg) translateY(-3px); transition: transform .15s; margin-left: auto; }
.side-cats[open] > summary::after, .vf-group[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.side-cats { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.side-cat-current { font-weight: 500; color: var(--muted); margin-left: 4px; }
.side-cats:not([open]) { padding-bottom: 0; }
.vf-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 0 4px; font-size: 17px; }
.vf-reset { font-size: 14px; color: var(--muted); }
.vf-reset:hover { color: var(--black); }
.vf-group { border-bottom: 1px solid var(--line); }
.vf-badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--yellow); font-size: 12px; margin-left: 6px; }
.vf-opts { padding: 0 0 12px; }
.vf-opt { display: flex; align-items: center; gap: 12px; padding: 6px 0; cursor: pointer; font-size: 15px; }
.vf-opt input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 1.5px solid #9a9a95; border-radius: 3px; background: var(--white); display: grid; place-items: center; cursor: pointer; }
.vf-opt input:checked { background: var(--yellow); border-color: var(--black); }
.vf-opt input:checked::after { content: ""; width: 6px; height: 11px; border-right: 2.5px solid var(--black); border-bottom: 2.5px solid var(--black); transform: rotate(45deg) translate(-1px,-1px); }
.vf-opt:hover input:not(:disabled) { border-color: var(--black); }
.vf-l { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.vf-c { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.vf-opt.is-off { opacity: .45; cursor: default; }
.vf-more > summary { list-style: none; cursor: pointer; color: var(--black); font-weight: 600; font-size: 14px; padding: 6px 0; text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.vf-more[open] > summary { display: none; }
.vf-price { display: flex; align-items: center; gap: 6px; padding-bottom: 14px; }
.vf-price input { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 15px; }
.vf-go { flex: none; border: 0; border-radius: 8px; background: var(--black); color: var(--white); padding: 10px 12px; font: 600 14px var(--text); cursor: pointer; }
.vf-loading { opacity: .5; pointer-events: none; }

/* Блок двох складів (з плагіна Viatec Sync) */
.vsync-stock { background: var(--concrete-2); border-radius: var(--r-card); padding: 12px 16px; }
.vsync-compact { background: none; padding: 0; }

/* Обране */
.pv-fav { display: inline-flex; align-items: center; gap: 8px; margin: 4px 0 16px; padding: 8px 16px; border-radius: var(--r-pill); border: 1px solid var(--line); text-decoration: none; font-size: 15px; }
.pv-fav svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; }
.pv-fav.is-on svg { fill: #e0245e; stroke: #e0245e; }
.pv-fav:hover { border-color: var(--black); }

/* Кабінет */
.woocommerce-account .woocommerce-MyAccount-navigation ul { list-style: none; padding: 0; margin: 0; }
.woocommerce-account .woocommerce-MyAccount-navigation a { display: block; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.woocommerce-account .woocommerce-MyAccount-navigation .is-active a { background: var(--yellow); font-weight: 600; }
.pv-login-note { background: var(--concrete-2); border-radius: var(--r-card); padding: 16px 18px; margin: 16px 0; }

/* ===== Меню «Каталог товарів» (як на Viatec) ===== */
.mega { position: static; }
.mega-btn { display: inline-flex; align-items: center; gap: 10px; height: 46px; padding: 0 20px 0 16px; border: 0; border-radius: var(--r-pill); background: var(--yellow); color: var(--black); font: 700 15px/1 var(--text); cursor: pointer; white-space: nowrap; }
.mega-btn:hover { background: var(--yellow-hi); }
.mega-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
.mega-panel { position: absolute; left: 0; right: 0; top: 100%; background: var(--white); color: var(--black); box-shadow: 0 24px 48px rgba(0,0,0,.18); border-top: 3px solid var(--yellow); }
.mega-inner { max-width: var(--wrap); margin: 0 auto; padding: 18px var(--gutter) 22px; display: grid; grid-template-columns: 320px 1fr; gap: 28px; max-height: min(72vh, 640px); }
.mega-mobile-head { display: none; }
.mega-roots, .mega-subs { min-height: 0; max-height: calc(min(72vh, 640px) - 40px); }
.mega-roots { list-style: none; margin: 0; padding: 0 6px 0 0; overflow-y: auto; border-right: 1px solid var(--line); }
.mega-root { display: flex; align-items: center; gap: 12px; padding: 9px 10px; border-radius: 10px; text-decoration: none; font-weight: 500; }
.mega-root:hover, .mega-root.is-active { background: var(--concrete); color: var(--black); }
.mega-root.is-active .mega-name { font-weight: 700; }
.mega-ico { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--graphite); display: grid; place-items: center; }
.mega-ico svg { width: 19px; height: 19px; fill: none; stroke: var(--white); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.mega-root.is-active .mega-ico { background: var(--yellow); }
.mega-root.is-active .mega-ico svg { stroke: var(--black); }
.mega-name { flex: 1; line-height: 1.3; }
.mega-chev svg { width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; }
.mega-subs { overflow-y: auto; }
.mega-sub { display: none; }
.mega-sub.is-active { display: block; }
.mega-sub-title { display: inline-flex; align-items: baseline; gap: 10px; font: 800 20px/1.2 var(--display); text-decoration: none; margin: 6px 0 16px; }
.mega-sub-title span { font: 500 14px var(--text); color: var(--muted); }
.mega-cols { list-style: none; margin: 0; padding: 0; columns: 3 200px; column-gap: 28px; }
.mega-cols li { break-inside: avoid; }
.mega-cols a { display: block; padding: 7px 0; text-decoration: none; line-height: 1.35; }
.mega-cols a:hover { color: var(--black); text-decoration: underline; text-decoration-color: var(--yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
@media (max-width: 1180px) { .main-nav a { padding: 8px 10px; } }
@media (max-width: 1080px) { .mega-btn span { display: none; } .mega-btn { padding: 0 13px; } }
@media (max-width: 860px) {
	.mega { order: 2; }
	.mega-btn { height: 40px; padding: 0 12px; }
	.mega-panel { position: fixed; inset: 64px 0 0 0; overflow-y: auto; border-top: 0; }
	.admin-bar .mega-panel { top: 110px; }
	.mega-inner { display: block; max-height: none; padding: 12px var(--gutter) 40px; }
	.mega-mobile-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
	.mega-back { visibility: hidden; display: inline-flex; align-items: center; gap: 6px; border: 0; background: none; font: 600 16px var(--text); padding: 8px 0; cursor: pointer; }
	.mega-back svg, .mega-close svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; }
	.mega-close { border: 0; background: var(--concrete); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; cursor: pointer; }
	.mega-roots { border: 0; padding: 0; overflow: visible; max-height: none; }
	.mega-root { padding: 11px 6px; }
	.mega-root.is-active { background: none; }
	.mega-root.is-active .mega-ico { background: var(--graphite); } .mega-root.is-active .mega-ico svg { stroke: var(--white); }
	.mega-root.is-active .mega-name { font-weight: 500; }
	.mega-subs { display: none; overflow: visible; max-height: none; }
	.show-sub .mega-roots { display: none; }
	.show-sub .mega-subs { display: block; }
	.show-sub .mega-back { visibility: visible; }
	.mega-cols { columns: 1; }
	.mega-cols a { padding: 11px 0; border-bottom: 1px solid var(--line); }
	body.mega-open { overflow: hidden; }
}

/* ===== Сторінка «Каталог» — плитки розділів ===== */
.cat-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-top: 8px; }
.cat-tile { border: 1px solid var(--line); border-radius: var(--r-tile); padding: 18px; background: var(--white); }
.cat-tile:hover { border-color: #b9b9b4; }
.cat-tile-head { display: flex; align-items: center; gap: 14px; text-decoration: none; margin-bottom: 12px; }
.cat-tile-ico { width: 52px; height: 52px; flex: none; border-radius: 14px; background: var(--graphite); display: grid; place-items: center; }
.cat-tile-ico svg { width: 28px; height: 28px; fill: none; stroke: var(--white); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.cat-tile-head:hover .cat-tile-ico { background: var(--yellow); } .cat-tile-head:hover .cat-tile-ico svg { stroke: var(--black); }
.cat-tile-head b { display: block; font-size: 17px; line-height: 1.25; }
.cat-tile-head small { color: var(--muted); font-size: 14px; }
.cat-tile ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tile li a { display: block; padding: 5px 11px; border-radius: var(--r-pill); background: var(--concrete); text-decoration: none; font-size: 13.5px; }
.cat-tile li a:hover { background: var(--yellow); }
.cat-tile-more { font-weight: 600; }

/* ===== Навігація (хлібні крихти) ===== */
.breadcrumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: -12px 0 22px; font-size: 14px; color: var(--muted); }
.breadcrumbs a { color: var(--black); text-decoration: none; padding: 3px 10px; border-radius: var(--r-pill); background: var(--concrete); }
.breadcrumbs a:hover { background: var(--yellow); }
.breadcrumbs .bc-item:last-child { color: var(--muted); }
.bc-sep { color: #b4b4af; }
@media (max-width: 600px) { .breadcrumbs { margin-top: -18px; font-size: 13px; } .breadcrumbs .bc-item:last-child { display: none; } .bc-sep:has(+ .bc-item:last-child) { display: none; } }

/* ===== Підрозділи розділу (плитки з фото) ===== */
.sub-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; margin-top: 8px; }
.sub-tile { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 12px 18px; border: 1px solid var(--line); border-radius: var(--r-tile); background: var(--white); text-decoration: none; }
.sub-tile:hover { border-color: var(--black); }
.sub-tile-img { width: 100%; aspect-ratio: 4 / 3; display: grid; place-items: center; margin-bottom: 8px; }
.sub-tile-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.sub-tile-img svg { width: 56px; height: 56px; fill: none; stroke: var(--graphite); stroke-width: 1.5; }
.sub-tile b { font-size: 16px; line-height: 1.25; }
.sub-tile small { color: var(--muted); font-size: 14px; }
.sub-all { margin-top: 24px; }
@media (max-width: 520px) { .sub-tiles { grid-template-columns: 1fr 1fr; gap: 10px; } .sub-tile b { font-size: 14px; } }

/* ===== Вікно «Замовити консультацію» ===== */
.cb-modal { width: min(440px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r-tile); box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.cb-modal::backdrop { background: rgba(0,0,0,.6); }
.cb-form { position: relative; padding: 28px 26px 26px; }
.cb-form h3 { font-size: 24px; margin: 0 40px 10px 0; }
.cb-lead { color: var(--muted); font-size: 15px; margin-bottom: 18px; }
.cb-field { display: block; margin-bottom: 14px; }
.cb-field span { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.cb-field input { width: 100%; padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; font: inherit; font-size: 17px; }
.cb-field input:focus { border-color: var(--black); outline: none; box-shadow: 0 0 0 3px var(--yellow); }
.cb-hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.cb-error { color: #b32d2e; font-size: 14px; margin: -4px 0 12px; }
.cb-submit { width: 100%; justify-content: center; font-size: 17px; padding: 15px 20px; }
.cb-submit:disabled { opacity: .6; cursor: wait; }
.cb-close { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border: 0; border-radius: 50%; background: var(--concrete); display: grid; place-items: center; cursor: pointer; }
.cb-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; }
.cb-done { text-align: center; padding: 10px 0 4px; }
.cb-done h3 { margin-right: 0; }
.cb-done p { color: var(--muted); }

/* Кнопки «Замовити монтаж» у картках послуг */
.service-actions { margin-top: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.service-actions .service-link { margin-top: 0; }
.service-btn { padding: 11px 20px; font-size: 15px; }
@media (max-width: 520px) { .service-actions { grid-column: 2; } .services .service-actions { min-height: 0; } }
.cb-topic { display: inline-block; margin: -2px 0 12px; padding: 5px 12px; border-radius: var(--r-pill); background: var(--yellow); font-weight: 700; font-size: 14px; }
.cb-topic[hidden] { display: none; }
