/* ==========================================================================
   PrimeFull: дизайн-система и страницы магазина
   Токены, база, кнопки, поля, полоса, шапка, каталог, карточка, страницы WooCommerce, подвал, телефон.
   ========================================================================== */

:root {
	--ink: #1F1F1C;
	--ink-2: #67645C;
	--ink-3: #6F6B62;
	--line: #E5E2DA;
	--paper: #FFFFFF;
	--tint: #F6F5F1;
	--brand: #F7C114;
	--brand-hover: #E8B205;
	--brand-soft: #FFF5D1;
	--ok: #23743F;
	--err: #B3261E;
	--dark: #22211E;

	--r-sm: 8px;
	--r-md: 10px;
	--r-lg: 12px;
	--h-btn: 42px;
	--h-btn-lg: 46px;
	--h-btn-sm: 38px;

	--wrap: 1344px;
	--gut: 32px;
	--gap: 16px;

	--font: 'Golos Text', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--shadow: 0 1px 2px rgba(31, 31, 28, .06), 0 4px 16px rgba(31, 31, 28, .06);
}

/* ---------- База ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 16px; }
body {
	margin: 0;
	background: var(--paper);
	color: var(--ink);
	font: 400 15px/1.5 var(--font);
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
a:hover { color: var(--ink); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 .75em; }
ul { margin: 0; padding: 0; list-style: none; }
.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.pf-skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: var(--r-sm); }
.pf-skip:focus { left: 8px; }

.pf-wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.pf-i { width: 20px; height: 20px; fill: currentColor; flex: none; }
.pf-only-mob { display: none; }

.pf-h1 { font-size: 28px; font-weight: 800; }
.pf-sub { color: var(--ink-2); margin: 6px 0 0; }
.pf-sub p { margin: 0; }

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

.pf-btn, .button, button.button, input.button, .wc-block-components-button, #place_order {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	height: var(--h-btn); padding: 0 18px;
	border: 1px solid transparent; border-radius: var(--r-md);
	font-weight: 600; font-size: 15px; line-height: 1; text-decoration: none; white-space: nowrap;
	cursor: pointer; transition: background-color .15s, border-color .15s, color .15s;
	background: var(--ink); color: #fff;
}
.pf-btn:hover, .button:hover { background: #000; color: #fff; }
.pf-btn-dark { background: var(--ink); color: #fff; }
.pf-btn-brand, .button.alt, #place_order, .checkout-button {
	background: var(--brand); color: var(--ink); border-color: var(--brand);
}
.pf-btn-brand:hover, .button.alt:hover, #place_order:hover, .checkout-button:hover { background: var(--brand-hover); color: var(--ink); border-color: var(--brand-hover); }
.pf-btn-ghost { background: var(--paper); color: var(--ink); border-color: var(--line); }
.pf-btn-ghost:hover { background: var(--tint); color: var(--ink); border-color: #D6D2C8; }
.pf-btn .pf-i { width: 18px; height: 18px; }
.button.disabled, .button:disabled { opacity: .5; cursor: not-allowed; }
.added_to_cart { display: none !important; }
.button.loading { opacity: .7; }
.button.added::after, .pf-btn.added::after { content: ' ✓'; }

.pf-pill-btn {
	display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 14px;
	border-radius: 999px; background: var(--brand); color: var(--ink);
	font-weight: 600; font-size: 13px; text-decoration: none; white-space: nowrap;
}
.pf-pill-btn:hover { background: var(--brand-hover); color: var(--ink); }

/* ---------- Поля ---------- */

input[type=text], input[type=email], input[type=tel], input[type=number], input[type=password],
input[type=search], select, textarea, .select2-container .select2-selection--single {
	width: 100%; min-height: var(--h-btn); padding: 9px 12px;
	background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-sm);
	font-size: 15px; line-height: 1.4; transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(31, 31, 28, .08); }
label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.pf-opt, .optional { color: var(--ink-3); font-weight: 400; }
.required { color: var(--err); text-decoration: none; border: 0; }
.pf-check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; cursor: pointer; }
.pf-check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }

/* Счётчик − 1 + */
.pf-qty, .quantity {
	display: inline-flex; align-items: stretch; height: var(--h-btn);
	border: 1px solid var(--line); border-radius: var(--r-md); background: var(--paper); overflow: hidden;
}
.pf-qty button {
	width: 30px; border: 0; background: transparent; font-size: 18px; cursor: pointer; color: var(--ink-2);
}
.pf-qty button:hover { background: var(--tint); color: var(--ink); }
.woocommerce-Price-amount { white-space: nowrap; }
.pf-qty input, .quantity input.qty {
	width: 40px; min-height: 0; height: 100%; padding: 0 4px; border: 0; border-radius: 0;
	text-align: center; font-weight: 600; -moz-appearance: textfield;
}
.quantity input.qty { width: 64px; }
.pf-qty input:focus, .quantity input.qty:focus { box-shadow: none; }
.pf-qty input::-webkit-inner-spin-button, .pf-qty input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Чипы */
.pf-chip {
	display: inline-flex; align-items: center; height: 34px; padding: 0 14px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
	font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; white-space: nowrap;
	transition: background-color .15s, border-color .15s;
}
.pf-chip:hover { border-color: #CFCABF; background: var(--tint); }
.pf-chip.is-on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 20px; }

