body {
    font-family: 'Noto Sans KR', sans-serif;
    background: #ffffff;
    margin: 0;
}

.container {
    width: 1200px;
    margin: auto;
}

#product_intro {
    text-align: center;
    margin: 30px 0;
    padding: 40px;
    font-size: 32px;
    margin-bottom: 15px;
}


/* 탭 */
.tabs {
    text-align: center;
    margin-bottom: 30px;
}

.tabs button {
    padding: 10px 20px;
    margin: 5px;
    border: none;
    background: #ddd;
    border-radius: 20px;
    cursor: pointer;
}

.tabs button.active {
    background: #007bff;
    color: white;
}

/* 카드 */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    font-size: 15px;
    margin-bottom: 30px;
    z-index: 1;
    overflow: visible
}

/* .card:hover .preview {
    display: block;
} */

.card {
    position: relative;
    background: white;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    cursor: pointer;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    z-index: 10;
    transition: all 0.3s ease;
    font-weight: 500;
    border: 2px solid transparent;
    display: inline-block;
}

#previewBox {
    position: fixed;
    /* display: none; */

    display: flex;
    flex-wrap: wrap;
    gap: 15px;

    width: 500px;
    /* 전체 박스 크게 */
    background: #fff;
    padding: 15px;
    border: 1px solid #ddd;
    
    z-index: 9999;
    pointer-events: none; /* 마우스 방해 안함 */
}

.preview-item {
    width: 120px;
    /* 카드 크기 */
    text-align: center;
}

.preview-item img {
    width: 100%;
    height: 100px;
    object-fit: cover;
    border-radius: 5px;
}

.card:hover {
    display: flex;
    transform: translateY(5px);
    font-weight: 500;
    background: #eef6ff;
    border: 2px solid #333;
}

.preview-item p {
    margin-top: 5px;
    font-size: 12px;
}