#main {
    max-width: 900px;
    min-height: 60vh;
    margin: 0 auto;
    padding-top: 60px;
    padding-bottom: 60px;
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.product-section {
    background: #fff;
    border-radius: 16px;
    padding: 38px 32px;
    box-shadow: 0 4px 16px rgba(30,80,180,0.07);
    border: none;
    margin-bottom: 0;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.product-title {
    font-size: 1.7rem;
    margin-bottom: 10px;
    color: #1a4fa0;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.product-subtitle {
    font-size: 1.13rem;
    color: #1976b6;
    font-weight: 600;
    margin-bottom: 18px;
    margin-top: 0;
}

.product-flex {
    display: flex;
    gap: 36px;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
}
.product-info {
    flex: 2 1 340px;
    min-width: 260px;
}
.product-image-wrap {
    flex: 1 1 160px;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    max-width: 180px;
}
.product-image {
    width: 100%;
    max-width: 150px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(30,80,180,0.10);
    background: #fff;
}
.product-feature-title {
    font-size: 1.04rem;
    font-weight: 700;
    color: #1976b6;
    margin-top: 16px;
    margin-bottom: 4px;
}
.product-feature-list {
    margin: 0 0 8px 0;
    padding-left: 18px;
    color: #222;
    font-size: 0.98rem;
    line-height: 1.7;
}
.product-feature-list li {
    margin-bottom: 2px;
}
.product-warning {
    margin-top: 16px;
    color: #b71c1c;
    font-size: 0.95rem;
    border-top: 1px dashed #e57373;
    padding-top: 8px;
    word-break: keep-all;
    background: #fff8f8;
    border-radius: 6px;
}

@media (max-width: 900px) {
    #main {
        width: 100%;
        padding: 30px 16px 40px 16px;
        gap: 32px;
    }

    .product-section {
        padding: 24px 16px;
        border-radius: 12px;
    }

    .product-title {
        font-size: 1.4rem;
    }

    .product-subtitle {
        font-size: 1.1rem;
        margin-bottom: 16px;
    }

    .product-flex {
        flex-direction: column;
        gap: 24px;
    }

    .product-info {
        min-width: 100%;
    }

    .product-image-wrap {
        max-width: 100%;
        justify-content: center;
    }

    .product-image {
        max-width: 140px;
    }

    .product-feature-title {
        font-size: 1rem;
        margin-top: 20px;
    }

    .product-feature-list {
        font-size: 0.95rem;
        line-height: 1.6;
    }

    .product-warning {
        font-size: 0.9rem;
        padding: 12px;
        margin-top: 20px;
    }
}

@media (max-width: 480px) {
    #main {
        padding: 24px 12px 32px 12px;
        gap: 24px;
    }

    .product-section {
        padding: 20px 12px;
    }

    .product-title {
        font-size: 1.3rem;
    }

    .product-subtitle {
        font-size: 1rem;
    }

    .product-image {
        max-width: 120px;
    }

    .product-feature-list {
        font-size: 0.9rem;
        padding-left: 16px;
    }

    .product-warning {
        font-size: 0.85rem;
        padding: 10px;
    }
}

.main-section {
    height: 800px;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('https://images.unsplash.com/photo-1680792563719-288027b2a090?q=80&w=1493&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 80px 20px 0;
    border-radius: 0;
}

.main-title {
    color: #ffffff;
    font-size: 2.5rem;
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.main-desc {
    color: #ffffff;
    font-size: 1.1rem;
    line-height: 1.6;
    max-width: 800px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

@media (max-width: 900px) {
    .main-section {
        height: 500px;
        padding: 60px 16px 0;
    }
    
    .main-title {
        font-size: 2rem;
        margin-bottom: 16px;
    }
    
    .main-desc {
        font-size: 1rem;
        line-height: 1.5;
    }
}

@media (max-width: 480px) {
    .main-section {
        height: 400px;
        padding: 40px 12px 0;
    }
    
    .main-title {
        font-size: 1.8rem;
        margin-bottom: 12px;
    }
    
    .main-desc {
        font-size: 0.95rem;
    }
}

/* 모달 스타일 */
.edit-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(4px);
}

.edit-modal-content {
    background-color: white;
    padding: 24px;
    border-radius: 12px;
    width: 90%;
    max-width: 600px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.edit-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid #eee;
}

.edit-modal-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: #333;
    font-weight: 600;
}

.close-modal-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #666;
    cursor: pointer;
    padding: 5px;
    transition: color 0.2s;
}

.close-modal-btn:hover {
    color: #333;
}

.edit-modal-body {
    flex: 1;
    min-height: 150px;
}

