/* Add your custom styles here */
section { 
    max-width: var(--max-width);
    margin: 0 auto;
    padding: var(--padding-horizontal) var(--padding-vertical);
}


/* Hiding class, making content visible only to screen readers but not visually */
/* "sr" meaning "screen-reader" */
button {
	background: none;
	border: none;
}
.sr-only:not(:focus):not(:active) {
  clip: rect(0 0 0 0); 
  clip-path: inset(50%);
  height: 1px;
  overflow: hidden;
  position: absolute;
  white-space: nowrap; 
  width: 1px;
}


/* Primary Navigation */
.primary-navigation {
	--menu-duration: 300ms;
	display: flex;
	list-style: none;
	padding: 0;
	margin:0;
	gap:var(--size-fluid-300, 0);
	a {
		text-decoration: none;
		color: inherit;
		padding: var(--size-fluid-300, 1rem) var(--size-fluid-500, 1rem);
		display: block;
		font-weight: 700;
		text-transform: uppercase;
		/* &:hover {
			text-decoration: underline;
		} */
	}
	li {
		position: relative;
		&:after{
			transform: scaleY(0);
    		transform-origin: bottom;
			content: "";
			position: absolute;
			bottom: 0;
			left:0;
			width:100%;
			height: 3px;
			display: block;
			background-color: var(--brand);
			transition: var(--menu-duration) transform ease, 
						var(--menu-duration) opacity ease,
						var(--menu-duration) background-color ease;
			pointer-events: none;
			backface-visibility: hidden;
			opacity: 0;
		}

		&:hover:after,
		&.current-menu-item:after {
			transition: var(--menu-duration) transform ease,
						var(--menu-duration) opacity ease,
						var(--menu-duration) background-color ease;
			transform: none;
			opacity: 1;
			will-change: transform, opacity;
		}
	}
	.sub-menu {
		position: absolute;
		top:100%;
		left: 0;
		background: var(--white);

		list-style: none;
		padding: 0.5rem 0;
		margin:0;

		box-shadow: 2px 2px 4px 2px #0000004D;
		border-bottom-left-radius: var(--size-fluid-300);
		border-bottom-right-radius: var(--size-fluid-300);

		transform: translateY(-10px);
		max-height:0 ;
		overflow: auto;
		opacity: 0;
		visibility: hidden;

		/* animatie */
		/* transition: max-height 0.3s ease, opacity 0.3s ease; */
		/* transition: transform 0.3s ease, opacity 0.3s ease; */
		transition:
			max-height 300ms ease,
			opacity 250ms ease,
			transform 300ms ease,
			visibility 0s linear 300ms; /* verberg na animatie */
		will-change: max-height, opacity, transform;

		li { 
			white-space:nowrap; 
		}
	}
	li:hover > .sub-menu,
	li:focus-within > .sub-menu {
		max-height: 40rem;          /* ruim genoeg voor meerdere items */
		opacity: 1;
		visibility: visible;
		transform: translateY(0);
		transition:
		max-height 350ms ease,
		opacity 300ms ease,
		transform 350ms ease,
		visibility 0s; /* direct zichtbaar */
	} 

	@media (width < 50em){
		position: fixed;
		z-index: 1000;
		inset: 0 0 0 30%;
		
		flex-direction: column;
		padding: min(30vh, 6rem) 2em;
		background: var(--white);

		transform: translateX(100%);
		transition: transform 350ms ease-out;

		&[data-visible="true"]{
			transform:translateX(0%);
			overflow: scroll;
		}
		.menu-item-has-children {
			> a {
				position: relative;
    			margin-right: 2rem;
				pointer-events: auto;
			}
			.sub-menu { 
				position: unset;
				box-shadow: unset;
				transition-behavior: allow-discrete;
				transition: max-height 0.3s ease, opacity 0.3s ease;
				will-change: max-height, opacity;
				padding-inline-start: 1rem;
			}
			.chevron-toggle {
				position: absolute;
				right: -2rem;
				top: 50%;
				width: 1.5rem;
				height: 1.5rem;
				cursor: pointer;
				transform: translateY(-50%) rotate(-90deg);
				transition: transform 0.3s ease;
				&::after {
					content: "▸";
					font-size: 1rem;
				}
			}

			&.closed {
				.sub-menu { 
					max-height: 0;
					overflow: hidden;
					opacity: 0;
					visibility: hidden;
					transition: max-height 0.3s ease, opacity 0.3s ease;
				}
			}
			&.open {
				> a .chevron-toggle{
					transform: rotate(90deg);
				}
				.sub-menu { 
					max-height: 300px;
					opacity: 1;
					visibility: visible;
				}
			}
		}
	}
}
.mobile-nav-toggle {
	--width:2rem;

	display: none;
	color:inherit;
	
	@media (width < 50em){
		display: block;
		position: relative;
		z-index: 999999;
		width: var(--width);
		aspect-ratio: 1;
		
		-webkit-transform: rotate(0deg);
		-moz-transform: rotate(0deg);
		-o-transform: rotate(0deg);
		transform: rotate(0deg);
		-webkit-transition: .5s ease-in-out;
		-moz-transition: .5s ease-in-out;
		-o-transition: .5s ease-in-out;
		transition: .5s ease-in-out;
		cursor: pointer;

		span:not(.sr-only){
			display: block;
			position: absolute;
			height: calc( var(--width) / 5 );
			width: 100%;
			background: currentColor;
			border-radius: 2px;
			opacity: 1;
			left: 0;
			-webkit-transform: rotate(0deg);
			-moz-transform: rotate(0deg);
			-o-transform: rotate(0deg);
			transform: rotate(0deg);
			-webkit-transition: .25s ease-in-out;
			-moz-transition: .25s ease-in-out;
			-o-transition: .25s ease-in-out;
			transition: .25s ease-in-out;
		}
		span:nth-child(2) {
			top: calc( var(--width) / 5 * 0);
		}

		span:nth-child(3),
		span:nth-child(4) {
			top: calc( var(--width) / 5 * 2);
		}
		span:nth-child(5) {
			top: calc( var(--width) / 5 * 4);
		}

		&[aria-expanded="true"] span:nth-child(2),
		&[aria-expanded="true"] span:nth-child(5) {
			top:  calc( var(--width) / 5 * 2);
			width: 0%;
			left: 50%;
		}
		&[aria-expanded="true"] span:nth-child(3) {
			-webkit-transform: rotate(45deg);
			-moz-transform: rotate(45deg);
			-o-transform: rotate(45deg);
			transform: rotate(45deg);
		}

		&[aria-expanded="true"] span:nth-child(4) {
			-webkit-transform: rotate(-45deg);
			-moz-transform: rotate(-45deg);
			-o-transform: rotate(-45deg);
			transform: rotate(-45deg);
		}
	}
}

