/* =========================================================================
   UPK Theme — design tokens & base styles
   ========================================================================= */
@media (max-width: 500px) {
img.custom-logo {
    max-width: 65px;
    height: auto;
}
}
/* =========================================================================
   UPK Theme — design tokens & base styles
   ========================================================================= */

@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter/inter-cyrillic-400-normal.woff2') format('woff2');
	font-weight: 400;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter/inter-cyrillic-500-normal.woff2') format('woff2');
	font-weight: 500;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter/inter-cyrillic-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Inter';
	src: url('../fonts/inter/inter-cyrillic-700-normal.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/manrope/manrope-cyrillic-600-normal.woff2') format('woff2');
	font-weight: 600;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/manrope/manrope-cyrillic-700-normal.woff2') format('woff2');
	font-weight: 700;
	font-style: normal;
	font-display: swap;
}
@font-face {
	font-family: 'Manrope';
	src: url('../fonts/manrope/manrope-cyrillic-800-normal.woff2') format('woff2');
	font-weight: 800;
	font-style: normal;
	font-display: swap;
}

:root {
	/*
	 * Brand palette — «Industrial Slate + Safety Orange».
	 * Подобрана под категорию «строительные/промышленные материалы»: холодный
	 * серо-стальной как основной (доверие, техничность) + сигнальный оранжевый
	 * как акцент (ассоциация с защитными/сигнальными промышленными цветами —
	 * уместнее для антикоррозийных материалов, чем нейтральный бирюзово-жёлтый).
	 * Имена переменных сохранены (--upk-teal/--upk-amber), меняются только значения,
	 * чтобы не трогать зависимые PHP-шаблоны.
	 */
	--upk-navy: #0f172a;
	--upk-navy-2: #1e293b;
	--upk-teal: #64748b;
	--upk-teal-dark: #475569;
	--upk-teal-light: #ebf0f5;
	--upk-amber: #ea580c;
	--upk-amber-dark: #c2410c;
	--upk-danger: #dc2626;
	--upk-success: #059669;

	--upk-gray-50: #f8fafc;
	--upk-gray-100: #eef2f6;
	--upk-gray-200: #e2e8f0;
	--upk-gray-300: #cbd5e1;
	--upk-gray-500: #94a3b8;
	--upk-gray-600: #475569;
	--upk-gray-800: #1e293b;
	--upk-gray-900: #0f172a;
	--upk-white: #ffffff;

	--upk-font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
	--upk-font-body: 'Inter', system-ui, sans-serif;

	--upk-radius-sm: 6px;
	--upk-radius: 12px;
	--upk-radius-lg: 20px;
	--upk-shadow-sm: 0 1px 2px rgba(20, 33, 46, .06), 0 1px 3px rgba(20, 33, 46, .08);
	--upk-shadow: 0 4px 12px rgba(20, 33, 46, .08), 0 2px 4px rgba(20, 33, 46, .06);
	--upk-shadow-lg: 0 16px 40px rgba(20, 33, 46, .16);

	--bs-body-font-family: var(--upk-font-body);
	--bs-primary: var(--upk-teal);
	--bs-primary-rgb: 100, 116, 139;
	--bs-link-color: var(--upk-teal);
	--bs-link-hover-color: var(--upk-teal-dark);
}

html {
	scroll-behavior: smooth;
}

body {
	font-family: var(--upk-font-body);
	color: var(--upk-gray-900);
	background: var(--upk-white);
	font-size: 16px;
	line-height: 1.55;
}

h1, h2, h3, h4, h5, h6,
.upk-heading {
	font-family: var(--upk-font-heading);
	font-weight: 700;
	color: var(--upk-navy);
	letter-spacing: -0.01em;
}

a {
	text-decoration: none;
}

.upk-icon {
	width: 22px;
	height: 22px;
	flex-shrink: 0;
}

/* Курсор-указатель на всех кастомных кликабельных элементах (не только .btn) */
.upk-header-action-btn,
.upk-mobile-toggle,
.upk-callback-fab,
.upk-qty-input button,
.upk-minicart-remove,
.upk-product-gallery-thumbs button,
.upk-cat-tile,
.upk-image-select,
.upk-image-remove,
.upk-bottom-nav-item,
button[data-bs-toggle],
button[data-bs-dismiss] {
	cursor: pointer;
}

.upk-container {
	width: 100%;
	max-width: 1320px;
	margin-inline: auto;
	padding-inline: 16px;
}

.upk-section {
	padding-block: clamp(40px, 6vw, 88px);
}

.upk-section-title {
	font-size: clamp(24px, 3vw, 34px);
	margin-bottom: 8px;
}

.upk-section-lead {
	color: var(--upk-gray-600);
	font-size: 17px;
	max-width: 640px;
}

.upk-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	color: var(--upk-teal);
	margin-bottom: 10px;
}
.upk-eyebrow::before {
	content: "";
	width: 22px;
	height: 2px;
	background: var(--upk-amber);
	display: inline-block;
}

/* ---- Buttons ---- */
.btn-upk-primary {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--upk-teal);
	--bs-btn-border-color: var(--upk-teal);
	--bs-btn-hover-bg: var(--upk-teal-dark);
	--bs-btn-hover-border-color: var(--upk-teal-dark);
	--bs-btn-active-bg: var(--upk-teal-dark);
	--bs-btn-active-border-color: var(--upk-teal-dark);
	font-weight: 600;
	border-radius: var(--upk-radius-sm);
	padding: .65rem 1.3rem;
}
.btn-upk-accent {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--upk-amber);
	--bs-btn-border-color: var(--upk-amber);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--upk-amber-dark);
	--bs-btn-hover-border-color: var(--upk-amber-dark);
	--bs-btn-active-bg: var(--upk-amber-dark);
	font-weight: 700;
	border-radius: var(--upk-radius-sm);
	padding: .65rem 1.3rem;
}
.btn-upk-outline {
	--bs-btn-color: var(--upk-navy);
	--bs-btn-border-color: var(--upk-gray-300);
	--bs-btn-hover-bg: var(--upk-gray-100);
	--bs-btn-hover-color: var(--upk-navy);
	--bs-btn-hover-border-color: var(--upk-gray-300);
	font-weight: 600;
	border-radius: var(--upk-radius-sm);
}
.btn-upk-ghost-light {
	--bs-btn-color: #fff;
	--bs-btn-border-color: rgba(255,255,255,.35);
	--bs-btn-hover-bg: rgba(255,255,255,.12);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-border-color: rgba(255,255,255,.6);
	font-weight: 600;
	border-radius: var(--upk-radius-sm);
}

/* =========================================================================
   Topbar
   ========================================================================= */
.upk-topbar {
	background: var(--upk-navy);
	color: rgba(255,255,255,.82);
	font-size: 13.5px;
}
.upk-topbar a {
	color: rgba(255,255,255,.82);
}
.upk-topbar a:hover {
	color: #fff;
}
.upk-topbar .upk-topbar-phone {
	color: #fff;
	font-weight: 700;
}
.upk-social-icons {
	display: flex;
	align-items: center;
	gap: 10px;
}
.upk-social-icons a {
	width: 26px;
	height: 26px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255,255,255,.1);
	transition: background .15s ease, transform .15s ease;
}
.upk-social-icons a:hover {
	background: var(--upk-teal);
	transform: translateY(-1px);
}
.upk-social-icons img,
.upk-social-icons svg {
	width: 15px;
	height: 15px;
	display: block;
}

/* =========================================================================
   Header / navigation
   ========================================================================= */
