@font-face {
    font-family: 'GmarketSansMedium';
    src: url('https://fastly.jsdelivr.net/gh/projectnoonnu/noonfonts_2001@1.1/GmarketSansMedium.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'GmarketSansMedium', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* 헤더 스타일 */
.header {
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header-top {
    border-bottom: 1px solid #ddd;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 10px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 5px;
}

.logo-text {
    font-size: 28px;
    font-weight: bold;
    color: #e8344e;
}

.partners-badge {
    background: #4285f4;
    color: white;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
}

.header-right {
    display: flex;
    gap: 10px;
}

.header-btn {
    background: none;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
}

.header-btn:hover {
    background: #f4f4f4;
}

.header-btn.active {
    background: #e8344e;
    color: white;
    border-color: #e8344e;
}

.nav-menu {
    max-width: 1200px;
    margin: 0 auto;
}

.nav-menu ul {
    display: flex;
    list-style: none;
    padding: 0 20px;
    gap: 30px;
    overflow-x: auto;
    white-space: nowrap;
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    padding: 12px 0;
    display: block;
    font-size: 14px;
}

.nav-menu a:hover {
    color: #4285f4;
}

/* 메인 배너 */
.main-banner {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 60px 20px;
    text-align: center;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.banner-content p {
    font-size: 18px;
    opacity: 0.9;
}

/* 입력 섹션 */
.input-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
}

.section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

.input-wrapper {
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.product-name-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-size: 16px;
    margin-bottom: 15px;
}

.product-name-input:focus {
    outline: none;
    border-color: #4285f4;
}

#iframeInput {
    width: 100%;
    min-height: 100px;
    padding: 15px;
    border: 2px solid #ddd;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 14px;
    resize: vertical;
    margin-bottom: 15px;
}

#iframeInput:focus {
    outline: none;
    border-color: #4285f4;
}

.add-btn {
    background: #e8344e;
    color: white;
    border: none;
    padding: 12px 40px;
    border-radius: 4px;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.3s;
    width: 100%;
}

.add-btn:hover {
    background: #c92a41;
}

.notice-box {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    padding: 20px;
    border-radius: 8px;
}

.notice-title {
    font-weight: bold;
    margin-bottom: 10px;
    color: #856404;
}

.notice-box ul {
    list-style: none;
    padding-left: 20px;
}

.notice-box li {
    color: #856404;
    font-size: 14px;
    line-height: 1.6;
}

/* 상품 섹션 */
.products-section {
    max-width: 1200px;
    margin: 40px auto;
    padding: 0 20px;
    min-height: 400px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.product-count {
    color: #666;
    font-size: 16px;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
}

.product-card {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.product-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333;
}

.delete-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e8344e;
    color: white;
    border: none;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
}

.delete-btn:hover {
    background: #c92a41;
}

.product-iframe {
    width: 100%;
    margin-bottom: 10px;
    display: flex;
    justify-content: center;
}

.product-info {
    font-size: 12px;
    color: #666;
    line-height: 1.5;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #999;
}

.empty-state h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

/* 고지사항 */
.disclaimer-section {
    background: #f8f9fa;
    padding: 40px 20px;
    margin-top: 60px;
}

.disclaimer-box {
    max-width: 1200px;
    margin: 0 auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    border-left: 4px solid #e8344e;
}

.disclaimer-box h3 {
    margin-bottom: 15px;
    color: #333;
}

.disclaimer-text {
    font-size: 16px;
    color: #e8344e;
    margin-bottom: 15px;
    font-weight: bold;
}

.disclaimer-sub {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* 푸터 */
.footer {
    background: #333;
    color: white;
    text-align: center;
    padding: 30px 20px;
}

.footer-content p {
    font-size: 14px;
}

/* 성공 메시지 */
.success-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #4caf50;
    color: white;
    padding: 15px 30px;
    border-radius: 4px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    animation: slideIn 0.3s ease-out;
}

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

/* 반응형 */
@media (max-width: 768px) {
    .header-container {
        flex-wrap: wrap;
    }

    .nav-menu ul {
        overflow-x: auto;
        white-space: nowrap;
        padding-bottom: 10px;
    }

    .main-banner h1 {
        font-size: 28px;
    }

    .products-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}