.edit-textarea {
    width: 100%;
    min-height: 150px;
    padding: 16px;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    line-height: 1.6;
    background-color: #fff;
    color: #212529;
    outline: none;
    overflow-y: auto;
}

.edit-textarea:focus {
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.edit-textarea[contenteditable="true"]:empty:before {
    content: '내용을 입력하세요...';
    color: #adb5bd;
}

.edit-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding-top: 12px;
    border-top: 1px solid #eee;
}

.save-btn, .cancel-btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    transition: all 0.2s;
}

.save-btn {
    background-color: #1976d2;
    color: white;
}

.save-btn:hover {
    background-color: #1565c0;
}

.cancel-btn {
    background-color: #f5f5f5;
    color: #333;
}

.cancel-btn:hover {
    background-color: #e0e0e0;
}

/* 인라인 편집 스타일 */
[data-editable="true"] {
    position: relative;
    transition: all 0.2s;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid transparent;
    margin: 2px 0;
    background-color: transparent;
}

/* 로그인 상태일 때만 편집 관련 스타일 적용 */
body:has(.admin-logged-in) [data-editable="true"] {
    cursor: pointer;
    background-color: rgba(25, 118, 210, 0.02);
}

body:has(.admin-logged-in) [data-editable="true"]:hover {
    background-color: rgba(25, 118, 210, 0.08);
    border-color: rgba(25, 118, 210, 0.3);
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.1);
}

body:has(.admin-logged-in) [data-editable="true"].editing {
    background-color: #fff;
    border-color: #1976d2;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.2);
    padding: 8px 40px 8px 12px;
}

.edit-button {
    display: none;
}

body:has(.admin-logged-in) .edit-button {
    display: flex;
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(25, 118, 210, 0.3);
    color: #1976d2;
    cursor: pointer;
    padding: 6px;
    opacity: 0;
    transition: all 0.2s;
    z-index: 1;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

body:has(.admin-logged-in) .edit-button:hover {
    color: #1976d2;
    background-color: #fff;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
}

body:has(.admin-logged-in) [data-editable="true"]:hover .edit-button {
    opacity: 1;
}

.edit-controls {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.2s;
}

[data-editable="true"].editing .edit-controls {
    opacity: 1;
}

.edit-controls button {
    background: #fff;
    border: 1px solid #1976d2;
    color: #1976d2;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    transition: all 0.2s;
}

.edit-controls button:hover {
    background: #1976d2;
    color: #fff;
}

.edit-controls .save-btn {
    background: #1976d2;
    color: #fff;
}

.edit-controls .save-btn:hover {
    background: #1565c0;
}

.edit-controls .cancel-btn {
    background: #fff;
    color: #dc3545;
    border-color: #dc3545;
}

.edit-controls .cancel-btn:hover {
    background: #dc3545;
    color: #fff;
}

/* 에디터 도구 모음 스타일 */
.editor-tools {
    position: absolute;
    top: -40px;
    left: 0;
    display: flex;
    gap: 8px;
    padding: 8px;
    background-color: #fff;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 2;
}

[data-editable="true"].editing .editor-tools {
    opacity: 1;
}

.tool-group {
    display: flex;
    gap: 4px;
    align-items: center;
    padding: 2px;
    background: #f8f9fa;
    border-radius: 4px;
    border: 1px solid #e9ecef;
}

.tool-btn {
    padding: 4px 8px;
    border: 1px solid #e9ecef;
    background-color: white;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
    color: #495057;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 28px;
    height: 28px;
}

.tool-btn:hover {
    background-color: #f8f9fa;
    border-color: #1976d2;
    color: #1976d2;
}

.tool-btn.active {
    background-color: #1976d2;
    border-color: #1976d2;
    color: white;
}

.font-size-select,
.font-family-select {
    padding: 4px 8px;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    background-color: white;
    color: #495057;
    min-width: 100px;
    height: 28px;
}

.color-picker,
.bg-color-picker {
    width: 28px;
    height: 28px;
    padding: 0;
    border: 1px solid #e9ecef;
    border-radius: 4px;
    cursor: pointer;
}

@media (max-width: 768px) {
    .edit-modal-content {
        width: 95%;
        padding: 20px;
    }

    .edit-modal-header h3 {
        font-size: 1.1rem;
    }

    .edit-modal-footer {
        flex-direction: column;
    }

    .save-btn, .cancel-btn {
        width: 100%;
    }
}

/* 알림 스타일 */
.notification {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-size: 0.95rem;
    z-index: 1000;
    animation: slideIn 0.3s ease-out;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.notification.success {
    background-color: #4caf50;
}

.notification.error {
    background-color: #f44336;
}

.notification.info {
    background-color: #2196f3;
}

@keyframes slideIn {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(100%);
        opacity: 0;
    }
}

