/* ============================================================
   IndustryTech – Produkt widgety: spoločné CSS
   ============================================================ */

/* ---- Kategórie (eyebrow) + Cena a sklad ---- */
/* ===== Spoločné premenné ===== */
.it-eyebrow,
.it-price {
	--itc-navy: #16365F;
	--itc-gold: #F5B301;
	--itc-slate: #3D4D63;
	--itc-muted: #6B7785;
	--itc-border: #E5E9EE;
	--itc-soft: #F5F7FA;
}
.it-eyebrow *,
.it-price * {
	box-sizing: border-box;
}

/* ===== Eyebrow / kategórie ===== */
.it-eyebrow {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--itc-muted);
	line-height: 1.5;
}
.it-eyebrow.no-upper {
	text-transform: none;
	letter-spacing: 0;
}
.it-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	margin-top: .55em;
	background: var(--itc-gold);
	flex: 0 0 auto;
}
.it-eyebrow.no-dash {
	gap: 0;
}
.it-eyebrow.no-dash::before {
	display: none;
}
.it-eyebrow-text {
	min-width: 0;
	overflow-wrap: break-word;
}
.it-eyebrow-name {
	white-space: nowrap;
}
@media (max-width: 767px) {
	.it-eyebrow-name {
		white-space: normal;
	}
}
.it-eyebrow-sep {
	margin: 0 3px;
	color: var(--itc-muted);
	opacity: .7;
}
.it-eyebrow a {
	color: inherit;
	text-decoration: none;
	transition: color .15s;
}
.it-eyebrow a:hover {
	color: var(--itc-navy);
}

/* ===== Cena + sklad ===== */
.it-price {
	color: var(--itc-slate);
}
.it-price.has-card {
	background: var(--itc-soft);
	border: 1px solid var(--itc-border);
	border-radius: 3px;
	padding: 24px 26px;
}

/* Rozloženie vedľa seba */
.it-price--cols {
	display: flex;
	align-items: stretch;
}
.it-price--cols .it-price-col {
	flex: 1 1 0;
	min-width: 0;
}
.it-price--cols .it-pc-price {
	padding-right: 28px;
}
.it-price--cols .it-pc-stock {
	padding-left: 28px;
}
.it-price--cols.has-divider .it-pc-stock {
	border-left: 1px solid var(--itc-border);
}
.it-price--cols .it-price-row {
	margin-bottom: 0;
}

.it-price-label,
.it-stock-label {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 12px;
	font-weight: 600;
	color: var(--itc-muted);
	margin-bottom: 6px;
}
.it-price-row {
	display: flex;
	align-items: baseline;
	gap: 10px;
	flex-wrap: wrap;
	margin-bottom: 12px;
}
.it-price-value {
	font-size: 22px;
	font-weight: 800;
	color: var(--itc-navy);
	line-height: 1.1;
	letter-spacing: -.01em;
}
.it-price-note {
	color: var(--itc-muted);
	font-size: 15px;
	font-weight: 500;
}
.it-stock {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}
.it-stock-badge {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 6px 13px;
	border-radius: 3px;
	font-size: 14px;
	font-weight: 600;
	line-height: 1;
}
.it-stock-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: currentColor;
	flex: 0 0 auto;
}
.it-stock-tail {
	color: var(--itc-muted);
	font-size: 14.5px;
}

