#goshaka-config-tool {
    font-family: "Montserrat", Sans-serif; /* Main font used for smaller text */
    padding:20px;
}

#goshaka-config-tool h1,
#goshaka-config-tool h2,
#goshaka-config-tool h3,
#goshaka-config-tool h4,
#goshaka-config-tool h5,
#goshaka-config-tool h6 {
    font-family: "Baloo 2", cursive; /* Specify "Baloo 2" for all header tags */
}

/*#region Filter functionaliteit */
.filter-header{
    margin-top: 10px;
}


/*#endregion*/
/*#region SET COLLECTOR */
#set-header{
    width: 100%;
    display: flex; /* Add flexbox */
    justify-content: center; /* Center horizontally */
}

#set-header-controls {
    font-family: "Baloo 2", cursive;
    font-size: 24px;
    color:white;
    font-weight: 600;
    background-color: var(--e-global-color-primary);
    width: 250px;
    border-radius: 50px;
    padding: 20px;
    padding-left: 30px;
    position: relative;
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
}



#set-counter{
    background-color: var(--e-global-color-secondary);
    width:25px;
    height:25px;
    font-size:16px;
    margin-left: 5px;
    border-radius: 50%;
    text-align: center;
    color:white;
    display:inline-block;
}

#set-collector-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background-color: var(--e-global-color-accent);
    color: black;
    padding: 35px 0;
    z-index: 9999;
    border-radius: 75px 70px 0 0;
    text-align: center;
    max-height: 96vh;

}

#set-detail-products {
    overflow-x: auto; /* Enable horizontal scrolling */
    white-space: nowrap; /* Prevent wrapping of child elements */
    padding: 25px 25px 0px 25px; /* Add some padding */
    gap: 15px; /* Space between products */
    align-items: center; /* Align items vertically in the center */
    text-align: center;

}

.hide {
    display: none;
}


.set-product-detail {
    display: flex; /* Use flexbox for layout */
    position: relative;
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center items horizontally */
    text-align: center; /* Center text */
    margin-right: 15px; /* Space between cards */
    background: transparent; /* Card background */
    border-radius: 8px; /* Rounded corners for the cards */
    overflow: hidden; /* Hide overflow */
    color: black;
    text-wrap: wrap;
}

.set-product-detail img {
    height:150px
}



.set-product-detail .product-options {
    margin: 5px 0px;
    padding-left: 0;
    list-style-type: none;
    text-align: left;
    min-height: 42px;
}

.set-product-detail .product-options li {
    display: flex;
    align-items: center;
}

.set-product-detail .product-options i {
    margin-right: 5px;
    width: 20px;
    text-align: center;
    color: var(--e-global-color-secondary);
}

/* Hide the scrollbar for a cleaner look */
#set-details::-webkit-scrollbar {
    display: none;
}

#set-details {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    overflow: hidden;
    max-height: 0; /* Start with 0 height */
    opacity: 0; /* Start fully transparent */
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transition for max-height and opacity */
    
}

#set-details.expanded {
    max-height: 700px; /* Adjust based on the content's maximum height */
    opacity: 1; /* Fully visible */
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in; /* Smooth transition for max-height and opacity */
}

#set-summary-controls {
    display: flex; /* Use Flexbox */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Center-align children horizontally */
    justify-content: center; /* Center content vertically */
    width: 100%; /* Adjust width as needed */
}

#set-summary-controls div {
    margin-top: 0px;
    margin-bottom: 10px;
}

#set-total-cost-container {
    font-size: 20px;
    color:black;
}

#set-total-retail-cost{
    text-decoration: line-through;
}

#looptijd-toggle .gs-btn{
    margin: 0 5px;
}


/*#endregion*/

/*#region PRODUCT OVERVIEW */


.scroll-left, .scroll-right {
    position: absolute;
    /* Style your buttons */
    cursor: pointer;
    z-index: 96;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    background-color: var(--e-global-color-secondary);
    top: 50%; /* Align top edge to the middle of the container */
    transform: translateY(-50%); /* Shift upwards by half the button's height */
}

