/* Trafaret.ua — каталог і картка товару (стиль нової головної, фон без малюнка). */

body.trf-catalog-page { background: #ECEBE7; }
body.trf-catalog-page .wd-page-title { display: none !important; }
body.trf-catalog-page .wd-page-content,
body.trf-catalog-page main.wd-content-layout { max-width: none; width: 100%; padding: 0; margin: 0; background: #ECEBE7; display: block; }
body.trf-catalog-page .wd-sidebar,
body.trf-catalog-page .wd-shop-tools,
body.trf-catalog-page .wd-sticky-btn { display: none !important; }

.trf-c {
	--plaster: #ECEBE7; --sheet: #F8F7F4; --ink: #1D1E1B; --mortar: #62635D; --line: #D5D3CC;
	--orange: #C66A2B; --orange-deep: #A3521C; --pvc: #D6E7E5; --pvc-ink: #2E5451;
	--display: "Unbounded", "Arial Black", system-ui, sans-serif;
	--body: "Onest", "Segoe UI", system-ui, sans-serif;
	--mono: "JetBrains Mono", ui-monospace, "Cascadia Mono", Consolas, monospace;
	background: var(--plaster); color: var(--ink); font: 400 16px/1.6 var(--body);
	padding-inline: clamp(16px, 4vw, 40px); padding-bottom: clamp(32px, 5vw, 64px);
}
.trf-c *, .trf-c *::before, .trf-c *::after { box-sizing: border-box; }
.trf-c .trf-c-wrap { max-width: 1240px; margin-inline: auto; }
.trf-c img { max-width: 100%; display: block; }
.trf-c a { color: inherit; text-decoration: none; }
.trf-c p { margin: 0; }
.trf-c ul, .trf-c ol { margin: 0; padding: 0; list-style: none; }
.trf-c h1, .trf-c h2, .trf-c h3 { font-family: var(--display); color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -0.01em; text-transform: none; }
.trf-c :focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; }
.trf-c .trf-eyebrow { font: 500 12px/1.2 var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--orange-deep); }
.trf-c .trf-label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; color: var(--mortar); }
.trf-c .trf-chip { font: 500 12px/1 var(--mono); background: var(--pvc); color: var(--pvc-ink); padding: 6px 8px; white-space: nowrap; justify-self: start; }
.trf-c .trf-hidden { display: none !important; }

.trf-c .trf-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 16px; border: 0; border-radius: 0; cursor: pointer; font: 600 14px/1 var(--body); text-transform: none; letter-spacing: 0; min-height: 0; transition: background-color .2s ease, color .2s ease; }
.trf-c .trf-btn-main { background: var(--ink); color: var(--sheet); }
.trf-c .trf-btn-main:hover { background: var(--orange-deep); color: var(--sheet); }
.trf-c .trf-btn-ghost, .trf-c a.trf-btn-ghost.add_to_cart_button { background: transparent !important; color: var(--ink) !important; box-shadow: inset 0 0 0 1.5px var(--ink) !important; }
.trf-c .trf-btn-ghost:hover, .trf-c a.trf-btn-ghost.add_to_cart_button:hover { background: var(--ink) !important; color: var(--sheet) !important; }
.trf-c .trf-btn-light { background: var(--sheet); color: var(--ink); }
.trf-c .trf-btn-light:hover { background: var(--orange-deep); color: var(--sheet); }
.trf-c a.added_to_cart { font: 500 13px/1.2 var(--mono); color: var(--orange-deep); padding: 0 !important; background: none !important; margin-left: 8px; }

.trf-c .trf-price, .trf-c .trf-price .amount, .trf-c .trf-price bdi { font: 700 19px/1 var(--display); color: var(--ink); font-variant-numeric: tabular-nums; }
.trf-c .trf-price del { opacity: .5; margin-right: 6px; }
.trf-c .trf-price ins { text-decoration: none; }

/* ---------- crumbs & head ---------- */
.trf-c .trf-crumbs { padding-block: 22px 0; font: 400 13px/1.5 var(--mono); color: var(--mortar); display: flex; flex-wrap: wrap; gap: 4px 8px; }
.trf-c .trf-crumbs a:hover { color: var(--orange-deep); }
.trf-c .trf-c-head { padding-block: clamp(24px, 4vw, 44px) 24px; display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px 64px; align-items: end; }
.trf-c .trf-c-head h1 { font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; font-weight: 700; margin-top: 14px; }
.trf-c .trf-lead { color: var(--mortar); max-width: 48ch; }

