.cf-cattle-page {
	background: #f7f7f5;
	padding: 40px 16px 72px;
	color: #1c1c1c;
	font-family: Roboto, Helvetica, Arial, sans-serif;
}

.cf-cattle-wrap {
	max-width: 1100px;
	margin: 0 auto;
}

.cf-cattle-header h1,
.cf-cattle-summary h1 {
	margin: 0 0 8px;
	font-size: 2rem;
	line-height: 1.2;
}

.cf-cattle-header p,
.cf-cattle-empty {
	color: #555;
	max-width: 42rem;
}

.cf-cattle-header {
	margin-bottom: 28px;
}

.cf-cattle-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
	gap: 22px;
}

.cf-cattle-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 16px #00000014;
}

.cf-cattle-card__image {
	display: block;
	position: relative;
	aspect-ratio: 4 / 3;
	background: #ececec;
}

.cf-cattle-card__image img,
.cf-cattle-gallery__main img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cf-cattle-card__body {
	padding: 16px 18px 20px;
}

.cf-cattle-card__number {
	margin: 0 0 4px;
	color: #6b6b6b;
	font-size: 13px;
	letter-spacing: 0.04em;
}

.cf-cattle-card__title {
	margin: 0 0 10px;
	font-size: 1.2rem;
}

.cf-cattle-card__title a {
	color: #1c1c1c;
	text-decoration: none;
}

.cf-cattle-card__tag {
	display: inline-block;
	margin: 0 0 10px;
	padding: 4px 10px;
	border-radius: 999px;
	background: #eaf8f1;
	color: #1c7a52;
	font-size: 13px;
	font-weight: 600;
}

.cf-cattle-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 12px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	color: #555;
	font-size: 14px;
}

.cf-cattle-price {
	margin: 0 0 14px;
	font-size: 1.15rem;
	font-weight: 700;
	color: #1c1c1c;
}

.cf-cattle-btn {
	display: inline-block;
	background: #3bb77e;
	color: #fff !important;
	border: 2px solid #3bb77e;
	border-radius: 6px;
	padding: 10px 16px;
	text-decoration: none;
	font-weight: 600;
	cursor: pointer;
}

.cf-cattle-btn:hover {
	background: #2f9a68;
	border-color: #2f9a68;
}

.cf-cattle-btn--secondary {
	background: #fff;
	color: #1c1c1c !important;
}

.cf-cattle-btn--secondary:hover {
	background: #f3f3f3;
	border-color: #1c1c1c;
}

.cf-cattle-badge {
	position: absolute;
	top: 10px;
	left: 10px;
	background: #1c1c1c;
	color: #fff;
	padding: 4px 8px;
	border-radius: 4px;
	font-size: 12px;
}

.cf-cattle-badge--sale_pending {
	background: #b8860b;
}

.cf-cattle-badge--sold {
	background: #aa0606;
}

.cf-cattle-back {
	margin: 0 0 16px;
}

.cf-cattle-back a {
	color: #3bb77e;
	text-decoration: none;
}

.cf-cattle-notice {
	background: #fff8e5;
	border: 1px solid #e6d7a3;
	padding: 12px 14px;
	border-radius: 8px;
	margin-bottom: 18px;
}

.cf-cattle-notice--ok {
	background: #eaf8f1;
	border-color: #3bb77e;
}

.cf-cattle-notice--error,
.cf-cattle-notice--sold {
	background: #fdeeee;
	border-color: #e3b4b4;
}

.cf-cattle-detail {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 32px;
	background: #fff;
	padding: 22px;
	border-radius: 12px;
}

.cf-cattle-gallery__main {
	background: #ececec;
	border-radius: 8px;
	overflow: hidden;
	min-height: 280px;
}

.cf-cattle-gallery__main--empty {
	display: grid;
	place-items: center;
	color: #777;
}

.cf-cattle-gallery__thumbs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-top: 10px;
}

.cf-cattle-thumb {
	border: 2px solid transparent;
	padding: 0;
	background: none;
	cursor: pointer;
	width: 72px;
	height: 72px;
	overflow: hidden;
	border-radius: 6px;
}

.cf-cattle-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.cf-cattle-thumb.is-active {
	border-color: #3bb77e;
}

.cf-cattle-facts {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px 16px;
	margin: 18px 0;
}

.cf-cattle-facts div {
	margin: 0;
}

.cf-cattle-facts dt {
	font-size: 12px;
	color: #6b6b6b;
}

.cf-cattle-facts dd {
	margin: 0;
	font-weight: 600;
}

.cf-cattle-cta {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.cf-cattle-copy,
.cf-cattle-terms {
	background: #fff;
	padding: 22px;
	border-radius: 12px;
	margin-top: 22px;
}

.cf-cattle-forms {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 22px;
	margin-top: 22px;
}

.cf-cattle-form {
	background: #fff;
	padding: 22px;
	border-radius: 12px;
}

.cf-cattle-form h3 {
	margin-top: 0;
}

.cf-cattle-form label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
}

.cf-cattle-form label span {
	font-weight: 400;
	color: #777;
}

.cf-cattle-form input,
.cf-cattle-form textarea {
	width: 100%;
	border: 1px solid #cfcfcf;
	border-radius: 6px;
	padding: 10px;
	font: inherit;
}

.cf-cattle-check label {
	font-weight: 400;
	display: flex;
	gap: 8px;
	align-items: flex-start;
}

.cf-cattle-check input {
	width: auto;
	margin-top: 3px;
}

.cf-cattle-hp {
	position: absolute;
	left: -9999px;
	height: 0;
	overflow: hidden;
}

.cf-cattle-pagination {
	margin-top: 28px;
}

@media (max-width: 800px) {
	.cf-cattle-detail,
	.cf-cattle-forms,
	.cf-cattle-facts {
		grid-template-columns: 1fr;
	}
}
