/* ==========================================================================
   Finder 3D-relay — product table and product page. Finder blue/navy,
   condensed uppercase headings, kept deliberately plain.
   ========================================================================== */

:root {
	--blue: #009fe3;
	--blue-700: #0070a8;
	--blue-50: #e8f6fd;
	--navy: #324365;
	--ink: #16181d;
	--text: #3a3f47;
	--muted: #6b7280;
	--line: #e5e8ec;
	--bg: #f4f6f9;
	--paper: #fff;
	--green: #11845b;
	--green-50: #e3f5ec;

	--font-head: "Barlow Condensed", "Arial Narrow", Arial, sans-serif;
	--font-body: "Barlow", "Segoe UI", Arial, sans-serif;
	--radius: 10px;
	--shadow: 0 1px 2px rgb(16 24 40 / 5%), 0 2px 8px rgb(16 24 40 / 6%);
	--gutter: max(16px, 4vw);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 1rem/1.55 var(--font-body); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; vertical-align: middle; }
a { color: var(--blue-700); text-decoration: none; }
a:hover { color: var(--navy); }
h1, h2 { margin: 0; color: var(--ink); font-family: var(--font-head); font-weight: 700; line-height: 1.05; text-transform: uppercase; letter-spacing: .01em; text-wrap: balance; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.icon { flex: none; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: var(--gutter); }

/* Header & footer */
.site-header { background: var(--paper); border-top: 4px solid var(--blue); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 1rem; min-height: 64px; }
.site-logo img, .custom-logo { display: block; width: auto; height: 36px; }
.site-header__title { padding-left: 1rem; border-left: 1px solid var(--line); color: var(--navy); font: 600 1rem/1 var(--font-head); letter-spacing: .1em; text-transform: uppercase; }
.site-footer { padding-block: 1.5rem; color: var(--muted); font-size: .85rem; }

/* Page */
.page { padding-block: clamp(1.5rem, 4vw, 2.5rem); }
.page__head { display: grid; gap: .5rem; margin-bottom: 1.5rem; }
.page__title { font-size: clamp(1.9rem, 4vw, 2.6rem); }
.page__lead { margin: 0; max-width: 62ch; color: var(--muted); }
.eyebrow { margin: 0 0 .35rem; color: var(--blue-700); font: 600 .8rem/1 var(--font-head); letter-spacing: .14em; text-transform: uppercase; }

/* Buttons */
.button {
	display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
	min-height: 42px; padding: .55rem 1.1rem; border: 0; border-radius: 999px;
	background: var(--blue); color: #fff; cursor: pointer;
	font: 600 .9rem/1 var(--font-head); letter-spacing: .08em; text-transform: uppercase;
	transition: background .15s;
}
.button:hover { background: var(--blue-700); color: #fff; }
.button--ghost { background: var(--paper); color: var(--navy); box-shadow: inset 0 0 0 1.5px var(--line); }
.button--ghost:hover { background: var(--paper); color: var(--blue-700); box-shadow: inset 0 0 0 1.5px var(--blue); }
.button.is-done { background: var(--green); }
.icon-button {
	display: grid; place-items: center; width: 36px; height: 36px; border: 0; border-radius: 50%;
	background: transparent; color: var(--navy); cursor: pointer; transition: background .15s, color .15s;
}
.icon-button:hover { background: var(--blue-50); color: var(--blue-700); }
.icon-button.is-done { background: var(--green-50); color: var(--green); }
.back { display: inline-flex; align-items: center; gap: .35rem; font-weight: 500; }

.pill { display: inline-block; padding: .2rem .6rem; border-radius: 999px; font: 600 .78rem/1.3 var(--font-head); letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.pill--yes { background: var(--green-50); color: var(--green); }
.pill--no { background: var(--bg); color: var(--muted); }

/* Toolbar */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem 1.25rem; margin-bottom: 1rem; }
.search {
	flex: 1 1 320px; display: flex; align-items: center; gap: .5rem; min-height: 46px; padding: 0 1rem;
	background: var(--paper); border: 1px solid var(--line); border-radius: 999px; box-shadow: var(--shadow); color: var(--muted);
}
.search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgb(0 159 227 / 15%); }
.search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font: inherit; }
.toggle { display: inline-flex; align-items: center; gap: .45rem; cursor: pointer; color: var(--ink); font-weight: 500; }
.toggle input { width: 18px; height: 18px; accent-color: var(--blue); }
.toolbar__count { margin: 0 0 0 auto; color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; }

