.cw-demo-shell,
.cw-proof-strip,
.cw-section,
.cw-voucher-band {
	width: min(1380px, calc(100% - 28px));
	margin-inline: auto;
}

.cw-demo-shell {
	display: grid;
	grid-template-columns: 230px minmax(0, 1fr) 300px;
	gap: 18px;
	padding-block: 22px;
}

.cw-shop-rail,
.cw-wallet-mini,
.cw-side-deal,
.cw-proof-strip > div,
.cw-category-card,
.cw-product-card,
.cw-voucher-band {
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	background: #fff;
}

.cw-shop-rail {
	padding: 18px 20px;
}

.cw-shop-rail h2 {
	margin: 0 0 14px;
	color: #33435a;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.cw-shop-rail a {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 0;
	color: #0f1724;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
}

.cw-hero {
	min-height: 382px;
	display: grid;
	align-items: center;
	overflow: hidden;
	border-radius: 6px;
	background:
		linear-gradient(90deg, rgba(5, 10, 17, 0.78), rgba(5, 10, 17, 0.35)),
		url("https://images.unsplash.com/photo-1500595046743-cd271d694d30?auto=format&fit=crop&w=1600&q=80") center/cover;
	color: #fff;
}

.cw-hero > div {
	max-width: 820px;
	padding: 44px 40px;
}

.cw-hero h1 {
	max-width: 720px;
	margin: 0;
	font-size: clamp(38px, 5vw, 56px);
	line-height: 0.96;
	font-weight: 950;
	letter-spacing: 0;
}

.cw-hero p {
	max-width: 720px;
	margin: 18px 0 26px;
	font-size: 15px;
	font-weight: 700;
}

.cw-search {
	display: grid;
	grid-template-columns: minmax(220px, 1fr) 190px 128px;
	gap: 10px;
	max-width: 720px;
	padding: 12px;
	border-radius: 6px;
	background: rgba(255, 255, 255, 0.96);
}

.cw-search input,
.cw-search select,
.cw-search button,
.cw-filter input,
.cw-filter select,
.cw-form input,
.cw-form select,
.cw-form textarea,
.cattlewise-checkout-wallet input {
	min-height: 48px;
	padding: 0 16px;
	border: 1px solid #dbe2ea;
	border-radius: 4px;
	background: #fff;
	color: #101820;
	font: inherit;
}

.cw-search button,
.cw-button,
.cw-filter button,
.cw-small-button,
.cw-icon-button,
.cw-voucher-band a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: #c3912b;
	color: #fff;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	cursor: pointer;
}

.cw-demo-side {
	display: grid;
	gap: 18px;
}

.cw-wallet-mini,
.cw-side-deal {
	padding: 20px;
}

.cw-wallet-mini > span,
.cw-side-deal > span,
.cw-voucher-band span {
	display: block;
	color: #b28224;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.cw-wallet-mini small {
	display: block;
	margin-top: 24px;
	color: #5b6776;
}

.cw-wallet-mini strong {
	display: block;
	font-size: 32px;
	line-height: 1.05;
}

.cw-wallet-mini div {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 8px;
	margin-top: 18px;
}

.cw-wallet-mini a {
	min-height: 36px;
	display: grid;
	place-items: center;
	border-radius: 4px;
	background: #101820;
	color: #fff;
	font-size: 12px;
	font-weight: 900;
	text-decoration: none;
}

.cw-wallet-mini a:nth-child(2) {
	background: #c3912b;
}

.cw-wallet-mini a:nth-child(3) {
	background: #fff;
	color: #101820;
	box-shadow: inset 0 0 0 1px #dbe2ea;
}

.cw-side-deal {
	border-color: #c3912b;
}

.cw-side-deal strong {
	display: block;
	margin-top: 12px;
	font-size: 22px;
	line-height: 1.05;
}

.cw-side-deal p {
	color: #516071;
}

.cw-proof-strip {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 14px;
	margin-top: 18px;
}

.cw-proof-strip > div {
	min-height: 88px;
	padding: 18px;
}

.cw-proof-strip strong {
	display: block;
	margin-bottom: 6px;
	font-size: 15px;
}

.cw-proof-strip span {
	color: #516071;
	font-size: 12px;
}

.cw-section {
	padding-block: 28px;
}

.cw-section-title {
	display: flex;
	justify-content: space-between;
	gap: 16px;
	align-items: end;
	margin-bottom: 16px;
}

.cw-section-title h2,
.cw-section h1 {
	margin: 0;
	color: #05080d;
	font-size: 25px;
	line-height: 1.05;
	font-weight: 950;
}

.cw-section-title p {
	margin: 6px 0 0;
	color: #516071;
	font-size: 13px;
}

.cw-section-title a {
	color: #b28224;
	font-weight: 900;
	text-decoration: none;
}

.cw-category-grid,
.cw-product-grid,
.cw-wallet-grid,
.cw-action-grid,
.cw-steps,
.cattlewise-admin-grid {
	display: grid;
	gap: 14px;
}

.cw-category-grid {
	grid-template-columns: repeat(8, minmax(0, 1fr));
}

