/** * 스티커 페이지 전용 인라인 스타일 분리 * 시각적 스타일만 포함 - 계산 로직 절대 건드리지 않음 * * @version 1.0 * @date 2025-01-14 */
    /* 통일된 Primary 버튼 스타일 (전단지와 동일) */
    .btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        padding: 12px 24px;
        background: linear-gradient(135deg, #4caf50 0%, #2e7d32 100%);
        color: white;
        border: none;
        border-radius: 8px;
        font-size: 1rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.3s ease;
        width: 100%;
    }

    .btn-primary:hover {
        background: linear-gradient(135deg, #2e7d32 0%, #1b5e20 100%);
        transform: translateY(-2px);
    }

    .btn-primary:active {
        transform: translateY(0);
    }

    /* 인라인 스타일 분리 */
    .compact-cell {
        padding-top: 0px;
        padding-bottom: 0px;
    }
    
    .size-inputs {
        display: flex;
        align-items: center;
        gap: 1rem;
    }
    
    .size-label {
        display: block;
        margin-bottom: 0.5rem;
        font-weight: bold;
    }
    
    .size-input-field {
        width: 120px;
        padding: 12px;
        font-size: 1.1rem;
        border: 2px solid #ddd;
        border-radius: 8px;
        text-align: center;
        font-weight: 600;
    }
    
    .size-multiply {
        font-size: 1.5rem;
        font-weight: bold;
        color: #666;
        margin: 0 0.5rem;
    }
    
    .help-text {
        color: #6c757d;
        font-weight: 500;
    }
    
    /* 전체 요소들을 더 타이트하게 */
    .order-form-table {
        margin: 0.5rem 0;
    }
    
    /* price-display 컴팩트 버전 (2/3 높이) */
    .price-display {
        margin-bottom: 5px;
        padding: 8px 5px;
        border-radius: 8px;
    }
    
    .price-display .price-label {
        font-size: 0.9rem;
        color: #495057;
        font-weight: 600;
        margin-bottom: 4px;
        line-height: 1.2;
    }
    
    .price-display .price-details {
        font-size: 0.8rem;
        color: #6c757d;
        line-height: 1.3;
        margin: 0;
    }
    
    .price-display.calculated {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        color: #495057;
        border: 2px solid #28a745;
        transform: scale(1.01);
    }
    
    .upload-order-button {
        margin-top: 10px;
    }
    
    /* 스티커 전용 테이블 폼 스타일 개선 */
    .order-form-table {
        width: 100%;
        border-collapse: collapse;
        margin: 1rem 0;
        background: white;
        border-radius: 12px;
        overflow: hidden;
        border: 1px solid #e9ecef;
    }
    
    .order-form-table td {
        padding: 16px;
        border-bottom: 1px solid #e9ecef;
    }
    
    .label-cell {
        width: 30%;
        background: #f8f9fa;
        vertical-align: top;
        font-weight: 600;
    }
    
    .input-cell {
        width: 70%;
        background: white;
    }
    
    .icon-label {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #495057;
        font-size: 0.95rem;
    }
    
    .icon-label .icon {
        font-size: 1.2rem;
    }
    
    .form-control-modern {
        width: 100%;
        padding: 6px 15px;
        border: 2px solid #e9ecef;
        border-radius: 8px;
        font-size: 0.9rem;
        background: white;
        transition: all 0.3s ease;
        font-family: inherit;
    }
    
    .form-control-modern:focus {
        outline: none;
        border-color: #667eea;
        transform: translateY(-1px);
    }
    
    .form-control-modern:hover {
        border-color: #ced4da;
    }
    
    .help-text {
        display: block;
        margin-top: 0.5rem;
        color: #6c757d;
        font-size: 0.85rem;
        line-height: 1.3;
    }
    
    /* 메인 컨테이너 그리드 정렬 */
    .main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
        align-items: start; /* 그리드 아이템들을 상단 정렬 */
    }

    /* 모바일 반응형 개선 */
    @media (max-width: 1024px) {
        .main-content {
            grid-template-columns: 1fr;
            gap: 25px;
        }
    }
    
    @media (max-width: 768px) {
        .order-form-table td {
            padding: 12px;
        }
        
        .label-cell, .input-cell {
            display: block;
            width: 100%;
        }
        
        .label-cell {
            padding-bottom: 8px;
            background: white;
            border-bottom: none;
        }
        
        .input-cell {
            padding-top: 0;
        }
        
        .size-inputs {
            flex-direction: column;
            gap: 1rem;
            text-align: center;
        }
        
        .form-control-inline {
            width: 150px;
            padding: 15px;
            font-size: 1.2rem;
        }
    }
    
    /* 갤러리 섹션 - 강화된 그림자 효과 */
    .gallery-section {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        border-radius: 15px;
        padding: 25px;
        border: 1px solid rgba(255, 255, 255, 0.9);
        margin-top: 0;
        align-self: start;
        height: auto;
        min-height: 400px;
        overflow: visible;
    }
    
    .gallery-title {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        color: white;
        padding: 15px 20px;
        margin: -25px -25px 20px -25px;
        border-radius: 15px 15px 0 0;
        font-size: 1.1rem;
        font-weight: 600;
        text-align: center;
    }
    
    /* 라이트박스 뷰어 스타일 */
    .lightbox-viewer {
        width: 100%;
        height: 300px;
        background-color: #fff;
        border-radius: 12px;
        margin-bottom: 15px;
        cursor: zoom-in;
        transition: all 0.3s ease;
        border: 2px solid #e9ecef;
        position: relative;
        overflow: hidden;
    }
    
    .lightbox-viewer:hover {
        border-color: #667eea;
        transform: translateY(-2px);
    }
    
    /* 썸네일 스트립 스타일 */
    .thumbnail-strip {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 10px;
        background: white;
        border-radius: 8px;
    }
    
    .thumbnail-strip img {
        width: 100%;
        height: 80px;
        object-fit: cover;
        border-radius: 6px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
        opacity: 0.7;
    }
    
    .thumbnail-strip img:hover {
        opacity: 1;
        transform: translateY(-2px);
        border-color: #667eea;
    }
    
    .thumbnail-strip img.active {
        opacity: 1;
        border-color: #667eea;
    }
    
    /* 갤러리 로딩 상태 */
    #stickerGallery .loading {
        text-align: center;
        padding: 60px 20px;
        color: #6c757d;
        font-size: 1.1rem;
        background: white;
        border-radius: 12px;
        animation: pulse 2s infinite;
    }
    
    /* 갤러리 에러 상태 */
    #stickerGallery .error {
        text-align: center;
        padding: 40px 20px;
        color: #dc3545;
        background: #fff5f5;
        border: 1px solid #ffdddd;
        border-radius: 12px;
        font-size: 0.95rem;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.6; }
    }
    
    /* 메인 갤러리 줌박스 향상 */
    .zoom-box {
        transition: all 0.3s ease;
        border: 2px solid #e9ecef;
        position: relative;
        overflow: hidden;
    }
    
    .zoom-box:hover {
        border-color: #667eea;
        transform: translateY(-2px);
    }
    
    .zoom-box::before {
        content: '🔍 클릭하여 확대';
        position: absolute;
        top: 15px;
        left: 15px;
        background: rgba(0, 0, 0, 0.7);
        color: white;
        padding: 8px 12px;
        border-radius: 20px;
        font-size: 0.8rem;
        opacity: 0;
        transition: opacity 0.3s ease;
        pointer-events: none;
        z-index: 5;
    }
    
    .zoom-box:hover::before {
        opacity: 1;
    }
    
    /* 썸네일 그리드 향상 */
    .thumbnail-grid img {
        transition: all 0.3s ease;
    }
    
    .thumbnail-grid img:hover {
        transform: translateY(-3px) scale(1.05);
        border-color: #667eea;
    }
    
    .thumbnail-grid img.active {
        border-color: #667eea;
        transform: translateY(-2px);
    }
    
    /* 샘플 더보기 버튼 스타일 */
    .btn-more-samples {
        background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        color: white;
        border: none;
        padding: 14px 28px;
        font-size: 0.95rem;
        font-weight: 600;
        border-radius: 25px;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 160px;
        position: relative;
        overflow: hidden;
    }
    
    .btn-more-samples::before {
        content: '';
        position: absolute;
        top: 0;
        left: -100%;
        width: 100%;
        height: 100%;
        background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
        transition: left 0.5s ease;
    }
    
    .btn-more-samples:hover::before {
        left: 100%;
    }
    
    .btn-more-samples:hover {
        transform: translateY(-3px);
        background: linear-gradient(135deg, #5a6fd8 0%, #6b3fa0 100%);
    }
    
    .btn-more-samples:active {
        transform: translateY(-1px);
    }
    
    /* 로딩 및 에러 상태 향상 */
    .gallery-loading, .gallery-error {
        padding: 40px 20px;
        text-align: center;
        border-radius: 10px;
        margin: 20px 0;
    }
    
    .gallery-loading {
        background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
        color: #1565c0;
        animation: pulse 2s infinite;
    }
    
    .gallery-error {
        background: linear-gradient(135deg, #ffebee 0%, #ffcdd2 100%);
        color: #c62828;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 1; }
        50% { opacity: 0.7; }
    }
    
    /* =================================================================== */
    /* 더보기 버튼 스타일 */
    /* =================================================================== */
    .gallery-more-button {
        text-align: center;
        margin-top: 15px;
    }
    
    .btn-more-gallery {
        background: rgba(30, 78, 121, 0.8);
        color: white;
        border: none;
        padding: 10px 20px;
        border-radius: 8px;
        font-size: 0.9rem;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.3s ease;
    }

    .btn-more-gallery:hover {
        background: rgba(30, 78, 121, 1);
        transform: translateY(-2px);
    }

    /* =================================================================== */
    /* 갤러리 모달 스타일 */
    /* =================================================================== */
    .gallery-modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 2000;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .gallery-modal-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.7);
        backdrop-filter: blur(3px);
    }
    
    .gallery-modal-content {
        position: relative;
        background: white;
        border-radius: 15px;
        width: 90%;
        max-width: 1000px;
        max-height: 80vh;
        overflow: hidden;
        animation: modalSlideUp 0.3s ease-out;
    }
    
    .gallery-modal-header {
        background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
        color: white;
        padding: 15px 20px;
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
    
    .gallery-modal-title {
        margin: 0;
        font-size: 1.1rem;
        font-weight: 600;
    }
    
    .gallery-modal-close {
        background: none;
        border: none;
        color: white;
        font-size: 1.5rem;
        cursor: pointer;
        padding: 5px;
        border-radius: 50%;
        width: 35px;
        height: 35px;
        display: flex;
        align-items: center;
        justify-content: center;
        transition: background 0.2s ease;
    }
    
    .gallery-modal-close:hover {
        background: rgba(255, 255, 255, 0.2);
    }
    
    .gallery-modal-body {
        padding: 20px;
        max-height: none;
        overflow-y: visible;
    }
    
    /* 스크롤바 완전 방지 - 모든 브라우저 대응 */
    .gallery-section, .gallery-container, .gallery-grid, .calculator-section {
        scrollbar-width: none;
        -ms-overflow-style: none;
        overflow: visible;
    }

    .gallery-section::-webkit-scrollbar,
    .gallery-container::-webkit-scrollbar,
    .gallery-grid::-webkit-scrollbar,
    .calculator-section::-webkit-scrollbar {
        display: none;
        width: 0;
        height: 0;
    }

    .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
        gap: 15px;
    }
    
    /* 페이지네이션 스타일 */
    .gallery-pagination {
        margin-top: 20px;
        padding: 15px;
        background: #f8f9fa;
        border-radius: 8px;
        border-top: 1px solid #dee2e6;
    }

    .pagination-info {
        text-align: center;
        margin-bottom: 15px;
        color: #6c757d;
        font-size: 0.9rem;
    }

    .pagination-controls {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 10px;
        flex-wrap: wrap;
    }

    .pagination-btn {
        background: linear-gradient(135deg, #ffc107 0%, #ff8f00 100%);
        color: white;
        border: none;
        padding: 8px 16px;
        border-radius: 6px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 80px;
    }

    .pagination-btn:hover:not(:disabled) {
        background: linear-gradient(135deg, #e0a806 0%, #e67e00 100%);
        transform: translateY(-2px);
    }

    .pagination-btn:disabled {
        background: #6c757d;
        cursor: not-allowed;
        transform: none;
    }

    .pagination-numbers {
        display: flex;
        gap: 5px;
        flex-wrap: wrap;
    }

    .pagination-number {
        background: white;
        color: #ffc107;
        border: 2px solid #ffc107;
        padding: 8px 12px;
        border-radius: 6px;
        font-size: 0.9rem;
        cursor: pointer;
        transition: all 0.3s ease;
        min-width: 40px;
    }

    .pagination-number:hover {
        background: #ffc107;
        color: white;
        transform: translateY(-2px);
    }

    .pagination-number.active {
        background: #ffc107;
        color: white;
        font-weight: bold;
    }
    
    .gallery-grid img {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-radius: 8px;
        cursor: pointer;
        transition: all 0.3s ease;
        border: 2px solid transparent;
    }
    
    .gallery-grid img:hover {
        transform: translateY(-3px);
        border-color: #ffc107;
    }
    
    @keyframes modalSlideUp {
        from {
            opacity: 0;
            transform: translateY(50px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
        }
    }

    /* 반응형 향상 */
    @media (max-width: 768px) {
        .gallery-section {
            padding: 20px;
            margin: 0 -10px;
            border-radius: 10px;
        }
        
        .gallery-title {
            margin: -20px -20px 15px -20px;
            padding: 12px 15px;
            font-size: 1rem;
        }
        
        .zoom-box::before {
            font-size: 0.7rem;
            padding: 6px 10px;
            top: 10px;
            left: 10px;
        }
        
        .btn-more-samples {
            padding: 12px 24px;
            font-size: 0.9rem;
            min-width: 140px;
        }
    }
    
    /* 사각도무송 선택 시 적색 표시 */
    select[name="domusong"] {
        color: #333;
    }
    
    select[name="domusong"]:has(option[value="08000 사각도무송"]:checked) {
        color: #dc3545;
        font-weight: bold;
    }
    
    /* JavaScript로 동적 처리를 위한 클래스 */
    select[name="domusong"].domusong-selected {
        color: #dc3545;
        font-weight: bold;
        font-size: 1.05em;
    }
    
    /* 반짝이는 애니메이션 */
    @keyframes blink3times {
        0%, 16.66%, 33.32%, 49.98%, 66.64%, 83.3% {
            opacity: 1;
        }
        8.33%, 24.99%, 41.65%, 58.31%, 74.97%, 91.63% {
            opacity: 0.3;
        }
        100% {
            opacity: 1;
        }
    }
    
    .domusong-blink {
        animation: blink3times 1.8s ease-in-out;
    }

/* =================================================================== */
/* 스티커 전용 이미지 기반 레이아웃 (완전히 동일한 모양) */
/* =================================================================== */

/* 인라인 폼 컨테이너 - 컴팩트 */
.inline-form-container {
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
    padding: 12px;
    margin: 8px 0;
}

/* 각 폼 행 - 컴팩트 */
.inline-form-row {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.85rem;
    min-height: 32px;
}

.inline-form-row:last-child {
    margin-bottom: 0;
}

/* 라벨 스타일 (우측 정렬) - 컴팩트 */
.inline-label {
    width: 50px;
    text-align: right;
    font-weight: 500;
    color: #333;
    flex-shrink: 0;
    margin-right: 10px;
    font-size: 0.85rem;
}

/* 셀렉트박스와 인풋 공통 스타일 - 컴팩트 */
.inline-select, .inline-input {
    flex: 0 0 130px;
    width: 130px;
    padding: 6px 8px;
    border: 1px solid #ced4da;
    border-radius: 3px;
    font-size: 0.8rem;
    background: white;
    margin-right: 10px;
    height: 32px;
    box-sizing: border-box;
}

/* 오른쪽 설명 텍스트 - 컴팩트 */
.inline-note {
    color: #6c757d;
    font-size: 0.7rem;
    line-height: 1.2;
    flex: 1;
}

/* 가격 표시 박스 - 컴팩트 */
.price-display {
    border: 2px solid #28a745;
    border-radius: 6px;
    background: white;
    padding: 12px;
    margin: 10px 0;
    text-align: center;
}

.price-display.calculated {
    background: #f8fff8;
    border-color: #28a745;
}

/* 가격 상세 정보 (한 줄 표시) - 컴팩트 */
.price-details {
    font-size: 0.75rem;
    color: #6c757d;
    line-height: 1.2;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* 부가세 포함 금액은 빨간색 */
.price-details .vat-amount,
.price-details span:last-child {
    color: #dc3545;
    font-weight: 600;
}

/* .btn-upload-order 스타일은 common-styles.css에서 통합 관리 (SSOT) */

