/* Curated landing at the top of the shop page. Scoped to the shop only. */
.kas-shop-landing {
	--kas-shop-ink: #24364b;
	--kas-shop-muted: #6b7a8d;
	--kas-shop-border: #e3e9f0;
	--kas-shop-accent: #ffcc00;
	--kas-shop-soft: #f5f7fa;
	--kas-shop-green: #1f8a4c;
	margin: 0 0 42px;
	color: var(--kas-shop-ink);
}

.kas-shop-landing *,
.kas-shop-landing *::before,
.kas-shop-landing *::after {
	box-sizing: border-box;
}

.kas-shop-hero {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 34px;
	padding: clamp(22px, 4vw, 34px);
	border: 1px solid var(--kas-shop-border);
	border-radius: 18px;
	background:
		radial-gradient(circle at 100% 0, rgba(255, 204, 0, 0.22), transparent 42%),
		linear-gradient(135deg, #ffffff 0%, #f7f9fc 100%);
	box-shadow: 0 12px 32px rgba(36, 54, 75, 0.06);
}

.kas-shop-hero__copy {
	max-width: 640px;
}

.kas-shop-eyebrow {
	margin: 0 0 8px;
	color: #8a6d00;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.kas-shop-hero__title {
	margin: 0 0 10px;
	color: var(--kas-shop-ink);
	font-size: clamp(26px, 3.2vw, 38px);
	font-weight: 800;
	line-height: 1.15;
}

.kas-shop-hero__text {
	margin: 0;
	color: var(--kas-shop-muted);
	font-size: 16px;
	line-height: 1.6;
}

.kas-shop-hero__points {
	margin: 0;
	padding: 0;
	list-style: none;
	min-width: 250px;
}

.kas-shop-hero__points li {
	position: relative;
	margin: 0 0 9px;
	padding-left: 24px;
	color: var(--kas-shop-ink);
	font-size: 14px;
	font-weight: 600;
	line-height: 1.4;
}

.kas-shop-hero__points li:last-child {
	margin-bottom: 0;
}

.kas-shop-hero__points li::before {
	content: "";
	position: absolute;
	left: 0;
	top: 3px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: var(--kas-shop-accent);
	box-shadow: inset 0 0 0 3px #fff;
}

.kas-shop-section {
	margin-bottom: 36px;
}

.kas-shop-section:last-child {
	margin-bottom: 0;
}

.kas-shop-section__head {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 16px;
}

.kas-shop-section__title {
	margin: 0;
	color: var(--kas-shop-ink);
	font-size: clamp(20px, 2.2vw, 26px);
	font-weight: 700;
	line-height: 1.2;
}

.kas-shop-section__hint {
	color: var(--kas-shop-muted);
	font-size: 13px;
}

.kas-shop-section__link {
	color: #8a6d00;
	font-size: 13px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.kas-shop-section__link:hover {
	color: var(--kas-shop-ink);
}

/* Product cards */
.kas-shop-grid {
	display: flex;
	flex-wrap: wrap;
}

.kas-shop-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 24px;
	border: 1px solid var(--kas-shop-border);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 16px rgba(36, 54, 75, 0.04);
	color: var(--kas-shop-ink);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.kas-shop-card:hover,
.kas-shop-card:focus {
	border-color: #d6a900;
	box-shadow: 0 12px 28px rgba(36, 54, 75, 0.12);
	color: var(--kas-shop-ink);
	text-decoration: none;
	transform: translateY(-2px);
}

.kas-shop-card__badge {
	position: absolute;
	top: 12px;
	left: 12px;
	z-index: 1;
	display: inline-block;
	padding: 5px 9px;
	border: 1px solid #e5b800;
	border-radius: 6px;
	background: var(--kas-shop-accent);
	color: #202a36;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.02em;
	line-height: 1.2;
}

.kas-shop-card__media {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 190px;
	padding: 28px 22px 18px;
	background: #fbfcfe;
	border-radius: 14px 14px 0 0;
	overflow: hidden;
}

.kas-shop-card__img {
	display: block;
	max-width: 100%;
	max-height: 150px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.kas-shop-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 16px 18px 18px;
}

.kas-shop-card__note {
	margin-bottom: 5px;
	color: var(--kas-shop-muted);
	font-size: 12px;
	font-weight: 600;
	line-height: 1.35;
}

.kas-shop-card__title {
	display: -webkit-box;
	overflow: hidden;
	margin-bottom: 10px;
	color: var(--kas-shop-ink);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.4;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.kas-shop-card__price {
	margin-top: auto;
	margin-bottom: 12px;
	color: var(--kas-shop-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.kas-shop-card__price .woocommerce-Price-amount {
	font-weight: 700;
}

.kas-shop-card__cta {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-start;
	padding: 8px 13px;
	border-radius: 8px;
	background: var(--kas-shop-accent);
	color: #202a36;
	font-size: 13px;
	font-weight: 700;
	line-height: 1.2;
	text-decoration: none;
}

.kas-shop-card:hover .kas-shop-card__cta,
.kas-shop-card:focus .kas-shop-card__cta {
	background: #f2bd00;
}

/* Licence promo card keeps the six-card grid balanced. */
.kas-shop-card--promo {
	justify-content: flex-start;
	border-color: #e5b800;
	background: linear-gradient(135deg, #fff9dd 0%, #ffffff 100%);
}

.kas-shop-card--promo .kas-shop-card__body {
	justify-content: flex-start;
	padding-top: 8px;
	padding-bottom: 26px;
}

.kas-shop-card__media--promo {
	height: 150px;
	padding: 22px;
	background: transparent;
}

.kas-shop-promo-icon {
	display: block;
	width: 64px;
	height: 64px;
}

.kas-shop-card__badge--soft {
	border-color: #e3e9f0;
	background: #fff;
}

/* Bootstrap 3 rows are float based; make their columns equal-height flex
 * items so the cards line up. The row's table pseudo-elements are removed so
 * they do not become extra flex items. */
.kas-shop-grid::before,
.kas-shop-grid::after,
.kas-shop-cats::before,
.kas-shop-cats::after,
.kas-shop-licenses::before,
.kas-shop-licenses::after {
	display: none;
	content: none;
}

.kas-shop-grid > [class*="col-"],
.kas-shop-cats > [class*="col-"],
.kas-shop-licenses > [class*="col-"] {
	display: flex;
}

.kas-shop-grid > [class*="col-"] > *,
.kas-shop-cats > [class*="col-"] > *,
.kas-shop-licenses > [class*="col-"] > * {
	width: 100%;
}

/* Category tiles */
.kas-shop-cats {
	display: flex;
	flex-wrap: wrap;
}

.kas-shop-cat {
	display: flex;
	flex-direction: column;
	height: 100%;
	min-height: 132px;
	margin-bottom: 24px;
	padding: 18px;
	border: 1px solid var(--kas-shop-border);
	border-radius: 12px;
	background: #fff;
	color: var(--kas-shop-ink);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kas-shop-cat:hover,
.kas-shop-cat:focus {
	border-color: #d6a900;
	box-shadow: 0 10px 24px rgba(36, 54, 75, 0.1);
	color: var(--kas-shop-ink);
	text-decoration: none;
}

.kas-shop-cat--license {
	border-color: #e5b800;
	background: linear-gradient(135deg, #fff9dd 0%, #fff 100%);
}

.kas-shop-cat__name {
	margin-bottom: 6px;
	color: var(--kas-shop-ink);
	font-size: 16px;
	font-weight: 700;
	line-height: 1.3;
}

.kas-shop-cat__desc {
	margin-bottom: 14px;
	color: var(--kas-shop-muted);
	font-size: 13px;
	line-height: 1.45;
}

.kas-shop-cat__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
}

.kas-shop-cat__count {
	color: var(--kas-shop-muted);
	font-size: 12px;
	font-weight: 600;
}

.kas-shop-cat__arrow {
	color: #8a6d00;
	font-size: 18px;
	font-weight: 700;
	line-height: 1;
}

/* Licence strip */
.kas-shop-licenses {
	display: flex;
	flex-wrap: wrap;
}

.kas-shop-license {
	display: flex;
	flex-direction: column;
	height: 100%;
	margin-bottom: 24px;
	padding: 16px;
	border: 1px solid var(--kas-shop-border);
	border-left: 4px solid var(--kas-shop-accent);
	border-radius: 10px;
	background: #fff;
	color: var(--kas-shop-ink);
	text-decoration: none;
	transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.kas-shop-license:hover,
.kas-shop-license:focus {
	border-color: #d6a900;
	border-left-color: #d6a900;
	box-shadow: 0 10px 24px rgba(36, 54, 75, 0.1);
	color: var(--kas-shop-ink);
	text-decoration: none;
}

.kas-shop-license__name {
	margin-bottom: 6px;
	font-size: 15px;
	font-weight: 700;
	line-height: 1.3;
}

.kas-shop-license__price {
	margin-bottom: 12px;
	color: var(--kas-shop-muted);
	font-size: 13px;
	line-height: 1.4;
}

.kas-shop-license__price .woocommerce-Price-amount {
	color: var(--kas-shop-ink);
	font-weight: 700;
}

.kas-shop-license__cta {
	margin-top: auto;
	color: #8a6d00;
	font-size: 12px;
	font-weight: 700;
	text-decoration: underline;
	text-underline-offset: 3px;
}

/* Full catalogue rendered on the page-resolved shop variant. */
.kas-shop-all {
	padding-top: 8px;
	border-top: 1px solid var(--kas-shop-border);
}

.kas-shop-all .products {
	margin-bottom: 0;
}

body.kas-shop-page ul.products:empty {
	display: none;
}

@media (max-width: 767px) {
	.kas-shop-hero {
		padding: 22px;
	}

	.kas-shop-hero__points {
		min-width: 0;
	}

	.kas-shop-card__media {
		height: 170px;
	}

	.kas-shop-cat {
		min-height: 0;
	}
}