.cw-category-card {
	overflow: hidden;
	color: #101820;
	font-weight: 950;
	text-align: center;
	text-decoration: none;
}

.cw-category-image {
	display: block;
	aspect-ratio: 1.45 / 1;
	background: #edf1f5 center/cover;
}

.cw-category-card strong {
	display: block;
	padding: 12px 6px;
	font-size: 13px;
}

.cw-deal-section {
	width: min(1380px, calc(100% - 28px));
	padding: 28px 18px;
	border-radius: 4px;
	background: #101010;
	color: #fff;
}

.cw-deal-section .cw-section-title h2,
.cw-deal-section .cw-section-title a {
	color: #fff;
}

.cw-deal-section .cw-section-title a {
	color: #d9a92e;
}

.cw-product-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.cw-product-grid-list {
	grid-template-columns: 1fr;
}

.cw-product-grid-list .cw-product-card {
	display: grid;
	grid-template-columns: minmax(220px, 330px) 1fr;
}

.cw-product-grid-list .cw-product-image {
	height: 100%;
	aspect-ratio: auto;
}

.cw-product-card {
	overflow: hidden;
}

.cw-product-image {
	position: relative;
	display: block;
	aspect-ratio: 1.48 / 1;
	overflow: hidden;
	background: #e7edf3;
	color: #fff;
	text-decoration: none;
}

.cw-product-image img {
	width: 100%;
	height: 100%;
	display: block;
	object-fit: cover;
}

.cw-discount-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 2;
	padding: 5px 8px;
	background: #e32121;
	color: #fff;
	font-size: 11px;
	font-weight: 950;
}

.cw-animal-count {
	position: absolute;
	right: 8px;
	bottom: 8px;
	z-index: 2;
	padding: 4px 6px;
	background: #05080d;
	color: #fff;
	font-size: 11px;
	font-weight: 900;
}

.cw-status-badge {
	position: absolute;
	top: 12px;
	right: 12px;
	z-index: 2;
	padding: 5px 8px;
	background: #101820;
	color: #fff;
	font-size: 11px;
	font-weight: 950;
	text-transform: uppercase;
}

.cw-product-body {
	padding: 14px;
}

.cw-product-body h3 {
	min-height: 38px;
	margin: 0 0 6px;
	font-size: 15px;
	line-height: 1.2;
	font-weight: 950;
}

.cw-product-body h3 a {
	color: #05080d;
	text-decoration: none;
}

.cw-location {
	margin: 0 0 10px;
	color: #3c536d;
	font-size: 12px;
}

.cw-card-specs {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 5px 12px;
	margin: 0 0 12px;
}

.cw-card-specs div {
	min-width: 0;
}

.cw-card-specs dt {
	color: #516071;
	font-size: 11px;
}

.cw-card-specs dd {
	margin: 0;
	color: #162235;
	font-size: 11px;
	font-weight: 700;
}

.cw-seller-line {
	margin: 0 0 8px;
	color: #a57316;
	font-size: 12px;
	font-weight: 800;
}

.cw-seller-line span {
	width: 19px;
	height: 19px;
	display: inline-grid;
	place-items: center;
	margin-right: 6px;
	border-radius: 50%;
	background: #101820;
	color: #fff;
	font-size: 9px;
}

.cw-price-row {
	display: flex;
	justify-content: flex-end;
	min-height: 30px;
	margin-bottom: 10px;
}

.cw-price-row strong {
	color: #e32121;
	font-size: 20px;
	font-weight: 950;
}

.cw-card-actions {
	display: grid;
	grid-template-columns: 38px 1fr 1.15fr;
	gap: 8px;
}

.cw-card-actions-blocked {
	grid-template-columns: 1fr 1fr 1fr;
}

.cw-card-actions-blocked span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 40px;
	border-radius: 4px;
	background: #eef2f6;
	color: #536174;
	font-size: 12px;
	font-weight: 900;
}

.cw-icon-button,
.cw-small-button {
	min-width: 0;
	background: #fff;
	color: #101820;
	box-shadow: inset 0 0 0 1px #cdd6e0;
}

.cw-small-button-dark {
	background: #c3912b;
	color: #fff;
	box-shadow: none;
}

.cw-voucher-band {
	display: grid;
	grid-template-columns: 1fr 290px;
	gap: 24px;
	align-items: center;
	margin-top: 18px;
	padding: 26px 32px;
}

.cw-voucher-band h2 {
	margin: 10px 0;
	font-size: 28px;
	line-height: 1.05;
	font-weight: 950;
}

.cw-voucher-band p {
	max-width: 780px;
	color: #516071;
}

.cw-voucher-band a {
	margin-right: 8px;
	background: #101820;
}

.cw-voucher-band a + a {
	background: #fff;
	color: #101820;
	box-shadow: inset 0 0 0 1px #cdd6e0;
}

.cw-voucher-band strong {
	margin-left: 8px;
}

