/* Shop: catalog К1 A (+ list view К1 B), guide К4 B, product card Т1–Т5. Mock-up pixels × --u (see tp.css). */

/* К1 — head */
.tp-cat { padding-top: calc(4 * var(--u)); }
.tp-crumbs { font-size: var(--t-s); line-height: 1.3; color: var(--c-muted); }
.tp-crumbs a { color: var(--c-muted); }
.tp-crumbs a:hover { color: var(--c-navy); text-decoration: underline; }
.tp-crumbs [aria-current] { color: var(--c-muted); }
.tp-cat__head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 0 calc(20 * var(--u)); margin-top: calc(5 * var(--u)); }
.tp-cat__h { font: 400 var(--t-d1)/1 var(--f-head); color: var(--c-ink); letter-spacing: -.02em; }
.tp-cat__n { font-size: var(--t-m); color: var(--c-muted); }
.tp-cat__lead { margin-top: calc(-1 * var(--u)); font-size: var(--t-xl); line-height: 1.3; color: var(--c-muted); }

/* К1 — "where will it hang" scenes and the other sub-categories */
.tp-scenes { list-style: none; margin: calc(9 * var(--u)) 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: calc(12 * var(--u)); }
.tp-scene { display: block; color: var(--c-navy); }
.tp-scene__img { display: block; height: calc(105 * var(--u)); }
.tp-scene__img img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; transition: transform .2s; }
.tp-scene:hover .tp-scene__img img { transform: translateY(-3px); }
.tp-scene__t { display: block; margin-top: calc(6 * var(--u)); font-weight: 500; font-size: var(--t-s); letter-spacing: -.01em; white-space: nowrap; color: var(--c-ink); }
.tp-scene__t strong { font-weight: 500; }
.tp-scene:hover .tp-scene__t { text-decoration: underline; text-underline-offset: 3px; }
.tp-subchips { list-style: none; margin: calc(11 * var(--u)) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: calc(14 * var(--u)); }
.tp-subchip { display: inline-flex; align-items: center; gap: calc(14 * var(--u)); height: max(30px, calc(31 * var(--u))); padding: 0 calc(18 * var(--u)); background: var(--c-paper);
	border: 1px solid #C9CFD8; border-radius: 4px; font-size: var(--t-xs); color: var(--c-navy); }
.tp-subchip span { color: var(--c-muted); }
.tp-subchip:hover, .tp-subchip.is-on { border-color: var(--c-navy); }
.tp-subchip.is-on { background: var(--c-navy); color: #fff; }
.tp-subchip.is-on span { color: #DCE0E5; }

/* К1 — filters and results */
.tp-cat__body { display: grid; grid-template-columns: calc(258 * var(--u)) 1fr; gap: calc(14 * var(--u)); align-items: start; margin-top: calc(11 * var(--u)); padding-bottom: calc(40 * var(--u)); }
.tp-cat__body--wide { grid-template-columns: 1fr; }
.tp-filters { background: var(--c-paper); border-radius: 4px; padding: calc(4 * var(--u)) calc(13 * var(--u)) calc(14 * var(--u)); position: relative; }
.tp-filters__close { display: none; }
.tp-fgroup { border-bottom: 1px solid var(--c-line); padding: calc(2 * var(--u)) 0 calc(5 * var(--u)); }
.tp-fgroup summary { display: flex; justify-content: space-between; align-items: center; list-style: none; cursor: pointer; padding: calc(4 * var(--u)) 0 calc(1 * var(--u));
	font-weight: 700; font-size: var(--t-s); line-height: 1.4; color: var(--c-navy); }
.tp-fgroup summary::-webkit-details-marker { display: none; }
.tp-fgroup[open] summary .tp-ic { transform: rotate(180deg); }
.tp-fgroup ul { list-style: none; margin: 0; padding: 0; }
.tp-fgroup__cols { display: grid; grid-template-columns: 1fr 1fr; }
.tp-fgroup__more { border: 0; background: none; padding: 0; font-size: var(--t-2xs); color: var(--c-muted); cursor: pointer; }
.tp-fgroup__more:hover { color: var(--c-navy); text-decoration: underline; }
.tp-price { border: 0; margin: 0; padding: calc(10 * var(--u)) 0 0; }
.tp-price legend { display: flex; justify-content: space-between; width: 100%; padding: 0; font-weight: 700; font-size: var(--t-s); color: var(--c-navy); }
.tp-price output { font-weight: 400; font-size: var(--t-2xs); }
.tp-price__track { position: relative; height: 26px; margin-top: calc(6 * var(--u)); }
.tp-price__track::before { content: ''; position: absolute; left: 4px; right: 4px; top: 50%; height: 4px; margin-top: -2px; border-radius: 2px; background: var(--c-accent); }
.tp-price input { position: absolute; inset: 0; width: 100%; margin: 0; background: none; pointer-events: none; appearance: none; }
.tp-price input::-webkit-slider-thumb { appearance: none; pointer-events: auto; width: 18px; height: 18px; border-radius: 50%; background: var(--c-accent); border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--c-accent); cursor: pointer; }
.tp-price input::-moz-range-thumb { pointer-events: auto; width: 14px; height: 14px; border-radius: 50%; background: var(--c-accent); border: 3px solid #fff; cursor: pointer; }
.tp-cat__phone-bar { display: none; }
.tp-toolbar { display: flex; align-items: center; gap: calc(22 * var(--u)); background: var(--c-paper); border-radius: 4px; padding: calc(2 * var(--u)) calc(4 * var(--u)) calc(2 * var(--u)) calc(11 * var(--u)); min-height: calc(36 * var(--u)); }
.tp-toolbar__n { flex: 1; font-size: var(--t-xs); color: var(--c-navy); }
.tp-sort select { height: max(34px, calc(32 * var(--u))); width: calc(163 * var(--u)); min-width: 150px; padding: 0 30px 0 14px; border: 1px solid #C9CFD8; border-radius: 4px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='m1 1.5 5 5 5-5' fill='none' stroke='%2330374F' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 12px center;
	appearance: none; font: inherit; font-size: var(--t-s); color: var(--c-navy); cursor: pointer; }
.tp-views { display: flex; gap: calc(12 * var(--u)); }
.tp-views__b { display: grid; place-items: center; width: calc(36 * var(--u)); min-width: 34px; height: max(34px, calc(32 * var(--u))); border-radius: 4px; color: var(--c-navy); }
.tp-views__b.is-on { background: var(--c-navy); color: #fff; }
.tp-active { list-style: none; margin: calc(10 * var(--u)) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tp-active a { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 12px; border: 1px solid #C9CFD8; border-radius: 4px; background: #fff; font-size: var(--t-xs); color: var(--c-navy); }
.tp-active a:hover { border-color: var(--c-navy); }
.tp-active .tp-active__clear { border: 0; background: none; text-decoration: underline; }

/* К1 — the grid card: photo left, text right */
.tp-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: calc(10 * var(--u)); margin-top: calc(12 * var(--u)); }
.tp-pcard { display: grid; grid-template-columns: calc(122 * var(--u)) 1fr; gap: calc(13 * var(--u)); background: var(--c-paper); border-radius: 4px; padding: calc(9 * var(--u)) calc(10 * var(--u)) calc(9 * var(--u)) calc(10 * var(--u)); }
.tp-pcard__img { display: block; height: calc(100 * var(--u)); margin-top: calc(2 * var(--u)); }
.tp-pcard__img img { width: 100%; height: 100%; object-fit: contain; }
.tp-pcard__body { display: flex; flex-direction: column; min-width: 0; }
.tp-pcard__brand { font-size: var(--t-2xs); line-height: 1.3; color: var(--c-muted); }
.tp-pcard__name { margin-top: calc(1 * var(--u)); font: 400 var(--t-xs)/1.22 var(--f-text); color: var(--c-ink); }
/* the clamp sits on the link itself: the hidden lines of a long name no longer reach the price row (Lighthouse touch targets) */
.tp-pcard__name a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tp-pcard__name a:hover { text-decoration: underline; }
.tp-pcard__chips { display: flex; align-items: center; gap: 10px; margin-top: calc(1 * var(--u)); font-size: var(--t-2xs); line-height: 1.3; color: var(--c-muted); }
.tp-ndaa { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 4px; background: #DCE8F7; color: var(--c-navy); font-weight: 600; font-size: var(--t-2xs); }
.tp-pcard__foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: calc(10 * var(--u)); }
.tp-pcard__price { font-weight: 700; font-size: var(--t-m); color: var(--c-ink); }
.tp-compare { margin-top: calc(1 * var(--u)); color: var(--c-muted); }
.tp-pcard .tp-btn--sm { min-height: max(34px, calc(35 * var(--u))); padding: 0 calc(12 * var(--u)); font-size: var(--t-btn-s); font-weight: 600; border-radius: 4px; }

/* К1 — "Not sure which camera fits?" */
.tp-fit { background: var(--c-ink); color: #fff; border-radius: 4px; }
.tp-grid > .tp-fit { display: flex; flex-direction: column; padding: calc(14 * var(--u)) calc(22 * var(--u)) calc(11 * var(--u)) calc(27 * var(--u)); }
.tp-fit__h { font: 400 var(--t-d5)/.96 var(--f-head); letter-spacing: -.01em; color: #fff; }
.tp-fit__t { margin-top: calc(12 * var(--u)); font-size: var(--t-s); line-height: 1.17; color: #EEF0F3; }
.tp-grid > .tp-fit .tp-fit__t { max-width: calc(236 * var(--u)); }
.tp-grid > .tp-fit--two { display: none; }
.tp-grid > .tp-fit .tp-btn { margin-top: auto; align-self: flex-end; width: calc(208 * var(--u)); min-height: max(30px, calc(30 * var(--u))); padding: 0 8px; white-space: nowrap; font-size: var(--t-btn-s); border-width: 1.5px; border-radius: 4px; }
.tp-fit--band { display: flex; align-items: center; gap: calc(36 * var(--u)); padding: calc(10 * var(--u)) calc(18 * var(--u)) calc(10 * var(--u)) calc(30 * var(--u)); }
.tp-fit--band > div { flex: 1; }
.tp-fit__art { width: calc(180 * var(--u)); height: calc(56 * var(--u)); object-fit: cover; object-position: 20% 30%; }
.tp-fit--band .tp-fit__t { margin-top: 4px; }

/* К1 B — list view */
.tp-tbl { width: 100%; margin-top: calc(12 * var(--u)); border-collapse: collapse; background: var(--c-paper); font-size: var(--t-s); color: var(--c-navy); }
.tp-tbl thead th { background: #E3E7EC; text-align: left; font-weight: 600; font-size: var(--t-xs); padding: calc(8 * var(--u)) calc(10 * var(--u)); }
.tp-tbl td { padding: calc(6 * var(--u)) calc(10 * var(--u)); border-bottom: 1px solid var(--c-line); vertical-align: middle; }
.tp-tbl__cmp { width: calc(70 * var(--u)); }
.tp-tbl__img { width: calc(90 * var(--u)); }
.tp-tbl__img img { width: calc(76 * var(--u)); height: calc(54 * var(--u)); object-fit: contain; }
.tp-tbl__name { width: 34%; line-height: 1.25; }
.tp-tbl__name .tp-pcard__brand { display: block; }
.tp-tbl__name a:hover { text-decoration: underline; }
.tp-tbl__price { font-weight: 700; color: var(--c-ink); white-space: nowrap; }
.tp-tbl__btn { text-align: right; }
.tp-tbl .tp-btn--sm { min-height: 36px; padding: 0 calc(24 * var(--u)); border-radius: 4px; white-space: nowrap; font-size: var(--t-btn-s); font-weight: 600; }
.tp-fit-row td { padding: 0; }

.tp-pages { margin-top: calc(24 * var(--u)); }
.tp-pages ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.tp-pages a, .tp-pages span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border-radius: 4px; background: #fff; color: var(--c-navy); font-size: var(--t-xs); }
.tp-pages .current { background: var(--c-navy); color: #fff; }
.tp-pages a:hover { outline: 1.5px solid var(--c-navy); }
.tp-empty { background: #fff; border-radius: 4px; padding: 40px; margin-top: 12px; text-align: center; display: grid; gap: 16px; justify-items: center; }

/* К4 B — guide and questions */
.tp-cguide { padding: calc(75 * var(--u)) 0 calc(48 * var(--u)); }
.tp-cguide__h { font-size: var(--t-d2); margin-bottom: calc(30 * var(--u)); }
.tp-cguide__grid { display: grid; grid-template-columns: 717fr 712fr; gap: calc(18 * var(--u)); margin-bottom: calc(22 * var(--u)); }
.tp-cguide__card, .tp-faq { background: var(--c-paper); border: 1px solid var(--c-line); border-radius: var(--radius); }
.tp-cguide__card { padding: calc(30 * var(--u)) calc(36 * var(--u)) calc(36 * var(--u)); }
.tp-cguide__art { width: 100%; max-width: calc(680 * var(--u)); mix-blend-mode: multiply; }
.tp-ticks { list-style: none; margin: calc(22 * var(--u)) 0 0; padding: 0; display: grid; gap: calc(28 * var(--u)); }
.tp-ticks li { display: grid; grid-template-columns: calc(68 * var(--u)) 1fr; align-items: center; font-size: var(--t-xl); line-height: 1.33; color: var(--c-navy); }
.tp-ticks .tp-ic { width: calc(50 * var(--u)); height: calc(50 * var(--u)); min-width: 28px; min-height: 28px; }
.tp-cguide__link { display: inline-flex; align-items: center; gap: 8px; margin-top: calc(34 * var(--u)); font-size: var(--t-xl); color: var(--c-accent-text); }
.tp-cguide__link .tp-ic { color: var(--c-accent); }
.tp-cguide__link:hover { text-decoration: underline; }
.tp-fit--strip { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: calc(28 * var(--u)) calc(34 * var(--u)) calc(28 * var(--u)) calc(36 * var(--u)); border-radius: var(--radius); }
.tp-fit--strip p { margin: 0; }
.tp-fit--strip .tp-fit__h { font: 700 var(--t-lead)/1.2 var(--f-text); }
.tp-fit--strip .tp-fit__t { margin: 0 0 0 calc(10 * var(--u)); font-size: var(--t-xl); }
.tp-fit--strip .tp-btn { min-height: max(48px, calc(65 * var(--u))); padding: 0 calc(24 * var(--u)); font-size: var(--t-btn); }

/* WooCommerce notices (its own styles are not loaded) */
.woocommerce-notices-wrapper:empty { display: none; }
.woocommerce-message, .woocommerce-info, .woocommerce-error { list-style: none; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
	margin: 12px 0 0; padding: 12px 16px; background: #fff; border-left: 4px solid var(--c-accent); border-radius: 4px; font-size: var(--t-s); color: var(--c-ink); }
.woocommerce-error { border-left-color: var(--c-error); }
.woocommerce-message .button, .woocommerce-info .button { order: 2; display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 4px; background: var(--c-accent); color: var(--c-ink); font-weight: 600; }
.tp-cmpbar { position: fixed; right: 24px; bottom: 24px; z-index: 80; box-shadow: 0 6px 20px rgba(39, 44, 54, .25); }
.tp-cmpbar[hidden] { display: none; }

/* Tablet and phone */
@media (max-width: 1023px) {
	.tp-scenes { grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 46%; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
	.tp-scenes li { scroll-snap-align: start; }
	.tp-scene { background: #fff; border-radius: 6px; padding: 10px 10px 12px; text-align: center; }
	.tp-scene__img { height: 130px; }
	.tp-cat__body { grid-template-columns: 1fr; }
	.tp-filters { display: none; position: fixed; inset: 0; z-index: 90; overflow-y: auto; border-radius: 0; padding: 56px var(--gutter) 24px; }
	.tp-filters.is-open { display: block; }
	.tp-filters__close { display: grid; place-items: center; position: absolute; right: 12px; top: 10px; width: 44px; height: 44px; border: 0; background: none; color: var(--c-navy); }
	.tp-cat__phone-bar { display: block; margin-bottom: 10px; }
	.tp-cat__phone-bar .tp-btn { width: 100%; min-height: 48px; font-weight: 500; }
	.tp-grid { grid-template-columns: 1fr 1fr; }
	.tp-grid > .tp-fit--wide { display: none; }
	.tp-grid > .tp-fit--two { display: flex; grid-column: 1 / -1; }
	.tp-grid > .tp-fit .tp-btn { width: auto; align-self: flex-start; margin-top: 16px; min-height: 44px; padding: 0 20px; }
	.tp-scene__t { white-space: normal; }
	.tp-cguide__grid { grid-template-columns: 1fr; }
	.tp-fit--strip { flex-direction: column; align-items: flex-start; }
	.tp-tbl thead { display: none; }
	.tp-tbl, .tp-tbl tbody, .tp-tbl tr, .tp-tbl td { display: block; }
	.tp-tbl tr { display: grid; grid-template-columns: 76px 1fr auto; gap: 4px 12px; padding: 12px; border-bottom: 1px solid var(--c-line); }
	.tp-tbl td { border: 0; padding: 0; }
	.tp-tbl .tp-tbl__cmp { display: none; }
	.tp-tbl__img { grid-row: span 3; }
	.tp-tbl__img img { width: 76px; height: 64px; }
	.tp-tbl__name { width: auto; grid-column: 2 / -1; }
	.tp-tbl td:nth-child(4), .tp-tbl td:nth-child(5), .tp-tbl td:nth-child(6), .tp-tbl td:nth-child(7) { display: inline;  color: var(--c-muted); }
	.tp-fit-row { display: block !important; padding: 0 !important; }
	.tp-fit--band { flex-wrap: wrap; }
	.tp-fit__art { display: none; }
}
@media (max-width: 767px) {
	.tp-cat__h {  }
	.tp-cat__lead { display: none; }
	.tp-toolbar { flex-wrap: wrap; gap: 10px; padding: 8px 10px; }
	.tp-toolbar__n { flex-basis: 100%; order: 3; color: var(--c-muted); }
	.tp-sort { flex: 1; }
	.tp-sort select { width: 100%; height: 48px;  }
	.tp-views { display: none; }
	.tp-pcard { grid-template-columns: 1fr; padding: 10px 12px 14px; gap: 6px; }
	.tp-pcard__img { height: 130px; }
	.tp-pcard__brand, .tp-pcard__chips { display: none; }
	.tp-pcard__name a { -webkit-line-clamp: 3; }
	.tp-pcard__foot { flex-direction: column; align-items: stretch; }
	.tp-pcard__foot > div { display: flex; justify-content: space-between; align-items: center; }
	.tp-compare span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.tp-compare input { width: 24px; height: 24px; border-color: var(--c-navy); }   /* the smallest touch target Lighthouse accepts */
	.tp-pcard .tp-btn--sm { min-height: 44px;  }
	.tp-grid > .tp-fit { grid-column: 1 / -1; }
	.tp-faq__item summary { padding: 18px 18px 18px 20px; min-height: 64px; }
	.tp-faq__item p { padding: 0 20px 20px; }
	.tp-cguide__card { padding: 20px; }
}