.upk-header {
	background: #fff;
	box-shadow: var(--upk-shadow-sm);
	position: sticky;
	top: 0;
	z-index: 1030;
	/* Свой compositing-слой — убирает «дрожание» sticky-шапки при скролле на мобильных (iOS Safari/Chrome) */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.upk-logo img {
	max-height: 46px;
	width: auto;
}
.upk-logo-text {
	font-family: var(--upk-font-heading);
	font-weight: 800;
	font-size: 15px;
	color: var(--upk-navy);
	line-height: 1.15;
}
.upk-logo-text span {
	display: block;
	font-family: var(--upk-font-body);
	font-weight: 500;
	font-size: 10px;
	color: var(--upk-gray-600);
	text-transform: uppercase;
	letter-spacing: .04em;
}

.upk-search-form {
	position: relative;
	width: 100%;
}
.upk-search-form .form-control {
	border-radius: 999px;
	padding-left: 20px;
	padding-right: 52px;
	height: 46px;
	border-color: var(--upk-gray-300);
}
.upk-search-form .form-control:focus {
	border-color: var(--upk-teal);
	box-shadow: 0 0 0 .2rem rgba(100,116,139,.18);
}
.upk-search-form button {
	position: absolute;
	right: 4px;
	top: 4px;
	bottom: 4px;
	width: 40px;
	border: 0;
	border-radius: 999px;
	background: var(--upk-teal);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
}
.upk-search-form button:hover { background: var(--upk-teal-dark); }

.upk-header-actions {
	display: flex;
	align-items: center;
	gap: 8px;
}
.upk-header-action-btn {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	width: 56px;
	height: 52px;
	border-radius: var(--upk-radius-sm);
	color: var(--upk-navy);
	background: transparent;
	border: none;
	font-size: 11px;
	font-weight: 600;
	line-height: 1;
}
.upk-header-action-btn:hover {
	background: var(--upk-gray-100);
	color: var(--upk-teal);
}
.upk-header-action-btn svg { width: 22px; height: 22px; }
.upk-cart-count {
	position: absolute;
	top: 2px;
	right: 6px;
	min-width: 17px;
	height: 17px;
	padding: 0 4px;
	border-radius: 999px;
	background: var(--upk-amber);
	color: #fff;
	font-size: 10.5px;
	font-weight: 800;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* Main nav */
.upk-nav {
	background: var(--upk-teal);
}
.upk-nav .upk-container { display: flex; }
.upk-nav-list {
	list-style: none;
	display: flex;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}
.upk-nav-list > li { position: relative; }
.upk-nav-list > li > a {
	display: block;
	padding: 13px 18px;
	color: #fff;
	font-weight: 600;
	font-size: 14.5px;
	white-space: nowrap;
}
.upk-nav-list > li > a:hover,
.upk-nav-list > li.current-menu-item > a {
	background: var(--upk-teal-dark);
}
.upk-nav-list .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	margin-left: 6px;
	border: 4px solid transparent;
	border-top-color: rgba(255,255,255,.85);
	transform: translateY(3px);
}
.upk-submenu {
	list-style: none;
	margin: 0;
	padding: 10px;
	position: absolute;
	top: 100%;
	left: 0;
	min-width: 260px;
	background: #fff;
	border-radius: 0 0 var(--upk-radius) var(--upk-radius);
	box-shadow: var(--upk-shadow-lg);
	opacity: 0;
	visibility: hidden;
	transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
	z-index: 20;
}
.upk-nav-list .menu-item-has-children:hover > .upk-submenu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}
.upk-submenu a {
	display: block;
	padding: 9px 14px;
	border-radius: var(--upk-radius-sm);
	color: var(--upk-gray-900);
	font-size: 14px;
	font-weight: 500;
}
.upk-submenu a:hover {
	background: var(--upk-teal-light);
	color: var(--upk-teal-dark);
}

.upk-mobile-toggle {
	border: 0;
	background: transparent;
	width: 44px;
	height: 44px;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* =========================================================================
   Callback floating widget
   ========================================================================= */
.upk-callback-fab {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 1040;
	width: 60px;
	height: 60px;
	border-radius: 50%;
	background: var(--upk-amber);
	color: #fff;
	border: none;
	box-shadow: var(--upk-shadow-lg);
	display: flex;
	align-items: center;
	justify-content: center;
	animation: upk-pulse 2.6s infinite;
}
.upk-callback-fab svg { width: 26px; height: 26px; }
.upk-callback-fab:hover { background: var(--upk-amber-dark); }
@media (prefers-reduced-motion: reduce) {
	.upk-callback-fab { animation: none; }
}
@keyframes upk-pulse {
	0% { box-shadow: 0 0 0 0 rgba(234,88,12,.5), var(--upk-shadow-lg); }
	70% { box-shadow: 0 0 0 14px rgba(234,88,12,0), var(--upk-shadow-lg); }
	100% { box-shadow: 0 0 0 0 rgba(234,88,12,0), var(--upk-shadow-lg); }
}

.upk-modal .modal-content {
	border-radius: var(--upk-radius-lg);
	border: none;
	overflow: hidden;
}
.upk-modal .modal-header {
	background: var(--upk-navy);
	color: #fff;
	border: none;
	padding: 22px 26px;
}
.upk-modal .modal-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.upk-modal .modal-body { padding: 26px; }
.upk-modal-social {
	display: flex;
	gap: 10px;
	margin-top: 18px;
	padding-top: 18px;
	border-top: 1px solid var(--upk-gray-200);
}
.upk-modal-social a {
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--upk-gray-100);
	display: flex;
	align-items: center;
	justify-content: center;
}
.upk-modal-social img, .upk-modal-social svg { width: 20px; height: 20px; }
.upk-modal-social a:hover { background: var(--upk-teal-light); }

