/* Cylinderhead — alap stílusok (spec-szerinti elemekhez) */

:root {
	--ch-color-instock: #198754;
	--ch-color-incoming: #fd7e14;
	--ch-color-orderable: #6c757d;
	--ch-color-accent: #1d3557;
	--ch-color-accent-strong: #0b1d3a;
}

/* === Státusz badge === */
.ch-badge {
	display: inline-block;
	padding: 4px 10px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #fff;
	background: var(--ch-color-instock);
	line-height: 1.4;
}
.ch-badge--instock { background: var(--ch-color-instock); }
.ch-badge--incoming { background: var(--ch-color-incoming); }
.ch-badge--orderable { background: var(--ch-color-orderable); }
.ch-badge--large {
	font-size: 14px;
	padding: 6px 14px;
}
.ch-eta {
	font-weight: 500;
	opacity: 0.92;
}

/* === Termékoldal státuszblokk + minőségjelölők === */
.ch-single-status {
	margin: 12px 0 20px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}
.ch-quality-flags {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 16px;
}
.ch-flag {
	font-size: 13px;
	color: var(--ch-color-accent);
	font-weight: 600;
}

/* === Másodlagos ajánlatkérés link (Add-to-cart alá) === */
.ch-quote-secondary {
	margin-top: 10px;
	font-size: 13px;
}
.ch-quote-link {
	color: var(--ch-color-accent);
	text-decoration: underline dotted;
}
.ch-quote-link:hover {
	color: var(--ch-color-accent-strong);
}

/* === Globális minőségjelölő csík (footer fölé) === */
.ch-quality-strip {
	background: var(--ch-color-accent);
	color: #fff;
	padding: 10px 16px;
	text-align: center;
	font-size: 13px;
	letter-spacing: 0.02em;
}
.ch-quality-strip__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px 18px;
	align-items: center;
}
@media (max-width: 600px) {
	.ch-quality-strip__inner span[aria-hidden="true"] { display: none; }
}

