/* 1. 기본 배경 및 폰트 설정 */
.container .contents {
    font-family: 'Noto Sans KR', -apple-system, sans-serif;
    background-color: #fdf8f4;
    padding-bottom: 60px;
}

/* 2. 상단 타이틀 영역 (리스트 페이지 스타일 이식) */
.page_title_wrap {
    text-align: center;
    margin: 60px 0 50px;
}

.page_title {
    font-size: 34px;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -1.2px;
    margin-bottom: 8px;
}

.page_subtitle {
    font-size: 11px;
    font-weight: 600;
    color: #4A5568;
    /* 시크한 슬레이트 블루/그레이 */
    letter-spacing: 4px;
    text-transform: uppercase;
    opacity: 0.8;
}

.page_description {
    font-size: 14px;
    color: #888;
    margin-top: 25px;
    position: relative;
    display: inline-block;
    padding-top: 15px;
    line-height: 1.5;
}

.page_description::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    /* 선 길이를 짧게 조절하여 더 세련되게 */
    height: 1.5px;
    background-color: #222;
    /* 블랙 버튼과 매칭 */
}

/* 3. 메인 입력 카드 스타일 */
.modern-board-wrap {
    width: 85%;
    /* 입력 폼은 너무 넓지 않아야 집중도가 높습니다 */
    margin: 0 auto;
    background: #ffffff;
    border-radius: 24px;
    padding: 40px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
}

/* 4. 폼 그룹 및 라벨 */
.form-group {
    margin-bottom: 30px;
}

.form-label {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: #333;
    margin-bottom: 10px;
}

.form-control {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    font-size: 15px;
    transition: all 0.2s;
    background-color: #fcfcfc;
    box-sizing: border-box;
}

.form-control:focus {
    outline: none;
    border-color: #222;
    background-color: #fff;
    box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.03);
}

.form-text {
    display: block;
    margin-top: 8px;
    font-size: 13px;
    color: #94a3b8;
}

/* 5. 상품 검색 영역 특화 스타일 */
.search-input-group {
    display: flex;
    gap: 10px;
}

.btn-search {
    padding: 0 25px;
    background-color: #4A5568;
    color: #fff;
    border: none;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.2s;
    font-size: 14px;
}

.btn-search:hover {
    background-color: #2d3748;
}

/* 검색된 상품 미리보기 */
.product-preview-wrap {
    margin-top: 20px;
    padding: 20px;
    background-color: #f8fafc;
    border-radius: 16px;
    border: 1px dashed #cbd5e1;
}

.product-preview {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
}

.product-preview img {
    width: 70px;
    height: 70px;
    object-fit: cover;
    border-radius: 8px;
    background: #fff;
}

.product-info .name {
    font-size: 15px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 4px;
}

.product-info .price {
    font-size: 14px;
    color: #64748b;
}

/* 옵션 선택 리스트 */
.option-list {
    border-top: 1px solid #e2e8f0;
    padding-top: 15px;
}

.option-item {
    display: flex;
    align-items: center;
    padding: 10px 15px;
    margin-bottom: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    background: #fff;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover:not([style*="not-allowed"]) {
    border-color: #222;
    background-color: #f8fafc;
}

.option-item.selected {
    border-color: #222;
    background-color: #f1f5f9;
}

.option-item input[type="radio"] {
    margin-right: 12px;
}

/* 6. 하단 버튼 영역 */
.btn-wrap {
    display: flex;
    gap: 12px;
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #f1f1f1;
}

.btn-wrap .btn {
    flex: 1;
    padding: 16px;
    font-size: 16px;
    font-weight: 700;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-outline {
    background-color: #fff;
    border: 1px solid #e2e8f0;
    color: #64748b;
}

.btn-outline:hover:not(:disabled) {
    background-color: #f8fafc;
    color: #1e293b;
}

.btn-primary {
    background-color: #222;
    /* 확정된 블랙 테마 */
    border: none;
    color: #fff !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover:not(:disabled) {
    background-color: #444;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}