body {
    margin: 0;
    font-family: 'Inter', system-ui, sans-serif;
    background-color: #F9F9F9;
    color: #1A1A1A;
}

#viewer-container {
    width: 100%;
    height: 70vh;
    display: flex;
    flex-direction: row;
    background-color: #F9F9F9;
    position: relative;
}

#menu {
    position: relative;
    background: #FFFFFF;
    width: 25%;
    height: 100%;
    padding: 16px;
    border-radius: 0 0 0 0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    font-family: inherit;
    display: flex;
    flex-direction: column;
    gap: 12px;
    z-index: 10;
    margin-left: auto;
    overflow-y: auto;
}

#canvas {
    width: 75%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: auto;
}

/* Panels & Toggles */
.doorTypeWrapper,
.sizeColorWrapper,
.extendWrapper,
.detailsWrapper,
.priceWrapper {
    background-color: #F9F9F9;
    border: 1px solid #D9D9D9;
    border-radius: 16px;
    width: 100%;
    padding: 12px;
    margin-bottom: 10px;
}

.parameter-titel:hover {
    background-color: #EFEFEF;
}

.arrow {
    font-size: 16px;
    color: #FF5C14;
}


  

.doorTypeWrapperInner, 
.sizeColorInner, 
.extendInner, 
.detailsInner,
.priceInner {
    background-color: #F9F9F9;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    padding: 12px;
    overflow: hidden;
    max-height: 1000px;
    transition: max-height 0.3s ease;
}

.parameterTitel,
.sizeColorTitel,
.extendTitel,
.detailsTitel,
.priceTitel {
    background-color: #F9F9F9;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    margin-bottom: 16px;
    z-index: 2;
    width: 100%;
}

.doorTypeWrapperInner:not(.open),
.sizeColorInner:not(.open),
.extendInner:not(.open),
.detailsInner:not(.open) {
    max-height: 40px;
}

/* Images & Buttons */
.imageContainerDoorType {
    display: flex;
    flex-wrap: nowrap;
    gap: 10px;
    justify-content: center;
    align-items: center;
}

.imageContainerDoorType img {
    width: 100px;
    height: 100px;
    border-radius: 0px;
    
}

.doorTypeButtonsWrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.singleDoubleDoor {
    display: flex;
    gap: 10px;
    justify-content: center;
    max-width: 300px;
}

.leftRight {
    display: flex;
    gap: 10px;
    justify-content: center;
    padding: 10px;
    max-width: 300px;
}

.RALcontainer {
    display: flex;
    justify-content: center;
    align-items: center;
}

.leftRight {
    display: none;
  }

  .addToCart {
    display: flex;
    flex-direction: column;
    justify-content: center; /* Optional: centers items vertically within the container */
    align-items: center;     /* Optional: centers items horizontally */
  }
  




/* Inputs */
.parameter-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.parameter input {
    width: 100%;
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #D9D9D9;
    font-family: inherit;
}

.parameter-slider {
    width: 100%;
    margin: 5px 0;

}

.custom-slider {
    width: 100%;
    height: 6px;
    background: #ddd;
    border-radius: 3px;
    outline: none;
    accent-color: #FF5C14; /* Modern browsers support this for slider thumb */
    cursor: pointer;
    margin-top: 5px;
  }
  
  /* Optional: Style the thumb and track more precisely for WebKit browsers */
  .custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 18px;
    height: 18px;
    background: #FF5C14;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.3);
    transition: background 0.2s ease-in-out;
  }
  
  .custom-slider::-webkit-slider-thumb:hover {
    background: #FF5C14;
  }
  
  .custom-slider::-moz-range-thumb {
    width: 18px;
    height: 18px;
    background: #FF5C14;
    border-radius: 50%;
    cursor: pointer;
    border: none;
    transition: background 0.2s ease-in-out;
  }
  
  .custom-slider::-moz-range-thumb:hover {
    background: #FF5C14;
  }
  


.parameter-value {
    font-size: 15px;
    font-weight: 500;
    margin-top: 5px;
}

.size {
    display: flex;
    gap: 10px;
}

.height, .width {
    flex: 1;
}

.leftPart, .rightPart, .topPart {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
}

.leftPart div, .rightPart div, .topPart div {
    flex: 1;
    text-align: center;
}

.totalPrice{

    text-align: center;
    font-weight: bold;

}


/* Mobile menu */
@media (max-width: 1000px) {
    #menu {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #FFFFFF;
        z-index: 20;
        flex-direction: column;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        overflow: hidden;
        width: 100%;
        transition: height 0.3s ease;
    }

    .menuArrow {
        height: 20px;
        display: flex;
        flex-direction: column; /* stack items vertically */
        align-items: center;     /* center horizontally */
        justify-content: center; /* center vertically */
        font-size: 18px;
        cursor: grab;
        user-select: none;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
        padding-bottom: 20px;
        padding-top: 10px;
    }
    
    .menuContent {
        flex: 1;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 12px;
        background: #FFFFFF;
    }

    #menuArrow:active {
        cursor: grabbing;
        background-color: #FF5C14;
    }

    }