.breakdance .bde-icon-list.usp--parallax__list ul {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
}
.breakdance h2.usp--parallax__title {
    color:var(--white);
}
.breakdance h3.usp--parallax__text {
    color:var(--brand);
    font-size:1.375em;
    font-weight: 500;
}
.button--full button { width: 100% !important; }

.product #product-addons-total { grid-column: span 3; }
.product .wc-pao-addons-container {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 50px;
	width: 100%;
}
@media screen and (max-width: 768px) {
    .product .wc-pao-addons-container {
        display: flex;
        flex-direction: column;
    }
}
.product .variations .label { text-align: left; }
.product .variations .label label { font-weight: 700; }
.price-op-aanvraag { text-decoration: underline; }

ins { text-decoration: none; }
.on-sale { border: 1px solid var(--brand); padding:.125em .625em; color:var(--brand) }


.breakdance-woocommerce .woocommerce-product-gallery__image a[data-caption] {
	position: relative;
	&::after {
		content: attr(data-caption);
		position: absolute;
		bottom: 0;
		width: 100%;
		padding:1em;
		background: color-mix(in oklab, var(--white) 50%, transparent);
		color:var(--black);
		text-decoration: none;
		text-shadow: 1px 1px 5px oklab(0 0 0 / 0.5);
	}
}

