/* Trøjekongen – virker med alle temaer. Farver kan overskrives med CSS-variablerne. */
:root {
	--tk-accent: #0b5d3b;
	--tk-accent-ink: #ffffff;
	--tk-gold: #c9a227;
	--tk-ink: #1b1f1d;
	--tk-muted: #5f6a65;
	--tk-line: #e2e6e3;
	--tk-surface: #ffffff;
	--tk-soft: #f4f6f4;
	--tk-radius: 10px;
}

.tk-katalog, .tk-single, .tk-form, .tk-quotes, .tk-grid { color: var(--tk-ink); }

/* Søgning */
.tk-search {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
	gap: 12px;
	align-items: end;
	padding: 16px;
	background: var(--tk-soft);
	border-radius: var(--tk-radius);
	margin: 0 0 16px;
}
.tk-search label, .tk-form label { display: block; font-size: 0.85rem; font-weight: 600; color: var(--tk-muted); }
.tk-search input, .tk-search select,
.tk-form input[type="text"], .tk-form input[type="email"], .tk-form input[type="tel"],
.tk-form select, .tk-form textarea {
	display: block;
	width: 100%;
	box-sizing: border-box;
	margin-top: 4px;
	padding: 10px 12px;
	font: inherit;
	font-size: 1rem;
	font-weight: 400;
	color: var(--tk-ink);
	background: var(--tk-surface);
	border: 1px solid var(--tk-line);
	border-radius: 8px;
}
.tk-search input:focus, .tk-search select:focus, .tk-form input:focus, .tk-form select:focus, .tk-form textarea:focus {
	outline: 2px solid var(--tk-accent);
	outline-offset: 1px;
}
.tk-search__actions { display: flex; gap: 12px; align-items: center; }
.tk-reset { font-size: 0.9rem; color: var(--tk-muted); }

.tk-btn {
	display: inline-block;
	padding: 11px 22px;
	font: inherit;
	font-weight: 700;
	color: var(--tk-accent-ink);
	background: var(--tk-accent);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	text-decoration: none;
}
.tk-btn:hover { filter: brightness(1.1); }
.tk-btn:disabled { opacity: 0.6; cursor: wait; }

.tk-count { color: var(--tk-muted); font-size: 0.9rem; margin: 0 0 12px; }

/* Grid og kort */
.tk-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
	gap: 20px;
	margin: 0 0 24px;
}
.tk-card {
	background: var(--tk-surface);
	border: 1px solid var(--tk-line);
	border-radius: var(--tk-radius);
	overflow: hidden;
	transition: transform .15s ease, box-shadow .15s ease;
}
.tk-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.08); }
.tk-card__link { display: block; color: inherit; text-decoration: none; }
.tk-card__img { position: relative; aspect-ratio: 4 / 5; background: var(--tk-soft); }
.tk-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tk-card__noimg { display: grid; place-items: center; height: 100%; font-size: 3rem; opacity: .4; }
.tk-card--solgt .tk-card__img img { filter: grayscale(.8); opacity: .7; }
.tk-ribbon {
	position: absolute; top: 10px; left: 10px;
	padding: 3px 10px; border-radius: 20px;
	font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
	background: var(--tk-ink); color: #fff;
}
.tk-ribbon--reserveret { background: var(--tk-gold); color: var(--tk-ink); }
.tk-card__body { padding: 12px 14px 14px; }
.tk-card__meta { margin: 0 0 4px; font-size: .8rem; color: var(--tk-muted); }
.tk-card__title { margin: 0 0 8px; font-size: 1rem; line-height: 1.3; }
.tk-card__price { margin: 8px 0 0; font-weight: 800; font-size: 1.05rem; }
.tk-tag {
	display: inline-block; padding: 2px 8px; border-radius: 20px;
	font-size: .75rem; font-weight: 600;
	background: #e8f2ec; color: var(--tk-accent);
}

/* Butiksvisning: lyst billedfelt med runde hjørner, titel og pris under (som classickits-stil) */
.tk-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 28px 20px; }
@media (max-width: 700px) { .tk-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; } }
.tk-card { background: transparent; border: 0; border-radius: 0; overflow: visible; }
.tk-card:hover { transform: none; box-shadow: none; }
.tk-card__img {
	aspect-ratio: 3 / 4;
	background: #ececec;
	border: 1px solid #d9d9d9;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 6px rgba(0,0,0,.08);
}
.tk-card__img img { transition: transform .25s ease; }
.tk-card:hover .tk-card__img img { transform: scale(1.03); }
.tk-card__body { padding: 10px 2px 0; }
.tk-card__title { margin: 0 0 6px; font-size: .95rem; font-weight: 400; line-height: 1.35; color: var(--tk-ink); }
.tk-card__price { margin: 0; font-size: .9rem; font-weight: 400; color: var(--tk-muted); }
.tk-card__link:hover .tk-card__title { text-decoration: underline; }
@media (max-width: 700px) {
	.tk-card__title { font-size: .85rem; }
	.tk-card__price { font-size: .8rem; }
}