.scroll-right {
    right: 15px;
}

.scroll-right::before {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    border: solid white;
    border-width: 0 4px 4px 0; /* Thicker arrow */
    padding: 4px; /* Scale the arrow */
    /* Adjust rotation to point leftwards */
    transform: translate(-50%, -50%) rotate(-45deg);
    -webkit-transform: translate(-50%, -50%) rotate(-45deg);

}

.scroll-left {
    left: 15px;
}

.scroll-left::before {
    position: absolute;
    content: '';
    top: 50%;
    left: 50%;
    border: solid white;
    border-width: 0 4px 4px 0; /* Thicker arrow */
    padding: 4px; /* Scale the arrow */
    /* Adjust rotation to point leftwards */
    transform: translate(-50%, -50%) rotate(135deg); 
    -webkit-transform: translate(-50%, -50%) rotate(135deg);

}

/* Product Card Styling */
.config-product-card {
    position: relative; /* Needed for absolute positioning of pseudo-elements */
    transition: transform 0.3s ease-in-out;
    padding: 15px;
    padding-bottom: 0px;
    flex: 0 0 calc(33.33% - 15px); /* Default to 3 cards per category, accounting for margin */
    box-sizing: border-box; /* Include padding and borders in the width */

}

.config-product-card p{
    font-size: 13px;
}

.product-sale-badge {
    position: absolute; 
    top: 0; 
    right: 0; 
    background-color: var(--e-global-color-secondary);
    color: white; 
    padding: 5px 10px; 
    border-radius: 15px; 
    font-size: 14px;
}


/* Adjustments for larger screens */
@media (min-width: 768px) {
    .config-product-card {
        flex: 0 0 calc(20% - 15px); /* Adjust to show more cards based on available space */
    }
}

/* Further adjustments for even larger screens */
@media (min-width: 1024px) {
    .config-product-card {
        flex: 0 0 calc(18.96% - 15px); /* Show even more cards */
    }
}


/*#endregion*/

/*#region MODAL */
.modal {
    position: fixed;
    top: 80px; 
    left: 0;
    width: 100%;
    height: calc(100vh - 80px); 
    background-color: rgba(0,0,0,0.4); 
    z-index: 99996;
}

.modal-content {
    height: 90%; 
    overflow-y: auto; 
    width: auto; 
    max-width: 96%; 
    background-color: #fff; 
    border-radius: 10px; 
    text-align: center; 
    position: relative; 
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 25px 0px 25px 25px;
}

.modal-body{
    height: 90%;
    overflow-y: auto;
}

.modal-body .product-short-description{
    text-align: left;
}

.modal-body::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 7px;
}

.modal-body::-webkit-scrollbar-thumb {
    border-radius: 4px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}


.modal-footer{
    height: 10%;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row; /* Align additional images in a row */
    justify-content: center; /* Align content to the start */
    align-content: center; /* Align content to the start vertically */
}
.add-to-set-btn{
    margin-top: 5px;
    margin-bottom: 5px;
    height: 45px;
}

.add-to-set-btn.disabled{
    opacity: 0.5;
}

.modal-price .price-value{
    font-weight: 600;
    font-size: 22px;
}

#modal-close-button{
    position: absolute;
    top: 20px;
    right: 20px;
    margin-right: 10px;
    font-size: 25px;

}

#productModal {
    display: none; /* Ensures the modal is hidden when the page loads */
}


.product-main-image {
    width:60%;
    height: auto; /* Maintain aspect ratio */
    object-fit: contain;
    margin-bottom: 20px;
}

