/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

body {
    background-color: #f9f7f4;
    color: #333;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 20px;
}

header {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding: 20px;
    background-color: #f9f7f4;
    border-bottom: 1px solid #e0e0e0;
    width: 100%;
    max-width: 900px;
    position: relative;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.price-display-fixed {
    font-size: 22px;
    font-weight: normal;
    color: #333;
    background-color: #f9f7f4;
    padding: 5px 10px;
    border-radius: 5px;
}

.container {
    display: flex;
    flex-direction: row;
    width: 900px;
    height: 600px;
    background-color: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
}

/* Configurator Panel Styles */
.configurator-panel {
    width: 350px;
    background-color: #fff;
    padding: 20px;
    overflow-y: auto;
    position: relative;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
}

.configurator-panel h2 {
    font-size: 22px;
    margin-bottom: 15px;
    color: #333;
    font-weight: normal;
}

.config-section {
    margin-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 15px;
}

.config-section h3 {
    font-size: 16px;
    margin-bottom: 12px;
    color: #333;
    font-weight: normal;
}

.config-item {
    margin-bottom: 12px;
}

.config-item label {
    display: block;
    margin-bottom: 6px;
    font-weight: normal;
    font-size: 14px;
}

.config-item p {
    font-size: 14px;
    color: #555;
}

.config-item input[type="range"] {
    width: 100%;
    margin-bottom: 5px;
    -webkit-appearance: none;
    height: 2px;
    background: #ddd;
    outline: none;
}

.config-item input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #333;
    cursor: pointer;
}

.config-item select {
    width: 100%;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 0;
    background-color: #fff;
    font-size: 14px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="black" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/><path d="M0 0h24v24H0z" fill="none"/></svg>');
    background-repeat: no-repeat;
    background-position: right 10px center;
}

/* Viewer Panel Styles */
.viewer-panel {
    flex: 1;
    position: relative;
    background-color: #f9f7f4;
    border-top-right-radius: 20px;
    border-bottom-right-radius: 20px;
}

#table-viewer {
    width: 100%;
    height: 100%;
}

.controls-hint {
    position: absolute;
    bottom: 20px;
    left: 0;
    width: 100%;
    text-align: center;
    color: #999;
    font-size: 14px;
    background-color: rgba(249, 247, 244, 0.7);
    padding: 5px;
}

/* Cart Button Styles */
.cart-button {
    background-color: #333;
    color: white;
    border: none;
    padding: 8px 15px;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 5px;
    white-space: nowrap;
}

.cart-button:hover {
    background-color: #555;
}

/* Cart Notification */
.cart-notification {
    position: fixed;
    top: 20px;
    right: 20px;
    background-color: #333;
    color: white;
    padding: 15px 25px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transform: translateX(200%);
    transition: transform 0.3s ease-in-out;
    z-index: 1000;
}

.cart-notification.show {
    transform: translateX(0);
}

/* Hide bottom brace option when solid legs are selected */
.bottom-brace-container {
    display: block;
}

.bottom-brace-container.hidden {
    display: none;
}

/* Responsive Design */
@media (max-width: 920px) {
    .container {
        width: 100%;
        height: auto;
        flex-direction: column;
    }
    
    .configurator-panel {
        width: 100%;
        max-height: none;
        border-radius: 20px 20px 0 0;
    }
    
    .viewer-panel {
        height: 400px;
        border-radius: 0 0 20px 20px;
    }
    
    header {
        width: 100%;
    }
    
    .header-right {
        flex-direction: column;
        align-items: flex-end;
        gap: 10px;
    }
}