/* Table */
.table-wrap { overflow-x: auto; background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); }
.products-table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.products-table th {
	position: sticky; top: 0; z-index: 1; background: var(--paper);
	padding: .8rem 1rem; text-align: left; border-bottom: 1px solid var(--line);
	color: var(--muted); font: 600 .78rem/1.2 var(--font-head); letter-spacing: .12em; text-transform: uppercase;
}
.products-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.products-table tbody tr { cursor: pointer; transition: background .1s; }
.products-table tbody tr:hover { background: var(--blue-50); }
.products-table tbody tr:last-child td { border-bottom: 0; }
.col-code { white-space: nowrap; font: 600 1rem var(--font-head); letter-spacing: .04em; }
.col-code a { color: var(--ink); }
.col-series { color: var(--muted); }
.col-actions { width: 1%; text-align: right; }
.empty { margin: 0; padding: 2rem 1rem; text-align: center; color: var(--muted); }
@media (max-width: 720px) {
	.col-series { display: none; }
	.toolbar__count { margin-left: 0; }
}

/* Product page */
.product-card {
	display: grid; grid-template-columns: minmax(0, 280px) minmax(0, 1fr); gap: clamp(1.25rem, 4vw, 2.5rem);
	margin-top: 1rem; padding: clamp(1.25rem, 3vw, 2rem); background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow);
}
.product-card__media { display: grid; place-items: center; aspect-ratio: 1; padding: 1rem; border-radius: var(--radius); background: var(--bg); }
.product-card__media img { max-height: 100%; width: auto; object-fit: contain; }
.product-card__body { min-width: 0; }
.product-card__title { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: .5rem; }
.product-card__code { margin: 0 0 1.5rem; color: var(--muted); }
.product-card__code strong { color: var(--ink); font: 700 1.1rem var(--font-head); letter-spacing: .04em; }
.deeplink { padding: 1.25rem; border: 1px solid var(--line); border-left: 3px solid var(--blue); border-radius: var(--radius); }
.deeplink__head { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin-bottom: .9rem; }
.deeplink__head h2 { font-size: 1.25rem; }
.deeplink__row { display: flex; flex-wrap: wrap; gap: .5rem; }
.deeplink__url {
	flex: 1 1 260px; min-width: 0; min-height: 42px; padding: .5rem .9rem;
	border: 1px solid var(--line); border-radius: 999px; background: var(--bg);
	color: var(--ink); font: 500 .9rem ui-monospace, Consolas, monospace;
}
.deeplink__note { margin: .8rem 0 0; color: var(--muted); font-size: .9rem; }
.deeplink__note code { font: 500 .85rem ui-monospace, Consolas, monospace; color: var(--ink); overflow-wrap: anywhere; }
.icon-button--inline { display: inline-grid; width: 30px; height: 30px; vertical-align: middle; }

.images-list { display: grid; gap: .75rem; margin: 0; padding: 0; list-style: none; }
.image-row { display: flex; gap: 1rem; align-items: flex-start; padding: .75rem; border-radius: var(--radius); background: var(--bg); }
.image-row__thumb { flex: none; display: grid; place-items: center; width: 72px; height: 72px; border-radius: 8px; background: #fff; overflow: hidden; }
.image-row__thumb img { width: 100%; height: 100%; object-fit: contain; }
.image-row__body { flex: 1; min-width: 0; }
.image-row__code { margin: 0 0 .4rem; color: var(--ink); font: 700 1.05rem var(--font-head); letter-spacing: .04em; }
.image-row__meta { margin: .4rem 0 0; color: var(--muted); font-size: .82rem; }
@media (max-width: 480px) { .image-row__thumb { display: none; } }
@media (max-width: 640px) {
	.product-card { grid-template-columns: 1fr; }
	.product-card__media { max-width: 220px; }
}