/* === Top header strip (tel + email + üzenet) === */
.ch-top-strip {
	background: var(--ch-color-accent-strong);
	color: #fff;
	font-size: 13px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
.ch-top-strip__inner {
	max-width: 1200px;
	margin: 0 auto;
	padding: 7px 16px;
	display: flex;
	flex-wrap: wrap;
	gap: 6px 22px;
	align-items: center;
}
.ch-top-strip__contact {
	color: #fff !important;
	text-decoration: none !important;
	font-weight: 600;
	display: inline-flex;
	gap: 6px;
	align-items: center;
}
.ch-top-strip__contact:hover {
	text-decoration: underline !important;
}
.ch-top-strip__hours {
	opacity: 0.85;
}
.ch-top-strip__msg {
	margin-left: auto;
	font-size: 12px;
	opacity: 0.85;
}
@media (max-width: 768px) {
	.ch-top-strip__msg { display: none; }
	.ch-top-strip__hours { display: none; }
}

/* === Search form (cikkszám-kereső) === */
.ch-search-form {
	max-width: 720px;
	margin: 24px auto;
	padding: 18px;
	background: #f5f7fa;
	border-radius: 10px;
	border: 1px solid #e2e6ea;
}
.ch-search-form__label {
	display: block;
	font-weight: 600;
	margin-bottom: 8px;
	color: var(--ch-color-accent);
}
.ch-search-form__row {
	display: flex;
	gap: 8px;
}
.ch-search-form__row input[type="search"] {
	flex: 1;
	padding: 10px 12px;
	border: 1px solid #ccd1d8;
	border-radius: 6px;
	font-size: 15px;
}
.ch-search-form__btn {
	background: var(--ch-color-accent);
	color: #fff;
	border: 0;
	padding: 10px 20px;
	border-radius: 6px;
	cursor: pointer;
	font-weight: 600;
}
.ch-search-form__btn:hover { background: var(--ch-color-accent-strong); }
.ch-search-form__hint {
	margin: 8px 0 0;
	color: #555;
	font-size: 12px;
}

.ch-empty {
	padding: 40px 16px;
	text-align: center;
	color: #777;
	font-style: italic;
}

/* === Brand grid (gyártó-tile-ok a főoldalon) === */
.ch-brand-grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 4), 1fr);
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}
.ch-brand-card {
	display: block;
	background: var(--g, linear-gradient(135deg, #1d3557 0%, #0b1d3a 100%));
	color: var(--fg, #fff) !important;
	border-radius: 12px;
	padding: 24px 18px;
	text-decoration: none !important;
	transition: transform 0.2s, box-shadow 0.2s;
	box-shadow: 0 4px 14px rgba(0,0,0,0.08);
	overflow: hidden;
	position: relative;
	min-height: 160px;
}
.ch-brand-card::after {
	content: '→';
	position: absolute;
	right: 16px;
	top: 16px;
	font-size: 22px;
	opacity: 0.4;
	transition: all 0.2s;
}
.ch-brand-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 28px rgba(0,0,0,0.18);
}
.ch-brand-card:hover::after {
	opacity: 1;
	right: 12px;
}
.ch-brand-card__inner {
	display: flex;
	flex-direction: column;
	gap: 6px;
	height: 100%;
	justify-content: flex-end;
}
.ch-brand-card__monogram {
	font-size: 56px;
	font-weight: 900;
	line-height: 1;
	margin-bottom: 12px;
	letter-spacing: -0.04em;
	opacity: 0.85;
}
.ch-brand-card__logo {
	max-height: 56px;
	max-width: 70%;
	object-fit: contain;
	object-position: left center;
	margin-bottom: 14px;
	opacity: 0.95;
	/* brightness(0) invert(1) → minden nem-átlátszó pixel fehérré válik
	   (a Wikipedia-féle színes SVG-k is); drop-shadow visszaadja a "lebegő" érzetet */
	filter: brightness(0) invert(1) drop-shadow(0 2px 4px rgba(0,0,0,0.25));
}
.ch-brand-card__name {
	font-size: 18px;
	font-weight: 800;
	letter-spacing: -0.01em;
}
.ch-brand-card__count {
	font-size: 13px;
	opacity: 0.85;
	font-weight: 600;
}
@media (max-width: 900px) {
	.ch-brand-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
	.ch-brand-grid { grid-template-columns: 1fr; }
}

/* === Quote selector (ajánlatkérés) — szűrő-szerű pre-form === */
.ch-qs {
	background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
	border-radius: 14px;
	padding: 28px;
	margin: 0 0 32px;
	border: 1px solid #e2e6ea;
}
.ch-qs__header {
	text-align: center;
	margin-bottom: 22px;
}
.ch-qs__header h2 {
	color: #1d3557;
	font-size: 24px;
	font-weight: 800;
	margin: 0 0 8px;
}
.ch-qs__header p {
	color: #5b6471;
	margin: 0;
}
.ch-qs__row {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 14px;
}
.ch-qs__field {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ch-qs__label {
	font-size: 13px;
	font-weight: 700;
	color: #1d3557;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ch-qs__label small {
	font-weight: 500;
	text-transform: none;
	color: #888;
	font-size: 11px;
}
.ch-qs select {
	padding: 10px 12px;
	border: 1px solid #ccd1d8;
	border-radius: 6px;
	font-size: 15px;
	background: #fff;
	width: 100%;
}
.ch-qs select:disabled {
	background: #eef0f3;
	color: #888;
	cursor: not-allowed;
}
.ch-qs__match {
	background: #fff;
	border: 1px solid #d6dadf;
	border-radius: 8px;
	padding: 16px;
	margin-top: 16px;
}
.ch-qs__match-label {
	font-size: 13px;
	font-weight: 700;
	color: #198754;
	margin-bottom: 8px;
}
.ch-qs__match-list {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.ch-qs__match-item {
	display: flex;
	justify-content: space-between;
	gap: 10px;
	padding: 8px 12px;
	background: #f5f7fa;
	border-radius: 6px;
	color: #1d3557 !important;
	text-decoration: none !important;
	font-size: 14px;
}
.ch-qs__match-item:hover {
	background: #ffe6d1;
}
.ch-qs__match-item span {
	font-family: monospace;
	color: #ff7e29;
	font-weight: 700;
}
.ch-qs__actions {
	display: flex;
	gap: 12px;
	align-items: center;
	margin-top: 22px;
	flex-wrap: wrap;
}
.ch-qs__cta {
	background: #ff7e29;
	color: #fff;
	border: 0;
	padding: 14px 26px;
	border-radius: 8px;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	box-shadow: 0 4px 14px rgba(255,126,41,0.3);
}
.ch-qs__cta:hover:not(:disabled) {
	background: #ff6a0c;
}
.ch-qs__cta:disabled {
	opacity: 0.45;
	cursor: not-allowed;
	box-shadow: none;
}
.ch-qs__reset {
	background: transparent;
	color: #5b6471;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	font-size: 13px;
}
.ch-qs__hint {
	color: #888;
	font-size: 12px;
	font-style: italic;
}
@media (max-width: 700px) {
	.ch-qs__row { grid-template-columns: 1fr; }
}

/* === Container fix: a Woo "result-count" és "breadcrumb" középre, 1200px-be ===
   FONTOS: !important kell a Woo saját margin-szabályaival szemben. */
.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb,
.woocommerce-result-count,
.woocommerce-ordering,
nav.woocommerce-pagination,
.ch-results-count {
	max-width: 1200px !important;
	margin-left: auto !important;
	margin-right: auto !important;
	padding-left: 24px !important;
	padding-right: 24px !important;
	box-sizing: border-box;
}
.woocommerce .woocommerce-breadcrumb,
.woocommerce-breadcrumb {
	margin-top: 16px !important;
	margin-bottom: 0 !important;
}
.woocommerce-result-count,
.ch-results-count {
	margin-top: 12px !important;
	margin-bottom: 12px !important;
}
nav.woocommerce-pagination {
	margin-top: 32px !important;
	margin-bottom: 32px !important;
}

/* === Footer payment row (SimplePay + bankkártya logók) === */
.ch-payment-row {
	background: #1d3557;
	color: rgba(255,255,255,0.92);
	padding: 18px 16px;
	border-bottom: 1px solid rgba(255,255,255,0.08);
}
.ch-payment-row__inner {
	max-width: 1200px;
	margin: 0 auto;
	display: flex;
	flex-wrap: wrap;
	gap: 16px 28px;
	align-items: center;
	justify-content: center;
}
.ch-payment-row__label {
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: rgba(255,255,255,0.75);
}
.ch-payment-row__simplepay {
	display: inline-flex;
	align-items: center;
	transition: opacity 0.15s;
}
.ch-payment-row__simplepay:hover {
	opacity: 0.78;
}
.ch-payment-row__simplepay img {
	display: block;
	height: 38px;
	width: auto;
	max-width: 100%;
}
.ch-payment-row__cards {
	display: block;
	height: 18px;
	width: auto;
	max-width: 100%;
	background: #fff;
	padding: 3px 6px;
	border-radius: 3px;
	opacity: 0.85;
}
@media (max-width: 600px) {
	.ch-payment-row__inner {
		flex-direction: column;
		gap: 12px;
	}
	.ch-payment-row__label {
		font-size: 12px;
	}
}

/* === Floating cart FAB === */
.ch-fab-cart {
	position: fixed;
	right: 22px;
	bottom: 22px;
	z-index: 9999;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 10px 18px 10px 14px;
	background: #ff7e29;
	color: #fff !important;
	border-radius: 999px;
	box-shadow: 0 8px 24px rgba(255, 126, 41, 0.42), 0 2px 8px rgba(0,0,0,0.1);
	font-weight: 700;
	text-decoration: none !important;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
	will-change: transform;
}
.ch-fab-cart:hover,
.ch-fab-cart:focus {
	background: #ff6a0c;
	color: #fff !important;
	transform: translateY(-3px) scale(1.03);
	box-shadow: 0 14px 32px rgba(255, 126, 41, 0.55), 0 2px 8px rgba(0,0,0,0.12);
}
.ch-fab-cart.is-empty {
	background: #1d3557;
	box-shadow: 0 6px 18px rgba(29, 53, 87, 0.35);
	opacity: 0.92;
}
.ch-fab-cart.is-empty:hover {
	background: #0b1d3a;
	box-shadow: 0 10px 24px rgba(29, 53, 87, 0.45);
}

.ch-fab-cart__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	background: rgba(255,255,255,0.18);
	border-radius: 50%;
	flex-shrink: 0;
}
.ch-fab-cart__count {
	position: absolute;
	top: -6px;
	right: -6px;
	min-width: 22px;
	height: 22px;
	padding: 0 6px;
	background: #fff;
	color: #ff7e29;
	font-size: 12px;
	font-weight: 800;
	border-radius: 999px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,0.18);
}
.ch-fab-cart.is-empty .ch-fab-cart__count {
	color: #1d3557;
}
.ch-fab-cart__total {
	font-size: 14px;
	letter-spacing: -0.01em;
	white-space: nowrap;
}

/* Pulse animation when item gets added (data-attr toggled by Woo fragment refresh) */
@keyframes ch-fab-pop {
	0%   { transform: scale(1); }
	30%  { transform: scale(1.18); }
	60%  { transform: scale(0.96); }
	100% { transform: scale(1); }
}
.ch-fab-cart.is-pulse {
	animation: ch-fab-pop 0.45s ease;
}

/* Mobil: kicsit kompaktabb, csak ikon + badge (összeg elrejtve) */
@media (max-width: 600px) {
	.ch-fab-cart {
		right: 16px;
		bottom: 16px;
		padding: 12px;
		gap: 0;
	}
	.ch-fab-cart__total {
		display: none;
	}
}

/* === Termékszűrő === */
.ch-filter {
	background: #f5f7fa;
	border: 1px solid #e2e6ea;
	border-radius: 10px;
	padding: 18px;
	margin: 0 0 24px;
}
.ch-filter__row {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 14px;
	align-items: end;
}
.ch-filter__row + .ch-filter__row {
	margin-top: 14px;
	padding-top: 14px;
	border-top: 1px dashed #d6dadf;
}
.ch-filter__row--actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
}
.ch-filter__field {
	display: flex;
	flex-direction: column;
	gap: 4px;
	border: 0;
	padding: 0;
	margin: 0;
}
.ch-filter__label {
	font-size: 13px;
	font-weight: 600;
	color: #1d3557;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}
.ch-filter select {
	width: 100%;
}
.ch-filter select:disabled {
	background: #eef0f3;
	color: #888;
	cursor: not-allowed;
}
.ch-filter fieldset.ch-filter__field {
	display: block;
}
.ch-filter fieldset.ch-filter__field label {
	display: inline-flex;
	gap: 4px;
	margin-right: 14px;
	font-weight: 400;
	font-size: 14px;
	cursor: pointer;
}
.ch-filter__btn {
	background: #1d3557;
	color: #fff;
	border: 0;
	padding: 10px 22px;
	border-radius: 6px;
	font-weight: 600;
	cursor: pointer;
}
.ch-filter__btn:hover {
	background: #0b1d3a;
}
.ch-filter__reset {
	color: #1d3557;
	text-decoration: underline;
	font-size: 13px;
}
.ch-filter__hint {
	color: #555;
	font-size: 12px;
	font-style: italic;
}
.ch-filter--compact .ch-filter__row--secondary {
	display: none;
}
@media (max-width: 480px) {
	.ch-filter__row { grid-template-columns: 1fr; }
}
