/* Consulting Prioritet – katalog. Boje prate temu Zajec inženjeringa. */
:root { --cp-k-accent: #e0ab00; --cp-k-dark: #13182c; }
.cp-brandbar {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px 24px;
	margin: 0 0 28px;
	padding: 14px 20px;
	background: #fff;
	border: 1px solid #e3e5e8;
	border-left: 5px solid var(--cp-k-accent);
	border-radius: 6px;
	color: var(--cp-k-dark);
	font-size: 15px;
	font-family: inherit;
	line-height: 1.35;
	clear: both;
	width: 100%;
	max-width: none;
	box-sizing: border-box;
}
.cp-brandbar__logo { flex: 0 0 auto; line-height: 0; }
.cp-brandbar__logo img { display: block; width: 170px; max-width: 100%; height: auto; }
.cp-brandbar__text { flex: 1 1 260px; min-width: 0; }
.cp-brandbar__text strong { display: block; font-size: 17px; color: var(--cp-k-dark); }
.cp-brandbar__text span { color: #5b6672; }
.cp-brandbar__nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.cp-brandbar__nav a { color: var(--cp-k-dark); border-bottom: 2px solid var(--cp-k-accent); font-weight: 600; text-decoration: none; }
.cp-brandbar__nav a:hover, .cp-brandbar__nav a:focus { color: var(--cp-k-accent); }

.cp-inquiry-wrap { margin: 18px 0 6px; }
.cp-inquiry-note { margin: 0 0 18px; font-size: 14px; color: #5b6672; }

@media (max-width: 600px) {
	.cp-brandbar { padding: 12px 14px; }
	.cp-brandbar__logo img { width: 140px; }
}

.cp-section-logo img { width: 320px; max-width: 100%; height: auto; }
.woocommerce ul.products li.product-category img { aspect-ratio: 1; object-fit: contain; width: 100%; background: #fff; }

/* Gumb za upit: izgled preuzima od teme stranice (.woocommerce .button); ovo je samo rezerva. */
:where(.cp-inquiry) { background: var(--cp-k-accent); color: #fff; border: 0; border-radius: 4px; font: inherit; font-weight: 600; padding: 11px 18px; cursor: pointer; }
.woocommerce ul.products li.product .cp-inquiry { margin-top: 10px; }

/* Obrasci */
.cp-form { display: grid; gap: 14px; max-width: 640px; }
.cp-form label { display: block; font-weight: 600; font-size: 15px; color: var(--cp-k-dark); }
.cp-form label input, .cp-form label textarea { display: block; margin-top: 6px; }
.cp-form label span { color: #c0392b; }
.cp-form input[type="text"], .cp-form input[type="email"], .cp-form input[type="tel"], .cp-form textarea { width: 100%; box-sizing: border-box; padding: 11px 12px; border: 1px solid #c9ced4; border-radius: 6px; background: #fff; color: var(--cp-k-dark); font: inherit; font-weight: 400; }
.cp-form input:focus, .cp-form textarea:focus { outline: 2px solid var(--cp-k-accent); outline-offset: 1px; border-color: var(--cp-k-accent); }
.cp-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cp-form button { justify-self: start; }
.cp-honey { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }
.cp-form-status { padding: 12px 16px; border-radius: 6px; background: #e8f6ec; border: 1px solid #9fd3ad; color: #14532d; font-weight: 600; }
.cp-form-status.error { background: #fdecea; border-color: #f0a8a3; color: #8a1410; }

/* Prozor za upit */
.cp-inquiry-dialog { width: min(520px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 0; border-radius: 14px; padding: 28px; box-sizing: border-box; background: #fff; color: var(--cp-k-dark); box-shadow: 0 30px 80px rgba(13, 20, 28, .45); }
.cp-inquiry-dialog::backdrop { background: rgba(13, 20, 28, .6); }
.cp-inquiry-dialog h2 { margin: 4px 0 14px; font-size: 26px; line-height: 1.15; }
.cp-dialog-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--cp-k-accent); }
.cp-inquiry-close { position: absolute; top: 12px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 50%; background: #f1f2f4; color: var(--cp-k-dark); font-size: 22px; line-height: 1; cursor: pointer; padding: 0; }
.cp-inquiry-close:hover { background: #e2e5e9; }
.cp-inquiry-product-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0 0 18px; padding: 12px 14px; background: #f4f2ee; border-radius: 8px; }
.cp-inquiry-product { margin: 0; font-weight: 700; }
.cp-inquiry-image { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 6px; flex: none; }

/* Kartice proizvoda, karta, slike metoda */
.cp-spec-table { width: 100%; border-collapse: collapse; }
.cp-spec-table th, .cp-spec-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #e3e5e8; }
.cp-spec-table th { width: 34%; font-weight: 600; background: #f7f7f8; }
.cp-detail-list { padding-left: 20px; }
.cp-detail-list li { margin: 4px 0; }
.cp-map iframe { display: block; width: 100%; height: 380px; border: 0; border-radius: 8px; }
.cp-method-img img { max-width: 100%; height: auto; border: 1px solid #e3e5e8; border-radius: 6px; }
.cp-owner-photo img { width: 245px; max-width: 100%; height: auto; border-radius: 8px; }

@media (max-width: 600px) {
	.cp-form-row { grid-template-columns: 1fr; }
	.cp-inquiry-dialog { padding: 22px 18px; }
	.cp-spec-table th { width: 42%; }
}