.additional-images {
    display: flex;
    flex-direction: row; /* Align additional images in a row */
    flex-wrap: wrap; /* Allow images to wrap to next line */
    justify-content: flex-start; /* Align content to the start */
    align-content: flex-start; /* Align content to the start vertically */
    gap: 10px; /* Space between thumbnails */
    flex: 1 1 40%; /* Take the remaining space up to 40% */
    max-width: 40%; /* Maximum width of the additional images */
}

.additional-image {
    width: calc((100% / 3) - 10px); /* Three images per row, minus the gap */
    height: auto; /* Maintain aspect ratio */
    object-fit: cover; /* Cover the area of the container */
}

.gs-btn.read-toggle-button{
    margin-bottom: 20px;
}

/* Additional Styles for Product Detail and Variations */
.product-variations {
    max-width: 300px;
    margin: 0 auto;
    padding: 20px;
    text-align: center;
  }
  
  .product-variations label {
    font-weight: bold;
    display: inline-block;
    width: 80px;
    text-align: left;
  }
  
  .select-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
  }

/* Style for each select element */
.select-container select {
    /* Remove the flex-grow property if you don't want the dropdowns to expand */
    padding: 10px;
    margin: 2px; /* Spacing between dropdowns; adjust as needed */
    border: 3px solid #17b1d7; /* Adjust to match wireframe styles */
    border-radius: 20px; /* Rounded corners as seen in the wireframe */
    background-color: #fff; /* Match the wireframe's background color */
    -webkit-appearance: none; /* Removes default styling */
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    /* Set a width that is large enough to fit the content */
    width: auto;
    /* Set a maximum width to prevent the dropdown from stretching too far */
    max-width: 100%;
    min-width: 150px;
}

/* Style the arrow to be consistent with the wireframe */
.select-container::after {
    content: '';
    position: absolute;
    right: 15px; /* Adjust as necessary */
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    /* Adjust the background image URL as needed */
    background-size: contain;
}

.product-full-description {
    -ms-overflow-style: none;  /* Internet Explorer 10+ */
    scrollbar-width: none;  /* Firefox */
    overflow: hidden;
    max-height: 0; /* Start with 0 height */
    opacity: 0; /* Start fully transparent */
    transition: max-height 0.5s ease-out, opacity 0.5s ease-out; /* Smooth transition for max-height and opacity */
}

.product-full-description.expanded {
    opacity: 1; /* Fully visible */
    transition: max-height 0.5s ease-in, opacity 0.5s ease-in; /* Smooth transition for max-height and opacity */
    text-align: left;
    margin-top: 25px;
    margin-bottom: 25px;
}


.search-container {
    display: flex;
    justify-content: center;
    margin-top: 20px;
    width:300px;
    margin-bottom: 15px
}
.search-bar {
    
    padding: 10px 40px 10px 10px;
    font-size: 16px;
    border: 2px solid #ddd;
    border-radius: 30px !important;
    width: 300px;
    background-image: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" fill="none" stroke="%23666" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="8"/><line x1="21" y1="21" x2="16.65" y2="16.65"/></svg>');
    background-repeat: no-repeat;
    background-position: calc(100% - 10px) center;
    background-size: 20px;
}
.search-bar:focus {
    outline: none;
    border-color: #4CAF50;
    box-shadow: 0 0 5px rgba(76, 175, 80, 0.5);
}
.search-bar::placeholder {
    color: #999;
}



/*MOBILE*/
/* If you want to ensure the modal content is always centered regardless of content size */
@media (min-width: 768px) {
    .modal-content {
        max-width: 600px; /* Adjust this value to your preference */
    }

    .product-main-image {
        width: 80%; /* Take up to 60% of the container width */
    }
    
}

@media (max-width: 768px) {
    .modal-content {
        height: 80%;  
        top: 45%; /* Shift slightly upward to allow for standard navbar on mobile */
        padding: 25px 0px 0px 25px

    }
    
    .modal-body{
        height: 85%;

    }

    .modal-footer{
        height: 15%;
    }

}


/*#endregion*/

