/**
 * TernakPro public styles.
 */

.tp-public {
	--tp-primary: #1f6f43;
	--tp-ink: #1c2321;
	--tp-muted: #6b7a74;
	--tp-line: #dfe6e2;
	--tp-radius: 12px;
	color: var(--tp-ink);
	max-width: 1080px;
	margin: 0 auto;
}

.tp-public__notice {
	background: #f6f8f7;
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	padding: 16px 18px;
}

.tp-btn {
	display: inline-block;
	background: var(--tp-primary);
	color: #fff !important;
	padding: 9px 16px;
	border-radius: 8px;
	text-decoration: none;
	font-weight: 600;
	font-size: 14px;
}

.tp-btn:hover { background: #175634; }

.tp-catalog__filters { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.tp-catalog__filters input[type="search"] { flex: 1 1 240px; padding: 9px 12px; border: 1px solid var(--tp-line); border-radius: 8px; }
.tp-catalog__filters button { padding: 9px 18px; border: 0; border-radius: 8px; background: var(--tp-primary); color: #fff; cursor: pointer; }

.tp-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.tp-card-item {
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.tp-card-item__photo { width: 100%; height: 180px; object-fit: cover; display: block; }
.tp-card-item__photo--empty { background: #eef2f0; }
.tp-card-item__body { padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.tp-card-item__body h3, .tp-card-item__body h4 { margin: 0; font-size: 16px; }
.tp-card-item__meta, .tp-card-item__status { font-size: 13px; color: var(--tp-muted); margin: 0; }
.tp-card-item__weight { font-weight: 600; margin: 0; }
.tp-card-item__price { color: var(--tp-primary); font-weight: 700; margin: 0; }

.tp-pagination { display: flex; gap: 6px; margin-top: 24px; flex-wrap: wrap; }
.tp-pagination__link { padding: 6px 12px; border: 1px solid var(--tp-line); border-radius: 6px; text-decoration: none; }
.tp-pagination__link.is-active { background: var(--tp-primary); color: #fff; border-color: var(--tp-primary); }

.tp-detail__header, .tp-passport__header { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.tp-detail__photo, .tp-passport__photo { width: 100%; max-height: 420px; object-fit: cover; border-radius: var(--tp-radius); margin: 16px 0; }

.tp-chip {
	display: inline-block;
	padding: 4px 12px;
	border-radius: 999px;
	background: #e7f4ec;
	color: #1f6f43;
	font-size: 13px;
	font-weight: 600;
}

.tp-specs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 16px 0; }
.tp-specs div { border: 1px solid var(--tp-line); border-radius: 10px; padding: 12px 14px; }
.tp-specs dt { font-size: 12px; color: var(--tp-muted); margin: 0 0 4px; }
.tp-specs dd { margin: 0; font-weight: 600; }

.tp-passport__brand { text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--tp-muted); margin: 0; }
.tp-passport__section { margin: 24px 0; }
.tp-passport__footer { border-top: 1px solid var(--tp-line); padding-top: 14px; font-size: 12px; color: var(--tp-muted); }

.tp-timeline { list-style: none; margin: 0; padding: 0 0 0 4px; border-left: 2px solid var(--tp-line); }
.tp-timeline li { position: relative; padding: 0 0 16px 18px; }
.tp-timeline li::before { content: ""; position: absolute; left: -7px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--tp-primary); }
.tp-timeline__date { display: block; font-size: 12px; color: var(--tp-muted); }

.tp-tracking-form form { display: flex; gap: 8px; flex-wrap: wrap; }
.tp-tracking-form input[type="text"] { flex: 1 1 220px; padding: 10px 12px; border: 1px solid var(--tp-line); border-radius: 8px; }
.tp-tracking-form button { padding: 10px 20px; border: 0; border-radius: 8px; background: var(--tp-primary); color: #fff; cursor: pointer; }

.tp-dashboard-public__section { margin: 28px 0; }

.tp-saving-card {
	border: 1px solid var(--tp-line);
	border-radius: var(--tp-radius);
	padding: 20px;
	margin-bottom: 20px;
	background: #fff;
}

.tp-saving-card__header { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.tp-saving-card__header h3 { margin: 0; }
.tp-saving-card .tp-muted { color: var(--tp-muted); font-size: 13px; margin: 2px 0 0; }

.tp-progress { background: var(--tp-line); border-radius: 999px; height: 8px; overflow: hidden; margin: 14px 0; }
.tp-progress--lg { height: 12px; }
.tp-progress span { display: block; height: 100%; background: var(--tp-primary); }

.tp-share { border-top: 1px solid var(--tp-line); padding-top: 14px; margin-top: 14px; }
.tp-share:first-of-type { border-top: 0; }

.tp-certificate {
	border: 2px solid var(--tp-primary);
	border-radius: var(--tp-radius);
	padding: 18px;
	text-align: center;
	background: #fbfdfc;
}

.tp-certificate__title { text-transform: uppercase; letter-spacing: .1em; font-size: 12px; color: var(--tp-muted); margin: 0 0 6px; }
.tp-certificate__number { font-weight: 700; font-size: 18px; margin: 0 0 8px; }

.tp-passport__qr { text-align: center; }
.tp-passport__qr svg { max-width: 220px; height: auto; }
.tp-passport__actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 20px 0; }

.tp-btn--ghost { background: transparent; color: var(--tp-primary) !important; border: 1px solid var(--tp-primary); cursor: pointer; font-size: 14px; }

@media print {
	.tp-no-print { display: none !important; }
	.tp-public { max-width: 100%; }
	.tp-passport { border: 0; }
}
