.kfog-catalog {
	--kfog-primary: #0f5c56;
	--kfog-text: #10171a;
	--kfog-radius: 10px;
	--kfog-cols: 3;
	font-family: var(--kfog-font, inherit);
	color: var(--kfog-text);
}
.kfog-catalog * { box-sizing: border-box; }

.kfog-catalog-empty { color: #888; font-style: italic; }

.kfog-catalog-grid {
	display: grid;
	grid-template-columns: repeat(var(--kfog-cols), 1fr);
	gap: 20px;
}

.kfog-catalog-card {
	border: 1px solid rgba(0,0,0,0.1);
	border-radius: var(--kfog-radius);
	overflow: hidden;
	background: #fff;
	display: flex;
	flex-direction: column;
}

.kfog-catalog-img {
	aspect-ratio: 4 / 3;
	background: #eef1f0 center/cover no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
}
.kfog-catalog-noimg { color: #9aa6a8; font-size: 13px; }

.kfog-catalog-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.kfog-catalog-brand { font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.04em; color: var(--kfog-primary); font-weight: 600; margin-bottom: 4px; }
.kfog-catalog-name { font-size: 16px; font-weight: 600; margin-bottom: 14px; flex: 1; }

.kfog-catalog-btn {
	border: none;
	background: var(--kfog-primary);
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	font-size: 13.5px;
	padding: 10px 16px;
	border-radius: calc(var(--kfog-radius) * 0.6);
	cursor: pointer;
	width: 100%;
}
.kfog-catalog-btn:hover { opacity: 0.9; }

/* ---- Modal ---- */
.kfog-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(10, 20, 20, 0.55);
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 99999;
	padding: 20px;
}

.kfog-modal {
	background: #fff;
	border-radius: var(--kfog-radius);
	padding: 28px;
	max-width: 420px;
	width: 100%;
	position: relative;
	max-height: 90vh;
	overflow-y: auto;
}

.kfog-modal-close {
	position: absolute;
	top: 14px; right: 14px;
	border: none;
	background: transparent;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	color: #888;
}

.kfog-modal-title { margin: 0 0 4px; font-size: 19px; font-weight: 700; }
.kfog-modal-produk { margin: 0 0 18px; color: var(--kfog-primary); font-weight: 600; font-size: 14px; }

.kfog-order-form label { display: block; font-size: 13px; font-weight: 600; margin: 12px 0 5px; }
.kfog-order-form label:first-child { margin-top: 0; }
.kfog-order-form input,
.kfog-order-form textarea {
	width: 100%;
	padding: 10px 12px;
	border: 1px solid rgba(0,0,0,0.15);
	border-radius: calc(var(--kfog-radius) * 0.5);
	font-family: inherit;
	font-size: 14px;
	color: var(--kfog-text) !important;
	background: #fff !important;
	-webkit-text-fill-color: var(--kfog-text);
}
.kfog-order-form input:focus, .kfog-order-form textarea:focus {
	outline: none;
	border-color: var(--kfog-primary);
}

.kfog-order-error { color: #b23b2e; font-size: 13px; margin: 10px 0 0; }

.kfog-order-submit {
	margin-top: 16px;
	width: 100%;
	border: none;
	background: var(--kfog-primary) !important;
	color: #fff !important;
	font-family: inherit;
	font-weight: 600;
	font-size: 14.5px;
	padding: 12px;
	border-radius: calc(var(--kfog-radius) * 0.5);
	cursor: pointer;
}
.kfog-order-submit:disabled { opacity: 0.6; }

.kfog-order-success {
	text-align: center;
	padding: 10px 0;
	font-size: 14.5px;
	line-height: 1.6;
}
.kfog-order-success::before {
	content: "✓";
	display: block;
	width: 44px; height: 44px;
	line-height: 44px;
	border-radius: 50%;
	background: var(--kfog-primary);
	color: #fff;
	font-size: 20px;
	margin: 0 auto 14px;
}

@media (max-width: 640px) {
	.kfog-catalog-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 400px) {
	.kfog-catalog-grid { grid-template-columns: 1fr; }
}