/* Paginering */
.tk-pagination { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 24px; }
.tk-pagination .page-numbers {
	min-width: 38px; padding: 8px 12px; text-align: center;
	border: 1px solid var(--tk-line); border-radius: 8px;
	text-decoration: none; color: var(--tk-ink);
}
.tk-pagination .page-numbers.current { background: var(--tk-accent); border-color: var(--tk-accent); color: #fff; }
.tk-pagination .dots { border: 0; }

.tk-empty { padding: 24px; background: var(--tk-soft); border-radius: var(--tk-radius); }

/* Enkelt trøje */
.tk-single { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; margin-bottom: 24px; }
@media (max-width: 760px) { .tk-single { grid-template-columns: 1fr; } }
.tk-gallery__main { display: block; border-radius: var(--tk-radius); overflow: hidden; background: var(--tk-soft); }
.tk-gallery__main img { width: 100%; height: auto; display: block; }
.tk-gallery__thumbs { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.tk-gallery__thumb { padding: 0; border: 2px solid transparent; border-radius: 6px; background: none; cursor: pointer; overflow: hidden; }
.tk-gallery__thumb img { width: 70px; height: 70px; object-fit: cover; display: block; }
.tk-gallery__thumb.is-active { border-color: var(--tk-accent); }
.tk-gallery__placeholder { display: grid; place-items: center; aspect-ratio: 4/5; background: var(--tk-soft); border-radius: var(--tk-radius); font-size: 5rem; opacity: .4; }
.tk-single__status { display: inline-block; margin: 0 0 6px; padding: 3px 10px; border-radius: 20px; font-size: .8rem; font-weight: 700; background: #e8f2ec; color: var(--tk-accent); }
.tk-status--reserveret { background: #fbf1d0; color: #7a5c00; }
.tk-status--solgt { background: var(--tk-soft); color: var(--tk-muted); }
.tk-single__price { font-size: 1.8rem; font-weight: 800; margin: 0 0 16px; }
.tk-specs { margin: 0 0 16px; border-top: 1px solid var(--tk-line); }
.tk-specs > div { display: grid; grid-template-columns: 120px 1fr; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--tk-line); }
.tk-specs dt { margin: 0; color: var(--tk-muted); font-weight: 600; }
.tk-specs dd { margin: 0; }
.tk-dok { padding: 12px 16px; background: var(--tk-soft); border-radius: var(--tk-radius); margin-bottom: 16px; }
.tk-dok h3, .tk-inquiry h3 { margin: 0 0 6px; font-size: 1.05rem; }
.tk-dok p:last-child { margin-bottom: 0; }
.tk-inquiry { padding: 16px; border: 1px solid var(--tk-line); border-radius: var(--tk-radius); }
.tk-single__desc { margin: 8px 0 24px; }
.tk-back a { color: var(--tk-muted); }

/* Formularer */
.tk-form fieldset { border: 0; padding: 0; margin: 0 0 16px; }
.tk-form legend { font-weight: 800; font-size: 1.1rem; margin-bottom: 8px; padding: 0; }
.tk-form p { margin: 0 0 12px; }
.tk-form__row { display: grid; gap: 12px; }
.tk-form__row--3 { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); }
.tk-form input[type="file"] { display: block; margin-top: 6px; font-size: .95rem; }
.tk-help { display: block; font-size: .8rem; color: var(--tk-muted); margin-top: 4px; }
.tk-consent label { font-weight: 400; color: var(--tk-ink); display: flex; gap: 8px; align-items: flex-start; }
.tk-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.tk-notice { padding: 12px 16px; border-radius: 8px; margin: 0 0 16px; font-weight: 600; }
.tk-notice--success { background: #e3f4e9; color: #0d5a2f; }
.tk-notice--error { background: #fde8e8; color: #8a1c1c; }

/* Udtalelser */
.tk-quotes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.tk-quote { margin: 0; padding: 20px; background: var(--tk-soft); border-radius: var(--tk-radius); border-left: 4px solid var(--tk-gold); }
.tk-quote blockquote { margin: 0 0 10px; padding: 0; border: 0; font-style: italic; }
.tk-quote blockquote p { margin: 0 0 8px; }
.tk-quote figcaption { font-size: .9rem; color: var(--tk-muted); }
.tk-vinted { margin: 12px 0 0; font-size: .9rem; color: var(--tk-muted); }