.category--filters select.orderby,
.category--filters select.stock_status
 {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    height: auto;
    width: 100%;
    padding-top: var(--bde-form-input-padding-top);
    padding-right: var(--bde-form-input-padding-right);
    padding-bottom: var(--bde-form-input-padding-bottom);
    padding-left: var(--bde-form-input-padding-left);
    color: #999;
    border: 1px solid #aaa;
    border-radius: 3px;
}
.category .bde-posts-pagination { align-items: center !important;}
.widget.woocommerce h2 {
    color: var(--bde-woo-base-headings-color);
    font-weight: var(--bde-woo-typography-font-weight-normal);
    font-size: var(--bde-woo-typography__size-large);
    font-family: var(--bde-woo-typography__size-large-font-family);
    line-height: var(--bde-woo-base-heading-line-height);
}
.widget.woocommerce .subcategory-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

.widget.woocommerce .subcategory-list li {
    display: flex;
    align-items: center;
    gap: 0.5em;
    margin-bottom: 0.5em;
}

.widget.woocommerce .subcategory-list i.fa-chevron-right {
    color: var(--bde-links-color);
    font-size: 0.7em;
}

.widget.woocommerce .subcategory-list a {
    text-decoration: none;
}

.widget.woocommerce .subcategory-list a:hover {
    text-decoration: underline;
}

body.breakdance .bde-social-icons .bde-social-icons__icon-wrapper { padding: 10px; }
body .dgwt-wcas-style-pirx .dgwt-wcas-sf-wrapp input[type=search].dgwt-wcas-search-input { border-radius: 2px; }

.cart .breakdance-woocommerce .cart-collaterals {
    border-radius: var(--bde-woo-tables__border-radius);
    border: 1px solid var(--bde-woo-tables__border-color);
    padding: 20px;
    width: 400px;
    background-color: var(--white);
}
.checkout .breakdance-woocommerce ul.woocommerce-shipping-methods li label, .breakdance-woocommerce ul.payment_methods li label {
    display: flex;
    align-items: center;
    gap: 10px;
}

/* #region Tabel CSS */
.table {
    overflow-x: auto;
    margin-bottom: 2rem;
    /* border: 1px solid #ddd; */
}

.table table {
    width: 100%;
    border-collapse: collapse;
    font-family: Arial, sans-serif;
    background-color: #fff;
}

.table thead {
    background-color: var(--brand);
}

.table th,
.table td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid #ddd;
    vertical-align: top;
}

.table th {
    font-weight: bold;
    color: var(--white);
}

.table tbody tr:hover {
    background-color: #f9f9f9;
}

.table .woocommerce-Price-amount {
    font-weight: bold;
    color: var(--black);
}

.table .col-model_class, .table .col-shipping_class {
    display: inline-block;
    padding: 3px 8px;
    background-color: #e6e6e6;
    border-radius: 4px;
    font-size: 13px;
    text-decoration: underline;
}
.table .col-shipping_class:hover { cursor: pointer; }

.table .col-model_class {
    font-weight: bold;
    color: var(--black);
    font-size: unset;
}

@media (max-width: 768px) {
    .table:not(.not--mobile) { border: none; }
    .table:not(.not--mobile) table { background-color: unset; }

    .table:not(.not--mobile) table, 
    .table:not(.not--mobile) thead, 
    .table:not(.not--mobile) tbody, 
    .table:not(.not--mobile) th, 
    .table:not(.not--mobile) td, 
    .table:not(.not--mobile) tr {
        display: block;
        width: 100%;
    }

    .table:not(.mobile) thead {
        display: none;
    }

    .table:not(.not--mobile) tr {
        margin-bottom: 1rem;
        border: 1px solid #ccc;
        border-radius: 4px;
        padding: 10px;
        background: var(--white);
    }

    .table:not(.not--mobile):not(.custom-product-table) td {
        text-align: right;
        padding-left: 50%;
        position: relative;
    }

    .table:not(.not--mobile) td::before {
        content: attr(data-label);
        position: absolute;
        left: 10px;
        width: 45%;
        padding-right: 10px;
        white-space: nowrap;
        text-align: left;
        font-weight: bold;
        color: #555;
    }
}
/* #endregion */