.upk-form-status { display: none; margin-top: 14px; padding: 12px 14px; border-radius: var(--upk-radius-sm); font-size: 14px; }
.upk-form-status.is-success { display: block; background: #e8f7f0; color: var(--upk-success); }
.upk-form-status.is-error { display: block; background: #fdeeea; color: var(--upk-danger); }

/* =========================================================================
   Mini-cart (offcanvas)
   ========================================================================= */
.upk-minicart.offcanvas {
	width: 420px;
	max-width: 92vw;
}
.upk-minicart .offcanvas-header {
	background: var(--upk-navy);
	color: #fff;
	padding: 20px 24px;
}
.upk-minicart .offcanvas-header .btn-close { filter: invert(1) grayscale(1) brightness(2); }
.upk-minicart .offcanvas-body { padding: 0; display: flex; flex-direction: column; }
.upk-minicart-items { flex: 1; overflow-y: auto; padding: 12px 20px; }
.upk-minicart-item {
	display: flex;
	gap: 14px;
	padding: 14px 0;
	border-bottom: 1px solid var(--upk-gray-100);
}
.upk-minicart-item img {
	width: 68px;
	height: 68px;
	object-fit: cover;
	border-radius: var(--upk-radius-sm);
	background: var(--upk-gray-100);
}
.upk-minicart-item-title {
	font-weight: 600;
	font-size: 14.5px;
	color: var(--upk-navy);
	display: block;
	margin-bottom: 4px;
}
.upk-minicart-item-meta { font-size: 13px; color: var(--upk-gray-600); }
.upk-minicart-item-price { font-weight: 700; color: var(--upk-teal-dark); }
.upk-minicart-remove {
	color: var(--upk-gray-500);
	font-size: 12px;
	border: 0;
	background: none;
	padding: 0;
}
.upk-minicart-remove:hover { color: var(--upk-danger); }
.upk-minicart-empty { text-align: center; padding: 60px 24px; color: var(--upk-gray-600); }
.upk-minicart-footer {
	padding: 18px 20px 22px;
	border-top: 1px solid var(--upk-gray-200);
	background: var(--upk-gray-50);
}
.upk-minicart-total {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	font-size: 16px;
	font-weight: 700;
	color: var(--upk-navy);
	margin-bottom: 14px;
}
.upk-minicart-total strong { font-size: 21px; color: var(--upk-teal-dark); }

/* =========================================================================
   Каталог / Контакты — выезжающие панели (мобильная нижняя навигация)
   ========================================================================= */
.upk-catalog-panel.offcanvas,
.upk-contacts-panel.offcanvas {
	width: 360px;
	max-width: 88vw;
}
.upk-catalog-panel .offcanvas-header,
.upk-contacts-panel .offcanvas-header {
	background: var(--upk-navy);
	color: #fff;
	padding: 20px 24px;
}
.upk-catalog-panel .offcanvas-header .btn-close,
.upk-contacts-panel .offcanvas-header .btn-close {
	filter: invert(1) grayscale(1) brightness(2);
}

.upk-panel-list { list-style: none; margin: 0; padding: 0; }
.upk-panel-list li { border-bottom: 1px solid var(--upk-gray-100); }
.upk-panel-list a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 15px 2px;
	color: var(--upk-navy);
	font-weight: 600;
	font-size: 15px;
}
.upk-panel-list a:hover { color: var(--upk-teal-dark); }
.upk-panel-list a svg { width: 18px; height: 18px; color: var(--upk-gray-500); flex-shrink: 0; }

.upk-panel-contact-row {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	padding: 14px 0;
	border-bottom: 1px solid var(--upk-gray-100);
	color: var(--upk-navy);
}
a.upk-panel-contact-row:hover { color: var(--upk-teal-dark); }
.upk-panel-contact-row svg { width: 20px; height: 20px; color: var(--upk-teal); flex-shrink: 0; margin-top: 2px; }
.upk-panel-contact-row strong { display: block; font-size: 14.5px; font-weight: 700; }
.upk-panel-contact-row span { display: block; font-size: 12.5px; color: var(--upk-gray-500); margin-top: 1px; }

/* =========================================================================
   Hero
   ========================================================================= */
.upk-hero {
	background: linear-gradient(120deg, var(--upk-navy) 0%, var(--upk-navy-2) 55%, var(--upk-teal-dark) 130%);
	color: #fff;
	position: relative;
	overflow: hidden;
}
.upk-hero::after {
	content: "";
	position: absolute;
	inset: 0;
	background: radial-gradient(circle at 82% 20%, rgba(234,88,12,.18), transparent 45%);
	pointer-events: none;
}
.upk-hero-inner { padding-block: clamp(56px, 8vw, 108px); position: relative; }
.upk-hero h1 {
	color: #fff;
	font-size: clamp(30px, 4.2vw, 50px);
	line-height: 1.12;
	margin-bottom: 18px;
}
.upk-hero p.lead {
	color: rgba(255,255,255,.82);
	font-size: 18px;
	max-width: 560px;
	margin-bottom: 30px;
}
.upk-hero-badges { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 34px; }
.upk-hero-badge { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.upk-hero-badge svg { width: 18px; height: 18px; color: var(--upk-amber); flex: none; }
.upk-hero-image {
	border-radius: var(--upk-radius-lg);
	overflow: hidden;
	box-shadow: var(--upk-shadow-lg);
}
.upk-hero-image img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* =========================================================================
   Advantages
   ========================================================================= */
.upk-advantage {
	background: #fff;
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius);
	padding: 26px 22px;
	height: 100%;
	transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.upk-advantage:hover { transform: translateY(-4px); box-shadow: var(--upk-shadow); border-color: transparent; }
.upk-advantage-icon {
	width: 52px;
	height: 52px;
	border-radius: var(--upk-radius-sm);
	background: var(--upk-teal-light);
	color: var(--upk-teal-dark);
	display: flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
}
.upk-advantage-icon svg { width: 26px; height: 26px; }
.upk-advantage h3 { font-size: 17px; margin-bottom: 6px; }
.upk-advantage p { color: var(--upk-gray-600); font-size: 14.5px; margin: 0; }

/* =========================================================================
   Category tiles
   ========================================================================= */
.upk-cat-tile {
	position: relative;
	display: block;
	border-radius: var(--upk-radius);
	overflow: hidden;
	min-height: 190px;
	background: var(--upk-navy) linear-gradient(160deg, rgba(15,23,42,.35), rgba(15,23,42,.85));
	background-size: cover;
	background-position: center;
	color: #fff;
	padding: 20px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	box-shadow: var(--upk-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.upk-cat-tile:hover { transform: translateY(-4px); box-shadow: var(--upk-shadow-lg); color: #fff; }
.upk-cat-tile h3 { color: #fff; font-size: 18px; margin: 0 0 4px; }
.upk-cat-tile span { font-size: 13px; color: rgba(255,255,255,.75); }
.upk-cat-tile .upk-cat-arrow {
	position: absolute;
	top: 16px;
	right: 16px;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: rgba(255,255,255,.15);
	display: flex;
	align-items: center;
	justify-content: center;
	backdrop-filter: blur(2px);
}
.upk-cat-tile .upk-cat-arrow svg { width: 16px; height: 16px; }

/* Карточка категории на главной: изображение целиком, без обрезки */
.upk-cat-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	border-radius: var(--upk-radius);
	overflow: hidden;
	background: var(--upk-white);
	border: 1px solid var(--upk-gray-200);
	color: var(--upk-navy);
	box-shadow: var(--upk-shadow-sm);
	transition: transform .2s ease, box-shadow .2s ease;
}
.upk-cat-card:hover { transform: translateY(-4px); box-shadow: var(--upk-shadow-lg); color: var(--upk-navy); }
.upk-cat-card-media {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 4 / 2;
	padding: 12px;
}
.upk-cat-card-media img {
	display: block;
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
}
.upk-cat-card-body {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	flex: 1;
	padding: 14px 16px;
}
.upk-cat-card h3 { font-size: 18px; margin: 0 0 4px; }
.upk-cat-card-text > span { font-size: 13px; color: var(--upk-gray-600); }
.upk-cat-card .upk-cat-arrow {
	flex: none;
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: var(--upk-gray-100);
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background .2s ease, color .2s ease;
}
.upk-cat-card:hover .upk-cat-arrow { background: var(--upk-navy); color: #fff; }
.upk-cat-card .upk-cat-arrow svg { width: 16px; height: 16px; }
@media (max-width: 575.98px) {
	.upk-cat-card h3 { font-size: 15px; }
	.upk-cat-card-body { padding: 12px; }
	.upk-cat-card .upk-cat-arrow { display: none; }
}

/* =========================================================================
   About / counters
   ========================================================================= */
.upk-about { background: var(--upk-gray-50); }
.upk-about-checklist { list-style: none; margin: 22px 0 0; padding: 0; }
.upk-about-checklist li {
	display: flex;
	gap: 10px;
	padding: 9px 0;
	font-size: 15px;
	color: var(--upk-gray-800);
}
.upk-about-checklist svg { width: 20px; height: 20px; color: var(--upk-teal); flex: none; margin-top: 1px; }

.upk-counters {
	background: var(--upk-navy);
	border-radius: var(--upk-radius-lg);
	color: #fff;
	padding: 34px 10px;
	margin-top: 48px;
}
.upk-counter { text-align: center; padding: 10px 12px; }
.upk-counter strong {
	display: block;
	font-family: var(--upk-font-heading);
	font-size: clamp(26px, 3vw, 38px);
	color: var(--upk-amber);
	font-weight: 800;
	line-height: 1;
	margin-bottom: 8px;
}
.upk-counter span { font-size: 13.5px; color: rgba(255,255,255,.75); }

/* =========================================================================
   Brands strip
   ========================================================================= */
.upk-brands-strip {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 40px;
}
.upk-brands-strip img {
	max-height: 40px;
	width: auto;
	filter: grayscale(1);
	opacity: .6;
	transition: opacity .15s ease, filter .15s ease;
}
.upk-brands-strip a:hover img { filter: none; opacity: 1; }

/* =========================================================================
   Product card
   ========================================================================= */
.upk-product-card {
	position: relative;
	background: #fff;
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius);
	overflow: hidden;
	height: 100%;
	display: flex;
	flex-direction: column;
	transition: box-shadow .18s ease, transform .18s ease, border-color .18s ease;
}
.upk-product-card:hover { box-shadow: var(--upk-shadow); transform: translateY(-3px); border-color: transparent; }
.upk-product-card-media { position: relative; aspect-ratio: 1/1; background: var(--upk-gray-50); }
.upk-product-card-media img { width: 100%; height: 100%; object-fit: contain; padding: 14px; }
.upk-product-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	background: var(--upk-danger);
	color: #fff;
	font-size: 11.5px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 999px;
	z-index: 2;
}
.upk-product-card-body { padding: 16px 16px 18px; display: flex; flex-direction: column; flex: 1; }
.upk-product-card-cat { font-size: 12px; color: var(--upk-teal-dark); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 6px; }
.upk-product-card-title {
	font-family: var(--upk-font-body);
	font-weight: 600;
	font-size: 15px;
	color: var(--upk-navy);
	margin-bottom: 8px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	min-height: 40px;
}
.upk-product-card-title a { color: inherit; }
.upk-product-card-meta { font-size: 12.5px; color: var(--upk-gray-600); margin-bottom: 10px; }
.upk-product-card-price { margin-top: auto; font-size: 19px; font-weight: 800; color: var(--upk-navy); margin-bottom: 12px; }
.upk-product-card-price del { color: var(--upk-gray-500); font-weight: 400; font-size: 14px; margin-right: 6px; }
.upk-product-card-actions { display: flex; gap: 8px; }
.upk-product-card-actions .btn {
	flex: 1;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	font-size: 13.5px;
	padding: .5rem .6rem;
	min-height: 40px;
}
.upk-product-card-actions .btn svg { width: 17px; height: 17px; flex-shrink: 0; }

/* =========================================================================
   Shop layout / filters / toolbar
   ========================================================================= */
.upk-shop-sidebar { }
.upk-filter-box {
	background: #fff;
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius);
	padding: 18px 18px 20px;
	margin-bottom: 18px;
}
.upk-filter-box h4 {
	font-size: 14px;
	text-transform: uppercase;
	letter-spacing: .03em;
	margin-bottom: 14px;
	color: var(--upk-gray-800);
}
.upk-filter-box ul { list-style: none; margin: 0; padding: 0; }
.upk-filter-box li {
	padding: 7px 0;
	font-size: 14px;
	border-bottom: 1px solid var(--upk-gray-100);
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 4px 8px;
}
.upk-filter-box li:last-child { border-bottom: none; }
.upk-filter-box a {
	color: var(--upk-gray-800);
	flex: 1;
	display: block;
}
.upk-filter-box a:hover { color: var(--upk-teal-dark); }
.upk-filter-box .count {
	color: var(--upk-gray-500);
	font-size: 12.5px;
	font-weight: 500;
}
/* Вложенные подкатегории (WC_Widget_Product_Categories выводит <ul class="children"> внутри <li>) —
   переносим их на всю ширину новой строкой вместо сжатия в тот же flex-ряд, что и родитель. */
.upk-filter-box li > ul.children {
	flex: 1 0 100%;
	order: 3;
	margin: 4px 0 2px;
	padding-left: 14px;
	border-left: 2px solid var(--upk-gray-100);
}
.upk-filter-box li > ul.children li {
	padding: 6px 0;
	font-size: 13.5px;
}
.upk-filter-box li.chosen,
.upk-filter-box li.woocommerce-widget-layered-nav-list__item--chosen {
	background: var(--upk-teal-light);
	margin: 0 -10px;
	padding-inline: 10px;
	border-radius: var(--upk-radius-sm);
	border-bottom-color: transparent;
}
.upk-filter-box li.chosen a,
.upk-filter-box li.woocommerce-widget-layered-nav-list__item--chosen a {
	color: var(--upk-teal-dark);
	font-weight: 700;
}

/* Слайдер цены (jQuery UI) */
.price_slider_wrapper { margin-bottom: 4px; }
.upk-filter-box .price_slider { margin-bottom: 20px; }
.upk-filter-box .ui-slider {
	position: relative;
	height: 4px;
	background: var(--upk-gray-200);
	border-radius: 999px;
}
.upk-filter-box .ui-slider-range {
	position: absolute;
	top: 0;
	height: 100%;
	background: var(--upk-teal);
	border-radius: 999px;
}
.upk-filter-box .ui-slider-handle {
	position: absolute;
	top: 50%;
	width: 16px;
	height: 16px;
	margin-left: -8px;
	transform: translateY(-50%);
	background: #fff;
	border: 2px solid var(--upk-teal);
	border-radius: 50%;
	box-shadow: 0 1px 3px rgba(15, 23, 42, .2);
	cursor: pointer;
	outline: none;
}
.upk-filter-box .ui-slider-handle:hover,
.upk-filter-box .ui-slider-handle:focus { border-color: var(--upk-teal-dark); }
.upk-filter-box .price_slider_amount { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.upk-filter-box .price_slider_amount input[type="text"] {
	width: 88px;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .4rem .55rem;
	font-size: 13px;
	color: var(--upk-navy);
}
.upk-filter-box .price_slider_amount input[type="text"]:focus {
	outline: none;
	border-color: var(--upk-teal);
	box-shadow: 0 0 0 .15rem rgba(100, 116, 139, .18);
}
.upk-filter-box .price_slider_amount .button {
	background: var(--upk-teal);
	color: #fff;
	border: none;
	border-radius: var(--upk-radius-sm);
	padding: .4rem .9rem;
	font-size: 13px;
	font-weight: 600;
	cursor: pointer;
	transition: background .15s ease;
}
.upk-filter-box .price_slider_amount .button:hover { background: var(--upk-teal-dark); }
.upk-filter-box .price_slider_amount .price_label { width: 100%; font-size: 13px; color: var(--upk-gray-600); order: -1; margin-bottom: 4px; }

.upk-toolbar {
	display: flex;
	align-items: center;
	justify-content: space-between;
	flex-wrap: wrap;
	gap: 12px;
	background: var(--upk-gray-50);
	border-radius: var(--upk-radius-sm);
	padding: 12px 16px;
	margin-bottom: 22px;
	font-size: 14px;
	color: var(--upk-gray-600);
}

/* Кастомный селект сортировки */
.upk-toolbar .woocommerce-ordering,
.upk-toolbar select.orderby {
	position: relative;
}
.upk-toolbar select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 12px center;
	background-size: 15px;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .5rem 2.2rem .5rem .9rem;
	font-size: 13.5px;
	font-weight: 500;
	color: var(--upk-navy);
	min-width: 200px;
	cursor: pointer;
	transition: border-color .15s ease;
}
.upk-toolbar select:hover { border-color: var(--upk-teal); }
.upk-toolbar select:focus {
	outline: none;
	border-color: var(--upk-teal);
	box-shadow: 0 0 0 .15rem rgba(100, 116, 139, .18);
}

.upk-breadcrumbs {
	font-size: 13.5px;
	color: var(--upk-gray-600);
	padding-block: 14px;
	white-space: nowrap;
	overflow-x: auto;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: none;
}
.upk-breadcrumbs::-webkit-scrollbar { display: none; }
.upk-breadcrumbs a { color: var(--upk-gray-600); }
.upk-breadcrumbs a:hover { color: var(--upk-teal); }
.upk-breadcrumbs .sep { margin: 0 6px; color: var(--upk-gray-300); }

nav.woocommerce-pagination ul.page-numbers {
	display: flex;
	gap: 6px;
	list-style: none;
	padding: 0;
	justify-content: center;
	margin-top: 20px;
}
nav.woocommerce-pagination .page-numbers li a,
nav.woocommerce-pagination .page-numbers li span {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 38px;
	height: 38px;
	border-radius: var(--upk-radius-sm);
	border: 1px solid var(--upk-gray-200);
	color: var(--upk-navy);
	font-weight: 600;
	font-size: 14px;
}
nav.woocommerce-pagination .page-numbers li .current { background: var(--upk-teal); color: #fff; border-color: var(--upk-teal); }
nav.woocommerce-pagination .page-numbers li a:hover { border-color: var(--upk-teal); color: var(--upk-teal); }

/* =========================================================================
   Single product
   ========================================================================= */
.upk-product-gallery-main {
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius);
	overflow: hidden;
	aspect-ratio: 1/1;
	background: var(--upk-gray-50);
	display: flex; align-items: center; justify-content: center;
}
.upk-product-gallery-main img { width: 100%; height: 100%; object-fit: contain; padding: 20px; }
.upk-product-gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.upk-product-gallery-thumbs button {
	width: 68px; height: 68px;
	border-radius: var(--upk-radius-sm);
	border: 2px solid var(--upk-gray-200);
	background: var(--upk-gray-50);
	padding: 4px;
}
.upk-product-gallery-thumbs button.is-active { border-color: var(--upk-teal); }
.upk-product-gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

.upk-product-summary .upk-product-brand { font-size: 13px; color: var(--upk-teal-dark); font-weight: 700; text-transform: uppercase; margin-bottom: 8px; }
.upk-product-summary h1 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 10px; }
.upk-product-sku { font-size: 13px; color: var(--upk-gray-500); margin-bottom: 16px; }
.upk-product-price-row { display: flex; align-items: baseline; gap: 12px; margin-bottom: 18px; }
.upk-product-price-row .price { font-size: 30px; font-weight: 800; color: var(--upk-navy); }
.upk-product-price-row .price del { font-size: 18px; color: var(--upk-gray-500); font-weight: 400; }
.upk-product-price-row .price ins { text-decoration: none; }
.upk-stock-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--upk-success); }
.upk-stock-badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }

