/* Kenyan Goods – front-end styles. Kept light so the theme's look carries through. */

.kg-price {
	font-size: 1.25em;
	font-weight: 700;
	margin: 0 0 1em;
}

.kg-button,
.kg-button:visited {
	display: inline-block;
	padding: 0.7em 1.4em;
	border: 0;
	border-radius: 4px;
	background: #1f6f43;
	color: #fff;
	font: inherit;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}

.kg-button:hover,
.kg-button:focus {
	background: #17553a;
	color: #fff;
}

.kg-button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
}

.kg-button[disabled] {
	opacity: 0.6;
	cursor: default;
}

/* Listing (blog / category) */
.kg-teaser {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75em 1.25em;
	margin: 1em 0;
}

.kg-teaser .kg-price {
	margin: 0;
}

/* Featured image */
.kg-featured {
	margin: 0 0 1.25em;
}

.kg-featured img {
	display: block;
	max-width: 100%;
	height: auto;
	border-radius: 4px;
}

/* Gallery */
.kg-gallery {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
	gap: 10px;
	margin: 1.5em 0;
}

.kg-gallery-item {
	display: block;
	aspect-ratio: 1 / 1;
	overflow: hidden;
	border-radius: 4px;
}

.kg-gallery-item img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.kg-gallery-item:hover img,
.kg-gallery-item:focus img {
	transform: scale(1.04);
}

.kg-lightbox {
	max-width: 92vw;
	max-height: 92vh;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.kg-lightbox::backdrop {
	background: rgba(0, 0, 0, 0.85);
}

.kg-lightbox img {
	display: block;
	max-width: 92vw;
	max-height: 92vh;
	width: auto;
	height: auto;
}

.kg-lightbox-close {
	position: absolute;
	top: -14px;
	right: -14px;
	width: 34px;
	height: 34px;
	border: 0;
	border-radius: 50%;
	background: #fff;
	color: #000;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
}

/* Quote request */
.kg-quote {
	margin: 2em 0;
}

.kg-quote-form {
	max-width: 520px;
	margin-top: 1.25em;
}

.kg-quote-form[hidden] {
	display: none;
}

.kg-quote-form p {
	margin: 0 0 1em;
}

.kg-quote-form label {
	display: block;
	margin-bottom: 0.3em;
	font-weight: 600;
}

.kg-quote-form input[type="text"],
.kg-quote-form input[type="email"],
.kg-quote-form input[type="number"],
.kg-quote-form textarea {
	width: 100%;
	box-sizing: border-box;
	padding: 0.6em 0.7em;
	border: 1px solid #8c8f94;
	border-radius: 4px;
	font: inherit;
}

.kg-quote-form input[type="number"] {
	max-width: 140px;
}

/* Honeypot – hidden from people, visible to bots. */
.kg-hp {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.kg-quote-status {
	margin: 1em 0 0;
	padding: 0.7em 1em;
	border-left: 4px solid;
	border-radius: 2px;
}

.kg-quote-status.kg-success {
	border-color: #1f6f43;
	background: #edf7f1;
	color: #14472b;
}

.kg-quote-status.kg-error {
	border-color: #b32d2e;
	background: #fcf0f1;
	color: #8a2424;
}