.cw-gift-card {
	min-height: 178px;
	display: grid;
	align-content: center;
	padding: 24px;
	border-radius: 6px;
	background: linear-gradient(135deg, #101820, #0d0d0e 58%, #a17418);
	color: #fff;
}

.cw-gift-card small {
	justify-self: end;
	font-weight: 950;
	text-transform: uppercase;
}

.cw-gift-card span {
	margin-top: 22px;
	color: #fff;
}

.cw-gift-card strong {
	margin: 0;
	color: #fff;
	font-size: 34px;
}

.cw-gift-card em {
	font-style: normal;
	font-size: 11px;
}

.cw-filter {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 10px;
	margin: 18px 0;
	padding: 14px;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	background: #fff;
}

.cw-filter-more {
	grid-column: 1 / -1;
	display: grid;
	grid-template-columns: repeat(5, minmax(0, 1fr));
	gap: 10px;
}

.cw-checkbox {
	display: flex;
	align-items: center;
	gap: 6px;
}

.cw-clear-filters {
	min-height: 40px;
	display: inline-grid;
	place-items: center;
	border-radius: 4px;
	color: #101820;
	font-size: 13px;
	font-weight: 900;
	text-decoration: none;
	box-shadow: inset 0 0 0 1px #cdd6e0;
}

.cw-form {
	display: grid;
	gap: 14px;
	max-width: 860px;
}

#cattlewise-login-form,
.cw-dashboard-block {
	margin-top: 18px;
	padding: 18px;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	background: #fff;
}

#cattlewise-login-form p {
	display: grid;
	gap: 6px;
	max-width: 440px;
}

#cattlewise-login-form input[type="text"],
#cattlewise-login-form input[type="password"] {
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid #dbe2ea;
	border-radius: 4px;
}

#cattlewise-login-form input[type="submit"] {
	min-height: 42px;
	padding: 0 16px;
	border: 0;
	border-radius: 4px;
	background: #c3912b;
	color: #fff;
	font-weight: 900;
}

.cw-form-grid {
	grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.cw-form label {
	display: grid;
	gap: 6px;
	font-weight: 800;
}

.cw-form textarea {
	min-height: 120px;
	padding-top: 12px;
}

.cw-table {
	width: 100%;
	border-collapse: collapse;
	background: #fff;
}

.cw-table th,
.cw-table td {
	padding: 12px;
	border-bottom: 1px solid #dbe2ea;
	text-align: left;
}

.cw-wallet-grid {
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	margin-bottom: 24px;
}

.cw-wallet-card,
.cw-panel,
.cattlewise-admin-card {
	padding: 18px;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	background: #fff;
}

.cw-wallet-card span,
.cw-panel span,
.cattlewise-admin-card span {
	display: block;
	color: #516071;
}

.cw-wallet-card strong,
.cattlewise-admin-card strong {
	display: block;
	margin-top: 6px;
	font-size: 24px;
}

.cw-action-grid {
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.cw-panel {
	color: #101820;
	text-decoration: none;
}

.cw-panel strong {
	display: block;
	margin-bottom: 6px;
}

.cw-notice {
	margin-bottom: 14px;
	padding: 12px 14px;
	border-radius: 4px;
}

.cw-notice-success {
	background: #e9f6df;
	color: #2f681f;
}

.cw-notice-error {
	background: #fde9e5;
	color: #8a1f12;
}

.cw-disclaimer {
	padding: 14px;
	border-left: 4px solid #c3912b;
	background: #fff8e8;
}

.cattlewise-checkout-wallet,
.cw-product-details {
	margin: 18px 0;
	padding: 18px;
	border: 1px solid #dbe2ea;
	border-radius: 6px;
	background: #fff;
}

.cw-product-details dl {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 12px;
}

.cw-product-details dt {
	color: #516071;
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.cw-product-details dd {
	margin: 0;
	font-weight: 800;
}

@media (max-width: 1180px) {
	.cw-demo-shell {
		grid-template-columns: 1fr;
	}

	.cw-shop-rail {
		display: none;
	}

	.cw-demo-side {
		grid-template-columns: 1fr 1fr;
	}

	.cw-category-grid {
		grid-template-columns: repeat(4, 1fr);
	}
}

@media (max-width: 860px) {
	.cw-proof-strip,
	.cw-product-grid,
	.cw-demo-side,
	.cw-voucher-band {
		grid-template-columns: 1fr 1fr;
	}

	.cw-filter {
		grid-template-columns: 1fr 1fr;
	}

	.cw-filter-more {
		grid-template-columns: 1fr 1fr;
	}
}

@media (max-width: 640px) {
	.cw-demo-shell,
	.cw-proof-strip,
	.cw-section,
	.cw-voucher-band {
		width: min(100% - 18px, 1380px);
	}

	.cw-hero {
		min-height: 500px;
	}

	.cw-hero > div {
		padding: 28px 20px;
	}

	.cw-hero h1 {
		font-size: 38px;
	}

	.cw-search,
	.cw-proof-strip,
	.cw-category-grid,
	.cw-product-grid,
	.cw-demo-side,
	.cw-voucher-band,
	.cw-filter {
		grid-template-columns: 1fr;
	}

	.cw-voucher-band {
		padding: 20px;
	}

	.cw-filter-more,
	.cw-product-grid-list .cw-product-card {
		grid-template-columns: 1fr;
	}
}