.upk-buy-box {
	background: var(--upk-gray-50);
	border-radius: var(--upk-radius);
	padding: 20px;
	margin: 18px 0 22px;
}
.upk-qty-input {
	display: inline-flex;
	align-items: center;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	overflow: hidden;
	background: #fff;
}
.upk-qty-input input {
	width: 54px;
	border: none;
	text-align: center;
	height: 46px;
	font-weight: 700;
}
.upk-qty-input button {
	width: 40px; height: 46px;
	border: none;
	background: transparent;
	font-size: 18px;
	color: var(--upk-gray-700, var(--upk-gray-600));
}
.upk-qty-input button:hover { background: var(--upk-gray-100); }
.upk-buy-actions { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.upk-buy-actions .btn { flex: 1; min-width: 170px; padding: .75rem 1.1rem; }
.upk-buy-actions .quantity { display: flex; }
.upk-buy-actions .quantity .qty {
	width: 74px;
	height: auto;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	text-align: center;
	font-weight: 700;
	padding: .6rem .4rem;
}
.woocommerce-stock-note, p.stock { font-size: 13.5px; font-weight: 600; color: var(--upk-success); }
p.stock.out-of-stock { color: var(--upk-danger); }

/* Вариации товара (стандартная разметка WooCommerce, только оформление) */
table.variations { width: 100%; margin-bottom: 16px; }
table.variations tr { display: block; margin-bottom: 10px; }
table.variations th.label { text-align: left; font-weight: 600; font-size: 14px; padding-bottom: 6px; display: block; }
table.variations td.value select {
	width: 100%;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .55rem .7rem;
}
a.reset_variations { display: inline-block; margin-top: 6px; font-size: 12.5px; color: var(--upk-gray-500); }
.single_variation_wrap { margin-top: 14px; }
.woocommerce-variation-price { font-size: 22px; font-weight: 800; color: var(--upk-navy); margin-bottom: 10px; }
.woocommerce-variation-add-to-cart { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.woocommerce-variation-add-to-cart .quantity .qty {
	width: 74px; border: 1px solid var(--upk-gray-300); border-radius: var(--upk-radius-sm);
	text-align: center; font-weight: 700; padding: .6rem .4rem;
}
.woocommerce-variation-add-to-cart .single_add_to_cart_button {
	background: var(--upk-teal); color: #fff; border: none; border-radius: var(--upk-radius-sm);
	font-weight: 600; padding: .65rem 1.3rem;
}
.woocommerce-variation-availability { margin-top: 6px; }

.upk-trust-row { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 18px; }
.upk-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--upk-gray-600); }
.upk-trust-item svg { width: 20px; height: 20px; color: var(--upk-teal); }