.custom-product-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.custom-product-table th,
.custom-product-table td {
  padding: 10px;
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

@media (width > 768px) {
	.custom-product-table th.only-mobile,
	.custom-product-table td.only-mobile {
		display: none;
	}
}

/* Laat de eerste kolom alle beschikbare ruimte innemen */
.custom-product-table th:first-child,
.custom-product-table td:first-child {
  width: 100%;
  white-space: normal;
}

/* Zorg dat prijs en bestelkolom niet uitbreiden */
.custom-product-table th:last-child,
.custom-product-table td:last-child,
.custom-product-table th:nth-last-child(2),
.custom-product-table td:nth-last-child(2) {
  white-space: nowrap;
  text-align: right;
}


#master-container { max-width: 100% !important; }

/* FAQ */
.faq-category {
    margin-bottom: 20px;
}

.faq-item {
    border-bottom: 1px solid #ddd;
    padding: 0.5rem 0;
}

.faq-question {
    background: none;
    border: none;
    width: 100%;
    text-align: left;
    font-size: 1rem;
    padding: 0.8rem 0;
    cursor: pointer;
    position: relative;
    font-weight: bold;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-icon {
    font-weight: bold;
    font-size: 1.5rem;
    margin-left: 1rem;
    color: #555;
    transition: transform 0.3s ease;
}

.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
    color: var(--brand); /* oranje kleur */
}

.faq-answer {
    display: none;
    padding: 0.5rem 0 1rem;
    color: #333;
    line-height: 1.5;
}

.faq-item.active .faq-answer {
    display: block;
}

.faq-item.active .faq-question {
    color: var(--brand);
}

.faq-filter {
    position: sticky;
    top: 0;
    background-color: #fff;
    padding: 1rem 0;
    z-index: 1000;
}


.faq-filter ul {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.faq-filter li {
    margin: 0;
}

.faq-filter a {
    display: inline-block;
    padding: 6px 12px;
    border: 2px solid var(--brand);
    color: var(--brand);
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s, color 0.3s;
}

.faq-filter a:hover,
.faq-filter a:focus {
    background-color: var(--brand);
    color: #fff;
}
/* .product .flex-control-nav.flex-control-thumbs {
    display: block;
	padding: 0;
    margin: 0;
	width: 150px;
    height: 675px; /** TODD: Change With Javascript*
    overflow-y: auto;
    overflow-x: hidden;
    transform: rotate(-90deg) translateY(-150px);
    transform-origin: right top;
} */

.product .flex-control-nav.flex-control-thumbs {
  display: flex;
  overflow-x: auto;
  gap: 10px;
  max-width: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  scroll-snap-type: x mandatory;
  flex-wrap: nowrap;
  -webkit-overflow-scrolling: touch;
}
/* .product .flex-control-nav.flex-control-thumbs li {
	scroll-snap-align: start;
    transform: rotate(90deg);
    transform-origin: right top;
    margin-block-end: 15px;
} */
.product .flex-control-nav.flex-control-thumbs li {
  flex: 0 0 auto;
  width: 23%; /* Zorgt ervoor dat er ongeveer 4 thumbnails in beeld passen */
  scroll-snap-align: start;
}

.product .flex-control-nav.flex-control-thumbs img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.single_add_to_cart_button.button.alt {
    height: fit-content;
}

/* Modal Animations */

@keyframes modalFadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

@keyframes modalSlideIn {
    to {
    transform: translateY(0);
    opacity: 1;
    }
}


@media screen and (max-width: 768px) {
    .single_add_to_cart_button.button.alt {
        width: 100%;
    }
}

.gform_button {
    --bde-button-primary-border-color: #000;
    --bde-button-primary-border-color-hover: #000;
    --bde-button-primary-background-color: var(--black);
    --bde-button-primary-background-color-hover: #fff;
    --bde-button-primary-text-color: var(--white);
    --bde-button-primary-text-color-hover: #000;
    border-radius: 0px;
    border-width: 1px;
    color: var(--white);
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    background: var(--bde-button-primary-background-color);
    border-color: var(--bde-button-primary-border-color);
    text-decoration: none;
    padding: var(--bde-button-padding-base);
    text-align: center;
}
.gform_button:hover {
    background-color: #fff;
    color: var(--bde-button-primary-background-color);
    cursor: pointer;
}