/* Layerhaus Renk — ürün sayfası swatch'ları (konfigüratör tasarımıyla aynı dil) */

/* Form mantığı için select DOM'da kalır, görünmez */
.lh-renk-select {
	display: none;
}

/* Başlık satırı: "Renk" solda, seçili rengin adı sağda */
.lh-renk-header {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 6px;
}

.lh-renk-label {
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
}

.lh-renk-secili {
	font-size: 14px;
	color: #555;
}

/* Swatch grid: her satırda 6 renk, yuvarlatılmış dikdörtgen kartlar */
.lh-renk-swatches {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 10px;
	margin: 8px 0 4px;
}

.lh-renk-swatch {
	width: 100%;
	height: 48px;
	padding: 0;
	border: 1px solid rgba(0, 0, 0, 0.12);
	border-radius: 12px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: border-color 0.15s ease;
}

.lh-renk-swatch:hover {
	border-color: rgba(0, 0, 0, 0.4);
}

/* Seçili renk: ortada beyaz nokta (açık renklerde görünsün diye ince kontur) */
.lh-renk-swatch.lh-active::after {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.18);
}

.lh-renk-swatch.lh-disabled {
	opacity: 0.25;
	cursor: not-allowed;
}

/* Woo varyasyon tablosu: Bricks'in çizgilerini (divider), %50 hücre
   genişliğini ve 15px dolguları sıfırla — düz, tam genişlik blok akışı */
.brxe-product-add-to-cart form.cart table.variations,
.brxe-product-add-to-cart form.cart table.variations tbody,
.brxe-product-add-to-cart form.cart table.variations tr,
.brxe-product-add-to-cart form.cart table.variations th,
.brxe-product-add-to-cart form.cart table.variations td {
	display: block;
	width: 100%;
	border: none !important;
	background: transparent;
	padding: 0;
	margin: 0;
}

/* Bricks'in gizlediği satırlar gizli kalsın (yukarıdaki display:block ezmesin) */
.brxe-product-add-to-cart form.cart table.variations tr:has(td[colspan]) {
	display: none;
}

.brxe-product-add-to-cart form.cart table.variations th.label {
	text-align: left;
	font-size: 17px;
	font-weight: 600;
	color: #1a1a1a;
	padding-bottom: 4px;
}

/* Renk satırında etiket bizim başlık satırımızdan gelir; Woo'nunki gizlenir */
.brxe-product-add-to-cart form.cart table.variations tr:has(.lh-renk-header) th.label {
	display: none;
}

/* Galeri değişiminde yumuşak geçiş */
.brxe-image-gallery img {
	transition: opacity 0.2s ease;
}

.lh-gal-fading {
	opacity: 0;
}
