* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Apple SD Gothic Neo', sans-serif;
    background: #f5f5f5;
}

.container {
    display: flex;
    max-width: 1920px;
    margin: 0 auto;
    background: white;
    min-height: 100vh;
}

/* 좌측 3D 뷰어 */
.viewer-section {
    flex: 6;
    background: #e8e8e8;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

#canvas3d {
    width: 100%;
    height: 100vh;
    display: block;
}

.size-display {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.size-label {
    background: rgba(255,255,255,0.9);
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.hint-message {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 12px 24px;
    border-radius: 24px;
    font-size: 14px;
}

/* 우측 옵션 패널 */
.options-panel {
    flex: 4;
    padding: 40px 30px;
    overflow-y: auto;
    background: white;
}

.options-panel h1 {
    font-size: 24px;
    margin-bottom: 30px;
    font-weight: 700;
}

.input-group {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group label {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.input-group input {
    width: 120px;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    text-align: center;
}

.unit {
    font-size: 14px;
    color: #666;
}

.btn-reset,
.btn-reset-input {
    padding: 8px 16px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
}

.btn-reset:hover,
.btn-reset-input:hover {
    background: #f5f5f5;
}

/* 탭 섹션 */
.tab-section {
    margin: 30px 0 20px;
}

.tab-notice {
    background: #f8f9fa;
    padding: 12px;
    border-radius: 6px;
    font-size: 13px;
    color: #666;
    margin-bottom: 15px;
}

.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
}

.tab {
    flex: 1;
    padding: 14px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 6px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 500;
    transition: all 0.2s;
}

.tab.active {
    background: #000;
    color: white;
    border-color: #000;
}

.tab:hover:not(.active) {
    background: #f5f5f5;
}

/* 탭 컨텐츠 */
.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

.alert-box {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px;
    margin-bottom: 20px;
    font-size: 13px;
    color: #856404;
}

.section-title {
    font-size: 16px;
    font-weight: 600;
    margin: 30px 0 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #000;
}

/* 모듈 그리드 */
.module-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-bottom: 30px;
}

.module-item {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    background: white;
}

.module-item:hover {
    border-color: #999;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.module-item.selected {
    border-color: #000;
    background: #f8f9fa;
}

.module-item img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 4px;
    margin-bottom: 10px;
    background: #8B7355;
}

.module-name {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 5px;
}

.module-desc {
    font-size: 12px;
    color: #999;
}

/* 가격 섹션 */
.price-section {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 8px;
    margin: 30px 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-label {
    font-size: 16px;
    font-weight: 600;
}

.price-value {
    font-size: 24px;
    font-weight: 700;
    color: #000;
}

/* 더옴 버튼 */
.btn-submit {
    width: 100%;
    padding: 18px;
    background: #000;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s;
}

.btn-submit:hover {
    background: #333;
}

/* 색상 선택기 */
.color-selector {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
    margin-top: 20px;
}

.color-option {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
}

.color-option:hover {
    border-color: #999;
    transform: translateY(-2px);
}

.color-option.selected {
    border-color: #000;
    background: #f8f9fa;
}

.color-box {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    margin: 0 auto 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

/* 뷰 버튼 */
.view-buttons {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
    z-index: 10;
}

.view-btn {
    padding: 8px 16px;
    background: rgba(255,255,255,0.9);
    border: 1px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.2s;
}

.view-btn:hover {
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