.upk-product-tabs .nav-tabs { border: none; gap: 4px; flex-wrap: wrap; }
.upk-product-tabs .nav-tabs .nav-link {
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius-sm);
	color: var(--upk-gray-700, var(--upk-gray-600));
	font-weight: 600;
	font-size: 14px;
	padding: .55rem 1.1rem;
}
.upk-product-tabs .nav-tabs .nav-link.active {
	background: var(--upk-teal);
	border-color: var(--upk-teal);
	color: #fff;
}
.upk-product-tabs .tab-content { padding-top: 22px; }
table.upk-specs-table { width: 100%; border-collapse: collapse; }
table.upk-specs-table tr { border-bottom: 1px solid var(--upk-gray-200); }
table.upk-specs-table th, table.upk-specs-table td { text-align: left; padding: 11px 6px; font-size: 14.5px; }
table.upk-specs-table th { color: var(--upk-gray-600); font-weight: 500; width: 40%; }
.upk-docs-list { list-style: none; margin: 0; padding: 0; }
.upk-docs-list li { margin-bottom: 10px; }
.upk-docs-list a {
	display: inline-flex; align-items: center; gap: 10px;
	padding: 10px 14px;
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius-sm);
	color: var(--upk-navy);
	font-size: 14px; font-weight: 600;
}
.upk-docs-list a:hover { border-color: var(--upk-teal); color: var(--upk-teal); }
.upk-docs-list svg { width: 18px; height: 18px; color: var(--upk-danger); }

/* =========================================================================
   Cart page / checkout
   ========================================================================= */
.upk-cart-table { width: 100%; }
.upk-cart-table th { font-size: 13px; text-transform: uppercase; color: var(--upk-gray-600); border-bottom: 2px solid var(--upk-gray-200); padding-bottom: 12px; }
.upk-cart-table td { padding: 18px 8px; border-bottom: 1px solid var(--upk-gray-100); vertical-align: middle; }
.upk-cart-product { display: flex; align-items: center; gap: 14px; }
.upk-cart-product img { width: 72px; height: 72px; object-fit: contain; background: var(--upk-gray-50); border-radius: var(--upk-radius-sm); }

