@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');

:root {
    --primary-color: #1a1a1a;
    --accent-color: #007bff;
    --bg-color: #ffffff;
    --text-color: #333333;
    --light-gray: #f8f9fa;
    --border-color: #e9ecef;
    --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --radius: 8px;
}

body {
    font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

/* Disclaimer */
.disclaimer-bar {
    background-color: #fff3cd;
    color: #856404;
    text-align: center;
    padding: 6px;
    font-size: 10px;
    border-bottom: 1px solid #ffeeba;
    position: relative;
}

.close-disclaimer {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    cursor: pointer;
    font-weight: bold;
    font-size: 18px;
    color: #856404;
}

.close-disclaimer:hover {
    color: #533f03;
}

/* Header */
.header {
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 20px 40px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    letter-spacing: -0.5px;
}

.nav {
    display: flex;
    gap: 24px;
    align-items: center;
}

.nav a {
    font-size: 15px;
    font-weight: 500;
    color: #555;
}

.nav a:hover {
    color: var(--accent-color);
}

/* Layout */
.container {
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
    flex: 1;
}

/* Typography */
h2 {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--primary-color);
}

/* Product Grid - Responsive */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 24px;
}

@media (min-width: 1400px) {
    .product-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1200px) and (max-width: 1399px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1199px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 600px) and (max-width: 899px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 599px) {
    .product-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

.product-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid transparent;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--border-color);
}

.product-card img {
    width: 100%;
    height: 280px;
    object-fit: contain;
    background-color: var(--light-gray);
    padding: 20px;
    box-sizing: border-box;
}

.product-info {
    padding: 20px;
}

.product-card h3 {
    font-size: 16px;
    font-weight: 500;
    margin: 0 0 8px 0;
    color: #333;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.price {
    color: var(--primary-color);
    font-weight: 700;
    font-size: 18px;
    margin: 0;
}

.cheap-button {
    display: block;
    width: 100%;
    margin-top: 15px;
    padding: 10px;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.2s;
}

.cheap-button:hover {
    background-color: #000;
}

/* Forms */
.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    color: #555;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.2s;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent-color);
}

.btn {
    display: inline-block;
    background-color: var(--accent-color);
    color: white;
    padding: 12px 24px;
    border: none;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    font-size: 15px;
    transition: background-color 0.2s;
}

.btn:hover {
    background-color: #0056b3;
}

/* Detail Page */
.detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: start;
}

@media (max-width: 768px) {
    .detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

.detail-image {
    width: 100%;
    border-radius: var(--radius);
    background-color: var(--light-gray);
    padding: 40px;
    box-sizing: border-box;
    border: none;
}

.detail-info {
    text-align: left;
    padding-top: 20px;
}

.detail-info h2 {
    font-size: 32px;
    margin-bottom: 10px;
}

.detail-info .price {
    font-size: 24px;
    color: var(--accent-color);
    margin-bottom: 20px;
}

.stock-count {
    color: #666;
    font-size: 14px;
    margin-bottom: 30px;
}

/* Footer */
.footer {
    background-color: var(--light-gray);
    color: #999;
    padding: 20px;
    border-top: 1px solid var(--border-color);
    text-align: center;
    font-size: 9px;
    margin-top: auto;
}

.footer p {
    margin: 5px 0;
}