/*#region OTHER/GENERAL */
.scroll-wrapper {
    position: relative;
}
/* Hide scrollbar for a cleaner look */
.horizontal-scroll {
    display: flex;
    overflow-x: auto;
    scroll-behavior: smooth;
    /* Ensure that cards don't wrap */
    flex-wrap: nowrap;
    margin-bottom: 20px;
}
.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

#set-summary-toggle {
    position: absolute;
    top: 15px; /* Adjust as needed */
    right: 20px; /* Adjust as needed */
    z-index: 9996;
}
#set-summary-toggle .gs-btn{
    border-radius: 50%; /* Circular shape */
    width: 45px; /* Size of the button */
    height: 45px; /* Size of the button */
}


#set-summary-toggle .close-button{
    background-color: var(--e-global-color-secondary);
}
#set-summary-toggle .close-button:hover{
    background-color: var(--e-global-color-accent);
}
#set-summary-toggle.open-button{
    background-color: var(--e-global-color-secondary);
}
#set-summary-toggle .open-button:hover{
    background-color: var(--e-global-color-accent);
}

/* Chevron Down for Close Button */
.close-button::before {
    content: '';
    position: absolute;
    top: calc(50% - 3.5px); /* Adjust top position to center the chevron */
    left: 50%;
    border: solid white;
    border-width: 0 4px 4px 0; /* Thicker arrow */
    padding: 7px; /* Scale the arrow */
    /* Adjust rotation to point downwards */
    transform: translate(-50%, -50%) rotate(45deg); /* Pointing right, then rotate to down */
    -webkit-transform: translate(-50%, -50%) rotate(45deg);
}

/* Chevron Up for Open Button */
.open-button::before {
    content: '';
    position: absolute;
    top: calc(50% + 3.5px); /* Adjust top position to center the chevron */
    left: 50%;
    border: solid white;
    border-width: 0 4px 4px 0; /* Thicker arrow */
    padding: 7px; /* Scale the arrow */
    /* Adjust rotation to point upwards */
    transform: translate(-50%, -50%) rotate(-135deg); /* Pointing left, then rotate to up */
    -webkit-transform: translate(-50%, -50%) rotate(-135deg);
}


/*Main button class*/
button.gs-btn {
    background-color: var(--e-global-color-secondary);
    color: white;
    font-weight: bold;
    font-family: "Baloo 2", Sans-serif;
    font-size: 18px;
    border: none;
    border-radius: 20px;
    padding: 10px 25px;
    cursor: pointer;
    transition: background-color 0.3s; /* voeg een vloeiende overgang toe */
}

button.gs-btn.selected{
    background-color: var(--e-global-color-primary);
}

button.gs-btn:hover, button.gs-btn:focus {
    background-color: var(--e-global-color-primary);
}

button.gs-btn.delete-btn {
    position:absolute;
    top:0;
    right:0;
    border-radius: 50%;
    height:25px;
    width:25px;
    padding:0;
    background-color: var(--e-global-color-primary);
    border:none;
    z-index: 96;
    
}
button.gs-btn.delete-btn:hover {
    background-color: var(--e-global-color-secondary);    
}

.no-scroll {
    overflow: hidden;
}

/*Mobile and desktop specific tweaks*/
@media (max-width: 767px) {
    .horizontal-scroll {
        box-sizing: content-box;
    }
    .horizontal-scroll::-webkit-scrollbar {
        display: block;
    }
    .config-product-card {
        /* Attempt to show 2.5 cards on the screen */
        flex: 0 0 auto; /* Override the default flex property */
        width: calc((100% - 30px) / 2.5); /* Calculate width based on full width minus total margin, divided by 2.5 */
        margin-right: 15px; /* Margin between cards */
        padding: 15px; /* Padding inside the card */
    }

    .scroll-left, .scroll-right{
        display:none !important;; /* Hide scroll buttons on mobile */
    }
}


