/**********************
Clamp fonts
**********************/

.breakdance h1.bde-heading {
	font-size: clamp(32px, 5vw + 1rem, 42px);
}

.breakdance h2.bde-heading {
	font-size: clamp(28px, 4.2vw + 0.5rem, 38px);
}

.breakdance h3.bde-heading {
	font-size: clamp(24px, 3vw + 0.5rem, 32px);
}

.breakdance h4.bde-heading {
	font-size: clamp(18px, 2vw + 0.5rem, 24px);
}

/**********************
Product Thumbs
**********************/

@media (min-width: 768px) {
	/* Layout: thumbnails on the left of the main image */
	.woocommerce div.product div.images {
		display: flex;
		flex-direction: row-reverse;
		gap: 10px;
		align-items: flex-start;
	}

	/* Thumbnail container: stacked vertically, scrollable */
	.breakdance-woocommerce .flex-control-nav {
		display: flex;
		flex-direction: column !important;
		flex-wrap: nowrap !important; /* Prevents wrapping into columns */
		gap: 10px !important;
		max-height: 400px;
		overflow-y: auto;
		overflow-x: hidden;
		width: 90px;
		flex-shrink: 0;
		scrollbar-width: thin;
		scrollbar-color: #aaa transparent;
	}

	.woocommerce div.product .flex-control-thumbs li {
		flex: 0 0 auto; /* Don't grow or shrink */
	}

	/* Fix unwanted spacing */
	.woocommerce div.product .flex-control-thumbs li {
		margin-bottom: 0 !important;
		list-style: none;
	}

	/* Thumbnail image styling */
	.woocommerce div.product .flex-control-thumbs img {
		width: 100%;
		height: auto;
		border: 1px solid #ccc;
		cursor: pointer;
		transition: border-color 0.2s ease;
	}

	.woocommerce div.product .flex-control-thumbs img:hover {
		border-color: #666;
	}

	/* Optional: scrollbar styling for WebKit */
	.breakdance-woocommerce .flex-control-nav::-webkit-scrollbar {
		width: 6px;
	}
	.breakdance-woocommerce .flex-control-nav::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 3px;
	}
	.breakdance-woocommerce .flex-control-nav::-webkit-scrollbar-track {
		background: transparent;
	}
}

@media (max-width: 767px) {
	.breakdance .breakdance-woocommerce .flex-control-nav {
		display: flex;
		flex-direction: row;
		flex-wrap: nowrap;
		overflow-x: auto;
		overflow-y: hidden;
		gap: 10px;
		width: 100%;
		max-width: 100%;
		scrollbar-width: thin;
		scrollbar-color: #aaa transparent;
		padding-bottom: 10px;
	}

	.breakdance .breakdance-woocommerce .flex-control-nav li {
		flex: 0 0 auto;
		width: calc(15% - 5px);
		list-style: none;
	}

	.breakdance .woocommerce div.product .flex-control-thumbs img {
		width: 100%;
		height: auto;
		border: 1px solid #ccc;
		cursor: pointer;
		transition: border-color 0.2s ease;
	}
}

/*************
Rating form 
*************/
.comment-form-rating {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}

#comment-form-rating-label {
	margin-bottom: 0;
}

.comment-form-comment {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

li.review {
    padding: 20px;
    border: 1px solid var(--bdp-border);
}

ol.commentlist {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/**********
Reset variations button 
***********/
.breakdance .bde-wooproductcartbutton form .variations .reset_variations {
    padding: 4px 8px;
    font-size: 12px;
    letter-spacing: 0;
    background-color: var(--bde-palette-color-1-789d5171-fdb9-48f7-967c-f230d64e3b2e);
    color: #fff;
}

/*************
Shop categories
**************/
.product-cat-tree,
.product-cat-tree ul {
	list-style: none;
	margin: 0;
	padding-left: 0;
}

.product-cat-tree li {
	margin-bottom: 0.5em;
	position: relative;
}

.product-cat-tree .cat-row {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 1em;
}

.product-cat-tree .parent-link {
	font-weight: bold;
	text-decoration: none;
	font-size: 16px;
	flex: 1;
	word-wrap: break-word;
	color: var(--bdp-heading);
}

.product-cat-tree .toggle-btn {
	background: none;
	border: none;
	font-weight: bold;
	cursor: pointer;
	font-size: 20px;
	line-height: 1;
	padding: 0;
	width: 1.5em;
	text-align: center;
	color: var(--bde-links-color);
}

.product-cat-tree .child-cats {
	margin-top: 0.25em;
	padding-left: 1em;
	font-size: 14px;
}

.product-cat-tree .child-cats a {
	text-decoration: none !important;
	color: var(--bdp-heading) !important;
}

.product-cat-tree .child-cats a:hover {
	color: var(--bde-links-color) !important;
}

/**************
Price on product page
****************/
.bde-wooproductprice-456-121 .price.price--stackable {
    display: flex;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    margin: 0;
    gap: 8px;
}

.breakdance-woocommerce .entry-summary .price del, .breakdance-woocommerce.bde-wooproductprice .price del, .breakdance-woocommerce ul.products li.product .price del {
	order: -1 !important;
	display: flex;
	flex-direction: column;
}

.breakdance-woocommerce .entry-summary .price .woocommerce-Price-amount, .breakdance-woocommerce.bde-wooproductprice .price .woocommerce-Price-amount, .breakdance-woocommerce ul.products li.product .price .woocommerce-Price-amount {
	display: block !important;
}

/********** variation price ****************/
.woocommerce-variation-price del, .woocommerce-variation-price .woocommerce-Price-amount.amount bdi {
    color: var(--bde-palette-color-2-82a3bcc6-acdb-4213-93ec-590f21c12cb9);
    font-family: "Jim Nightshade", sans-serif;
    font-size: 20px !important;
    font-weight: 500;
}

.woocommerce-variation-price ins .woocommerce-Price-amount.amount bdi {
	color: var(--bde-palette-color-1-789d5171-fdb9-48f7-967c-f230d64e3b2e) !important;
    font-family: "Metal Mania", sans-serif !important;
    font-size: 24px !important;
}