.it-stock-badge.state-in   { background: #E7F4EC; color: #1E8E4E; }
.it-stock-badge.state-low  { background: #FCF3E0; color: #B9821B; }
.it-stock-badge.state-out  { background: #FBEAEA; color: #C0392B; }
.it-stock-badge.state-order { background: #FCF3E0; color: #B9821B; }

/* Variant: jednoduchá bodka namiesto badge */
.it-stock.plain .it-stock-badge {
	background: transparent;
	padding: 0;
	color: var(--itc-slate);
}
.it-stock.plain .it-stock-badge.state-in  .it-stock-dot { background: #27AE60; }
.it-stock.plain .it-stock-badge.state-low .it-stock-dot { background: #E0A92B; }
.it-stock.plain .it-stock-badge.state-out .it-stock-dot { background: #C0392B; }
.it-stock.plain .it-stock-badge.state-order .it-stock-dot { background: #E0A92B; }

@media (max-width: 767px) {
	.it-price-value { font-size: 20px; }
	.it-price--cols {
		flex-direction: column;
		gap: 16px;
	}
	.it-price--cols .it-pc-price,
	.it-price--cols .it-pc-stock {
		padding-left: 0;
		padding-right: 0;
	}
	.it-price--cols.has-divider .it-pc-stock {
		border-left: 0;
		border-top: 1px solid var(--itc-border);
		padding-top: 16px;
	}
	.it-price.has-card { padding: 20px; }
}

/* ---- Výhody box ---- */
.it-vyhody {
	--itc-navy: #16365F;
	--itc-gold: #F5B301;
	--itc-muted: #6B7785;
	--itc-border: #E5E9EE;
	--itc-soft: #F5F7FA;
	background: var(--itc-soft);
	border-radius: 3px;
	padding: 28px 32px;
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	row-gap: 24px;
	column-gap: 40px;
}

.it-vyhody * {
	box-sizing: border-box;
}

.it-vyhody.has-accent {
	border-left: 4px solid #d9a000;
}

.it-vyhody-item {
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.it-vyhody-ic {
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 1.5px solid var(--itc-border);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--itc-gold);
}
.it-vyhody-ic svg { width: 18px; height: 18px; }
.it-vyhody-ic i { font-size: 18px; line-height: 1; }

.it-vyhody-title {
	font-weight: 700;
	color: var(--itc-navy);
	font-size: 16px;
	line-height: 1.25;
	margin-bottom: 3px;
}

.it-vyhody-sub {
	color: var(--itc-muted);
	font-size: 14.5px;
	line-height: 1.4;
}

@media (max-width: 767px) {
	.it-vyhody {
		padding: 24px;
	}
}


/* ---- Parametre (spec row) ---- */
.it-specs {
	--itc-navy: #16365F;
	--itc-muted: #6B7785;
	--itc-border: #E5E9EE;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	border-top: 1px solid var(--itc-border);
	border-bottom: 1px solid var(--itc-border);
	padding: 18px 0;
}
.it-specs * { box-sizing: border-box; }
.it-specs-item { padding: 0 28px; }
.it-specs-item:first-child { padding-left: 0; }
.it-specs-item + .it-specs-item { border-left: 1px solid var(--itc-border); }
.it-specs.no-dividers .it-specs-item + .it-specs-item { border-left: 0; }
.it-specs-label {
	text-transform: uppercase;
	letter-spacing: .08em;
	font-size: 12px;
	font-weight: 600;
	color: var(--itc-muted);
	margin-bottom: 10px;
}
.it-specs-value {
	font-size: 20px;
	font-weight: 700;
	color: var(--itc-navy);
	line-height: 1.2;
}
@media (max-width: 767px) {
	.it-specs {
		padding-top: 20px;
		padding-bottom: 20px;
	}
	.it-specs-item,
	.it-specs-item:first-child {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}
	.it-specs-item + .it-specs-item {
		border-left: 0 !important;
		border-top: 1px solid var(--itc-border);
		padding-top: 20px;
		margin-top: 20px;
	}
}

/* ============================================================
   FAQ accordion (tab Časté otázky)
   ============================================================ */
.it-faq {
	--itc-navy: #16365F;
	--itc-gold: #F5B301;
	--itc-slate: #3D4D63;
	--itc-border: #E5E9EE;
	max-width: 860px;
	margin-left: auto;
	margin-right: auto;
	text-align: left;
}
.it-faq * {
	box-sizing: border-box;
	text-align: left;
}
.it-faq-item {
	border: 1px solid var(--itc-border);
	border-left: 3px solid var(--itc-gold);
	background: #fff;
	margin-bottom: 10px;
}
.it-faq-q {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	padding: 16px 18px;
	cursor: pointer;
	list-style: none;
	font-weight: 700;
	font-size: 16px;
	line-height: 1.4;
	color: var(--itc-navy);
}
.it-faq-q::-webkit-details-marker {
	display: none;
}
.it-faq-icon {
	position: relative;
	flex: 0 0 auto;
	width: 14px;
	height: 14px;
}
.it-faq-icon::before,
.it-faq-icon::after {
	content: "";
	position: absolute;
	top: 50%;
	left: 0;
	width: 14px;
	height: 2px;
	margin-top: -1px;
	background: var(--itc-gold);
	transition: transform .2s ease;
}
.it-faq-icon::after {
	transform: rotate(90deg);
}
.it-faq-item[open] .it-faq-icon::after {
	transform: rotate(0deg);
}
.it-faq-a {
	padding: 0 18px 16px;
	color: var(--itc-slate);
	font-size: 15px;
	line-height: 1.65;
}
.it-faq-a p:last-child {
	margin-bottom: 0;
}

/* ============================================================
   Realizácie prepojené s produktom (tab Realizácie)
   ============================================================ */
.it-prel-grid {
	--itc-navy: #16365F;
	text-align: left;
	--itc-gold: #F5B301;
	--itc-slate: #3D4D63;
	--itc-muted: #6B7785;
	--itc-border: #E5E9EE;
	display: grid;
	grid-template-columns: repeat(var(--it-prel-cols, 3), minmax(0, 1fr));
	gap: 24px;
}
.it-prel-grid * {
	box-sizing: border-box;
}
.it-prel-card {
	border: 1px solid var(--itc-border);
	background: #fff;
	display: flex;
	flex-direction: column;
	overflow: hidden;
}
.it-prel-media {
	position: relative;
	padding-top: 62.5%; /* 16:10 – drží výšku aj keď téma prepíše height obrázka */
	overflow: hidden;
	background: #F5F7FA;
}
.it-prel-media img {
	position: absolute;
	inset: 0;
	width: 100% !important;
	height: 100% !important;
	max-width: none;
	object-fit: cover;
	display: block;
	transition: transform .3s ease;
}
.it-prel-card:hover .it-prel-media img {
	transform: scale(1.04);
}
.it-prel-body {
	padding: 18px;
}
.it-prel-eyebrow {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--itc-gold);
	margin-bottom: 6px;
}
.it-prel-title {
	margin: 0 0 8px;
	font-size: 18px;
	line-height: 1.35;
	color: var(--itc-navy);
}
.it-prel-excerpt {
	margin: 0;
	font-size: 14px;
	line-height: 1.6;
	color: var(--itc-muted);
}
@media (max-width: 1024px) {
	.it-prel-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}
@media (max-width: 640px) {
	.it-prel-grid {
		grid-template-columns: 1fr;
	}
}

/* ============================================================
   Produktové videá (shortcode [it_product_videos])
   ============================================================ */
.it-pvideos-sec {
	--itc-navy: #16365F;
	--itc-gold: #F5B301;
	--itc-muted: #6B7785;
	--itc-border: #E5E9EE;
	/* padding namiesto margin – neprepadne pri margin-collapse v Elementor wrapperi */
	padding-top: var(--it-pvideos-gap, 48px);
	text-align: left;
}
.it-pvideos-sec * {
	box-sizing: border-box;
}
.it-pvideos-head {
	margin-bottom: 18px;
}
.it-pvideos-eyebrow {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: var(--itc-gold);
	margin-bottom: 6px;
}
.it-pvideos-eyebrow::before {
	content: "";
	width: 28px;
	height: 2px;
	background: var(--itc-gold);
	flex: 0 0 auto;
}
.it-pvideos-heading {
	margin: 0;
	font-size: 26px;
	line-height: 1.25;
	font-weight: 700;
	color: var(--itc-navy);
}
.it-pvideos {
	display: grid;
	grid-template-columns: 1fr;
	gap: 24px;
}
.it-pvideos.is-multi {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}
.it-pvideo {
	margin: 0;
	position: relative;
	background: #fff;
	border: 1px solid var(--itc-border);
	padding: 10px;
	box-shadow: 0 8px 24px rgba(22, 54, 95, .08);
}
/* Gold rohový akcent vľavo hore */
.it-pvideo::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	width: 42px;
	height: 42px;
	background: var(--itc-gold);
	clip-path: polygon(0 0, 100% 0, 0 100%);
	z-index: 1;
}
.it-pvideo-frame {
	position: relative;
	aspect-ratio: 16 / 9;
	background: #0b1826;
	overflow: hidden;
}
.it-pvideo-frame iframe,
.it-pvideo-frame video {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}
.it-pvideo-title {
	margin: 10px 4px 2px;
	font-size: 14px;
	font-weight: 600;
	color: var(--itc-navy);
}
@media (max-width: 767px) {
	.it-pvideos.is-multi {
		grid-template-columns: 1fr;
	}
	.it-pvideos-heading {
		font-size: 22px;
	}
}