@media (min-width: 768px) {
    .col-md-4 {
        padding-right: 10px; /* Right padding for medium and larger screens */
        padding-left: 10px; /* Left padding for medium and larger screens */
    }
}



#loadingIcon {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}


#loadingIcon .loading-icon {
    height: 96px;
    width: 96px;
    -webkit-border-radius: 0;
    -moz-border-radius: 0;
    border-radius: 0;
    animation: rotateIcon 1s linear infinite;
}

@keyframes rotateIcon {
    0% { transform: rotate(0deg); }
    50% { transform: rotate(15deg); }
    100% { transform: rotate(-15deg); }
}


@keyframes slideOutUp {
    from {
        transform: translateY(0);
        opacity: 1;
    }
    to {
        transform: translateY(-100%);
        opacity: 0;
    }
}

.slide-out-up {
    animation: slideOutUp 0.5s ease forwards;
}

@keyframes slideInUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.slide-in-up {
    animation: slideInUp 0.5s ease forwards;
}


/*#endregion*/




#looptijd-toggle {
    width: 100%;
    max-width: 500px;
    padding: 0px 20px;
    margin-bottom: 20px;
}

.looptijd-display-wrapper {
    text-align: center;
    margin-bottom: 15px;
}

.looptijd-display {
    font-size: 1.6em;
    font-weight: bold;
    color: var(--e-global-color-secondary);
    font-family: 'Baloo 2';
    font-size: 26px;
}

.slider-wrapper {
    position: relative;
    padding: 0 10px;
    margin-top: 30px;
}

.slider-label {
    position: absolute;
    top: 20px;
    font-size: 0.9em;
    color: #666;
}

.slider-label.min {
    left: 0;
}

.slider-label.max {
    right: 0;
}

.looptijd-slider {
    width: 100%;
    height: 6px;
    -webkit-appearance: none;
    background: var(--e-global-color-primary);
    border-radius: 2px;
    outline: none;
}

.looptijd-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 30px;
    height: 30px;
    background: var(--e-global-color-secondary); /* Your brand orange color */
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.looptijd-slider::-moz-range-thumb {
    width: 30px;
    height: 3%;
    background: var(--e-global-color-secondary); /* Your brand orange color */
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
    transition: background 0.2s ease;
}

.looptijd-slider::-webkit-slider-thumb:hover {
    background: var(--e-global-color-primary); /* Lighter orange for hover state */
}

.looptijd-slider::-moz-range-thumb:hover {
    background: var(--e-global-color-primary); /* Lighter orange for hover state */
}

/* Loading state for Add to Cart button */
#add-to-cart-btn.loading {
  position: relative;
  pointer-events: none; /* Prevent clicks while loading */
  color: transparent !important; /* Hide original text */
  opacity: 0.8;
}

#add-to-cart-btn.loading::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 16px; /* Adjust size as needed */
  height: 16px; /* Adjust size as needed */
  margin-top: -8px; /* Center vertically */
  margin-left: -8px; /* Center horizontally */
  border: 2px solid rgba(255, 255, 255, 0.5); /* Adjust color based on button background */
  border-top-color: #ffffff; /* Adjust color based on button background */
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* Cart Notification Bar */
.cart-notification-bar {
    background-color: #f8d7da; /* A light red/pink for warnings */
    color: #721c24; /* Dark red text */
    padding: 8px 35px 8px 15px; /* Padding to accommodate close button */
    border: 1px solid #f5c6cb;
    border-radius: 5px;
    margin-top: 15px; /* Margin at the top to space it from the button */
    position: relative;
}

.cart-notification-bar p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.4;
    text-align: center;
}

.cart-notification-bar .close-notification {
    position: absolute;
    top: 50%;
    right: 8px;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 1.5rem;
    font-weight: bold;
    cursor: pointer;
    color: #721c24;
    opacity: 0.7;
    transition: opacity 0.2s;
    line-height: 1;
    padding: 0;
}

.cart-notification-bar .close-notification:hover {
    opacity: 1;
}