.upk-order-summary {
	background: var(--upk-gray-50);
	border-radius: var(--upk-radius);
	padding: 24px;
	position: sticky;
	top: 90px;
}
.upk-order-summary h3 { font-size: 17px; margin-bottom: 16px; }
.upk-order-summary table { width: 100%; }
.upk-order-summary table td { padding: 9px 0; font-size: 14.5px; }
.upk-order-summary .order-total td { border-top: 1px solid var(--upk-gray-200); font-size: 18px; font-weight: 800; color: var(--upk-navy); padding-top: 16px; }

.woocommerce-checkout #customer_details .form-row { margin-bottom: 14px; }
.woocommerce-checkout input.input-text,
.woocommerce-checkout select,
.woocommerce-checkout textarea {
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .6rem .8rem;
	width: 100%;
}
.woocommerce-checkout h3 { font-size: 18px; margin: 26px 0 14px; }
.wc_payment_methods, ul.wc_payment_methods { list-style: none; padding: 0; }
.wc_payment_method { border: 1px solid var(--upk-gray-200); border-radius: var(--upk-radius-sm); padding: 12px 14px; margin-bottom: 10px; }
.woocommerce-checkout-review-order-table { width: 100%; margin-bottom: 16px; }
.woocommerce-checkout-review-order-table th, .woocommerce-checkout-review-order-table td { padding: 9px 0; font-size: 14.5px; text-align: left; }
.woocommerce-checkout-review-order-table td:last-child, .woocommerce-checkout-review-order-table th:last-child { text-align: right; }
.woocommerce-checkout-review-order-table .cart-subtotal, .woocommerce-checkout-review-order-table .order-total { border-top: 1px solid var(--upk-gray-200); }
.woocommerce-checkout-review-order-table .order-total th, .woocommerce-checkout-review-order-table .order-total td { font-size: 18px; font-weight: 800; color: var(--upk-navy); padding-top: 14px; }
#place_order, button#place_order {
	background: var(--upk-amber);
	border: none;
	color: #fff;
	font-weight: 700;
	border-radius: var(--upk-radius-sm);
	padding: .8rem 1.4rem;
	width: 100%;
}
#place_order:hover { background: var(--upk-amber-dark); }
.woocommerce-form-login, .woocommerce-form-coupon { border: 1px solid var(--upk-gray-200); border-radius: var(--upk-radius); padding: 20px; margin-bottom: 20px; }
.select2-container .select2-selection--single { height: 44px !important; border-color: var(--upk-gray-300) !important; display:flex; align-items:center; }

/* Двухколоночная сетка чекаута: свой враппер вместо родных col-1/col-2 WooCommerce
   (совпадали по имени с классами сетки Bootstrap и ломали ширину полей). */
.upk-checkout-col + .upk-checkout-col { margin-top: 8px; }
.upk-checkout-col .woocommerce-billing-fields > h3,
.upk-checkout-col .woocommerce-shipping-fields > h3 { font-size: 18px; margin: 0 0 16px; }
.woocommerce-billing-fields__field-wrapper,
.woocommerce-shipping-fields__field-wrapper,
.woocommerce-additional-fields__field-wrapper {
	display: flex;
	flex-wrap: wrap;
	gap: 0 16px;
}
.woocommerce-checkout .form-row { margin-bottom: 14px; flex: 1 1 100%; min-width: 0; }
.woocommerce-checkout .form-row-first,
.woocommerce-checkout .form-row-last { flex: 1 1 calc(50% - 8px); }
@media (max-width: 575.98px) {
	.woocommerce-checkout .form-row-first,
	.woocommerce-checkout .form-row-last { flex: 1 1 100%; }
}
.woocommerce-checkout .form-row label {
	display: block;
	margin-bottom: 6px;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--upk-gray-700, var(--upk-gray-800));
}
.woocommerce-checkout .form-row label .required { color: var(--upk-danger); text-decoration: none; }
.woocommerce-checkout .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce-checkout #ship-to-different-address { margin: 22px 0 14px; list-style: none; }
.woocommerce-checkout #ship-to-different-address label,
.woocommerce-checkout .create-account label,
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper label {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14.5px;
	font-weight: 600;
	cursor: pointer;
}
.woocommerce-checkout #ship-to-different-address-checkbox,
.woocommerce-checkout input.woocommerce-form__input-checkbox,
.woocommerce-checkout input#terms { width: 17px; height: 17px; flex-shrink: 0; accent-color: var(--upk-teal); }
.woocommerce-checkout .woocommerce-terms-and-conditions-wrapper { margin-top: 18px; }
.woocommerce-checkout .woocommerce-additional-fields { margin-top: 8px; }
.woocommerce-checkout .woocommerce-additional-fields h3 { font-size: 18px; margin: 22px 0 14px; }

/* Уведомления WooCommerce (ошибки валидации, «нет доступных способов оплаты» и т.п.) —
   без этих стилей они выводятся неформатированным текстом поверх сетки. */