/* ---------- categories ---------- */
.trf-c .trf-cats { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.trf-c .trf-cat { flex: 0 0 auto; display: grid; grid-template-columns: 44px auto; gap: 12px; align-items: center; background: var(--sheet); padding: 8px 16px 8px 8px; }
.trf-c .trf-cat img { width: 44px; height: 44px; object-fit: cover; }
.trf-c .trf-cat b { display: block; font: 600 14.5px/1.2 var(--body); white-space: nowrap; }
.trf-c .trf-cat small { font: 400 12px/1.2 var(--mono); color: var(--mortar); }
.trf-c .trf-cat:hover { background: #fff; }
.trf-c .trf-cat[aria-current] { background: var(--ink); color: var(--sheet); }
.trf-c .trf-cat[aria-current] small { color: #C9C7C0; }

/* ---------- toolbar ---------- */
.trf-c .trf-toolbar { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; justify-content: space-between; padding-block: 20px; margin-top: 18px; border-top: 1.5px solid var(--ink); }
.trf-c .trf-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; }
.trf-c .trf-fchips { display: flex; flex-wrap: wrap; gap: 6px; }
.trf-c button.trf-fchip { appearance: none; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 7px 11px; cursor: pointer; font: 500 13px/1 var(--mono); text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; }
.trf-c button.trf-fchip[aria-pressed="true"] { background: var(--pvc); border-color: var(--pvc); color: var(--pvc-ink); }
.trf-c .trf-sort { font: 500 13px/1 var(--mono); color: var(--mortar); }

/* ---------- grid & cards ---------- */
.trf-c .trf-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 32px 18px; }
.trf-c .trf-card { display: grid; gap: 12px; align-content: start; }
.trf-c .trf-card-media { position: relative; display: block; background: var(--sheet); aspect-ratio: 1; overflow: hidden; }
.trf-c .trf-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.trf-c .trf-card:hover .trf-card-media img { transform: scale(1.03); }
.trf-c .trf-card-size { position: absolute; left: 10px; bottom: 10px; background: rgba(29, 30, 27, .78); color: var(--sheet); font: 500 12px/1 var(--mono); padding: 6px 8px; }
.trf-c .trf-card h3 { font: 600 17px/1.25 var(--body); letter-spacing: 0; }
.trf-c .trf-card h3 a:hover { color: var(--orange-deep); }
.trf-c .trf-vars { display: flex; flex-wrap: wrap; gap: 5px; }
.trf-c button.trf-var { appearance: none; border: 1px solid var(--line); border-radius: 0; background: transparent; color: var(--ink); padding: 6px 8px; cursor: pointer; font: 500 12px/1 var(--mono); text-transform: none; letter-spacing: 0; min-height: 0; box-shadow: none; }
.trf-c button.trf-var[aria-pressed="true"] { background: var(--pvc); border-color: var(--pvc); color: var(--pvc-ink); }
.trf-c button.trf-var[data-buy="0"] { text-decoration: line-through; color: var(--mortar); }
.trf-c .trf-card-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.trf-c .trf-card-help { background: var(--ink); color: var(--sheet); padding: 24px; align-content: space-between; gap: 18px; }
.trf-c .trf-card-help h3 { font: 700 20px/1.2 var(--display); color: var(--sheet); }
.trf-c .trf-card-help p { color: #C9C7C0; font-size: 15px; }
.trf-c .trf-card-help .trf-btn { justify-self: start; }
.trf-c .trf-empty { padding-block: 40px; display: grid; gap: 18px; justify-items: start; }

/* ---------- guide ---------- */
.trf-c .trf-guide { display: grid; grid-template-columns: 1fr 2.2fr; gap: 24px 56px; margin-top: clamp(40px, 6vw, 72px); padding-top: 44px; border-top: 1px solid var(--line); }
.trf-c .trf-guide h2 { font-size: clamp(22px, 2.6vw, 32px); line-height: 1.12; font-weight: 700; margin-top: 12px; }
.trf-c .trf-guide-cols { display: grid; grid-template-columns: repeat(4, 1fr); }
.trf-c .trf-guide-cols > div { padding: 0 20px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.trf-c .trf-guide-cols > div:first-child { padding-left: 0; border-left: 0; }
.trf-c .trf-guide-cols b { font: 700 18px/1.2 var(--display); }
.trf-c .trf-guide-cols p { color: var(--mortar); font-size: 14.5px; }

/* ---------- product ---------- */
.trf-p .trf-pd { display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(28px, 5vw, 64px); padding-block: 24px 48px; }
.trf-p .trf-gallery { display: grid; gap: 10px; align-content: start; }
.trf-p .trf-gallery-main { background: var(--sheet); aspect-ratio: 1; overflow: hidden; }
.trf-p .trf-gallery-main a, .trf-p .trf-gallery-main img { display: block; width: 100%; height: 100%; }
.trf-p .trf-gallery-main img { object-fit: contain; }
.trf-p .trf-thumbs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.trf-p button.trf-thumb { appearance: none; border: 0; border-radius: 0; padding: 0; background: var(--sheet); aspect-ratio: 1; cursor: pointer; overflow: hidden; box-shadow: inset 0 0 0 1px var(--line); min-height: 0; }
.trf-p .trf-thumb img { width: 100%; height: 100%; object-fit: cover; }
.trf-p .trf-thumb[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--ink); }

.trf-p .trf-buy { display: grid; gap: 22px; align-content: start; }
.trf-p .trf-buy h1 { font-size: clamp(28px, 3.4vw, 44px); line-height: 1.05; font-weight: 700; margin-top: 10px; }
.trf-p .trf-buy h1 small { display: block; font: 400 15px/1.45 var(--body); color: var(--mortar); margin-top: 10px; letter-spacing: 0; }
.trf-p .trf-price-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; }
.trf-p .trf-price-lg, .trf-p .trf-price-lg .amount, .trf-p .trf-price-lg bdi { font-size: 32px; }
.trf-p .trf-sku { font: 400 12.5px/1 var(--mono); color: var(--mortar); }
.trf-p .trf-opt { display: grid; gap: 10px; }
.trf-p .trf-opt-row { display: flex; flex-wrap: wrap; gap: 8px; }
.trf-p .trf-optbtn { border: 1px solid var(--line); background: var(--sheet); padding: 11px 14px; display: grid; gap: 4px; min-width: 124px; }
.trf-p .trf-optbtn b { font: 600 15px/1.2 var(--body); }
.trf-p .trf-optbtn span { font: 400 12px/1.2 var(--mono); color: var(--mortar); }
.trf-p .trf-optbtn:hover { border-color: var(--mortar); }
.trf-p .trf-optbtn[aria-current] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: #fff; }

.trf-p .trf-cart form.cart { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; align-items: stretch; }
.trf-p .trf-cart .quantity { margin: 0; }
.trf-p .trf-cart .single_add_to_cart_button { flex: 1 1 220px; min-height: 48px; font: 600 15px/1 var(--body) !important; text-transform: none !important; letter-spacing: 0 !important; }
.trf-p .trf-cart .stock { font: 500 13px/1.4 var(--mono); margin: 0 0 8px; }

.trf-p .trf-calc { background: var(--pvc); color: var(--pvc-ink); padding: 16px 18px; display: grid; gap: 10px; }
.trf-p .trf-calc label { font: 500 12px/1 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.trf-p .trf-calc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.trf-p .trf-calc input { width: 92px; height: auto; border: 1px solid rgba(46, 84, 81, .35); border-radius: 0; background: #fff; padding: 9px 10px; font: 500 16px/1 var(--mono); color: var(--ink); }
.trf-p .trf-calc-out { font: 500 15px/1.4 var(--body); color: var(--ink); }
.trf-p .trf-calc small { font-size: 13px; }

.trf-p .trf-specs { display: grid; grid-template-columns: auto 1fr; margin: 0; border-top: 1px solid var(--line); }
.trf-p .trf-specs dt, .trf-p .trf-specs dd { margin: 0; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.trf-p .trf-specs dt { color: var(--mortar); padding-right: 24px; font-weight: 400; }
.trf-p .trf-specs dd { font-family: var(--mono); font-size: 14px; text-align: right; }

.trf-p .trf-pd-more { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 56px; padding-block: 44px; border-top: 1.5px solid var(--ink); }
.trf-p .trf-pd-more h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin: 12px 0 20px; }
.trf-p .trf-steps { counter-reset: s; }
.trf-p .trf-steps li { counter-increment: s; display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.trf-p .trf-steps li::before { content: counter(s); font: 700 22px/1 var(--display); color: var(--orange); }
.trf-p .trf-tip { margin-top: 20px; padding-left: 16px; border-left: 3px solid var(--orange); color: var(--mortar); }
.trf-p .trf-desc-body { margin-top: 14px; color: var(--mortar); font-size: 15px; }
.trf-p .trf-desc-body h2, .trf-p .trf-desc-body h3, .trf-p .trf-desc-body h4 { font: 600 17px/1.3 var(--body); color: var(--ink); margin: 18px 0 8px; letter-spacing: 0; }
.trf-p .trf-desc-body p { margin: 0 0 10px; }
.trf-p .trf-desc-body ul, .trf-p .trf-desc-body ol { margin: 0 0 10px; padding-left: 18px; list-style: disc; }

.trf-p .trf-related { padding-top: 44px; border-top: 1px solid var(--line); }
.trf-p .trf-related h2 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; margin: 12px 0 24px; }
.trf-p .trf-reviews { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--line); }

/* ---------- responsive ---------- */
@media (max-width: 1024px) {
	.trf-c .trf-grid { grid-template-columns: repeat(3, 1fr); }
	.trf-c .trf-guide { grid-template-columns: 1fr; }
	.trf-c .trf-guide-cols { grid-template-columns: repeat(2, 1fr); gap: 24px 0; }
	.trf-c .trf-guide-cols > div:nth-child(3) { padding-left: 0; border-left: 0; }
}
@media (max-width: 860px) {
	.trf-c .trf-c-head, .trf-p .trf-pd, .trf-p .trf-pd-more { grid-template-columns: 1fr; }
	.trf-c .trf-grid { grid-template-columns: repeat(2, 1fr); gap: 26px 12px; }
}
@media (max-width: 520px) {
	.trf-c .trf-card h3 { font-size: 15px; }
	.trf-c .trf-card-foot { flex-direction: column; align-items: stretch; }
	.trf-c .trf-guide-cols { grid-template-columns: 1fr; }
	.trf-c .trf-guide-cols > div { padding: 14px 0 0; border-left: 0; border-top: 1px solid var(--line); }
	.trf-p .trf-price-lg, .trf-p .trf-price-lg .amount, .trf-p .trf-price-lg bdi { font-size: 26px; }
	.trf-p .trf-optbtn { min-width: 0; flex: 1 1 45%; }
	.trf-p .trf-thumbs { grid-template-columns: repeat(4, 1fr); }
}
@media (prefers-reduced-motion: reduce) { .trf-c * { transition: none !important; } }

/* ---------- довгий опис категорії (напр. «Знижки») ---------- */
.trf-c .trf-c-note {
	background: var(--sheet); border-left: 3px solid var(--orange);
	padding: 20px 24px; margin-bottom: 24px; max-width: 78ch;
	display: grid; gap: 12px; color: var(--mortar); font-size: 15.5px;
}
.trf-c .trf-c-note p { margin: 0; }
.trf-c .trf-c-note strong { color: var(--ink); }

/* Картки товарів усередині записів блогу (замість старих блоків «Вибрані товари») */
.trf-c.trf-post-products { background: transparent; padding: 0; margin: 24px 0 32px; font-size: 16px; }
.trf-c.trf-post-products .trf-grid { grid-template-columns: repeat(3, 1fr); gap: 28px 16px; }
.trf-c.trf-post-products .trf-card h3 { margin: 0; }
@media (max-width: 767px) {
	.trf-c.trf-post-products .trf-grid { grid-template-columns: repeat(2, 1fr); }
}

/* Товар під замовлення: очікувана дата поставки */
.trf-c .trf-cart .stock.available-on-backorder,
.trf-c .trf-cart .stock.out-of-stock,
.trf-c .trf-card-restock {
	font: 500 13px/1.45 var(--mono);
	color: var(--pvc-ink);
	background: var(--pvc);
	padding: 8px 10px;
}
.trf-c .trf-card-restock { font-size: 12px; padding: 6px 8px; }
