/* Bairo Vzorník – Frontend styly
 * Vše je scopováno pod .bv-sampler pro ochranu před Divi theme.
 */

/* ============================================================
   Reset Divi interferencí
   ============================================================ */
.bv-sampler *,
.bv-sampler *::before,
.bv-sampler *::after {
	box-sizing: border-box;
}

.bv-sampler button {
	font-family: inherit;
	line-height: 1.4;
}

/* ============================================================
   Wrapper
   ============================================================ */
.bv-sampler {
	max-width: 1250px;
	margin: 0 auto;
	font-family: 'Montserrat', sans-serif;
	color: inherit;
}

/* ============================================================
   Sekce – nadpisy
   ============================================================ */
.bv-section { margin-bottom: 32px; }

.bv-section--products { margin-bottom: 56px; }

.bv-section__title {
	font-family: 'Montserrat', sans-serif;
	font-size: 1.4em;
	font-weight: 700;
	color: #1a73c8;
	margin: 0 0 25px;
	padding: 0;
	text-transform: none;
	letter-spacing: 0;
}

/* ============================================================
   Sekce 1 – Výběr produktu
   ============================================================ */
.bv-product-selector {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
}

.bv-product-btn {
	padding: 10px 18px;
	border: 2px solid #d0d0d0;
	border-radius: 5px;
	background: #fff;
	cursor: pointer;
	font-weight: 600;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #333;
	transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.bv-product-btn:hover {
	border-color: #1a73c8;
	color: #1a73c8;
}

.bv-product-btn.is-active {
	border-color: #1a73c8;
	background: #1a73c8;
	color: #fff;
}

/* ============================================================
   Spodní dvousloupcový layout
   ============================================================ */
.bv-layout {
	display: flex;
	gap: 40px;
	align-items: flex-start;
}

.bv-section--colors {
	flex: 0 0 38%;
	min-width: 200px;
}

.bv-section--preview {
	flex: 1;
}

/* ============================================================
   Sekce 2 – Paleta barev
   ============================================================ */
.bv-color-set {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.bv-color-swatch {
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 72px;
	padding: 6px;
	border: 2px solid transparent;
	border-radius: 5px;
	background: none;
	cursor: pointer;
	transition: border-color 0.15s;
}

.bv-color-swatch:hover {
	border-color: #aaa;
}

.bv-color-swatch.is-active {
	border-color: #1a73c8;
}

.bv-swatch__color {
	display: block;
	width: 52px;
	height: 52px;
	border-radius: 4px;
	border: 1px solid rgba(0, 0, 0, 0.12);
	margin-bottom: 6px;
}

.bv-swatch__label {
	font-size: 10px;
	text-align: center;
	line-height: 1.3;
	color: #444;
	word-break: break-word;
}

.bv-no-colors {
	color: #888;
	font-style: italic;
}

/* ============================================================
   Sekce 3 – Náhled prostředí
   ============================================================ */

/* Záložky scén */
.bv-scene-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	margin-bottom: 12px;
}

.bv-scene-tab {
	padding: 6px 14px;
	border: none;
	border-bottom: 3px solid transparent;
	background: none;
	cursor: pointer;
	font-size: 14px;
	color: #555;
	transition: color 0.15s, border-color 0.15s;
}

.bv-scene-tab:hover {
	color: #1a73c8;
}

.bv-scene-tab.is-active {
	border-bottom-color: #1a73c8;
	color: #1a73c8;
	font-weight: 700;
}

/* Obrázek */
.bv-preview-wrap {
	position: relative;
	display: block;
	width: 100%;
	border-radius: 6px;
	overflow: hidden;
	background: #f0f0f0;
	line-height: 0;
}

.bv-preview-img {
	display: block;
	width: 100%;
	height: auto;
	border-radius: 6px;
}

/* Barevný čtvereček – vpravo dole v obrázku */
.bv-color-indicator {
	position: absolute;
	bottom: 16px;
	right: 16px;
	width: 52px;
	height: 52px;
	border-radius: 5px;
	border: 3px solid #fff;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
	opacity: 0;
	transition: opacity 0.25s;
}

.bv-color-indicator.is-visible {
	opacity: 1;
}

/* Popis výběru */
.bv-selection-label {
	margin: 10px 0 0;
	font-size: 13px;
	color: #555;
	min-height: 1.4em;
}

/* ============================================================
   Prázdný stav
   ============================================================ */
.bv-empty {
	color: #888;
	font-style: italic;
}

/* Scene tabs s thumbnaily */
.bv-sampler .bv-scene-tab--has-thumb {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 4px;
	padding: 4px 8px;
	min-width: 80px;
}
.bv-sampler .bv-scene-tab__thumb {
	display: block;
	width: 72px;
	height: 52px;
	object-fit: cover;
	border-radius: 3px;
	border: 2px solid transparent;
	transition: border-color .15s;
}
.bv-sampler .bv-scene-tab.is-active .bv-scene-tab__thumb {
	border-color: #0073aa;
}
.bv-sampler .bv-scene-tab__label {
	font-size: 11px;
}

/* ============================================================
   Responzivita
   ============================================================ */
@media ( max-width: 768px ) {
	.bv-layout {
		flex-direction: column;
	}

	.bv-section--colors {
		flex: none;
		width: 100%;
	}

	.bv-product-btn {
		font-size: 12px;
		padding: 8px 12px;
	}

	.bv-color-swatch {
		width: 60px;
	}

	.bv-swatch__color {
		width: 44px;
		height: 44px;
	}
}