.woocommerce-message,
.woocommerce-error,
.woocommerce-info {
	display: block;
	list-style: none;
	background: var(--upk-teal-light, #eef6f6);
	border: 1px solid var(--upk-gray-200);
	border-left: 4px solid var(--upk-teal);
	border-radius: var(--upk-radius-sm);
	padding: 14px 18px;
	margin: 0 0 18px;
	font-size: 14.5px;
	color: var(--upk-navy);
}
.woocommerce-error { border-left-color: var(--upk-danger); }
.woocommerce-error li { list-style: none; }
.woocommerce-error li + li { margin-top: 6px; }
.woocommerce-message .button,
.woocommerce-error .button { margin-left: 10px; }

.wc_payment_methods li { list-style: none; }
.payment_box { background: var(--upk-gray-50); border-radius: var(--upk-radius-sm); padding: 14px; margin: 10px 0 0; font-size: 13.5px; }
.place-order { margin-top: 18px; }
.place-order .woocommerce-terms-and-conditions-wrapper + button,
.place-order noscript + .woocommerce-terms-and-conditions-wrapper { margin-top: 0; }

/* =========================================================================
   Footer
   ========================================================================= */
.upk-footer { background: var(--upk-navy); color: rgba(255,255,255,.75); }
.upk-footer a { color: rgba(255,255,255,.75); }
.upk-footer a:hover { color: #fff; }
.upk-footer h4 { color: #fff; font-size: 15px; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 18px; }
.upk-footer ul { list-style: none; padding: 0; margin: 0; }
.upk-footer li { margin-bottom: 10px; font-size: 14.5px; }
.upk-footer-top { padding-block: 56px; border-bottom: 1px solid rgba(255,255,255,.08); }
.upk-footer-bottom { padding-block: 20px; font-size: 13px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; }
.upk-footer-logo { font-family: var(--upk-font-heading); color: #fff; font-weight: 800; font-size: 19px; margin-bottom: 12px; display: block; }
.upk-footer-about { font-size: 14px; max-width: 320px; margin-bottom: 18px; }

/* =========================================================================
   Misc
   ========================================================================= */
.upk-empty-state { text-align: center; padding: 70px 20px; }
.upk-empty-state svg { width: 64px; height: 64px; color: var(--upk-gray-300); margin-bottom: 18px; }
.upk-page-header { background: var(--upk-gray-50); padding-block: 30px; margin-bottom: 40px; }
.upk-info-content img { max-width: 100%; height: auto; border-radius: var(--upk-radius); }
.upk-info-content table { width: 100%; border-collapse: collapse; margin: 20px 0; }
.upk-info-content table th, .upk-info-content table td { border: 1px solid var(--upk-gray-200); padding: 10px 12px; }
.upk-info-content .accordion-button:not(.collapsed) { background: var(--upk-teal-light); color: var(--upk-teal-dark); }

.upk-contacts-map iframe { width: 100%; height: 420px; border: 0; border-radius: var(--upk-radius); }
.upk-contact-card { background: #fff; border: 1px solid var(--upk-gray-200); border-radius: var(--upk-radius); padding: 22px; height: 100%; }
.upk-contact-card svg { width: 26px; height: 26px; color: var(--upk-teal); margin-bottom: 12px; }

/* =========================================================================
   Личный кабинет — вход / регистрация (WooCommerce My Account)
   ========================================================================= */
#customer_login {
	max-width: 820px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 24px;
}
#customer_login .u-column1,
#customer_login .u-column2 { flex: 1 1 320px; }
.woocommerce-form-login,
.woocommerce-form-register {
	background: #fff;
	border: 1px solid var(--upk-gray-200);
	border-radius: var(--upk-radius-lg);
	padding: 28px 30px;
	height: 100%;
}
.woocommerce > h2:first-child,
#customer_login h2 {
	font-size: 19px;
	margin-bottom: 18px;
	color: var(--upk-navy);
}
.woocommerce-form-login:not(#customer_login *),
.woocommerce-form-register:not(#customer_login *) {
	max-width: 420px;
	margin: 0 auto;
}
.woocommerce-form-row { margin-bottom: 16px; }
.woocommerce-form-row label {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--upk-navy);
	margin-bottom: 6px;
}
.woocommerce-form-row .required { color: var(--upk-danger); }
.woocommerce-form-row .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.woocommerce-Input {
	width: 100%;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .6rem .8rem;
	font-size: 14.5px;
	font-family: var(--upk-font-body);
}
.woocommerce-Input:focus {
	outline: none;
	border-color: var(--upk-teal);
	box-shadow: 0 0 0 .15rem rgba(100, 116, 139, .18);
}
.woocommerce-form-login__rememberme {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13.5px;
	color: var(--upk-gray-600);
	margin-bottom: 16px;
	font-weight: 400;
}
.woocommerce-form-login .form-row.form-row { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.woocommerce-form-login__submit,
.woocommerce-form-register__submit {
	background: var(--upk-teal);
	color: #fff;
	border: none;
	border-radius: var(--upk-radius-sm);
	padding: .65rem 1.6rem;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	transition: background .15s ease;
}
.woocommerce-form-login__submit:hover,
.woocommerce-form-register__submit:hover { background: var(--upk-teal-dark); }
.woocommerce-LostPassword {
	margin-top: 14px;
	font-size: 13.5px;
}
.woocommerce-LostPassword a { color: var(--upk-teal-dark); font-weight: 600; }

/* Личный кабинет: навигация вкладок + контент (дашборд/заказы/адреса) */
.woocommerce-MyAccount-navigation ul { list-style: none; margin: 0; padding: 0; }
.woocommerce-MyAccount-navigation li {
	border-bottom: 1px solid var(--upk-gray-100);
}
.woocommerce-MyAccount-navigation li a {
	display: block;
	padding: 11px 4px;
	color: var(--upk-gray-800);
	font-weight: 500;
	font-size: 14.5px;
}
.woocommerce-MyAccount-navigation li.is-active a {
	color: var(--upk-teal-dark);
	font-weight: 700;
}
.woocommerce-MyAccount-navigation li a:hover { color: var(--upk-teal-dark); }
.woocommerce-MyAccount-content table.woocommerce-orders-table,
table.shop_table {
	width: 100%;
	border-collapse: collapse;
	margin-bottom: 20px;
}
table.shop_table th {
	text-align: left;
	font-size: 12.5px;
	text-transform: uppercase;
	color: var(--upk-gray-600);
	border-bottom: 2px solid var(--upk-gray-200);
	padding: 10px 8px;
}
table.shop_table td { padding: 12px 8px; border-bottom: 1px solid var(--upk-gray-100); font-size: 14px; }
.woocommerce-MyAccount-content .addresses .address { border: 1px solid var(--upk-gray-200); border-radius: var(--upk-radius); padding: 18px; }
.woocommerce-MyAccount-content mark.order-status { background: var(--upk-teal-light); color: var(--upk-teal-dark); padding: .25rem .6rem; border-radius: 999px; font-size: 12.5px; font-weight: 600; }
.woocommerce-MyAccount-content .button,
a.button.wc-forward,
a.woocommerce-Button {
	display: inline-block;
	background: var(--upk-teal);
	color: #fff;
	border: none;
	border-radius: var(--upk-radius-sm);
	padding: .5rem 1.1rem;
	font-size: 13.5px;
	font-weight: 600;
	text-decoration: none;
}
.woocommerce-MyAccount-content .button:hover,
a.button.wc-forward:hover,
a.woocommerce-Button:hover { background: var(--upk-teal-dark); color: #fff; }

/* =========================================================================
   Отзывы о товаре (страница товара, вкладка «Отзывы»)
   ========================================================================= */
#reviews .woocommerce-Reviews-title { font-size: 20px; margin-bottom: 20px; }
#reviews ol.commentlist { list-style: none; margin: 0 0 28px; padding: 0; }
#reviews ol.commentlist li { margin-bottom: 16px; }
#reviews .comment_container {
	display: flex;
	gap: 14px;
	background: var(--upk-gray-50);
	border-radius: var(--upk-radius);
	padding: 16px 18px;
}
#reviews .comment_container img.avatar { border-radius: 50%; flex-shrink: 0; }
#reviews .comment-text { flex: 1; }
#reviews .comment-text .star-rating { margin-bottom: 6px; }
#reviews .woocommerce-review__author { font-weight: 700; color: var(--upk-navy); font-size: 14.5px; }
#reviews .woocommerce-review__dash { color: var(--upk-gray-400, var(--upk-gray-500)); margin: 0 4px; }
#reviews .woocommerce-review__published-date { font-size: 12.5px; color: var(--upk-gray-500); }
#reviews .description p { margin: 6px 0 0; font-size: 14.5px; color: var(--upk-gray-800); }
#reviews .woocommerce-noreviews { color: var(--upk-gray-600); margin-bottom: 24px; }

/* Статичный рейтинг (среднее по отзывам, в списке комментариев) — оверлей из символов ★ */
.star-rating {
	position: relative;
	width: 80px;
	height: 16px;
	line-height: 16px;
	font-size: 15px;
	letter-spacing: 2px;
	font-family: sans-serif;
}
.star-rating::before {
	content: "★★★★★";
	position: absolute;
	inset: 0;
	color: var(--upk-gray-300);
	letter-spacing: 2px;
}
.star-rating span { display: block; position: relative; height: 100%; overflow: hidden; }
.star-rating span::before {
	content: "★★★★★";
	position: absolute;
	inset: 0;
	color: var(--upk-amber);
	letter-spacing: 2px;
}

#review_form_wrapper { border-top: 1px solid var(--upk-gray-200); padding-top: 28px; }
#review_form #reply-title,
#review_form .comment-reply-title {
	font-size: 18px;
	font-weight: 700;
	color: var(--upk-navy);
	margin-bottom: 16px;
	display: block;
}
#review_form .comment-notes { font-size: 13.5px; color: var(--upk-gray-600); margin-bottom: 16px; }
#review_form .comment-form-rating { margin-bottom: 16px; }
#review_form .comment-form-rating label:not(.stars-label-hidden) {
	display: block;
	font-weight: 600;
	font-size: 14px;
	color: var(--upk-navy);
	margin-bottom: 8px;
}
#review_form .required { color: var(--upk-danger); }

/* Звёзды рейтинга */
#review_form p.stars { margin: 0; }
#review_form p.stars span[role="group"] { display: inline-flex; gap: 4px; }
#review_form p.stars a {
	display: inline-block;
	width: 26px;
	height: 26px;
	font-size: 0;
	text-decoration: none;
	position: relative;
	cursor: pointer;
}
#review_form p.stars a::before {
	content: "★";
	position: absolute;
	inset: 0;
	font-size: 24px;
	line-height: 26px;
	text-align: center;
	color: var(--upk-gray-300);
	transition: color .1s ease;
}
#review_form p.stars a.is-filled::before,
#review_form p.stars a.is-hover::before {
	color: var(--upk-amber);
}