/* Уведомления */
.pf-alert, .woocommerce-message, .woocommerce-info, .woocommerce-error, .woocommerce-noreviews {
	list-style: none; margin: 0 0 16px; padding: 12px 16px; border-radius: var(--r-md);
	background: var(--tint); border: 1px solid var(--line); font-size: 14px;
	display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between;
}
.woocommerce-message, .pf-alert-ok { background: #EEF7F1; border-color: #BFDCC9; }
.woocommerce-error, .pf-alert-err { background: #FCEEEE; border-color: #EFC4C1; }
.woocommerce-error li { list-style: none; }
.woocommerce-message .button, .woocommerce-info .button { height: var(--h-btn-sm); order: 2; }

/* ---------- Полоса фулфилмента ---------- */

.pf-fbar { background: var(--dark); color: #EDEBE6; font-size: 14px; }
.pf-fbar-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; }
.pf-fbar-text { margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-fbar-text b { color: #fff; font-weight: 600; }

/* ---------- Шапка ---------- */

.pf-head { background: var(--paper); border-bottom: 1px solid var(--line); }
.pf-head-in { display: flex; align-items: center; gap: 16px; min-height: 76px; }
.pf-logo { flex: none; display: block; }
.pf-logo img { width: 156px; height: auto; }
.pf-stock-pill {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	height: 32px; padding: 0 12px; border-radius: 999px; background: var(--tint);
	font-size: 13px; font-weight: 500; color: var(--ink-2); white-space: nowrap;
}
.pf-stock-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px rgba(35, 116, 63, .15); }
.pf-search {
	position: relative; flex: 1 1 auto; min-width: 0; display: flex; align-items: center;
	height: var(--h-btn-lg); background: var(--tint); border: 1px solid var(--line); border-radius: var(--r-md);
	transition: border-color .15s, background-color .15s;
}
.pf-search:focus-within { border-color: var(--ink); background: var(--paper); box-shadow: 0 0 0 3px rgba(31, 31, 28, .12); }
.pf-search > .pf-i { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.pf-search input[type=search] {
	font-size: 14px; height: 100%; min-height: 0; padding: 0 12px 0 44px; border: 0; background: transparent; border-radius: var(--r-md);
}
.pf-search input[type=search]:focus { box-shadow: none; }
.pf-search input::-webkit-search-cancel-button { display: none; }
.pf-search-go {
	height: 36px; margin-right: 4px; padding: 0 14px; flex: none; border: 0; border-radius: var(--r-sm);
	background: var(--ink); color: #fff; font-weight: 600; cursor: pointer;
}
.pf-search-go:hover { background: #000; }

.pf-seg {
	display: inline-flex; flex: none; padding: 3px; background: var(--tint);
	border: 1px solid var(--line); border-radius: var(--r-md);
}
.pf-seg a {
	display: inline-flex; align-items: center; height: 36px; padding: 0 10px; border-radius: var(--r-sm);
	font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap;
}
.pf-seg a:hover { color: var(--ink); }
.pf-seg a.is-on { background: var(--ink); color: #fff; }

.pf-cart-btn {
	display: inline-flex; align-items: center; gap: 8px; flex: none;
	height: var(--h-btn-lg); padding: 0 16px; border-radius: var(--r-md);
	background: var(--brand); color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap;
}
.pf-cart-btn:hover { background: var(--brand-hover); color: var(--ink); }

/* Строка задач */
.pf-tasks { border-bottom: 1px solid var(--line); background: var(--paper); }
.pf-tasks-in { display: flex; gap: 8px; padding-top: 12px; padding-bottom: 12px; overflow-x: auto; scrollbar-width: none; }
.pf-tasks-in::-webkit-scrollbar { display: none; }
.pf-tasks .pf-chip { background: var(--tint); border-color: transparent; }
.pf-tasks .pf-chip:hover { border-color: var(--line); }
.pf-tasks .pf-chip.is-on { background: var(--ink); color: #fff; }

/* ---------- Раскладка каталога ---------- */

.pf-main { min-height: 50vh; }
.pf-layout { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 28px; padding-top: 28px; padding-bottom: 56px; align-items: start; }
.pf-page { padding-top: 24px; padding-bottom: 56px; }
.pf-content { min-width: 0; }
.pf-listing-head { margin-bottom: 4px; }
.pf-more { margin: 28px 0 0; text-align: center; }
.pf-empty { color: var(--ink-2); padding: 24px 0; }

.pf-crumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 12px; }
.pf-crumbs a { color: var(--ink-2); text-decoration: underline; text-decoration-color: #CFCABF; text-underline-offset: 2px; }
.pf-crumbs a:hover { text-decoration: underline; }
.pf-crumb-sep { margin: 0 6px; color: #C9C5BB; }

/* Боковой каталог */
.pf-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; }
.pf-box { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; background: var(--paper); }
.pf-side-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); margin: 2px 6px 8px; }
.pf-cat > li + li { margin-top: 2px; }
.pf-cat summary, .pf-cat a {
	display: flex; align-items: center; justify-content: space-between; gap: 8px;
	min-height: 38px; padding: 7px 10px; border-radius: var(--r-sm);
	font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer;
}
.pf-cat summary { list-style: none; font-weight: 600; }
.pf-cat summary::-webkit-details-marker { display: none; }
.pf-cat summary::after {
	content: ''; width: 8px; height: 8px; margin-left: 4px; flex: none;
	border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg) translateY(-2px);
	transition: transform .15s;
}
.pf-cat details[open] > summary::after { transform: rotate(-135deg) translateY(-2px); }
.pf-cat summary > span:first-child { flex: 1; }
.pf-cat summary:hover, .pf-cat a:hover { background: var(--tint); }
.pf-cat details ul { padding: 2px 0 6px 10px; }
.pf-cat details a { font-size: 14px; color: var(--ink-2); min-height: 34px; }
.pf-cat a[aria-current] { background: var(--tint); color: var(--ink); font-weight: 600; }
.pf-cat-top { font-weight: 600 !important; }
.pf-count { font-size: 12px; color: var(--ink-3); font-weight: 500; font-variant-numeric: tabular-nums; }
.pf-note { display: block; font-style: normal; font-size: 12px; font-weight: 500; color: #8A6A00; }
.pf-cat-flat a { font-weight: 500; }
.pf-cat-flat .pf-i { width: 16px; height: 16px; color: var(--ink-3); }

.pf-quote { background: var(--brand-soft); border-color: #F3E2A6; padding: 18px; }
.pf-quote-h { font-weight: 700; font-size: 16px; margin-bottom: 6px; }
.pf-quote p { font-size: 14px; color: #4F4A3C; }
.pf-quote .pf-btn { width: 100%; margin-top: 4px; }

/* ---------- Сетка и карточка товара ---------- */

ul.products {
	display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--gap);
	margin: 0; padding: 0;
}
ul.products::before, ul.products::after { display: none !important; }
ul.products li.product, ul.products .pf-ftile { width: auto !important; margin: 0 !important; float: none !important; }

.pf-card {
	display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg);
	background: var(--paper); overflow: hidden; transition: border-color .15s, box-shadow .15s;
}
.pf-card:hover { border-color: #D6D2C8; box-shadow: var(--shadow); }
.pf-card-img { position: relative; display: block; aspect-ratio: 1 / 1; background: var(--tint); }
.pf-card-img img { width: 100%; height: 100%; object-fit: cover; }
.pf-badge {
	position: absolute; left: 10px; top: 10px; padding: 4px 8px; border-radius: 6px;
	background: var(--paper); font-size: 12px; font-weight: 600; box-shadow: var(--shadow);
}
.pf-card-body { display: flex; flex-direction: column; gap: 8px; padding: 14px; flex: 1; }
.pf-card-title { font-size: 15px; font-weight: 600; line-height: 1.3; }
.pf-card-title a { text-decoration: none; }
.pf-card-title a:hover { text-decoration: underline; text-underline-offset: 2px; }
.pf-card-hint { margin: -2px 0 0; font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.pf-card-price { margin: 2px 0 0; font-size: 22px; font-weight: 800; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.pf-card-price .pf-per, .pf-card-price .pf-from { font-size: 14px; font-weight: 500; color: var(--ink-2); }
.pf-card-price-req { font-size: 15px; font-weight: 600; color: var(--ink-2); }
.pf-card-cta { margin-top: auto; width: 100%; }
.pf-card-buy { display: flex; gap: 8px; margin-top: auto; }
.pf-card-buy .pf-qty { flex: none; }
.pf-card-buy .pf-btn { flex: 1; padding: 0 8px; min-width: 0; font-size: 14px; }

/* Лесенка цен */
.pf-tiers { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 4px; }
.pf-tiers li {
	display: flex; flex-direction: column; gap: 1px; padding: 6px 7px; border-radius: var(--r-sm);
	background: var(--tint); font-size: 12px; color: var(--ink-2); line-height: 1.25; min-width: 0;
}
.pf-tiers-card li span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pf-tiers li b { white-space: nowrap; font-size: 14px; color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.pf-tiers li.is-best { background: var(--brand-soft); }
.pf-tiers li.is-cur { outline: 2px solid var(--ink); outline-offset: -2px; }
.pf-tiers-single li { padding: 10px 12px; font-size: 13px; }
.pf-tiers-single li b { font-size: 17px; }
.pf-tiers-h { font-size: 13px; font-weight: 600; margin: 4px 0 6px; }

.pf-stock { margin: 0; font-size: 13px; font-weight: 500; color: var(--ink-2); }
.pf-stock.is-ok { color: var(--ok); }
.pf-stock.is-ok::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: currentColor; vertical-align: 1px; }

/* Плитка фулфилмента (2 колонки) */
.pf-ftile {
	grid-column: span 2; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
	border-radius: var(--r-lg); overflow: hidden; background: var(--dark); color: #EDEBE6; min-height: 100%;
}
.pf-ftile-body { padding: 26px 24px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.pf-eyebrow { margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--brand); }
.pf-ftile h3 { font-size: 24px; font-weight: 800; color: #fff; }
.pf-ftile p { color: #CFCBC2; font-size: 15px; }
.pf-ftile .pf-btn { margin-top: auto; }
.pf-ftile img { width: 100%; height: 100%; object-fit: cover; min-height: 220px; }

/* ---------- Страница товара ---------- */

.single-product div.product { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: start; }
.single-product div.product .woocommerce-product-gallery { width: auto !important; float: none !important; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--line); background: var(--tint); margin: 0; position: relative; }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs { display: flex; gap: 8px; padding: 8px; background: var(--paper); }
.single-product div.product .woocommerce-product-gallery .flex-control-thumbs li { width: 72px; }
.woocommerce-product-gallery__trigger { position: absolute; top: 12px; right: 12px; z-index: 2; }
.single-product div.product .summary { width: auto !important; float: none !important; display: flex; flex-direction: column; gap: 14px; margin: 0; }
.single-product .product_title { font-size: 30px; font-weight: 800; }
.single-product .summary .price { font-size: 30px; font-weight: 800; margin: 0; color: var(--ink); }
.single-product .summary .price del { font-size: 18px; color: var(--ink-3); font-weight: 500; }
.single-product .woocommerce-product-details__short-description { color: var(--ink-2); }
.single-product .woocommerce-product-details__short-description p:last-child { margin: 0; }
.single-product form.cart { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--tint); }
.single-product form.cart .single_add_to_cart_button { height: var(--h-btn-lg); padding: 0 28px; flex: 1; }
.single-product form.variations_form { display: block; }
.single-product table.variations { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.single-product table.variations th, .single-product table.variations td { display: block; padding: 0; text-align: left; }
.single-product table.variations th label { margin: 0 0 6px; }
.single-product table.variations td { margin-bottom: 10px; }
.single-product .reset_variations { font-size: 13px; color: var(--ink-2); margin-left: 8px; }
.single-product .woocommerce-variation-add-to-cart { display: flex; gap: 10px; flex-wrap: wrap; }
.single-product .woocommerce-variation-price .price { font-size: 26px; }
.single-product .product_meta { font-size: 13px; color: var(--ink-2); display: flex; flex-direction: column; gap: 2px; }
.single-product .product_meta a { color: var(--ink-2); }
.single-product .woocommerce-tabs, .single-product .related, .single-product .upsells { grid-column: 1 / -1; }
.woocommerce-tabs ul.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; padding: 0; }
.woocommerce-tabs ul.tabs::before, .woocommerce-tabs ul.tabs::after { display: none !important; }
.woocommerce-tabs ul.tabs li { list-style: none; margin: 0; }
.woocommerce-tabs ul.tabs li a { display: block; padding: 10px 14px; text-decoration: none; font-weight: 600; color: var(--ink-2); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.woocommerce-tabs ul.tabs li.active a { color: var(--ink); border-color: var(--ink); }
.woocommerce-Tabs-panel h2 { font-size: 20px; margin-bottom: 12px; }
.shop_attributes { border-collapse: collapse; width: 100%; max-width: 720px; }
.shop_attributes th, .shop_attributes td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 14px; }
.shop_attributes th { width: 40%; color: var(--ink-2); font-weight: 500; }
.shop_attributes p { margin: 0; }
.related > h2, .upsells > h2 { font-size: 22px; margin: 16px 0 14px; }
.pf-price-req { font-size: 18px; font-weight: 700; margin: 0; }
.pf-biz-note { padding: 12px 14px; border-radius: var(--r-md); background: var(--tint); border: 1px solid var(--line); font-size: 14px; margin-bottom: 16px; }
.single-product .pf-biz-note { margin: 0; }
.single-product .onsale { display: none; }

/* Форма заявки */
.pf-request { padding: 18px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--paper); }
.pf-request-h { font-size: 18px; font-weight: 700; margin-bottom: 4px; }
.pf-request-note { font-size: 14px; color: var(--ink-2); }
.pf-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; }
.pf-form-grid p { margin: 0 0 12px; }
.pf-span-2 { grid-column: 1 / -1; }
.pf-request .pf-check { margin: 4px 0 14px; }
.pf-hp { position: absolute; left: -9999px; }

/* ---------- Корзина и оформление ---------- */

.woocommerce-cart .pf-page, .woocommerce-checkout .pf-page { max-width: 1180px; }
table.shop_table { width: 100%; border-collapse: separate; border-spacing: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; font-size: 15px; }
table.shop_table th, table.shop_table td { padding: 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.shop_table thead th { background: var(--tint); font-size: 13px; color: var(--ink-2); font-weight: 600; }
table.shop_table tr:last-child td, table.shop_table tr:last-child th { border-bottom: 0; }
table.shop_table .product-thumbnail img { width: 64px; height: 64px; object-fit: cover; border-radius: var(--r-sm); }
table.shop_table .product-name a { font-weight: 600; text-decoration: none; }
table.shop_table .product-remove a { display: inline-flex; width: 28px; height: 28px; align-items: center; justify-content: center; border-radius: 50%; text-decoration: none; color: var(--ink-3); font-size: 20px; }
table.shop_table .product-remove a:hover { background: var(--tint); color: var(--err); }
table.shop_table .variation { font-size: 13px; color: var(--ink-2); margin: 4px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 0 6px; }
table.shop_table .variation dt, table.shop_table .variation dd { margin: 0; }
table.shop_table .variation p { margin: 0; }
table.shop_table td.actions { background: var(--tint); }
table.shop_table td.actions .coupon { display: inline-flex; gap: 8px; align-items: center; }
table.shop_table td.actions .coupon label { display: none; }
table.shop_table td.actions .coupon input.input-text { width: 200px; }
table.shop_table td.actions > .button { float: right; }
.cart-collaterals { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 24px; margin-top: 24px; }
.cart-collaterals .cart_totals { grid-column: 2; width: auto !important; float: none !important; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); }
.cart_totals h2 { font-size: 20px; margin-bottom: 12px; }
.cart_totals table.shop_table { border: 0; }
.cart_totals table.shop_table th, .cart_totals table.shop_table td { padding: 10px 0; }
.wc-proceed-to-checkout { padding-top: 12px; }
.wc-proceed-to-checkout .checkout-button { width: 100%; height: var(--h-btn-lg); font-size: 16px; }
.woocommerce-shipping-methods { margin: 0; padding: 0; }
.woocommerce-shipping-methods li { list-style: none; display: flex; gap: 6px; align-items: flex-start; margin-bottom: 4px; }
.woocommerce-shipping-methods li label { font-weight: 400; font-size: 14px; display: inline; }
.woocommerce-shipping-calculator { font-size: 14px; }

.pf-fhint {
	margin: 18px 0 0; padding: 16px 18px; border-radius: var(--r-lg);
	background: #FFF6D6; border: 1px solid #F3DC85;
	display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: center; justify-content: space-between;
}
.pf-fhint p { margin: 0; flex: 1 1 420px; font-size: 15px; }
.pf-fhint a { font-weight: 600; white-space: nowrap; }

.woocommerce-checkout form.checkout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; grid-template-rows: auto 1fr; gap: 0 28px; align-items: start; }
.woocommerce-checkout form.checkout > .woocommerce-NoticeGroup { grid-column: 1 / -1; }
.woocommerce-checkout #customer_details { grid-column: 1; grid-row: 1 / 3; }
.woocommerce-checkout #customer_details .col-1, .woocommerce-checkout #customer_details .col-2 { width: auto; float: none; }
.woocommerce-checkout #order_review_heading { grid-column: 2; grid-row: 1; margin: 0; font-size: 20px; padding: 20px 20px 0; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.woocommerce-checkout #order_review { grid-column: 2; grid-row: 2; padding: 0 20px 20px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--r-lg) var(--r-lg); }
.woocommerce-checkout #order_review table.shop_table { border: 0; }
.woocommerce-checkout #order_review table.shop_table th, .woocommerce-checkout #order_review table.shop_table td { padding: 10px 0; }
.woocommerce-billing-fields h3, .woocommerce-shipping-fields h3, .woocommerce-additional-fields h3 { font-size: 20px; margin: 0 0 14px; }
.woocommerce form .form-row { margin: 0 0 14px; padding: 0; }
.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: calc(50% - 6px); float: left; }
.woocommerce form .form-row-last { float: right; }
.woocommerce form .form-row-wide { clear: both; }
.woocommerce-billing-fields__field-wrapper::after, .woocommerce-shipping-fields__field-wrapper::after { content: ''; display: table; clear: both; }
.woocommerce form .form-row .woocommerce-input-wrapper { display: block; }
.woocommerce form .form-row.woocommerce-invalid input { border-color: var(--err); }
.pf-as-company { clear: both; padding: 12px 14px !important; border-radius: var(--r-md); background: var(--tint); }
.pf-as-company .pf-check { margin: 0; }
#payment { margin-top: 14px; }
#payment ul.payment_methods { padding: 0; margin: 0 0 14px; border: 0; }
#payment ul.payment_methods li { list-style: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-md); margin-bottom: 8px; }
#payment ul.payment_methods li label { display: inline; font-size: 15px; }
#payment .payment_box { margin-top: 8px; font-size: 13px; color: var(--ink-2); }
#payment .payment_box p { margin: 0; }
#payment .place-order { padding: 0; }
#place_order { width: 100%; height: var(--h-btn-lg); font-size: 16px; }
.woocommerce-privacy-policy-text, .woocommerce-terms-and-conditions-wrapper { font-size: 13px; color: var(--ink-2); }
.select2-container .select2-selection--single { height: var(--h-btn); display: flex; align-items: center; }
.select2-container--default .select2-selection--single .select2-selection__arrow { height: 40px; }

/* ---------- Текстовые страницы ---------- */

.pf-text-page { max-width: 1100px; }
.pf-prose { margin-top: 16px; font-size: 16px; line-height: 1.6; }
.pf-prose h2 { font-size: 22px; margin: 28px 0 10px; }
.pf-prose ul { list-style: disc; padding-left: 20px; margin-bottom: 1em; }
.pf-prose li { margin-bottom: 4px; }
.pf-cards3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap); margin: 20px 0; }
.pf-cards3 > div { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px; }
.pf-cards3 h3 { font-size: 17px; margin-bottom: 6px; }
.pf-cards3 p { margin: 0; color: var(--ink-2); font-size: 14px; }
.pf-eyebrow-dark { color: #8A6A00; margin-bottom: 8px; }
.pf-prose ol { padding-left: 20px; margin-bottom: 1em; }
.pf-prose .pf-btn { text-decoration: none; }
.pf-req-wrap { max-width: 760px; margin-top: 28px; }
.pf-lead { margin-top: 10px; font-size: 18px; color: var(--ink-2); max-width: 760px; }
.pf-table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.pf-table th, .pf-table td { text-align: left; padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-table th { background: var(--tint); font-size: 13px; color: var(--ink-2); }

/* ---------- Подвал ---------- */

.pf-foot { background: var(--tint); border-top: 1px solid var(--line); margin-top: 24px; font-size: 14px; }
.pf-foot-in { display: grid; grid-template-columns: 1.4fr 1fr 1.2fr 1fr; gap: 28px; padding-top: 36px; padding-bottom: 28px; }
.pf-foot-brand img { width: 150px; margin-bottom: 12px; }
.pf-foot-brand p { color: var(--ink-2); max-width: 300px; }
.pf-foot-col { display: flex; flex-direction: column; gap: 6px; }
.pf-foot-col a { text-decoration: none; }
.pf-foot-col a:hover { text-decoration: underline; }
.pf-foot-col span { color: var(--ink-2); }
.pf-foot-h { font-weight: 700; margin-bottom: 4px; }
.pf-foot-legal { padding-top: 14px; padding-bottom: 20px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 13px; }

/* Нижняя панель (телефон) */
.pf-tabbar { display: none; }

/* ---------- Адаптив ---------- */

@media (max-width: 1240px) {
	.pf-stock-pill { display: none; }
	ul.products { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
	:root { --gut: 24px; }
	.pf-layout { grid-template-columns: minmax(0, 1fr); }
	.pf-side { display: none; }
	.pf-head-in { flex-wrap: wrap; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
	.pf-search { order: 5; flex-basis: 100%; }
	.pf-logo { margin-right: auto; }
	.single-product div.product { grid-template-columns: minmax(0, 1fr); gap: 24px; }
	.cart-collaterals { grid-template-columns: minmax(0, 1fr); }
	.cart-collaterals .cart_totals { grid-column: 1; }
	.woocommerce-checkout form.checkout { grid-template-columns: minmax(0, 1fr); }
	.woocommerce-checkout #order_review_heading, .woocommerce-checkout #order_review { grid-column: 1; grid-row: auto; margin-top: 0; position: static; }
	.woocommerce-checkout #order_review_heading { margin-top: 8px; }
	.woocommerce-checkout #customer_details { grid-row: auto; }
	.pf-foot-in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
	:root { --gut: 16px; --gap: 10px; }
	body { font-size: 15px; padding-bottom: 64px; }
	.pf-only-desk { display: none; }
	.pf-only-mob { display: inline; }
	.pf-fbar { font-size: 13px; }
	.pf-fbar-in { min-height: 40px; gap: 10px; }
	.pf-pill-btn { height: 28px; padding: 0 12px; font-size: 12px; }

	.pf-head-in { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; min-height: 0; gap: 10px; }
	.pf-head-in .pf-seg { justify-self: end; }
	.pf-search { grid-column: 1 / -1; }
	.pf-fbar-text { font-size: 12px; }
	.pf-logo img { width: 112px; }
	.pf-seg { padding: 2px; }
	.pf-seg a { height: 30px; padding: 0 8px; font-size: 12.5px; }
	.pf-cart-btn { height: 38px; padding: 0 10px; }
	.pf-cart-btn span { display: none; }
	.pf-search { height: 42px; }
	.pf-search-go { display: none; }

	.pf-tasks-in { padding-top: 10px; padding-bottom: 10px; }
	.pf-tasks .pf-chip { height: 32px; font-size: 13px; padding: 0 12px; }

	.pf-layout { padding-top: 18px; padding-bottom: 32px; }
	.pf-h1 { font-size: 22px; }
	.pf-sub { font-size: 14px; }
	.pf-chips { flex-wrap: nowrap; overflow-x: auto; margin: 14px calc(-1 * var(--gut)) 16px; padding: 0 var(--gut); scrollbar-width: none; }
	.pf-chips::-webkit-scrollbar { display: none; }

	ul.products { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.pf-card-body { padding: 10px; gap: 6px; }
	.pf-card-title { font-size: 14px; }
	.pf-card-hint { display: none; }
	.pf-card-price { font-size: 18px; }
	.pf-card-price .pf-per { font-size: 12px; }
	.pf-tiers-card { grid-auto-flow: row; grid-auto-columns: auto; }
	.pf-tiers-card li { flex-direction: row; justify-content: space-between; align-items: baseline; padding: 4px 6px; font-size: 11px; }
	.pf-tiers-card li b { font-size: 12px; }
	.pf-stock { font-size: 12px; }
	.pf-card-buy { flex-direction: column; gap: 6px; }
	.pf-card-buy .pf-qty { width: 100%; height: 36px; }
	.pf-card-buy .pf-qty input { flex: 1; width: auto; min-width: 0; }
	.pf-card-buy .pf-btn { flex: none; }
	.pf-card-buy .pf-btn, .pf-card-cta { height: 38px; font-size: 14px; }
	.pf-ftile { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) 120px; }
	.pf-ftile-body { padding: 16px; gap: 6px; }
	.pf-ftile h3 { font-size: 18px; }
	.pf-ftile p { font-size: 13px; }
	.pf-ftile img { min-height: 0; }
	.pf-ftile .pf-btn { height: 38px; font-size: 14px; }

	.single-product .product_title { font-size: 22px; }
	.single-product .summary .price { font-size: 24px; }
	.pf-tiers-single li { padding: 8px 10px; }
	.pf-form-grid { grid-template-columns: minmax(0, 1fr); }
	.pf-cards3 { grid-template-columns: minmax(0, 1fr); }

	table.shop_table_responsive, table.shop_table_responsive tbody { display: block; width: 100%; }
	table.shop_table_responsive thead { display: none; }
	table.shop_table_responsive tr { display: block; border-bottom: 1px solid var(--line); padding: 8px 0; }
	table.shop_table_responsive tr td { display: flex; justify-content: space-between; align-items: center; gap: 12px; border: 0; padding: 6px 14px; text-align: right; }
	table.shop_table_responsive tr td::before { content: attr(data-title); font-weight: 600; font-size: 13px; color: var(--ink-2); text-align: left; }
	table.shop_table_responsive tr td.product-remove::before, table.shop_table_responsive tr td.actions::before, table.shop_table_responsive tr td.product-thumbnail::before { display: none; }
	table.shop_table_responsive tr td.product-thumbnail { display: none; }
	table.shop_table td.actions { display: block; text-align: left; }
	table.shop_table td.actions .coupon { display: flex; margin-bottom: 8px; }
	table.shop_table td.actions .coupon input.input-text { flex: 1; width: auto; min-width: 0; }
	table.shop_table td.actions > .button { float: none; width: 100%; }
	.woocommerce form .form-row-first, .woocommerce form .form-row-last { width: 100%; float: none; }

	.pf-foot-in { grid-template-columns: minmax(0, 1fr); gap: 20px; padding-top: 24px; }

	.pf-tabbar {
		display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
		height: 60px; padding-bottom: env(safe-area-inset-bottom); background: var(--paper); border-top: 1px solid var(--line);
	}
	.pf-tabbar a { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 500; color: var(--ink-2); text-decoration: none; }
	.pf-tabbar a[aria-current] { color: var(--ink); font-weight: 700; }
	.pf-tabbar .pf-i { width: 22px; height: 22px; }
	.pf-tab-count { position: absolute; top: 5px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: var(--ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }
	.pf-tab-count[hidden] { display: none; }
}

@media (max-width: 380px) {
	.pf-seg a { padding: 0 6px; font-size: 12px; }
	.pf-logo img { width: 96px; }
}

@media (prefers-reduced-motion: reduce) {
	* { transition: none !important; }
}

/* ---------- Замена стандартных стилей WooCommerce (general отключён) ---------- */

.woocommerce .stock, p.stock { margin: 0; font-size: 14px; font-weight: 500; }
.stock.in-stock { color: var(--ok); }
.stock.out-of-stock, .stock.available-on-backorder { color: var(--ink-2); }
.woocommerce-variation-availability { margin-top: 4px; }
.woocommerce-variation { margin-bottom: 10px; }
.woocommerce-product-gallery__image img { width: 100%; height: auto; }
.woocommerce-product-gallery .flex-control-thumbs img { cursor: pointer; opacity: .6; border-radius: 6px; }
.woocommerce-product-gallery .flex-control-thumbs img.flex-active, .woocommerce-product-gallery .flex-control-thumbs img:hover { opacity: 1; }
.woocommerce-product-gallery__trigger { display: inline-flex; width: 36px; height: 36px; align-items: center; justify-content: center; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); font-size: 0; text-decoration: none; }
.woocommerce-product-gallery__trigger::before { content: ''; width: 12px; height: 12px; border: 2px solid var(--ink); border-radius: 50%; }
.woocommerce-product-gallery__trigger img { display: none !important; }
ul.products li.product { text-align: left; }
.woocommerce-shipping-destination, .woocommerce-shipping-calculator { display: none; }
.woocommerce-form-coupon-toggle .woocommerce-info { justify-content: flex-start; }
#ship-to-different-address label { display: flex; gap: 8px; align-items: center; font-size: 16px; }
#ship-to-different-address input { width: 18px; height: 18px; accent-color: var(--ink); }
.woocommerce-checkout-review-order-table .product-total, .woocommerce-checkout-review-order-table tfoot td { text-align: right; }
.woocommerce-checkout-review-order-table .order-total strong, .cart_totals .order-total strong { font-size: 20px; }
.woocommerce-checkout .woocommerce-form-login-toggle { display: none; }
.cart-empty.woocommerce-info { justify-content: flex-start; }
.return-to-shop .button { margin-top: 4px; }
.wc-block-components-notice-banner { border-radius: var(--r-md); }
.woocommerce-order-overview { display: flex; flex-wrap: wrap; gap: 8px 24px; padding: 16px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 20px; }
.woocommerce-order-overview li { font-size: 13px; color: var(--ink-2); }
.woocommerce-order-overview li strong { display: block; font-size: 15px; color: var(--ink); }
.woocommerce-thankyou-order-received { font-size: 20px; font-weight: 700; }

@media (max-width: 760px) {
	table.shop_table_responsive tr td.product-name { display: block; text-align: left; }
	table.shop_table_responsive tr td.product-name::before { display: none; }
	table.shop_table .variation { justify-content: start; }
	.cart_totals table.shop_table_responsive tr td { display: block; text-align: left; padding: 6px 0; }
	.cart_totals table.shop_table_responsive tr td::before { display: block; margin-bottom: 4px; }
	.cart_totals table.shop_table_responsive tr th { display: none; }
	.cart_totals table.shop_table_responsive tr { padding: 4px 0; }
	.cart_totals .order-total td { font-size: 18px; }
	.cart-collaterals .cart_totals { padding: 16px; }
}
/* Доставка в итогах: заголовок над списком способов */
tr.woocommerce-shipping-totals th, tr.woocommerce-shipping-totals td { display: block; text-align: left !important; }
tr.woocommerce-shipping-totals th { padding-bottom: 4px !important; border-bottom: 0 !important; }
tr.woocommerce-shipping-totals td::before { display: none !important; }
.woocommerce-checkout-review-order-table .variation, .woocommerce-checkout-review-order-table .product-name { font-size: 14px; }
/* Над сеткой каталога: количество и сортировка в одну строку */
.woocommerce-result-count { float: left; margin: 8px 0 14px; font-size: 14px; color: var(--ink-2); }
.woocommerce-ordering { float: right; margin: 0 0 14px; }
.woocommerce-ordering select { width: auto; min-height: 38px; padding: 6px 32px 6px 12px; font-size: 14px; }
.pf-content ul.products { clear: both; }
.woocommerce-pagination { margin-top: 24px; }
.woocommerce-pagination ul { display: flex; gap: 6px; justify-content: center; }
.woocommerce-pagination a, .woocommerce-pagination span { display: inline-flex; min-width: 38px; height: 38px; align-items: center; justify-content: center; border: 1px solid var(--line); border-radius: var(--r-sm); text-decoration: none; }
.woocommerce-pagination .current { background: var(--ink); color: #fff; border-color: var(--ink); }

@media (max-width: 760px) {
	.pf-table thead { display: none; }
	.pf-table, .pf-table tbody, .pf-table tr, .pf-table td { display: block; width: 100%; }
	.pf-table tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
	.pf-table td { padding: 2px 0; border: 0; }
}

/* ---------- Юридическое: подвал, согласия, баннер cookie, пометка черновика ---------- */

.pf-legal-links { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-bottom: 8px; }
.pf-legal-links a { color: var(--ink-2); }
.pf-consents { display: flex; flex-direction: column; gap: 8px; margin: 6px 0 14px; }
.pf-consents .pf-request-note { margin: 0; }
.pf-consent-ads { margin: 10px 0 !important; }
.pf-consent-ads .pf-check, .woocommerce-terms-and-conditions-wrapper .pf-check { font-size: 14px; }
.woocommerce-terms-and-conditions-wrapper .validate-required label { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 14px; }
.woocommerce-terms-and-conditions-wrapper input[type=checkbox] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.pf-cookie {
	position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 60; max-width: 760px; margin: 0 auto;
	display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; justify-content: space-between;
	padding: 14px 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 32px rgba(31, 31, 28, .16);
}
.pf-cookie[hidden] { display: none; }
.pf-cookie p { margin: 0; font-size: 14px; flex: 1 1 320px; }
.pf-cookie-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.pf-cookie .pf-btn { height: var(--h-btn-sm); font-size: 14px; }
.pf-draft-note { padding: 12px 14px; margin-bottom: 18px; border-radius: var(--r-md); background: #FCEEEE; border: 1px solid #EFC4C1; font-size: 14px; }
.pf-prose table { width: 100%; border-collapse: collapse; margin: 12px 0 20px; font-size: 15px; }
.pf-prose th, .pf-prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pf-prose th { background: var(--tint); font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) {
	.pf-cookie { bottom: 72px; left: 10px; right: 10px; }
	.pf-prose table, .pf-prose tbody, .pf-prose tr, .pf-prose td { display: block; width: 100%; }
	.pf-prose thead { display: none; }
	.pf-prose tr { padding: 10px 0; border-bottom: 1px solid var(--line); }
	.pf-prose td { padding: 2px 0; border: 0; }
}
.woocommerce form .form-row.pf-consent-ads label.pf-check, .woocommerce form .woocommerce-terms-and-conditions-wrapper .form-row label.checkbox { display: flex !important; gap: 8px; align-items: flex-start; }
.woocommerce-terms-and-conditions-wrapper .woocommerce-terms-and-conditions-checkbox-text { flex: 1; }
