/* Shared styling for generic page/single/archive/search/404 templates */

.jat-breadcrumbs { margin: 106px 0 1.5rem; font-size: 0.85rem; color: #999; }
.jat-breadcrumbs ol { display: flex; gap: 6px; flex-wrap: wrap; }
.jat-breadcrumbs li:not(:last-child)::after { content: "/"; margin-left: 6px; color: #ccc; }
.jat-breadcrumbs a { color: var(--jat-secondary, #6F4E37); transition: opacity var(--jat-duration) var(--jat-ease); }
.jat-breadcrumbs a:hover { opacity: 0.7; }

.jat-archive-header { padding-top: 126px; padding-bottom: 1.25rem; }
.jat-archive-header p { color: #666; max-width: 560px; }

.jat-generic-content { padding: 136px 0 4rem; }
.jat-generic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.jat-generic-card {
	border: 1px solid #eee6d8;
	border-radius: var(--jat-radius-md);
	overflow: hidden;
	transition: transform var(--jat-duration) var(--jat-ease), box-shadow var(--jat-duration) var(--jat-ease);
}
.jat-generic-card:hover { transform: translateY(-4px); box-shadow: var(--jat-shadow-md); }
.jat-generic-thumb { display: block; aspect-ratio: 16/10; overflow: hidden; }
.jat-generic-thumb img { width: 100%; height: 100%; object-fit: cover; }
.jat-generic-card h2 { font-size: 1.1rem; padding: 18px 18px 0; }
.jat-generic-excerpt { padding: 8px 18px 18px; font-size: 0.9rem; color: #5a5a5a; }

.jat-single-product,
.jat-single-origin,
.jat-single-page { padding: 126px 24px 4.5rem; max-width: 1000px; }
.jat-single-post { padding: 0 24px 4.5rem; max-width: 1000px; }

.jat-single-product-grid,
.jat-single-origin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; margin-top: 1.5rem; }
.jat-single-product-media,
.jat-single-origin-media { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--jat-radius-md); box-shadow: var(--jat-shadow-sm); background: #e9e4d6; }
.jat-single-product-media img,
.jat-single-origin-media img { width: 100%; height: 100%; object-fit: cover; border-radius: 0; box-shadow: none; }
.jat-product-thumb-placeholder,
.jat-origin-thumb-placeholder { display: block; width: 100%; height: 100%; }

.jat-product-spec-list li { margin-bottom: 0.6em; font-size: 0.95rem; padding-bottom: 0.6em; border-bottom: 1px solid #f0ece1; }

.jat-quote-form-wrap {
	margin-top: 3.5rem;
	padding: 32px;
	background: var(--jat-background, #F7F4EE);
	border-radius: var(--jat-radius-lg);
	max-width: 560px;
}
.jat-quote-form { display: flex; flex-direction: column; gap: 10px; }
.jat-quote-form label { font-size: 0.85rem; font-weight: 600; margin-top: 0.5em; }
.jat-quote-form input,
.jat-quote-form textarea {
	padding: 0.8em 1em;
	border: 1px solid #e2ddce;
	border-radius: var(--jat-radius-sm);
	font-family: inherit;
	background: #fff;
	transition: border-color var(--jat-duration) var(--jat-ease), box-shadow var(--jat-duration) var(--jat-ease);
}
.jat-quote-form input:focus,
.jat-quote-form textarea:focus {
	outline: none;
	border-color: var(--jat-accent, #B58A3C);
	box-shadow: 0 0 0 3px rgba(181,138,60,0.15);
}
.jat-quote-form .jat-btn { align-self: flex-start; margin-top: 0.6em; }
.jat-form-note { font-size: 0.78rem; color: #999; margin-top: 0.9em; }

.jat-quote-choice-hint { font-size: 0.9rem; color: #5a5a5a; margin-bottom: 0.8em; }
.jat-quote-wa-btn { display: inline-flex; width: auto; }
.jat-quote-or-divider { font-size: 0.8rem; color: #999; text-align: center; margin: 1.2em 0 0.4em; }

.jat-form-message {
	font-size: 0.85rem;
	margin-top: 0.9em;
	min-height: 1.2em;
}
.jat-form-message.is-success { color: #2e7d32; font-weight: 600; }
.jat-form-message.is-error { color: #c62828; font-weight: 600; }

.jat-single-post-header { padding-top: 0; margin-top: 0.4rem; }
.jat-single-post-header time { color: #999; font-size: 0.85rem; }
.jat-single-post-thumb {
	margin: 1.5rem 0 2rem;
	border-radius: var(--jat-radius-md);
	overflow: hidden;
	box-shadow: var(--jat-shadow-sm);
	aspect-ratio: 16 / 9;
	background: #e9e4d6;
}
.jat-single-post-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	margin: 0;
	border-radius: 0;
}
.jat-single-post-content { line-height: 1.8; }
.jat-single-post-content img { border-radius: var(--jat-radius-sm); margin: 1.5rem 0; }

.jat-share-bar {
	display: flex;
	align-items: center;
	flex-wrap: wrap;
	gap: 10px;
	margin: 1.1rem 0;
	padding: 14px 0;
	border-top: 1px solid #eee6d8;
	border-bottom: 1px solid #eee6d8;
}
.jat-share-label {
	font-size: 0.82rem;
	font-weight: 600;
	color: #666;
	margin-right: 2px;
}
.jat-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: #fff;
	border: 1px solid #e2ddce;
	color: #555;
	cursor: pointer;
	transition: background-color var(--jat-duration) var(--jat-ease),
		border-color var(--jat-duration) var(--jat-ease),
		color var(--jat-duration) var(--jat-ease),
		transform var(--jat-duration) var(--jat-ease);
}
.jat-share-btn:hover { transform: translateY(-2px); }
.jat-share-whatsapp:hover { background: #25D366; border-color: #25D366; color: #fff; }
.jat-share-facebook:hover { background: #1877F2; border-color: #1877F2; color: #fff; }
.jat-share-twitter:hover { background: #111; border-color: #111; color: #fff; }
.jat-share-linkedin:hover { background: #0A66C2; border-color: #0A66C2; color: #fff; }
.jat-share-copy {
	width: auto;
	padding: 0 14px;
	border-radius: var(--jat-radius-pill, 999px);
	font-size: 0.82rem;
	font-weight: 600;
}
.jat-share-copy:hover { background: var(--jat-primary, #163A24); border-color: var(--jat-primary, #163A24); color: #fff; }
.jat-share-copy.is-copied { background: var(--jat-accent, #B58A3C); border-color: var(--jat-accent, #B58A3C); color: #fff; }

.jat-single-page { padding-top: 136px; }

.jat-404 { padding: 168px 0 110px; text-align: center; }
.jat-404 h1 { font-size: 5.5rem; color: var(--jat-accent, #B58A3C); }

@media (max-width: 768px) {
	.jat-single-product-grid,
	.jat-single-origin-grid,
	.jat-generic-grid { grid-template-columns: 1fr; }
}