#review_form .comment-form-comment textarea,
#review_form .comment-form-author input,
#review_form .comment-form-email input {
	width: 100%;
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .6rem .8rem;
	font-size: 14.5px;
	font-family: var(--upk-font-body);
}
#review_form .comment-form-comment textarea:focus,
#review_form .comment-form-author input:focus,
#review_form .comment-form-email input:focus {
	outline: none;
	border-color: var(--upk-teal);
	box-shadow: 0 0 0 .15rem rgba(100, 116, 139, .18);
}
#review_form label { display: block; font-weight: 600; font-size: 14px; color: var(--upk-navy); margin-bottom: 6px; }
#review_form p.comment-form-author,
#review_form p.comment-form-email,
#review_form p.comment-form-comment { margin-bottom: 16px; }
#review_form .form-submit { margin-top: 4px; }
#review_form #submit {
	background: var(--upk-teal);
	color: #fff;
	border: none;
	border-radius: var(--upk-radius-sm);
	padding: .65rem 1.6rem;
	font-weight: 600;
	font-size: 14.5px;
	cursor: pointer;
	transition: background .15s ease;
}
#review_form #submit:hover { background: var(--upk-teal-dark); }
.woocommerce-verification-required,
.must-log-in { color: var(--upk-gray-600); }
.must-log-in a { color: var(--upk-teal-dark); font-weight: 600; }

/* =========================================================================
   Комментарии (записи блога)
   ========================================================================= */
.upk-comment-list, .upk-comment-list .children { list-style: none; margin: 0; padding: 0; }
.upk-comment-list .children { margin-left: 32px; margin-top: 16px; }
.upk-comment-list > li { margin-bottom: 20px; }
.upk-comment-list .comment-body {
	background: var(--upk-gray-50);
	border-radius: var(--upk-radius);
	padding: 18px 20px;
}
.upk-comment-list .comment-author { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.upk-comment-list .comment-author .avatar { border-radius: 50%; }
.upk-comment-list .comment-author .fn { font-weight: 700; font-style: normal; color: var(--upk-navy); font-size: 14.5px; }
.upk-comment-list .comment-metadata { font-size: 12.5px; color: var(--upk-gray-500); margin-bottom: 8px; }
.upk-comment-list .comment-metadata a { color: inherit; }
.upk-comment-list .comment-content p { margin-bottom: 0; font-size: 14.5px; color: var(--upk-gray-800); }
.upk-comment-list .reply a { font-size: 12.5px; font-weight: 600; color: var(--upk-teal-dark); }
.upk-comment-form { margin-top: 32px; }
.upk-comment-form .comment-notes,
.upk-comment-form .comment-form-cookies-consent { font-size: 13px; color: var(--upk-gray-500); margin-bottom: 14px; }
.upk-comment-form input[type="text"],
.upk-comment-form input[type="email"],
.upk-comment-form input[type="url"] {
	border: 1px solid var(--upk-gray-300);
	border-radius: var(--upk-radius-sm);
	padding: .6rem .8rem;
	width: 100%;
}

.upk-news-card { border-radius: var(--upk-radius); overflow: hidden; border: 1px solid var(--upk-gray-200); height: 100%; display: flex; flex-direction: column; }
.upk-news-card img { aspect-ratio: 16/10; object-fit: cover; width: 100%; }
.upk-news-card-body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.upk-news-card-date { font-size: 12.5px; color: var(--upk-gray-500); margin-bottom: 8px; }
.upk-news-card h3 { font-size: 16px; margin-bottom: 10px; }
.upk-news-card a.stretched-link { color: inherit; }

@media (max-width: 991.98px) {
	.upk-nav-list { display: none; }
	.upk-submenu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; display: none; }
	.upk-nav-list.is-open { display: block; }
	.upk-nav-list.is-open > li > a { padding: 12px 4px; }
	.upk-order-summary { position: static; }

	/* Место под фиксированную нижнюю панель, чтобы контент/футер не перекрывались */
	body { padding-bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }

	/* Поднимаем кнопку обратного звонка над нижней панелью */
	.upk-callback-fab { bottom: calc(58px + env(safe-area-inset-bottom, 0px) + 16px); }
}

/* =========================================================================
   Мобильная нижняя навигация
   ========================================================================= */
.upk-bottom-nav {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1035;
	display: flex;
	background: #fff;
	border-top: 1px solid var(--upk-gray-200);
	box-shadow: 0 -6px 20px rgba(15, 23, 42, .08);
	padding-bottom: env(safe-area-inset-bottom, 0px);
	/* Свой compositing-слой — убирает «дрожание» фикс. панели при скролле на мобильных (iOS Safari/Chrome) */
	transform: translateZ(0);
	-webkit-transform: translateZ(0);
	will-change: transform;
	backface-visibility: hidden;
	-webkit-backface-visibility: hidden;
}
.upk-bottom-nav-item {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 3px;
	min-height: 58px;
	padding: 6px 2px;
	border: none;
	background: none;
	color: var(--upk-gray-600);
	font-size: 11px;
	font-weight: 600;
	line-height: 1.1;
	text-align: center;
}
.upk-bottom-nav-item svg { width: 21px; height: 21px; }
.upk-bottom-nav-item.is-active { color: var(--upk-amber); }
.upk-bottom-nav-item:active { background: var(--upk-gray-50); }
.upk-bottom-nav-badge {
	position: absolute;
	top: 2px;
	right: 50%;
	margin-right: -22px;
}

/* =========================================================================
   Баннер согласия на cookie
   ========================================================================= */
.upk-cookie-banner {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1045;
	background: var(--upk-navy);
	color: rgba(255, 255, 255, .88);
	box-shadow: 0 -6px 20px rgba(15, 23, 42, .18);
	transform: translateY(100%);
	transition: transform .3s ease;
}
.upk-cookie-banner.is-visible { transform: translateY(0); }
.upk-cookie-banner-inner {
	max-width: 1320px;
	margin-inline: auto;
	padding: 16px 20px;
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
}
.upk-cookie-banner p { margin: 0; font-size: 13.5px; line-height: 1.5; max-width: 720px; }
.upk-cookie-banner a { color: #fff; text-decoration: underline; }
.upk-cookie-banner-actions { flex-shrink: 0; }
.upk-cookie-banner .btn { padding: .5rem 1.3rem; font-size: 13.5px; }

@media (max-width: 991.98px) {
	.upk-cookie-banner { bottom: calc(58px + env(safe-area-inset-bottom, 0px)); }
	.upk-cookie-banner-inner { padding: 14px 16px; }
}

